DSv4-Flash REAP Wiki

Wiki pages

On this page

Resources

External review

From the DeepSeek-V4-Flash-0731 interpretability project

Master index

A reference page listing every dataset, analysis file, text corpus, and published page in the project, with plain-English notes on what each one is for.

This project studies how DeepSeek-V4-Flash-0731, a mixture of experts language model, routes text. In a mixture-of-experts model, a router picks a few small sub-networks (called experts) to handle each token (roughly each word) rather than running the whole network every time. We feed the model religious and secular texts and record which experts it picks and how strongly. Our headline metric is REAP, the router's gate weight for an expert multiplied by that expert's activation norm, which tells us how much each expert actually contributed.

Everything below is organized so you can find a specific artifact and understand what it is without having read the rest of the wiki first.

1. Data streams

Each row is one batch of observations we recorded from the model. A record is one text passage we fed in; a token is roughly one word or word-part the model processed. The REAP observations rows are the core dataset: for each passage, which experts fired and how strongly. The experiment rows are targeted follow-up tests built from smaller, controlled text sets.

StreamRecordsTokensStatus
REAP observations (core 8 traditions)2,74922,179,407complete
Christian wave-1 + wave-23,56255,900,970complete
J-lens probes80complete
Exp 1 (12 translations)360613,344complete
Exp 4b (quotation switch)3515,156,659complete
Exp 12 (digit pairs)222437,900complete

2. Analysis artifacts

These are the files our scripts produce from the raw observations. Most come from analyze_experts.py, which tallies how often each expert fires, on which texts, and with what REAP score. A Jaccard matrix (row 3) is a similarity table: it asks how much the top experts for one text overlap with the top experts for another, where 1 means identical and 0 means no overlap. Bootstrap confidence intervals (row 7) are a way of estimating how stable a number is by resampling the data thousands of times.

FileGenerated byContents
core_agg.jsonanalyze_experts.pyPer-category n/tok/freq/reap, 8 traditions
christian_agg.jsonanalyze_experts.pySame for Christian wave-1
analysis/cross_text_jaccard.csvanalyze_experts.py9×9 top-20 REAP Jaccard matrix
analysis/expert_frequency.csvanalyze_experts.pyPer-expert frequency table
analysis/expert_rankings.csvanalyze_experts.pyRanked expert profiles per text
analysis/expert_rankings_per_book.csvanalyze_experts.pyPer-book rankings (Christian corpus)
analysis/robustness_checks.txtanalyze_experts.pyMatched-n bootstrap CIs (5,000 resamples)
analysis/per_layer_topk.csvanalyze_experts.pyPer-layer top-k experts per text
analysis/text_expert_profiles.parquetanalyze_experts.pyFull per-text per-expert profiles (Parquet)
analysis_all/exp8_sorted_freq_results.txtexp8_sorted_freq.pySorted L42 distributions, permutation check
jac_matrix.jsonrun_jlens.pyJacobian norm matrix (per text per layer)
report.htmlgenerate_report.pyAuto-generated integrity + findings report

3. Corpus registry

These are the text files we feed to the model. Digit density is the percentage of tokens that are numerals, a column we added after discovering that one expert (e164) fires on digits and that our Bible pipeline accidentally strips all digits, which misled us early on. Most texts come from Project Gutenberg, a free archive of public-domain books.

FileRecordsTokensDigit densitySourceObserved?
bible.jsonl1,1891,045,7760.0000%Gutenberg KJVyes
quran.jsonl115258,122variesGutenberg (Pickthall)yes
bofm.jsonl30342,6140.000%Gutenberg pg17yes
gita.jsonl1829,690lowGutenbergyes
tao.jsonl8113,852lowGutenbergyes
dhamma.jsonl2616,203lowGutenberg pg2017yes
analects.jsonl2042,041lowGutenbergyes
upanishads.jsonl321,669lowGutenbergyes
christian_sel.jsonl1,26720,409,440~1.1%Gutenberg 3,705 booksyes
exp1_all_translations.jsonl360613,3440.0000%12 Bible translations (bible-api + Bible Gateway)yes
exp4b_quotation_switch.jsonl3515,156,659variesCommentary with KJV quotes, 18 sourcesyes
exp12_digit_minimal_pairs.jsonl222437,9000% / ~2.5%111 matched pairs, 5 categoriesyes
exp13_ablation_corpus.jsonl480418,695varies4 cells: verse/prose × religious/secularstaged

4. Publication artifacts

Where everything is published: the wiki pages, the interactive viewer for the J-space lens (our method for peeking at the model's intermediate predictions layer by layer), and the two public data repositories.

ArtifactLocation
Research wiki hubindex.html
Methods pagemethods.html
Data pagedata.html
Results pageresults.html
Experiments pageexperiments.html
Code referencecode.html
Operationsoperations.html
Roadmaproadmap.html
Narrativenarrative.html
J-space lensjspace.html
Exp 1 resultsexp1.html
Exp 4/4b resultsexp4.html
Exp 12 resultsexp12.html
Exp 13 ablationexp13.html
Forward planforward_plan.html
Interactive J-space viewerjlens_viewer.html
GitHub repo0xSero/dsv4-reap-routing
HuggingFace (consolidated)0xSero/deepseek-v4-flash-reap
HuggingFace (raw obs)0xSero/deepseek-v4-flash-religious-reap-observations