From the DeepSeek-V4-Flash-0731 interpretability project
Roadmap and ideas
Where the project goes next, in rough order, plus the questions we have not answered yet.
This is a study of DeepSeek-V4-Flash-0731, a language model built as a mixture of experts. Instead of running one giant network for every word, the model keeps 256 smaller sub-networks (we call them experts) at each of its 43 layers, and a router that picks 6 of them for each token (roughly, each word or word-part) it reads. We record which experts get picked and how strongly they fire. Our main measurement is called REAP: it multiplies how much the router wanted an expert (its gate weight) by how active that expert turned out to be (its activation norm), giving one number per expert per token that says how much that expert contributed.
So far we have found two clear things. The first is H6, a group of 6 experts at layer 42 (the last layer) that fire strongly on flowing prose but go nearly silent on verse, meaning text broken into short lineated lines like poetry or scripture. The second is e164, expert number 164 at layer 42, which fires on digits (the numerals 0 through 9) and on little else. We originally mistook e164 for a scripture detector, but that was an error caused by our own data pipeline stripping verse numbers out of the Bible, leaving the Bible with no digits while every other text had them.
The roadmap below is what we plan to do next, and the questions still open.
1. Near term
These are the experiments we have already prepared and expect to run in the next block of GPU time.
- Exp 13, the ablation. An ablation is a test where we temporarily switch some experts off and see what changes. Here we switch the H6 experts off and measure how much worse the model gets at predicting the next token, using its negative log likelihood (NLL), a standard measure of prediction error where lower is better. If the error jumps on prose but not on verse, that is direct evidence H6 is causing the difference, not just tracking it. staged
- Exp 11, the context dump. We look at the actual text the model is reading at the moments when the tradition-specific experts (the ones that fire on only one religion) switch on. The goal is to see what in the text triggers them. staged
- Theology observation. Run text about specific figures, Jesus, Lucifer, Moloch, and Saturn, plus texts on Judaism, through the model and record the routing, to see whether named theological content changes which experts fire.
2. Medium term
These need more design work before we run them.
- Secular null (Exp 3). Text in the same formats and styles as our religious texts, but with no religious content at all. This answers the baseline question: is any signal we see actually about religion, or only about ordinary English prose and verse? We split the comparison by digit density so the digit confound that fooled us on e164 cannot come back.
- Covariate regression. A statistical method that lets us ask whether the religious tradition matters once we hold text length, punctuation, sentence length, and digit density constant. Run on the records we already have.
- Perplexity correlation. Perplexity is how surprised the model is by a piece of text, a transformation of NLL. We check whether texts the model finds more predictable use fewer effective experts, or more.
- Digit-controlled theology comparison. Compare the Jesus, Lucifer, Moloch, and Saturn texts while holding digit density fixed, so digits cannot explain any difference we see.
3. Backlog (ideas, not committed)
These are ideas we think are worth doing but have not yet scheduled.
- Audit the other specialists. Two experts we flagged as tradition-specific, e34 (firing on Qur'an text) and e33 (firing on Dhammapada text), deserve the same digit and translation scrutiny that exposed e164. They may also be responding to something mundane we have not noticed.
- Full Jacobian. Our current sensitivity measure, the bounded Jacobian, approximates the true value using 16 random directions. We could compute the exact value on a small sample instead, for a sharper picture.
- Activation patching. Copying expert activations from one input into another to test causality directly. This is not in scope right now because it would mean editing the model's internal state, and we have kept the model strictly read-only.
- Comparative model study. Run the same corpus through a different mixture-of-experts model and compare the routing. This would tell us whether H6 is specific to this model or a general property of the architecture.
- Publication. Outside reviewers judged the e164 finding alone to be workshop-paper material. The results from Exp 1, 4b, and 12 are ready. Broader claims should wait until Exp 11 and Exp 3 land cleanly.
4. Open problems we have not solved
- What exactly triggers e164? Is it the numeral characters themselves, the citation structure that often surrounds them, or something else correlated?
- Does any genuine religious-content signal survive once we control for digit density? So far the answer leans no, but we have not closed the door.
- Can per-firing mean REAP (averaging the REAP score only over the tokens where an expert fires) be saved as a useful metric, or is it too noisy at the floor? We may need to replace it.
- Small traditions. The Gita sample has only 18 records and the Upanishads sample has only 3, which is too little data for confident claims about them.