Weight-Space Programming at Scale

Experiments with Claude Fable 5.1 editing the weights of five public language models, from 4B to 60B parameters, focused on medical uses.

Ray Ding, DoctronicNovember 7, 2026

Disclaimer: This is independent research. All models and benchmarks used are public. The models built here are research artifacts. They are not part of any Doctronic product and are not intended for clinical use. Views are the author’s own.

Translating into a low-resource language

Translate into Amharic: “And are you having this chest pain now?”

Translation modelእናም፣ сейчас у вас эта የልብ ህመም አለ?✗Switches to Russian mid-sentence (“now you have this”).
After Fable’s editእናም ይህ የልብ ህመምን እየተሰማዎት ነው?✓
Reading a scan
A chest X-ray from the SLAKE test set.

What disease does this show?

General modelBronchitis✗
Medical modelEnlarged heart✓
Fable’s mergeEnlarged heart✓
A hard medical exam

A 59-year-old smoker was hospitalized twice in nine months for pneumonia in the same lower part of her left lung. Now she’s back with fever and cough. What’s the next step?

Full 26B modelCT scan of the chest✓
Frequency pruningBronchoscopy✗Spots the red flag, then skips straight to the invasive test.
Fable’s pruningCT scan of the chest✓

Real test questions, shortened. Fable’s merge is Gemma 3 plus the parts of MedGemma’s change that carry the medical skill, chosen by Fable. The translation model is TranslateGemma, and Fable’s edit pushes apart the writing systems in its vocabulary table. Fable’s pruning keeps as many experts as frequency pruning, spread differently across the layers. None used any training. X-ray: SLAKE [1], CC BY 4.0.

1 thousand1 million1 billion1 trillionparameters in the model (log scale)MedGemma 4BGemma 4 26Bgpt-oss-120b, prunedsmall networksQwen3.5-0.8BMIT, November 2026this postabout 75× larger
1 thousand1 million1 billion1 trillionMedGemma 4BGemma 4 26Bgpt-oss-120b, prunedsmall networksQwen3.5-0.8BMIT,November 2026this postabout 75×largerparameters in the model (log scale)
Figure 1. Model sizes in the MIT blog post and in this one. The experiments in the MIT blog post run from tiny networks up to 0.8 billion parameters. Ours run at 4.3, 26 and 60 billion, up to about 75 times its largest model. The largest is gpt-oss-120b, first cut to 60B to fit our GPU.
Overview

We explored whether an LLM can read the weights of language models at larger scale, work out what the parts do, and change them to hit a specific target, with no training. We gave Claude Fable 5.1 the weights of five public models, from 4 to 60 billion parameters, and a different target for each. Each time, it found which parts were responsible for the target behavior, and an edit built on that finding improved the target score.

MedGemma 4BFound where a medical skill lives51 → 63.5medical exam score (MedQA)Gemma 3 plus only those parts matches MedGemma (63.6).
TranslateGemma 4BKept a translator in the right language81% → 7%Amharic translations that slip into another languageOne edit, which also helped languages Fable never saw.
Gemma 4 26B, prunedRepaired a pruned model+3.7 pointshard medical exam (MedXpertQA)Same size as baseline frequency pruning, with half the looping.
gpt-oss-120b, prunedFound the experts that do arithmetic2% → 73%*grade-school math (GSM8K)Baseline frequency pruning removes these arithmetic experts, so its math score falls to 2%. *A published method, REAP, also restores most of it.

A neural network consists of a huge pile of numbers, its weights. The predominant way to change a model has been training on data via gradient descent. This post is inspired by MIT’s Sparks of Weight-Space Programming [2], which showed that a frontier LLM can read those numbers and edit them directly, like a programmer editing code. Its largest model had 0.8 billion parameters.

This post tests whether it holds on larger models used in industry. The LLM in these experiments is Claude Fable 5.1, which we call Fable below. It reads the weights, tries its changes on practice questions, and edits the model, without ever training it or seeing the final tests.

Setup

Fable gets: the weights in a Python session, a practice set with answers, and a few dozen test runs to try a model on it

Practice set: questions from the training or development splits of public datasets, with their official answers. The size varies by task. The 4B model had 6,000 (MedQA and MedMCQA training, MMLU validation, SLAKE training), the 26B model about 28,500 (MedQA and MedMCQA training), the 120B model 5,950, and translation the 971 sentences of the TICO-19 development set. Each section’s Setup lists its sources

One exception: MedXpertQA, the hard medical exam, publishes only a test split. For the 120B model we divided its questions ourselves into 950 for practice and 1,478 for the final test, with no question in both. The 26B model was tested on MedXpertQA and never practiced on it

Final tests: the datasets’ own test splits, or other benchmarks. Fable never sees them

Not allowed: gradients and training of any kind

Leakage check: we checked every final test against everything Fable practiced on and dropped the few questions that were too close

Compared with MIT: the same tools and rules as the largest experiment in the MIT blog post. MIT let its LLM write new weights, while Fable here mostly chooses and copies parts that already exist. The exception is the language fix, where it rewrote one table using arithmetic on that table’s own rows

MedGemma 4B into Gemma 3 4BCan an LLM find where a skill lives?

Task

Find where MedGemma’s medical skill lives, and copy only that into Gemma 3. No training.

What Fable found

The skill lives in MedGemma’s first 17 layers. MedGemma’s image encoder alone makes Gemma 3 worse at reading scans.

What it changed

Copied MedGemma’s image encoder and the MLPs of the first 17 layers whole, and the rest of the change at half strength.

Result

Matches MedGemma on a medical exam (MedQA), keeps 97% and 76% of its gain on two scan quizzes (VQA-RAD, SLAKE), and scores 5 more math points than MedGemma (GSM8K).

Google trained its general-purpose LLM, Gemma 3 [3], further on medical data to make MedGemma [4]. MedGemma reads medical scans far better, but it got worse at grade-school math. Fable’s task was to find where the medical skill lives and build a new model from Gemma 3 plus only those parts of the change, with no training.

Setup

Models: Gemma 3 4B and MedGemma 4B: the same shape, 4.3 billion parameters each

Task: build a new model from Gemma 3 plus the parts of MedGemma’s change that carry the medical skill, leaving out the parts that hurt Gemma 3’s other skills

Fable gets: a Python session over both models’ weights (CPU only), practice questions with answers, and 25 test runs, each running a model on practice questions it picks

Practice: 6,000 questions taken from public training and validation splits (2,000 MedQA and 2,000 MedMCQA training questions, 1,000 MMLU validation questions, and 1,000 SLAKE training scans with their questions). VQA-RAD was used only for testing

Allowed edits: for each part of the model, how much of the medical change to copy over, from none to all

Not allowed: training or gradients, and any look at the final tests

Evaluation: scan quizzes (SLAKE [1], VQA-RAD [5]), medical exams (MedQA [6], MedXpertQA [7]), following instructions (IFEval [8]), general knowledge (MMLU-Pro [9]) and grade-school math (GSM8K [10]), all unseen by Fable

Leakage check: we compared every test item with every practice item for copies, near-copies and the same image. A few were too close, such as neighbouring slices of the same CT or MRI scan (SLAKE) and reworded exam questions (MedQA, MMLU-Pro). We dropped them, and every number here uses the cleaned tests. VQA-RAD, GSM8K and IFEval had no overlap

How Fable did it: the prompt, every step, and its answer
  1. The task

    Gemma 3, MedGemma and the exact difference between them, in a Python session

    Build a new model: Gemma 3 plus the parts of MedGemma’s change that you choose. Keep the parts that carry the medical gains, leave out the parts that hurt general skills, and work it out by reading the weights.

    No training. The model runs only in test runs, 25 in all. It used 25.

    Read the full prompt, as Fable got it
    Task

    You have two instruction-tuned vision-language models of identical architecture (34 decoder layers of width 2560, 8 query and 4 key/value heads of size 256, gated MLP of width 10240, RMSNorm, vocabulary 262,208 with tied embeddings; a 27-layer SigLIP vision tower of width 1152 and a pooling projector to 256 image tokens): BASE, a general assistant, and TARGET, the same developer's medical variant. TARGET scores higher than BASE on medical imaging and clinical question answering and lower on general knowledge and instruction following. You are given the exact per-tensor difference DELTA = TARGET - BASE. Your job is to build EDITED = BASE + (your selection of DELTA): choose the parts of the difference that carry the medical gains and leave out the parts that carry the general regression, by READING THE WEIGHTS and reasoning about what each part does, confirmed with a limited number of forward passes. Selections can be whole tensors, components, layers, rows, columns, entry masks, or low-rank factors of a tensor's difference; you never write arbitrary weights.

    How it will be measured

    After you finish, EDITED, BASE and TARGET are evaluated on radiology VQA (SLAKE, token F1), hard medical multiple choice (MedXpertQA text, 10 options), general-knowledge multiple choice (MMLU-Pro, 10 options) and instruction following (IFEval, prompt-level strict), with this fixed protocol: the chat template, no system prompt, sampling with temperature 1.0, top_k 64, top_p 0.95, at most 2,048 new tokens; for multiple choice the LAST "Final Answer: (X)" is graded; for VQA the first line is graded by token F1. You never see these benchmarks. Your result is reported as the share of TARGET's medical gain that EDITED keeps and the share of BASE's general score that EDITED recovers, next to IFEval and the share of answers cut at the token limit, and next to controls: the whole difference at fractional strength, the vision-tower difference alone, the language-model difference alone, magnitude-trimmed and randomly-dropped differences at your selection's parameter count, and a random selection of the same parameter count. To matter, your selection must beat those at matched size.

    What counts

    Selections that come from understanding the difference: which components and layers carry which capability, what the vision-tower change does versus the language-model change, whether a tensor's difference is low-rank or structured, which rows of the embedding difference are medical vocabulary, what the attention changes in specific layers do. Then confirm with forward passes on practice problems and keep what the evidence supports. Out of scope: anything that is not a selection of DELTA (the kernel refuses other writes); selecting everything (that is TARGET); choosing by a benchmark name you guessed rather than by evidence.

    WHAT YOU HAVE.

    1. 1. A persistent Python kernel (no GPU, no internet): variables survive between code blocks, like a notebook. Predefined: NAMES, SHAPES[name], COMPONENT[name] (vision, projector, attention, mlp, norm, embeddings), LAYER[name], STATS (per-tensor base norm, delta norm, relative norm, changed share; roll-ups by component and by component x layer), load_base(name), load_target(name), delta(name) (float32), load(name) (the CURRENT edited tensor), select(name, mask=None, rows=None, cols=None, scale=1.0), select_lowrank(name, k, scale=1.0), select_component(component, layers=None, scale=1.0), select_layers(layers, components=None, scale=1.0), drop(name), drop_all(), selected(), selection_summary(), tok, CONFIG, eval_prompt(x), eval_prompt_ids(x), practice_items(), and the paths WORK, SELECTED, BASE_DIR, TARGET_DIR, DELTA_DIR, PRACTICE, POOL. Exact semantics, refusals and the printed line of each select call are in the harness README. Gradients are disabled. One execution may take up to 900 seconds and about 9 GB of arrays; output is cut at 10,000 characters. You may run code up to 300 times. If the kernel is restarted (time or memory limit), its variables are lost and you are told so. Read tensors one at a time; the models are 4.3 billion parameters each. The embedding delta (262,208 x 2560) may be selected whole or by rows (token ids).
    2. 2. Practice problems with answers (none in the evaluation), one JSON object per line: 2,000 USMLE-style 4-option questions (ids medqa_train_*), 2,000 Indian medical entrance 4-option questions (medmcqa_train_*), 1,000 general-knowledge 4-option questions from many non-medical subjects (mmlu_val_*), and 1,000 radiology visual questions with their images (slake_train_*, open and closed answers, graded by token F1 and exact match; the image attaches automatically when you list the id). The 512 ids in the pool (128 of each kind) have BASE and TARGET answers cached, so passes on them cost no GPU time for those two models; other ids work too. You may also write your own prompts (ungraded), including instruction-following prompts of your own design to watch for regression.
    3. 3. A forward-pass tool with a budget of 25 forward passes in total. A forward pass is one of two things, each counts as one pass, and a request that fails costs nothing:
    4. (a) GENERATION: reply with one block that starts with ```forward and contains JSON: {"type": "generate", "model": "edited" | "base" | "target" | "both", "problems": ["<practice id>", ...], "prompts": ["<your own user message>", ...], "n": 1, "max_tokens": 2048}. items x n <= 512; with "both" <= 256 per model. "both" runs EDITED and BASE on the same items with the same seeds and returns the paired comparison (accuracy difference edited - base over items with its standard error, samples wrong-to-right and right-to-wrong), the per-model accuracy by source, mean tokens, cut share and failure counts. EDITED is rebuilt from your current selection on every request (about 2 minutes) and generated live.
    5. (b) TEACHER-FORCED: {"type": "teacher_forced", "model": "edited" | "base" | "target", "texts": [...] or "chats": [...], "return": {"token_logprobs": true, "topk": 5, "hidden_states": [0, 10, 20, 34], "mlp_act": [10]}}. Up to 256 texts of up to 4,096 tokens. This gives a dense signal on every token (log-probabilities, residual stream, MLP activations) for any text you choose, including practice questions with their reference answers.
    6. 4. A shell, as described in the preamble. The GPU is not visible to it and must not be made visible; loading or running any model anywhere except through the forward-pass tool is forbidden; so is reading any benchmark or results file. Every command you run is logged and audited after the run; a run that breaks these rules is discarded.

    HOW TO WORK.

    1. 1. Read first. STATS gives per-tensor and per-component norms of DELTA; the vision tower, projector, attention, MLP and embedding differences have very different sizes and structures. Form hypotheses about which parts carry imaging gains, text-medical gains and general regression before spending passes.
    2. 2. Diagnose with a paired pass. One "both" generation on a mixed practice set (medical text, general, imaging) shows where BASE and TARGET differ and what EDITED does under your first selection.
    3. 3. Localize causally. Test selections that differ in one thing (a component, a layer range, a rank), on the same problems, and look for dose-response. A part that is large is not therefore the part that matters.
    4. 4. Measure with enough power. Accuracy over n generations has a standard error of about 50/sqrt(n) points: 4.4 at 128, 2.2 at 512. Compare EDITED and BASE on the SAME problems with "both"; never compare accuracies measured on different problems; never repeat an identical request with an unchanged selection. Sampling at temperature 1.0 makes paired runs noisy even with shared seeds; treat differences inside two standard errors as noise. Keep a selection only if its medical gain is clear AND its general-practice score does not drop, on problems not used to choose it.
    5. 5. Plan passes: diagnostics, a few selection comparisons, a final confirmation on held-out practice problems you fixed in advance.
    6. 6. Work efficiently: state the hypothesis of each code block in its first comment line; load things once; print compact summaries, never whole arrays and never raw vocabulary lists; print short excerpts of generated texts, at most about 300 characters each; keep the notes file current; it is what you get back if your conversation is restarted.
    Explain every step

    In every message, before your code or forward block, explain in plain English (3 to 8 sentences): what the last result showed, what you conclude, what you will do now and why, and what outcome would confirm or refute your hypothesis. In your final answer, summarize the path that led to your selection and what you learned about what each part of the difference does. These explanations are read by the experimenters and quoted in the write-up.

    Rules

    Not allowed: (a) gradient descent or any other training: no backward passes, autograd or optimizers, and no fitting of weights or masks to a loss or to activations, iterative or closed-form (summary statistics such as norms, covariances, correlations, PCA and SVD are allowed, and so are selections you compute from them with coefficients you choose and test); (b) running a model other than through the forward-pass tool; (c) internet access; (d) reading evaluation sets or results. Allowed: any analysis of DELTA and of forward-pass results, any use of the practice problems, any selection of DELTA the kernel accepts.

    How the session runs

    It continues until all 25 forward passes are used (a message without a fenced block does not end it earlier); after that, make your final choice (the current selection when you finish is submitted) and send a final message without a fenced block, saying what you selected, how many parameters it changes, the evidence for it, and why you expect it to keep the medical gains without the general regression. Then reply to the experimenters with that same summary.

  2. Before any run

    The eyes changed most. MedGemma’s image encoder, the model’s eyes, is effectively a different one. Each of the 34 layers of its brain changed by about the same amount, so the size of the change can’t say where the skill is.

  3. Run 3

    The eyes alone go blind. Gemma 3 with MedGemma’s eyes calls an MRI a CT scan and a chest a hand. Gemma 3’s brain can’t read what the new eyes send.

  4. Runs 10–11

    Half strength halves the scan gain. With the new eyes whole and the brain’s change at half strength, text answers hold up, and 53% of the scan gain survives.

  5. Runs 12–19

    The skill sits in the early MLPs. Raised back to full strength, the MLPs of layers 0 to 16 (the part of each layer that stores what it knows) lift the scan gain to 83% and carry most of the medical knowledge. Raising early attention instead barely helps.

  6. Run 22

    The eyes must come whole. Every part at half strength, eyes included, reads practice scans worse than Gemma 3 itself.

  7. Fable’s answer

    MedGemma’s image encoder and projector whole, the MLPs of layers 0 to 16 at full strength, everything else at half

    On unseen tests: 97% of MedGemma’s gain on radiology questions kept (VQA-RAD), 76% on scan questions (SLAKE), and medical exam questions at MedGemma’s level (MedQA)

Fable’s own log, all 44 steps as it wrote them
  1. Code
    First look at the difference before spending any forward pass.

    The two models share an architecture but were post-trained separately, so I expect DELTA to be dense rather than LoRA-like; what matters is how its size is distributed across the vision tower, projector, attention, MLP, norms and embeddings, and across layers. I print the component roll-up (parameter count, delta norm, relative norm, changed share), the per-layer profile of relative norm for attention and MLP in the language model and the vision tower, and the tensors with the largest relative change. Hypothesis: the vision tower and projector carry a large relative change (MedGemma's encoder was re-tuned on medical images), the language MLPs carry the medical text knowledge, and the embedding/late-layer/norm changes are candidates for the general regression. A flat relative norm across all layers would suggest the delta is not localized and that I must rely on causal forward passes rather than norms.

  2. Code
    The first survey showed a dense difference: the vision tower is effectively a different encoder (relative norm 1.04 overall, 3 to 7 times the base weights in the middle layers' MLP fc2 and attention out_proj), the projector's …

    The first survey showed a dense difference: the vision tower is effectively a different encoder (relative norm 1.04 overall, 3 to 7 times the base weights in the middle layers' MLP fc2 and attention out_proj), the projector's soft-embedding norm changed by 3 times its size, and the language model changed by a flat 0.25 to 0.37 relative norm in every layer and every projection, so there is no layer or projection that stands out by size in the LM. Layer norms barely changed (1 to 5 percent) except pre_feedforward_layernorm and q_norm in some layers. Before spending passes I want three more facts: the exact prompt formats the evaluation feeds (an image question and a multiple-choice question), whether the LM per-tensor deltas have any low-rank structure (energy share of the top singular directions of a few representative tensors), and how the embedding delta is distributed across token rows (is it concentrated on a subset of tokens or spread over the whole vocabulary). If the LM deltas have a flat singular spectrum, low-rank selections are out; if the embedding delta concentrates on few rows, row selection is attractive.

  3. Code
    The spectra settle one question: LM per-tensor deltas are as full-rank as the base weights themselves (top 256 of 2560 directions hold 21 percent of the energy in MLPs, 44 to 58 percent in attention, about the same as the base …

    The spectra settle one question: LM per-tensor deltas are as full-rank as the base weights themselves (top 256 of 2560 directions hold 21 percent of the energy in MLPs, 44 to 58 percent in attention, about the same as the base matrix), so low-rank selections cannot isolate anything. The embedding delta is a uniform relative change of about 26 percent on almost every row, with the largest rows being rare multilingual and unused tokens rather than medical vocabulary, which looks like global drift of the output head rather than learned medical vocabulary; I will still check a few structural token rows. Now I scan all 34 layers for finer structure that norms by tensor cannot show: per-head delta norms in attention (are a few heads responsible for the spikes in layers 7, 8, 27, 29?), per-neuron delta norms in the MLPs (is the change concentrated on a subset of neurons, which would make neuron-level selection meaningful, or spread evenly?), and the cosine between each tensor's delta and its base weights (a systematic shrink or growth component would be common-mode drift from weight decay or scale changes, not knowledge). If heads or neurons show a heavy tail, I will test head- or neuron-level selections; if everything is flat, selections must be at the level of components and layers, chosen by causal passes.

  4. Code
    The scan refuted head- and neuron-level structure: within a layer every head has the same relative change (max/min ratio about 1.1), the MLP delta energy is spread uniformly over neurons (the top 10 percent of neurons hold 11 to …

    The scan refuted head- and neuron-level structure: within a layer every head has the same relative change (max/min ratio about 1.1), the MLP delta energy is spread uniformly over neurons (the top 10 percent of neurons hold 11 to 12 percent of the energy), and the per-neuron relative change is tightly concentrated around 0.27. The surprising result is the cosine between each tensor's delta and its base weights: it reaches -0.95 and +0.92 in some layers, meaning that in those layers the target tensor is largely a rescaled copy of the base tensor. In Gemma 3 every sub-block output passes through an RMSNorm (post_attention_layernorm, post_feedforward_layernorm) and q and k pass through q_norm and k_norm, so a uniform rescaling of q_proj, k_proj, v_proj, o_proj, up_proj or down_proj is functionally null (gate_proj and the embedding are the exceptions). If the delta carries large null rescaling components, the attention spikes in layers 7, 8, 27, 29 are an artifact, magnitude-based trimming wastes its budget on them, and entry masks on such tensors would distort the model while whole-tensor selections stay safe. I now decompose each tensor's delta into its component along the base weights (the scale change s* = 1 + cos x rel) and the orthogonal residual, and report the residual relative norm per layer, which is the functional size of the change.

  5. Code
    The decomposition confirmed the hypothesis: 28 percent of the LM attention+MLP delta energy is a per-tensor rescaling that Gemma 3's post-norms and q/k norms cancel (k and v are scaled by the same factor in each layer, between …

    The decomposition confirmed the hypothesis: 28 percent of the LM attention+MLP delta energy is a per-tensor rescaling that Gemma 3's post-norms and q/k norms cancel (k and v are scaled by the same factor in each layer, between 0.64 and 1.75; down_proj between 0.56 and 1.66), so the attention spikes in layers 7, 8, 27 and 29 are mostly this null component, and the functional residual is a flat 0.15 to 0.4 relative change in every projection of every layer. Conclusion: in the LM nothing is localized by size, whole-tensor selections are scale-safe, entry masks on these tensors would create distortions, and the medical-versus-general question in the LM must be answered causally with forward passes. Before that I check the vision tower the same way: SigLIP has no post-norms, so its changes are functional; I want to know whether the mid-layer tensors with relative change 3 to 7 are rescaled copies of the base or genuinely different matrices (cosine near zero would mean the encoder was retrained and must be taken as a block). I also inspect the embedding rows of structural tokens (bos, eos, turn markers, newline, "Final", "Answer", option letters) relative to the typical row, since the tied output head makes these rows directly relevant to answer formatting.

  6. Before test run 1
    The vision tower is a retrained encoder, not a fine-tuned one: target tensors have 4 to 7 times the norm of the base tensors with cosine near zero and a top-64 singular-subspace overlap at chance level (0.023 against 0.015 …

    The vision tower is a retrained encoder, not a fine-tuned one: target tensors have 4 to 7 times the norm of the base tensors with cosine near zero and a top-64 singular-subspace overlap at chance level (0.023 against 0.015 random), so it is meaningful only as a block together with the projector; selecting parts of it would mix two unrelated encoders. In the embedding, frequent and structural tokens (newline, parentheses, option letters, "the") changed by only 0.2 to 0.4 of the median row, turn markers by 1.8 times, medical words about the median; the delta there looks like diffuse drift of the tied output head rather than targeted vocabulary learning. Reading is exhausted for localization inside the LM, so I now establish the behavioral baseline. This pass generates TARGET on all 512 pool ids (answers are cached, so it costs a pass but no GPU time): it gives the ceiling per source (medqa, medmcqa, mmlu, slake), TARGET's output lengths and cut share, and TARGET's response texts, which I will use as teacher-forcing references for medical reasoning. I expect TARGET far above BASE on slake F1 and medqa/medmcqa, and near or below BASE on mmlu.

  7. Before test run 2
    TARGET's ceiling on the pool is now known: medqa 72.7 percent, medmcqa 71.1, mmlu 60.9, slake exact match 49.2 with token F1 0.535, mean 220 tokens and only 0.4 percent of answers cut.

    The same free pass for BASE gives the other reference on exactly the same 512 items: the per-source gap TARGET minus BASE tells me how much medical gain and how much general loss the practice set can resolve (I expect a 15 to 20 point medical gain, a 25 point slake F1 gain, and a small mmlu deficit that will be hard to see at 128 items), and BASE's response texts become teacher-forcing references for general reasoning. With both references in hand, every later paired pass can be read as a share of the gain kept and a share of the general score recovered.

  8. Code
    BASE on the same pool: medqa 58.6, medmcqa 53.9, mmlu 57.8, slake F1 0.315 (exact 26.6).

    So the practice set resolves medical gains of +14 and +17 points on text and +0.22 F1 (30 items TARGET-only correct against 1 BASE-only) on images, but TARGET is +3 on practice mmlu, so the general regression the evaluation sees (MMLU-Pro, IFEval) will not appear on these items; both models use the "Final Answer: (X)" format in 382 of 384 answers and both give one-line SLAKE answers, so the differences are content, not format. I therefore build two fixed instruments now: (1) 96 instruction-following prompts of my own with programmatic strict graders (lowercase, exact bullet counts, forbidden words, JSON, end phrases, section markers, word limits and so on, IFEval-style, on non-medical topics), to watch the instruction-following side that practice items cannot show; (2) a teacher-forced probe set to be fixed later once BASE's instruction-following responses exist. I also record the first selection: the vision tower plus projector and nothing in the LM (420 million parameters). Hypothesis for the next pass: the retrained encoder alone, feeding BASE's language model, recovers a substantial part of the SLAKE gain (the LM's embedding space is shared up to the 27 percent drift), and the instruction-following score is identical to BASE's since the LM is untouched; if SLAKE barely moves, the imaging gain needs the LM delta too.

  9. Before test run 3
    The selection now holds the vision tower and projector only (439 tensors, 418 million entries, 9.7 percent of the parameters), with BASE's language model untouched.

    (The previous request failed on duplicate prompt texts; four duplicates were reworded, nothing was charged.) This paired pass runs EDITED and BASE on the 128 pool SLAKE images (BASE answers cached, so only EDITED is generated) plus my 96 instruction-following prompts. It answers the first causal question: how much of TARGET's imaging gain (+0.22 F1, 30 TARGET-only items) comes from the retrained encoder alone when it feeds BASE's language model through TARGET's projector. The instruction-following prompts must come out equal to BASE within sampling noise since the LM is identical; their BASE responses also become teacher-forcing references. If SLAKE F1 lands near TARGET's 0.535 the imaging gain is encoder-borne and the LM question is purely text medical versus general; if it stays near BASE's 0.315 the language model's delta is needed to read the new image tokens.

  10. Code
    The vision-only edit is blind rather than merely weaker: it calls an MRI a CT scan and a chest a hand, so BASE's language model does not understand the projector output of the retrained encoder, and the imaging gain requires the …

    The vision-only edit is blind rather than merely weaker: it calls an MRI a CT scan and a chest a hand, so BASE's language model does not understand the projector output of the retrained encoder, and the imaging gain requires the LM's co-adaptation (the vision-tower-alone control will score below BASE). The instruction-following grader gives 0.906 against 0.917 for two identical language models, so IF differences under about 5 points are sampling noise. Now I localize the image-reading adaptation in the LM. In a VLM the early layers map visual tokens into language-like features and later layers reason over them, so I test the vision block plus LM layers 0 to 16 (attention, MLP and norms, no embedding) against, in the next pass, layers 17 to 33 on the same items. In this block I also freeze the teacher-forced probe set for text: 48 medqa, 48 medmcqa and 96 mmlu practice items outside the pool as direct-answer chats ("Final Answer: (X)" with the reference letter, scoring the letter's log-probability), plus 32 BASE-correct mmlu responses, 16 BASE instruction-following responses that passed the grader and 16 TARGET-correct medqa responses as agreement texts (mean token log-probability of the reference text). Confirmation of the early-layer hypothesis would be SLAKE recovering most of the +0.22 F1 with layers 0 to 16 and little with 17 to 33.

  11. Code
    (Resubmitted: the previous block failed on an import path and ran nothing.) The vision-only edit is blind rather than merely weaker: it calls an MRI a CT scan and a chest a hand, so BASE's language model does not understand the …

    (Resubmitted: the previous block failed on an import path and ran nothing.) The vision-only edit is blind rather than merely weaker: it calls an MRI a CT scan and a chest a hand, so BASE's language model does not understand the projector output of the retrained encoder, and the imaging gain requires the LM's co-adaptation (the vision-tower-alone control will score below BASE). The instruction-following grader gives 0.906 against 0.917 for two identical language models, so IF differences under about 5 points are sampling noise. Now I localize the image-reading adaptation in the LM. In a VLM the early layers map visual tokens into language-like features and later layers reason over them, so I test the vision block plus LM layers 0 to 16 (attention, MLP and norms, no embedding) against, in the next pass, layers 17 to 33 on the same items. In this block I also freeze the teacher-forced probe set for text: 48 medqa, 48 medmcqa and 96 mmlu practice items outside the pool as direct-answer chats ("Final Answer: (X)" with the reference letter, scoring the letter's log-probability), plus 32 BASE-correct mmlu responses, 16 BASE instruction-following responses that passed the grader and 16 TARGET-correct medqa responses as agreement texts (mean token log-probability of the reference text). Confirmation of the early-layer hypothesis would be SLAKE recovering most of the +0.22 F1 with layers 0 to 16 and little with 17 to 33.

  12. Before test run 4
    The selection is now the vision block plus LM layers 0 to 16 (attention, MLP and norms of those layers; 660 tensors, 2.01 billion entries, 46.8 percent of the parameters, half the LM's attention and MLP energy, no embedding).

    The paired pass uses the same 128 pool SLAKE images and 96 instruction-following prompts as before plus 32 medmcqa pool items as a format sanity check, so results are directly comparable with the vision-only pass (F1 0.18) and BASE (0.315), with TARGET at 0.535. If early layers carry the image-token adaptation, SLAKE should recover most of the gap; the IF score should stay within noise of BASE's 0.917 if instruction behavior lives mostly in later layers. The next pass will test layers 17 to 33 on the same items.

  13. Code
    Layers 0 to 16 with the vision block recover 69 percent of the SLAKE gain (exact 42.2 against BASE 26.6 and TARGET 49.2; F1 0.466 against 0.315 and 0.535), 78 percent of the medmcqa gain on the 32 sanity items, and the …

    Layers 0 to 16 with the vision block recover 69 percent of the SLAKE gain (exact 42.2 against BASE 26.6 and TARGET 49.2; F1 0.466 against 0.315 and 0.535), 78 percent of the medmcqa gain on the 32 sanity items, and the instruction-following score is 0.938 against BASE's 0.917 (noise band about 5 points), while response length on the IF prompts already moved toward TARGET's shorter style (356 against 448 tokens). So early layers carry most of the image-reading adaptation and part of the text gain without a visible instruction-following cost. Now the complementary half: the same items with the vision block plus layers 17 to 33 only. If image reading is early, SLAKE should stay near or below BASE here (the late layers cannot fix misread image tokens); the medmcqa and IF numbers will show whether the late half carries text knowledge or behavior change.

  14. Before test run 5
    The selection is now the vision block plus LM layers 17 to 33 (same component set as the previous pass, no embedding), run on exactly the same 128 SLAKE images, 96 instruction prompts and 32 medmcqa items, so the two halves of …

    The selection is now the vision block plus LM layers 17 to 33 (same component set as the previous pass, no embedding), run on exactly the same 128 SLAKE images, 96 instruction prompts and 32 medmcqa items, so the two halves of the LM can be compared directly. If image-token reading is an early-layer function, SLAKE should stay near BASE or below; if the late half carries text knowledge, medmcqa should still rise; and a drop in the IF score here would place the instruction-following regression in the late layers.

  15. Before test run 6
    The late half alone is broken rather than merely weak: with the vision block plus layers 17 to 33, 63 of 96 instruction responses and 20 of 32 medmcqa answers run into repetition loops and are cut at 2,048 tokens (IF 0.573 …

    The late half alone is broken rather than merely weak: with the vision block plus layers 17 to 33, 63 of 96 instruction responses and 20 of 32 medmcqa answers run into repetition loops and are cut at 2,048 tokens (IF 0.573 against 0.917, medmcqa 40.6 against 50.0), and SLAKE stays blind at 0.18 F1. TARGET's late layers do not work on BASE's early-layer features (or with BASE's output head), whereas BASE's late layers work fine on TARGET's early-layer features: the prefix family "vision block + LM layers 0..k" is the viable structure, and the question becomes how far k must go for text knowledge and when instruction following starts to suffer. Text effects are too noisy at 32 generated items, so I now take the two teacher-forced references on the fixed 256-chat probe set (192 direct-answer chats on medqa, medmcqa and mmlu practice items outside the pool, 64 agreement texts). This pass is BASE; the next is TARGET. From them I get, per item, the log-probability of the reference letter and the mean token log-probability of the reference texts, against which each candidate's pass is read as a share of the medical gain kept and of the general distribution preserved.

  16. Before test run 7
    Same probe set, TARGET model: the second reference for the teacher-forced metrics (letter log-probability on 48 medqa, 48 medmcqa and 96 mmlu direct-answer chats; mean token log-probability on 32 BASE mmlu responses, 16 BASE …

    Same probe set, TARGET model: the second reference for the teacher-forced metrics (letter log-probability on 48 medqa, 48 medmcqa and 96 mmlu direct-answer chats; mean token log-probability on 32 BASE mmlu responses, 16 BASE instruction-following responses and 16 TARGET medqa responses). I expect TARGET well above BASE on the medical letters, close to BASE on mmlu letters, and far below BASE on BASE's own instruction-following and mmlu texts, which is the general-distribution shift that the evaluation's MMLU-Pro and IFEval regressions reflect; the size of that shift sets the scale on which candidates are judged.

  17. Code
    The two references calibrate the teacher-forced metrics.

    On the model's own sampled texts the tool is sound (TARGET's minimum token log-probability on its own answers is -5.8; the only outliers under BASE are the template's trailing newline), so the agreement metrics are valid; the direct-letter probe runs in an off-distribution regime (both models give "Final" after "model\n" a log-probability of -20 to -55 because they want to reason first) but its restricted accuracies order the models as generation does (medqa 0.48 BASE vs 0.62 TARGET, medmcqa 0.46 vs 0.56, mmlu 0.54 vs 0.58). TARGET minus BASE: +3.8 and +2.5 nats on the medical letters, +0.62 on TARGET's medical texts, -0.27 on BASE's mmlu texts and -0.42 on BASE's instruction-following texts (the behavioral shift). I now re-select the best candidate so far, vision block plus layers 0 to 16, and run the probe set on it; this shows what share of the medical text gain the early half carries and how far it moves away from BASE's general distribution, numbers that generation at 32 items cannot give.

  18. Before test run 8
    Teacher-forced probe on EDITED = vision block + LM layers 0 to 16 (the selection just recorded), same 256 chats as the two references.

    I read it as: share of the medical letter gain kept (medqa, medmcqa), change on mmlu letters, and how much of the distance from BASE's general and instruction-following texts (TARGET: -0.27 and -0.42 nats) this half of the LM already introduces. If the early half carries most of the knowledge with little of the shift, the suffix layers are where the regression lives and can be left as BASE.

  19. Code
    The probe shows that the half-prefix is incoherent on the general side even though it carries the medical knowledge: vision + layers 0 to 16 keeps 59 and 68 percent of the medical letter gain (restricted accuracies 0.60 and 0.60, …

    The probe shows that the half-prefix is incoherent on the general side even though it carries the medical knowledge: vision + layers 0 to 16 keeps 59 and 68 percent of the medical letter gain (restricted accuracies 0.60 and 0.60, at TARGET's level) and 43 percent of the agreement with TARGET's medical texts, yet on mmlu letters it is worse than both parents (-4.19 against BASE -3.73 and TARGET -2.53) and it sits further from BASE's general texts than TARGET itself (-0.65 against -0.59), while its distance from BASE's instruction-following texts is 74 percent of TARGET's. Conclusion: a seam in the middle of the LM (TARGET's layers feeding BASE's layers) costs general ability beyond what TARGET loses, so the general regression cannot be avoided by simply truncating the prefix; the candidates must be coherent models. The two coherent families are (a) the whole LM with the seam only at the output head (all 34 layers, BASE's embedding, which tests whether the diffuse embedding drift is needed at all) and (b) interpolation of the LM delta at fractional strength behind a full-strength vision block, which the evaluation's fractional-strength control cannot match because fractional strength ruins a retrained encoder. I first record selection (a) and run it on the 128 SLAKE images, 64 medqa pool items and the first 64 instruction prompts.

  20. Before test run 9
    Paired generation for EDITED = vision block + all 34 LM layers (attention, MLP, layer norms; BASE's embedding and final norm), 84 percent of the parameters.

    Items: the same 128 pool SLAKE images as every imaging pass, 64 medqa pool items (BASE cached) and the first 64 of my instruction prompts. Expected if the embedding drift is unnecessary: SLAKE and medqa at TARGET's level (F1 0.535, medqa about 0.73 on the pool) with no repetition loops; if instead the output-head mismatch matters, I expect cut answers and degraded medqa as in the late-half pass. The instruction score here is the first look at how much of the IF regression the LM layers carry when the model is coherent.

  21. Code
    With all 34 LM layers behind BASE's embedding, SLAKE reaches exact 52.3 percent and F1 0.562, at or above TARGET (49.2, 0.535): the embedding delta is not needed to read images, and the imaging gain is fully carried by vision …

    With all 34 LM layers behind BASE's embedding, SLAKE reaches exact 52.3 percent and F1 0.562, at or above TARGET (49.2, 0.535): the embedding delta is not needed to read images, and the imaging gain is fully carried by vision block plus LM layers. But text generation loops: 55 of 64 medqa answers hit the 2,048-token limit (accuracy 21.9 against BASE 53.1) and the instruction score falls to 0.703 with 1,047-token answers. So the repetition seen with the late half alone was the output-head mismatch: TARGET's late layers write final hidden states that BASE's tied embedding reads into a distribution that never stops, which means the diffuse 27 percent embedding drift is co-adapted with the late layers and must move together with them. Coherent candidates are therefore either prefixes ending in BASE's layers and head, which cost general ability at the seam, or interpolations that move layers and embedding together. I now record the uniform interpolation: vision block at full strength, every LM layer and the embedding at half strength. The evaluation's fractional-strength control cannot reproduce this because half of a retrained encoder is neither encoder.

  22. Before test run 10
    The selection is now vision block at full strength plus every LM layer, the embedding and the final norm at scale 0.5 (97.5 percent of the delta energy, 25 percent of each LM component's energy).

    Same items as the previous generation pass (128 pool SLAKE images, 64 medqa pool items, the first 64 instruction prompts) so the three LM treatments (prefix 0-16, all layers with BASE head, all at half strength) are directly comparable. Interpolation of two models that share their pretrained ancestor should be coherent, so I expect no loops; the open questions are whether half-strength early layers still read the new encoder's image tokens (SLAKE well above BASE's 0.315 F1 would confirm) and how much of the medqa gain and instruction behavior sit at the midpoint.

  23. Before test run 11
    Teacher-forced probe on the same half-strength selection (unchanged since the previous pass), read against the BASE and TARGET references: share of the medical letter gain kept, mmlu letters, distance from BASE's general and …

    Teacher-forced probe on the same half-strength selection (unchanged since the previous pass), read against the BASE and TARGET references: share of the medical letter gain kept, mmlu letters, distance from BASE's general and instruction-following texts, and the stop-token log-probability at the end of BASE's texts as a loop detector. For a well-behaved interpolation I expect roughly half of each shift; a general shift smaller than half while the medical share stays above half would favor interpolation over the prefix.

  24. Code
    The half-strength interpolation is a clean soup on text: 50 percent of TARGET's shift from BASE's general texts (-0.46 between -0.33 and -0.59), 53 percent of the instruction-text shift, 78 percent of the agreement gain on …

    The half-strength interpolation is a clean soup on text: 50 percent of TARGET's shift from BASE's general texts (-0.46 between -0.33 and -0.59), 53 percent of the instruction-text shift, 78 percent of the agreement gain on TARGET's medical texts, medmcqa letters at 91 percent of the gain, mmlu letters at TARGET's level, instruction score 0.922 against 0.938 with no loops; its weakness is imaging, 53 percent of the SLAKE gain, because half-strength early layers only half read the retrained encoder's tokens. The prefix family had the opposite profile (69 percent of SLAKE with layers 0 to 16 at full strength, but a general cost beyond TARGET's). So I combine them: vision block and LM layers 0 to 16 at full strength for image reading, layers 17 to 33 together with the embedding and final norm at half strength so the head stays matched to the late layers and their part of the general shift is halved. The step from full to half strength at layer 17 is a milder seam than full to zero; if the seam cost is small this candidate should show SLAKE around 80 percent of the gain with text numbers close to the uniform interpolation's.

  25. Before test run 12
    Paired generation for the hybrid H1 (vision + layers 0-16 at full strength, layers 17-33 + embedding + final norm at 0.5) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts used for the all-layers …

    Paired generation for the hybrid H1 (vision + layers 0-16 at full strength, layers 17-33 + embedding + final norm at 0.5) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts used for the all-layers and half-strength candidates. Confirmation: SLAKE F1 clearly above the interpolation's 0.433 (ideally near 0.49, 80 percent of the gain), no cut answers, medqa at or above 0.64, IF within noise of BASE's 0.938.

  26. Before test run 13
    Teacher-forced probe on the hybrid H1 (unchanged selection).

    The comparison of interest is against the uniform half-strength interpolation: if the general-text agreement stays near -0.46 and the instruction-text agreement near -0.58 while the medical letters and agreement rise, the full-strength early layers add image reading without a seam penalty; if agree_general falls toward -0.65 as in the prefix, the seam at layer 17 is costly and a smoother ramp is needed.

  27. Code
    The hybrid H1 keeps 83 percent of the SLAKE gain (exact 45.3, F1 0.497), 91 percent of the medqa gain in generation (68.8 against 53.1 and 70.3), 79 and 93 percent of the medical letter gains and 89 percent of the medical-text …

    The hybrid H1 keeps 83 percent of the SLAKE gain (exact 45.3, F1 0.497), 91 percent of the medqa gain in generation (68.8 against 53.1 and 70.3), 79 and 93 percent of the medical letter gains and 89 percent of the medical-text agreement, but its distance from BASE's general texts is 85 percent of TARGET's (-0.552) and from BASE's instruction texts 77 percent, with the instruction score at 0.875 against 0.938; the uniform half-strength interpolation sat at 50 percent of both shifts. So raising layers 0 to 16 from half to full strength bought about 30 points of imaging share and 10 to 25 points of medical text share at the price of 25 to 35 points of general shift: medical knowledge and general drift live in the same early layers, and the only separable piece is image reading. The question is therefore how few early layers must be at full strength to read the new encoder's tokens. I now test layers 0 to 6 at full strength with layers 7 to 33, the embedding and the final norm at half strength; if SLAKE stays near 80 percent of the gain the image-reading adaptation is concentrated in the first layers and the general cost of the full-strength block shrinks accordingly, if it falls back toward 55 percent the adaptation is spread through the first half.

  28. Before test run 14
    Paired generation for H2 (vision + layers 0-6 at full strength, layers 7-33 + embedding + final norm at 0.5) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts as H1 and the uniform interpolation.

    The dose-response in the number of full-strength early layers is the point: SLAKE F1 near H1's 0.497 would mean image reading is concentrated in layers 0-6; near the interpolation's 0.433 would mean it is spread over the first half. The IF score and medqa accuracy show the general and text cost of the smaller block.

  29. Before test run 15
    TARGET reference on the held-out set fixed in advance for the final confirmation (128 SLAKE images outside the pool chosen with a fixed seed, medqa 192-255, medmcqa 192-255, mmlu 224-287, none used in any selection decision or in …

    TARGET reference on the held-out set fixed in advance for the final confirmation (128 SLAKE images outside the pool chosen with a fixed seed, medqa 192-255, medmcqa 192-255, mmlu 224-287, none used in any selection decision or in the probe set) plus all 96 instruction prompts, which TARGET has not answered yet. This gives TARGET's instruction-following score on my graders, the one number still missing to size the IF regression, and the TARGET side of the held-out comparison; BASE's side will come from the final paired passes. No selection is involved.

  30. Code
    H2 (layers 0 to 6 at full strength, rest at half) gives SLAKE exact 40.6 and F1 0.464, 67 percent of the gain, with medqa at 55 percent and the instruction score equal to BASE's (0.938).

    Together with k=0 (53 percent), k=16 (83 percent) and k=33 (112 percent) this is a straight line in the number of full-strength early layers: the adaptation that reads the new encoder's tokens is spread through the LM, not concentrated in the first layers. TARGET's own instruction score on my 96 prompts is 0.896 against BASE's 0.917, so my prompts resolve only a small IF regression and the agreement metrics stay the general-side instrument. Per unit of general shift the uniform scale buys more medical text than full-strength early layers (text agreement is already at 78 percent of the gain at half strength), so the uniform interpolation behind the full encoder is the efficient family unless a cheaper carrier of image reading exists. The remaining structural hypothesis is that image reading is mediated by early attention, which routes information from image tokens to text tokens, rather than by whole layers: I set the attention projections of layers 0 to 16 to full strength (250 million parameters) with every MLP, the remaining layers, the embedding and the final norm at half strength. If SLAKE approaches H1's 0.497 while the general shift stays near the uniform interpolation's 50 percent, early attention is the cheap carrier; if SLAKE stays near 0.43, reading is in the MLPs or in both.

  31. Before test run 16
    Paired generation for H3 (vision + attention of layers 0-16 at full strength; MLPs, layers 17-33, embedding, final norm at 0.5) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts as every candidate …

    Paired generation for H3 (vision + attention of layers 0-16 at full strength; MLPs, layers 17-33, embedding, final norm at 0.5) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts as every candidate since the all-layers pass. Decision rule: SLAKE F1 at or above 0.48 (75 percent of the gain) makes early attention the carrier of image reading; at or below 0.45 it is not, and the final selection falls back to the uniform interpolation.

  32. Before test run 17
    Teacher-forced probe on H3 (unchanged selection), to price the full-strength early attention on the general side: agree_general near -0.46 (the uniform interpolation) would mean attention carries little of the general drift; a …

    Teacher-forced probe on H3 (unchanged selection), to price the full-strength early attention on the general side: agree_general near -0.46 (the uniform interpolation) would mean attention carries little of the general drift; a value toward H1's -0.55 would mean the drift sits in attention as much as in the MLPs.

  33. Code
    H3 refutes the routing hypothesis: with the attention of layers 0 to 16 at full strength, SLAKE stays at the uniform interpolation's level (F1 0.424 against 0.433, 49 percent of the gain), while the distance from BASE's general …

    H3 refutes the routing hypothesis: with the attention of layers 0 to 16 at full strength, SLAKE stays at the uniform interpolation's level (F1 0.424 against 0.433, 49 percent of the gain), while the distance from BASE's general texts rises from 50 to 57 percent of TARGET's shift and from BASE's instruction texts from 53 to 62 percent; medical text is essentially unchanged (agreement 79 against 78 percent, letters 75 and 86 percent, medqa generation 70.3 on 64 items, instruction score 0.953). So early attention carries neither the image reading nor much medical knowledge, only some drift. Since whole early layers at full strength lifted imaging to 83 percent, the adaptation that reads the new encoder's tokens must sit in the early MLPs, which transform the projected image features. I now test the counterpart: the MLPs of layers 0 to 16 at full strength (1.34 billion parameters) with all attention, layers 17 to 33, the embedding and the final norm at half strength. SLAKE near H1's 0.497 would confirm that early MLPs are the carrier; the probe then prices it on the general side (between the interpolation's 50 percent and H1's 85 percent).

  34. Before test run 18
    Paired generation for H4 (vision + MLPs of layers 0-16 at full strength; all attention, layers 17-33, embedding and final norm at 0.5) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts as every …

    Paired generation for H4 (vision + MLPs of layers 0-16 at full strength; all attention, layers 17-33, embedding and final norm at 0.5) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts as every candidate since the all-layers pass. Decision rule: SLAKE F1 at or above 0.48 confirms the early MLPs as the carrier of image reading (and then H4 versus H1 shows what the early attention cost); near 0.43 would mean reading needs attention and MLPs together.

  35. Before test run 19
    Teacher-forced probe on H4 (unchanged selection): the price of full-strength early MLPs on the general side (agree_general between -0.46 and -0.55) and their contribution to medical text (letters, medical agreement), read against …

    Teacher-forced probe on H4 (unchanged selection): the price of full-strength early MLPs on the general side (agree_general between -0.46 and -0.55) and their contribution to medical text (letters, medical agreement), read against the uniform interpolation and H1.

  36. Code
    H4 settles the mechanism: with only the MLPs of layers 0 to 16 at full strength, imaging equals H1 (exact 45.3, F1 0.497, 83 percent of the SLAKE gain), medical text is at or above H1 (letters 86 and 100 percent of the gain, …

    H4 settles the mechanism: with only the MLPs of layers 0 to 16 at full strength, imaging equals H1 (exact 45.3, F1 0.497, 83 percent of the SLAKE gain), medical text is at or above H1 (letters 86 and 100 percent of the gain, agreement 86 percent, medqa generation 82 percent) and the instruction score stays at BASE's 0.938, while the general shift is a little lower than H1's (80 against 85 percent on general texts, 72 against 77 on instruction texts). So the early MLPs, which transform the projected image features and store medical associations, carry both the image reading and most of the text knowledge; H3 showed that attention at full strength adds drift (+7 points of general shift) and nothing medical. The principled refinement is therefore to remove the attention delta altogether: H5 keeps H4's MLP recipe (layers 0-16 at full strength, 17-33 at half), the embedding and norms at half strength, and leaves every attention projection at BASE. If attention is only drift, the general shift should fall by 10 points or more at no medical cost; if attention is needed for coherence or carries medical reasoning, medical numbers will fall or the probe will show distortion, and H4 stays the choice.

  37. Before test run 20
    Paired generation for H5 (vision + MLPs 0-16 full, MLPs 17-33 half, norms and embedding half, attention left at BASE) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts as all candidates.

    Confirmation: SLAKE F1 near 0.49 and medqa near 0.67 with no cut answers; a drop in either, or loops, would mean the attention delta is needed with the MLPs.

  38. Before test run 21

    Teacher-forced probe on H5 (unchanged selection): the test of 'attention is drift' is agree_general and agree_if falling clearly below H4's -0.541 and -0.657 while the medical letters and agreement stay near H4's.

  39. Code
    Independent of the H5 outcome, I now measure the evaluation's fractional-strength control myself, because my whole design rests on the claim that a retrained encoder cannot be taken at fractional strength: every tensor of the …

    Independent of the H5 outcome, I now measure the evaluation's fractional-strength control myself, because my whole design rests on the claim that a retrained encoder cannot be taken at fractional strength: every tensor of the delta, vision tower and projector included, at scale 0.5. Its language model is exactly my uniform interpolation (which gave SLAKE F1 0.433 behind the full-strength encoder), so the difference on the same 128 images is the cost of a half-strength encoder: a large drop would confirm the all-or-nothing nature of the vision block, a small one would mean the mid-layer tensors, where the target is 5 to 7 times the base norm, dominate the mixture anyway.

  40. Before test run 22
    Paired generation for the fractional-strength control (every tensor at 0.5, vision included) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts; text results should match the uniform interpolation …

    Paired generation for the fractional-strength control (every tensor at 0.5, vision included) on the same 128 pool SLAKE images, 64 medqa pool items and 64 instruction prompts; text results should match the uniform interpolation pass (medqa 0.64, IF 0.92) and SLAKE shows the encoder effect.

  41. Code
    H5 refutes the strong form of the attention hypothesis: with attention left at BASE, imaging (79 percent) and the instruction score (0.938) hold, but the probe shows incoherence: medical letters fall from 86 to 65 percent of the …

    H5 refutes the strong form of the attention hypothesis: with attention left at BASE, imaging (79 percent) and the instruction score (0.938) hold, but the probe shows incoherence: medical letters fall from 86 to 65 percent of the gain, medical-text agreement from 86 to 72, the general-text shift rises from 80 to 86 percent of TARGET's, and the stop-token log-probabilities collapse (-2.4, -6.4, -1.6 against -0.35, -4.9, -0.14 for H4), so the attention delta is co-adapted with the MLP delta and has to move with it, just as the embedding has to move with the late layers. The fractional-strength control, every tensor at 0.5 with the vision tower included, confirms the encoder claim: SLAKE F1 0.230, below BASE's 0.315, with text identical to the uniform interpolation (its medqa differs by 5 of 64 items from the same LM in an earlier pass, which calibrates the run-to-run noise of generation at this size). The final selection is therefore H4: vision tower and projector whole, the MLPs of layers 0 to 16 at full strength, and every other LM tensor (attention in all layers, MLPs 17 to 33, layer norms, embedding, final norm) at half strength. It is the best coherent structured point measured (83 percent of the SLAKE gain, 85 to 100 percent of the medical text gain, instruction score equal to BASE, no cut answers, general shift about three quarters of TARGET's); the uniform half-strength interpolation sits at the other end of a near-linear frontier (53 percent imaging, 50 percent shift), and since TARGET's absolute general regression on practice is small (mmlu +3, IF -2 points), the higher-medical end is the better bet. I record it now and confirm it on the held-out items fixed in advance.

  42. Before test run 23
    Held-out confirmation 1 for the final selection H4: paired EDITED versus BASE (BASE generated live) on 128 SLAKE images outside the pool, medqa 192-255 and medmcqa 192-255, none used for any decision; TARGET's answers on these …

    Held-out confirmation 1 for the final selection H4: paired EDITED versus BASE (BASE generated live) on 128 SLAKE images outside the pool, medqa 192-255 and medmcqa 192-255, none used for any decision; TARGET's answers on these items are already in gen_16 (slake F1 0.620, medqa 67.2, medmcqa 75.0). Expected if the pool results generalize: SLAKE F1 about 80 percent of the way from BASE to 0.620, medical accuracy 80 to 100 percent of the way, no cut answers.

  43. Before test run 24
    Held-out confirmation 2 for H4: paired EDITED versus BASE on mmlu 224-287 (TARGET 60.9 there), all 96 instruction prompts (BASE 0.917, TARGET 0.896) and 96 additional held-out medical items (medqa 256-319, medmcqa 256-287) to add …

    Held-out confirmation 2 for H4: paired EDITED versus BASE on mmlu 224-287 (TARGET 60.9 there), all 96 instruction prompts (BASE 0.917, TARGET 0.896) and 96 additional held-out medical items (medqa 256-319, medmcqa 256-287) to add power to the text comparison. The general side must not drop beyond noise (mmlu paired difference within two standard errors of zero, IF within about 5 points of BASE) while the medical items rise.

  44. Before test run 25
    Last pass: TARGET's reference on the 96 additional held-out medical items (medqa 256-319, medmcqa 256-287) that were added to the second confirmation pass, so that the share of the medical gain kept can be computed on all 224 …

    Last pass: TARGET's reference on the 96 additional held-out medical items (medqa 256-319, medmcqa 256-287) that were added to the second confirmation pass, so that the share of the medical gain kept can be computed on all 224 held-out medical text items rather than on 128. No selection change; the final selection H4 stays in work/selected.

A model that answers questions about images has two parts. An image encoder turns the picture into something the model can read. Call it the eyes. A stack of 34 layers does the thinking and writes the answer. Call it the brain. Medical training changed both, the eyes most of all, so that is where you would expect the skill to be.

Fable found the medical skill in the first 17 of MedGemma’s 34 layers.

That is where MedGemma learned to read what its new eyes send. Giving Gemma 3 only MedGemma’s eyes made it worse at scans, 34 down to 20 on a scan quiz (SLAKE), because Gemma 3’s brain cannot read them. The same early layers also hold most of MedGemma’s new medical knowledge.

Fable then used its test runs on practice scans from SLAKE’s training split to work out how much of the brain’s change it needed, and built a new model. It is Gemma 3 with MedGemma’s eyes and the MLPs of its first 17 brain layers (the part of each layer that stores what it knows) copied in whole, and the rest of the medical change at half strength. We call it Fable’s merge.

Fable can also read the change blind. With MedGemma’s change cut into six hidden pieces, it predicted from the weights alone whether each would help or hurt scan reading, and got all six right.

Gemma 3MedGemmaFable’s mergeRadiology questions(VQA-RAD)31.949.650.1Scan questions(SLAKE)34.458.365.9Medical exam questions(MedQA)51.063.563.6Following instructions(IFEval)74.776.380.3Grade-school math(GSM8K)75.380.388.7General knowledge(MMLU-Pro)41.542.943.8
Gemma 3MedGemmaFable’s mergeRadiology questions(VQA-RAD)31.949.650.1Scan questions(SLAKE)34.458.365.9Medical exam questions(MedQA)51.063.563.6Following instructions(IFEval)74.776.380.3Grade-school math(GSM8K)75.380.388.7General knowledge(MMLU-Pro)41.542.943.8
Figure 2. Fable’s merge keeps most of MedGemma’s medical skill and more of Gemma 3’s math. One row per test, each zoomed to its own range, one dot per model. It matches MedGemma on the medical exam, gives up part of the gain on one scan quiz (SLAKE), and follows instructions better than both. The SLAKE and IFEval scores average three runs.
Two scans and two math problems, with the prompts and the models’ answers
The image in the prompt.
Prompt
Image: a CT scan through the neck

What is the main organ in the image?

Answer with a single word or short phrase.

Answer keySpinal cord
Answers
General model Gemma 3Thyroid✗ wrong3 tokens
Medical model MedGemmaSpinal cord✓ right5 tokens
Fable’s mergeSpinal cord✓ right5 tokens

The scan quiz asks for one word or a short phrase, so each answer is the whole reply. Image: SLAKE (Liu et al., 2021), CC BY 4.0.

TranslateGemma 4BCan an LLM find why a model slips out of low-resource languages?

Task

Keep TranslateGemma in the language it is asked for, with one edit to as few parts as possible. No training.

What Fable found

Where the model picks its next word, every non-Latin writing system looks alike, so writing Amharic also lifts Russian, Hindi and Chinese words.

What it changed

Pushed the writing systems apart in that one place and left Latin letters alone. The edit names no language.

Result

Amharic translations that slip into another writing system fall from 81% to 7%. The fix carries to Tigrinya, Khmer and Georgian, which Fable never saw.

Translate into Amharic: and are you having this chest pain now?

TranslateGemma

እናም፣ сейчас у вас эта የልብ ህመም አለ?Russian for “now you have this”

After Fable’s edit

እናም ይህ የልብ ህመምን እየተሰማዎት ነው?

TranslateGemma [11] is Google’s translation model, built on Gemma 3. Asked to translate health texts (TICO-19 [12]) into Amharic, it slips into Russian, Hindi or Chinese mid-sentence in 81% of its translations, and its own prompt format does not fix it. The same happens in other low-resource languages, which have little text online, such as Tigrinya, Burmese and Khmer, while Hindi, Chinese and Spanish almost never slip. Fable’s task was one edit that keeps the model in the language it was asked for. It practiced on Amharic only, using the TICO-19 development sentences and their human translations.

We count a translation as slipping when it contains a word in another non-Latin writing system. We also score translation quality with two standard automatic measures, both from 0 to 100 and both rough stand-ins for a human judge. chrF [13] is the character overlap with a human translation, and COMET [14] is a model that estimates how people would rate the translation.

Setup

Model: TranslateGemma 4B, 4.3 billion parameters

Task: one edit, to as few tensors as possible, that keeps the model in the language it is asked for without lowering translation quality

Fable gets: a Python session over the weights (CPU only), Amharic practice sentences with reference translations, 40 Burmese prompts without references, and 30 test runs (it used 9)

Practice: the TICO-19 development set, 971 English health sentences with Amharic reference translations, plus 40 Burmese prompts without references. The final test is TICO-19’s separate test set

Not allowed: training or gradients, any look at the final tests, and the other languages’ files

Evaluation: 2,091 held-out TICO-19 sentences per language, translated from English. Georgian, Sinhala and Lao, which TICO-19 lacks, use 1,012 FLORES-200 [15] sentences each. A translation slips when it has a letter from a writing system that is neither the target’s nor Latin. Quality: chrF and COMET. Hindi, Chinese, Spanish and Swahili, which rarely slip, check that the edit does no harm

Leakage check: we dropped the 9 test sentences that overlap the practice set

How Fable did it: the prompt, every step, and its answer
  1. The task

    TranslateGemma 4B and the Gemma 3 it was built from, in a Python session

    Make one edit to TranslateGemma that keeps it writing Amharic. Work out where in the model the language is chosen and where it is lost, touch as few parts as you can, and make the edit hold for languages you never see.

    No training. The model runs only in test runs, 30 in all. It used 9.

    Read the full prompt, as Fable got it
    Task

    The resident model is TranslateGemma 4B-it, Google's translation fine-tune of Gemma 3 4B-it (34 layers of width 2,560; every layer has attention (8 query heads, 4 key/value heads of size 256; layers 5, 11, 17, 23 and 29 attend to the whole context, the others to a sliding window of 1,024 tokens) and a GeGLU MLP of width 10,240; RMSNorm before and after each block plus query/key norms; vocabulary 262,208; the embedding matrix is tied to the output layer, so the same rows read tokens in and score tokens out). It has one failure you are to repair by editing its weights. Asked to translate English into Amharic, it loses its language mid-sentence: it writes Ge'ez script, then drops in a word from a language it knows better, and carries on. Seen in its outputs on the practice set: Hindi, Russian, Spanish, Chinese, Arabic-script and Tamil words, sometimes several in one sentence. Three of its outputs, with the English source: "and are you having a runny nose?" -> እናም፣ क्या आप የጎልብሽት እየተሰማዎት? "and tell me what symptoms are you having now?" -> እናም፣ сейчас какие ምልክቶች እየተሰማዎት? "are you having any difficulty breathing now" -> እ Actualmente, क्या आपको dificultades በመ呼吸 ውስጥ አለ The meaning is mostly right; the language is not held. It happens under the plain instruction and under the model's own translation template, the original Gemma 3 4B-it does it more, and TranslateGemma was trained on Amharic and still does it. No prompt fixes it. On the practice set, by the measure below, TranslateGemma puts a foreign-script word into 78 percent of its outputs (the original Gemma: 88 percent) and a borrowed Latin word into 59 percent (66); 2 percent of its outputs have almost no Ge'ez at all (31). On the same sentences it scores 19.54 chrF against the human references (the original Gemma 8.82; TranslateGemma in its own template 18.46), and 68.3 COMET (53.0).

    Your job is ONE edit to the text-model tensors of TranslateGemma that makes it stay in Amharic, built from understanding where in the network the choice of language is made and where it is lost. Two requirements. First, translation quality must not fall: chrF against the references on sentences you did not use to choose the edit must be at least what it was, and it should rise, because a sentence that stays in its language matches its reference better. Second, the edit must be as general as you can make it. After you finish, the same edited model is also tested on languages you never see (other low-resource languages with their own scripts, where the unedited model lapses too) and on languages where it does not lapse (Hindi, Chinese, Spanish, Swahili), which must not get worse. A blanket preference for Ge'ez characters would pass the first test and fail the second; an edit that strengthens the model's hold on whatever language the instruction asked for would pass both. Find out which kind you can build, say which kind you ended with, and give the evidence. Scope: this is a repair, not a merge. An edit that touches every tensor a little is the opposite of what we want; the fewer tensors and rows it touches, the stronger the claim, and the count of tensors touched is part of your result. Change what you understand, where you have shown it matters, and leave the rest of the model exactly as it was.

    How it will be measured

    After you finish, your model translates held-out English sentences from the same source as your practice set (public-health text) into Amharic, greedy, at most 512 new tokens, plain instruction ("Translate the following English text into Amharic. Output only the translation."), and is scored on four things against the unedited TranslateGemma: the share of outputs with a foreign-script word (the headline), the share with a borrowed Latin word, chrF (character n-gram F-score, sacrebleu defaults; corpus level, per-sentence for paired differences) and COMET-22. Then the same four on two or three unseen languages, dev and test, with the same edit and the same instruction naming their language. Then chrF and COMET on Hindi, Chinese, Spanish and Swahili to show nothing spilled. You never see the held-out sentences.

    The measure

    Define it in the kernel and apply it to every run's outputs (runs/lang_am_r1/work/run_<k>.jsonl): import unicodedata, re ETH = [(0x1200,0x137F),(0x1380,0x139F),(0x2D80,0x2DDF),(0xAB00,0xAB2F)] LAT = [(0x41,0x5A),(0x61,0x7A),(0xC0,0x24F),(0x1E00,0x1EFF)] def _in(c, rs): return any(a <= ord(c) <= b for a, b in rs) def letters(s): return [c for c in s if unicodedata.category(c).startswith("L")] def lapse(output, source, target=ETH): ls = letters(output) foreign = sum(1 for c in ls if not _in(c, target) and not _in(c, LAT)) src = {w.lower() for w in re.findall(r"[A-Za-z][A-Za-z'’-]*", source)} borrowed = [w for w in re.findall(r"[A-Za-z][A-Za-z'’-]*", output) if w.lower() not in src and len(w) > 1] share = sum(1 for c in ls if _in(c, target)) / len(ls) if ls else 0.0 return foreign > 0, len(borrowed) > 0, share An output lapses into a foreign script when it has a letter that is neither Ge'ez nor Latin (Latin is allowed because acronyms and names are copied legitimately); it borrows when it has a Latin word that is not in the English source; share is the fraction of its letters that are Ge'ez. Report the three as shares over the outputs of a run, paired against the unedited model's outputs on the same ids (ref("base"), see below), and always next to chrF.

    WHAT YOU HAVE.

    1. 1. A persistent Python kernel (no GPU, no internet): variables survive between your code blocks, like a notebook. Naming note: the harness was built for a different experiment and calls the resident model "base". Here: load_base(name, rows=None) returns TranslateGemma's tensor (the model you are editing); load_med(name, rows=None) returns the ORIGINAL Gemma 3 4B-it's tensor (before the translation fine-tune); load_tr(name, rows=None) returns TranslateGemma again, so diff_tr is zero and of no use; diff_med(name, rows=None) = Gemma - TranslateGemma, the fine-tune's own change with its sign flipped (TranslateGemma + diff_med = the original Gemma). load(name, rows=None) is the current value (your edit if there is one, else TranslateGemma). save_edit(name, tensor) stores a tensor as the model's value of that name in runs/lang_am_r1/work/edited/ (a name not saved stays TranslateGemma's; refused: names outside NAMES, wrong shapes, NaN or inf); drop_edit(name), drop_all_edits(), edited(). linear_edit(a, b, names=None) saves TranslateGemma + a * diff_med + b * diff_tr; with b = 0 it moves the model back toward the original Gemma, which is an intervention you may find useful, not a recipe. Also: NAMES (the 444 text-model tensor names, the only editable ones), SHAPES, CONFIG; tok (the tokenizer; tok.convert_ids_to_tokens and tok.decode let you sort the vocabulary's 262,144 real rows by script, which you are allowed to do and will want to); set_format (leave it at plain) and FORMAT; eval_prompt(source) (the exact prompt string the server feeds the model); PRACTICE_ITEMS (list of {id, source, reference}), ids(), item(id); chrf(hypothesis, reference) and corpus_chrf(hypotheses, references); ref("base") (the unedited TranslateGemma's translation and chrF of every practice sentence under the plain instruction: your frame), ref("med") (the original Gemma, plain), ref("tr") (TranslateGemma in its own template) and REF_SUMMARY. Float32 tensors; the embedding matrix is 2.7 GB in float32, read it in row chunks (rows=(a, b)). Available: numpy, scipy, scikit-learn, PyTorch (CPU), pandas, safetensors, tokenizers, sacrebleu. Gradients are disabled. One execution may take up to 900 seconds and about 12 GB of arrays; output is cut at 10,000 characters. You may run code up to 300 times. If the kernel is restarted (time or memory limit), its variables are lost and you are told so; your edits on disk survive.
    2. 2. The practice set: 971 English sentences with their Amharic references (none is in the evaluation; the evaluation sentences come from the same source). The English sources are the same sentences in every language of this collection.
    3. 3. A test-run tool with a budget of 30 test runs in total. One test run translates practice sentences with your CURRENT model (TranslateGemma plus whatever is in runs/lang_am_r1/work/edited at that moment) and scores them. Reply with exactly one block that starts with ```forward and contains JSON: {"type": "translate", "ids": ["<practice id>", ...] (optional; default all 971; an id at most once), "prompts": ["<any English text>", ...] (optional, ungraded, at most 64), "prompt_lang": "my" (optional; translates the free prompts into Burmese instead of Amharic; the graded ids stay Amharic), "max_tokens": 512 (1..1024)} Greedy decoding, so a repeated request with unchanged weights returns the same translations. The reply gives corpus chrF and mean sentence chrF on those ids, the cut share, the mean length, the empty count, the three references' scores on the same ids and the paired comparison with each (mean per-sentence difference with its standard error, better and worse counts, corpus difference), and COMET-22 with paired differences. The lapse measure is yours to compute from runs/lang_am_r1/work/run_<k>.jsonl (fields id, source, reference, output, chrf, n_tokens, finish_reason, cut); the free prompts' outputs are in runs/lang_am_r1/work/run_<k>_prompts.jsonl (prompt, output, lang). The free prompts are your only window into a second language: send English practice sources with "prompt_lang" and measure their lapses with the same function and Burmese's script (ranges in the measure: replace ETH by the script of Burmese; use unicodedata.name to find it). A full run of 971 sentences takes a few minutes; a request that fails (unknown id, a tensor that fails verification) does not count against the budget.
    4. 4. A shell, as described in the preamble. The GPU is not visible to it and must not be made visible; loading or running any model anywhere except through the test-run tool is forbidden; so is reading anything under data/eval/ or any file with "test" in its name. Every command you run is logged and audited after the run; a run that breaks these rules is discarded.
    How to work

    The budget is for converging, not for exploring. Decide after every run.

    1. 1. Frame (one run). Fix two disjoint sets of practice ids with a seed and record them in your notes: SEL, about 300 ids, for choosing; CONF, the rest, for confirming. Run 1 is the unedited model on SEL plus 40 English practice sources as free prompts with "prompt_lang": "my", so that you know the lapse rates of both languages on exactly the sentences you will reuse. This run is your frame, not ref("base"): the cached reference outputs came from a separate scorer whose greedy decoding diverges from the test-run engine on many of these long outputs (same model, bf16 arithmetic), so compare edited runs with run 1 and with each other, and use ref("base") only for its per-sentence references and as a rough guide. Read the outputs: where the lapses happen (sentence start, after punctuation, inside long sentences), which words are replaced, which languages intrude.
    2. 2. Localize before you fix (free reads, then at most four runs). The choice of the next token is made at the output layer (the tied embedding) from what the last layers wrote. Free reads worth doing: how the fine-tune changed the embedding rows of Ge'ez tokens against rows of the intruding scripts and Latin (norms, mean direction, relative change); the same by layer for the late MLPs, the attention outputs and the norms; whether the Ge'ez rows are an outlier group in the vocabulary (norm, mean) in TranslateGemma and in the original Gemma. Then interventions that move one whole part at a time (a part set back to the original Gemma, a part scaled, a group of rows scaled) to see which parts move the lapse rate and which only move chrF. One run per intervention, on SEL, lapse rates and chrF read together.
    3. 3. One fix (at most four runs). Build it from what step 2 showed, choose its strength on SEL, confirm the chosen strength once on CONF, and send the same 40 free prompts in Burmese with the confirming run. If Burmese moves the same way, you have a general edit; if only Amharic moves, say so and consider whether the general version is within reach with the runs you have left.
    4. 4. Stop rule. When a recipe halves the foreign-script share on CONF with chrF not lower, and you have checked Burmese, install it and finish, even with runs left. Do not spend the budget decorating. If after eight runs nothing has moved the lapse rate, write down what you learned about where the language choice lives and install the best quality-neutral edit you have, or nothing.
    5. 5. Never repeat an identical request with unchanged weights. Keep runs/lang_am_r1/driver/notes.md up to date (SEL and CONF, findings with numbers, every edit tried and its measured effect on lapses and chrF, the current best recipe; it is what you get back if the conversation is restarted). State the hypothesis of each code block in its first comment line; keep per-tensor statistics in variables; print compact summaries, never whole arrays; print short excerpts of outputs, at most about 300 characters each.
    Explain every step

    In every message, before your code or forward block, explain in plain English (about 3 to 8 sentences): what the last result showed, what you conclude, what you will do now and why, and what outcome would confirm or refute your current hypothesis. In your final answer, also summarize the path that led to your edit, the edit itself (which tensors, which rows, what arithmetic, what strength), what you learned about where the model's choice of language is made and lost, and whether the edit is specific to Amharic or general. These explanations are read by the experimenters.

    Rules

    Not allowed: (a) gradient descent or any other training: no backward passes, autograd or optimizers, and no fitting of weights to a loss, to outputs or to activations, iterative or closed-form (summary statistics such as norms, cosines, covariances, correlations, PCA and SVD of tensors are allowed; choosing a strength by measured lapses and chrF on practice sentences is what the budget is for); (b) running the model other than through the test-run tool: do not implement or simulate the network's computation on any input in the kernel or the shell;

    1. (c) internet access; (d) reading the evaluation sentences; (e) any ingredient other than TranslateGemma's own tensors, the original Gemma's tensors and the tokenizer's vocabulary (no other checkpoints, no outside data, no text or references written into the weights); (f) edits outside the 444 text-model tensors; (g) changes to the decoding or the prompt. Allowed: any analysis of the weights and of test-run results, any use of the practice sentences, any arithmetic you can justify on the allowed ingredients, including per-row and per-group scaling and masking of the embedding, the norms and the matrices.
    How the session runs

    It continues until all 30 test runs are used or you stop under the stop rule (a message without a code block does not end it earlier otherwise); make sure runs/lang_am_r1/work/edited holds your final edit (if it holds nothing, the unedited TranslateGemma is what gets evaluated), and send a final message without a fenced block saying what you built, the edit, the evidence on CONF and on Burmese, and why you expect it to hold on sentences and languages it has not seen.

  2. Before any run

    Every non-Latin writing system looks alike. Translation training left the vocabulary table untouched, and no layer stands out in the weights. In that table the rows of all non-Latin writing systems lean the same way, so where the model picks its next word, a well-known foreign word can beat the Amharic syllable it should write.

  3. Run 1

    81% of Amharic translations slip. The unedited model slips into another writing system in 81% of 300 Amharic practice translations and in 60% of 40 Burmese prompts. Most slips are a foreign word stem glued to an Amharic prefix.

  4. Run 2

    Boosting whole writing systems starts loops. Fable adds to every row the average of its writing system’s rows, Latin included. Amharic slips fall to 19% and Burmese slips to none, but 42 of 300 translations run on in loops until they are cut off, and two tiny writing systems, Tibetan and Armenian, start to slip in.

  5. Runs 3–4

    Half of what sets them apart is enough. Fable takes out the part all writing systems share and boosts only what sets each apart, in the 22 with at least 400 rows. At full strength slips fall to 1% and loops stay. At half strength slips are 5%, chrF rises 2 points per sentence and fewer translations loop, so it keeps half.

  6. Runs 5–9

    Latin letters can stay as they were. Leaving the Latin rows out ties on slips and shrinks the edit from 248,579 rows to 89,593, so the model reads the English prompt as before. On 671 sentences it never used to choose, Amharic slips fall from 78% to 6% and chrF rises 2.6 points per sentence; on the Burmese prompts, slips fall from 60% to 5%. That meets its stop rule, so it installs the edit with 21 test runs left.

  7. Fable’s answer

    One tensor, the vocabulary table: every row of the 21 non-Latin writing systems with at least 400 rows gets half of what sets its writing system apart from the others, and Latin rows stay as they were

    On 2,091 held-out sentences, Amharic translations that slip fall from 81% to 7% and COMET rises 7.5 points, and slips also fall in Tigrinya, Khmer and Georgian, which Fable never saw

Fable’s own log, all 20 steps as it wrote them
  1. Code
    Orientation, no test run yet.

    Nothing has been measured so far; this block fixes the frame I will reuse for every run and reads the cached unedited outputs for free. I define the lapse measure exactly as given, find Burmese's script ranges by Unicode name, fix SEL (300 ids) and CONF (the other 671) with seed 20261107, and fix 40 English practice sources (from SEL, 8 to 40 words) as the free prompts that will go to Burmese on every run that uses prompts. Then I apply the measure to the three cached references (TranslateGemma plain, original Gemma plain, TranslateGemma template) on all ids, SEL and CONF, to check the halves are balanced, and I read where the lapses happen in TranslateGemma's own outputs: how far into the output the first foreign letter is, what character precedes it, which scripts intrude and which words. My working hypothesis is that a lapse is a local event, one foreign word dropped at a boundary (after punctuation or at a clause start) after which the model returns to Ge'ez, rather than a drift that takes over the output; if the first lapse sits early and after punctuation, and most lapsing outputs carry one or two foreign words, that is confirmed, and it points at the output layer's token choice rather than at the model forgetting the task.

  2. Code
    The cached outputs showed that lapses are local token choices: a Ge'ez prefix is often glued to a foreign stem (ቫሪант, መ诊断, የ呼吸), Cyrillic is the main intruder, and lapsing outputs carry 3.7 foreign words on average.

    The next token is chosen at the tied output layer, so I now read that layer for free: I label every one of the 262,144 real vocabulary rows by script (majority script of its letters), then read the embedding of TranslateGemma and of the original Gemma in row chunks and collect, per script, the row count, the mean row norm in both models, the fine-tune's relative change and whether it moved rows along their own direction (grew or shrank them), the script-mean direction (mean row of the script minus the global mean row, which is the component that raises every token of that script together), its norm in both models, and how concentrated it is on a few hidden dimensions. My hypothesis is that the Ge'ez rows are a weak group at the output: a smaller shared script direction or smaller norms than Cyrillic and Devanagari rows, so that when the concept is strong and the language signal is weak, a Cyrillic token wins; if Ge'ez looks like every other script here, the weakness is upstream, in the hidden state, and the fix must amplify the language signal rather than the rows.

  3. Code
    The embedding block refuted my first hypothesis: Ge'ez rows are not a weak group at the output (norms 1.018 against a vocabulary mean of 0.998, a script-mean direction stronger than Cyrillic's or Devanagari's), and the fine-tune …

    The embedding block refuted my first hypothesis: Ge'ez rows are not a weak group at the output (norms 1.018 against a vocabulary mean of 0.998, a script-mean direction stronger than Cyrillic's or Devanagari's), and the fine-tune did not touch the embedding at all, so the 10-point drop in lapses and the 29-point drop in off-language outputs that the fine-tune bought came from the layers. The language signal that the output layer reads is the hidden state's projection onto the script-mean directions, and the lapse means that projection is too small at content-word stems relative to the concept component. So I now ask the layers where that projection is written and read. I take the script-mean directions of all scripts with at least 500 tokens, orthonormalize them into a script subspace S (about 30 dimensions in a 2,560-dimensional stream, so an isotropic matrix would put about 1.2 percent of its energy there), and for every layer measure the share of energy that the write matrices (attention o_proj, MLP down_proj) put into S on their output side, the share the read matrices (q, k, v, gate, up) take from S on their input side, the same shares for the fine-tune's change, and the fine-tune's relative change of every tensor by layer. If a few late layers write far more than 1.2 percent into S, or the fine-tune's change in some layers is concentrated in S, those are the layers where the language choice is written and the natural place for a small, general amplification; if the profile is flat, the language signal is spread and I will have to act at the output layer instead.

  4. Before test run 1
    Frame run, no edit on disk.

    The free reads so far showed that the fine-tune never touched the embedding, that Ge'ez rows are a normal-strength group at the output, and that no layer stands out as a language writer in the weights, so the remaining work is interventions measured against a frame produced by the same engine. This run translates the 300 SEL ids into Amharic with the unedited TranslateGemma and the 40 fixed English practice sources into Burmese as free prompts, so that every later edited run can be compared sentence by sentence on both languages. I expect the Amharic foreign-script share near the cached 80 percent on SEL and the Burmese share somewhere near the 64.5 percent reported for Burmese dev, with the same prefix-plus-foreign-stem pattern; the exact numbers become the baseline, and I will also note how many SEL outputs differ from the cached reference outputs to know how much of any later change is engine noise.

  5. Code
    Run 1 gave the frame on SEL: corpus chrF 19.27, COMET 68.58, a tie with the cached outputs (mean per-sentence difference -0.15, SE 0.22), so the engine is stable enough to read small effects; the lapse shares of run 1 are being …

    Run 1 gave the frame on SEL: corpus chrF 19.27, COMET 68.58, a tie with the cached outputs (mean per-sentence difference -0.15, SE 0.22), so the engine is stable enough to read small effects; the lapse shares of run 1 are being computed from its files alongside this block. The weight reads found that the output layer is the one place where the language choice is a legible object: a token's logit is its row dotted with the final hidden state, each row is a script-mean direction (which every token of that script shares) plus a token-specific remainder (the concept), and all non-Latin script means overlap (cosine +0.2 to +0.5). A lapse is then the case where the concept part of a high-resource token (сейчас, 诊断) outweighs the script margin of the Ge'ez syllable the model should write; it happens at content-word stems because that is where the concept part is strongest, which matches the prefix-plus-foreign-stem pattern. The intervention that tests this directly, and is general by construction, adds beta times its own script-mean direction to every row of every script, so the script part of every logit is scaled by (1 + beta) while the concept part is untouched: the model's own language preference is amplified, whichever language it holds. This block defines that edit as a function, applies it with beta = 1 (doubling the script part; the row directions move by at most about 9 degrees, so the tied input side is only mildly perturbed) and saves it; the next test run on SEL plus the Burmese prompts will tell. If the mechanism is right, the foreign-script share falls in both languages with chrF not lower; if it falls only in Amharic, the Burmese hidden state does not hold its language at all; if nothing moves, the language is lost upstream in a way the output layer cannot recover, and I turn to the layers.

  6. Before test run 2
    Run 1 fixed the frame: on SEL the unedited model lapses into a foreign script in 81.3 percent of outputs (60.0 borrowed, 2.0 off, Ge'ez share 0.719, chrF 19.33, COMET 68.58) and the 40 Burmese prompts lapse in 60.0 percent …

    Run 1 fixed the frame: on SEL the unedited model lapses into a foreign script in 81.3 percent of outputs (60.0 borrowed, 2.0 off, Ge'ez share 0.719, chrF 19.33, COMET 68.58) and the 40 Burmese prompts lapse in 60.0 percent (borrowed 32.5, Myanmar share 0.841); the intruders differ by target language (Cyrillic, Arabic and Devanagari into Amharic; Greek, Telugu, Thai and Italian into Burmese) but the pattern is the same, a native prefix glued to a foreign stem. The edit now on disk is the script boost at beta = 1: every embedding row of every script got its own script-mean direction added once, so the script part of every token's logit is doubled while the concept part is unchanged, and the input side of the tied matrix moves by at most about 9 degrees per row. This run repeats run 1's request on the edited model. If the output-layer competition is the mechanism, the foreign-script share should fall clearly in both languages (I would call a drop from 81 to under 60 percent on Amharic a clear signal) with chrF at least held; if Amharic improves and Burmese does not, the Burmese hidden state does not carry its language and the edit is script-specific in effect; if chrF collapses or outputs become degenerate, the input-side perturbation is too large and I will try a smaller beta or an output-only route through the last layers.

  7. Code
    Run 2 (script boost, beta = 1) confirmed the output-layer mechanism and its generality: on SEL the foreign-script share went from 81.3 to 19.0 percent (193 lapses fixed, 6 new), borrowed Latin from 60 to 0 percent, Ge'ez share …

    Run 2 (script boost, beta = 1) confirmed the output-layer mechanism and its generality: on SEL the foreign-script share went from 81.3 to 19.0 percent (193 lapses fixed, 6 new), borrowed Latin from 60 to 0 percent, Ge'ez share from 0.72 to 0.97, and the 40 Burmese prompts went from 60 percent lapsing to none, with per-sentence chrF unchanged (-0.5, SE 0.7) and COMET up 1.05. Two side effects must go. First, the surviving intruders are Tibetan and Armenian, scripts with 62 and 245 tokens: a small script's mean row is a noisy, large vector that overlaps the Ethiopic direction, so the raw boost rewards their tokens whenever the hidden state intends Ge'ez. Second, mean length doubled and the cut share rose from 2 to 14 percent: adding the full script mean raises every letter token against the unboosted end-of-turn and punctuation tokens, so the model keeps writing past the end. Both follow from boosting the whole script mean rather than what distinguishes scripts. This block measures the overlaps (for every script: mean norm, its cosine with the Ethiopic and Myanmar means, and the worst "free ride" another script gets from a hidden state aligned with a given script), counts the loops in runs 1 and 2, and then builds the refined edit: for scripts with at least 400 tokens (24 scripts; every held-out script in the brief's design is above that), add beta times (script mean minus the unweighted mean of those script means), which amplifies between-script margins exactly as before and leaves the letters-versus-structure margin alone. I keep beta = 1 to isolate the effect of the refinement; the next run should keep both lapse shares low while bringing length and cut share back toward the frame.

  8. Code
    The previous block failed on a name clash of my own making (block 3 reused the name ETH for a dictionary, which broke the measure); nothing was saved, so the beta = 1 raw boost is still the edit on disk.

    Before the crash it showed that the between-script mean m̄ carries about half of the Ethiopic direction (norm 0.075, cosine 0.49 with Ethiopic, 0.53 with Myanmar) and that the worst "free rides" come from small scripts with large, noisy means. Two entries of the 400-token set are not language scripts (CUNEIFORM with a mean of norm 0.84, MATHEMATICAL alphanumerics 0.39); boosting them can only create new intruders, so the refined edit uses the 22 real scripts with at least 400 tokens. This block restores the constant, finishes the run-2 diagnostics (which words intruded, how many outputs loop), and saves the delta boost at beta = 1: every row of those 22 scripts gets beta times (its script mean minus the unweighted mean of the 22 script means), so only what distinguishes scripts is amplified. The run after it should keep both lapse shares near zero to 20 percent while the mean length and cut share come back toward the frame's 62 tokens and 2 percent; if the length stays doubled, the length effect is not from the shared component and I will lower beta instead.

  9. Before test run 3
    Run 2's diagnostics are now complete: the raw boost fixed the language in both languages but 42 of 300 outputs ran away into repetition loops up to the 512-token cap (the frame had 7), which alone explains the corpus chrF drop, …

    Run 2's diagnostics are now complete: the raw boost fixed the language in both languages but 42 of 300 outputs ran away into repetition loops up to the 512-token cap (the frame had 7), which alone explains the corpus chrF drop, and the few surviving intruders were single Tibetan or Armenian letters inside Ge'ez words, from the large noisy means of two tiny scripts. The edit on disk is now the delta boost at beta = 1: for the 22 real scripts with at least 400 tokens, each row gets its script mean minus the unweighted mean of the 22 script means, so the between-script margins are amplified exactly as in run 2 while the shared letters-versus-structure component (about half of the Ethiopic direction) is no longer added, and the tiny scripts are no longer boosted. Same request as runs 1 and 2. I expect the lapse shares to stay near where run 2 put them (Amharic about 20 percent, Burmese near zero), the Tibetan and Armenian letters to disappear, and the loops and cut share to fall back toward the frame; if the loops persist, the length effect comes from the between-script part itself and the next step is a smaller beta.

  10. Code
    Run 3 (delta boost, beta = 1) kept the quality gains, per-sentence chrF +0.24 (SE 0.61) and COMET +3.1 against the frame, but the runaway loops only eased (cut share 14 to 11 percent, mean length 121 to 109 tokens), so the length …

    Run 3 (delta boost, beta = 1) kept the quality gains, per-sentence chrF +0.24 (SE 0.61) and COMET +3.1 against the frame, but the runaway loops only eased (cut share 14 to 11 percent, mean length 121 to 109 tokens), so the length effect scales with the boost itself rather than with the shared component I removed: the amplified script margin also widens the gap between the target-script tokens and the end-of-turn and punctuation tokens, and the shifted input rows change how the model reads its own output. Both effects shrink with beta while the lapse margin a sentence needs is probably far smaller than a doubling, so the next question is the dose: I save the same delta boost at beta = 0.5 and run the same request. If the foreign-script share stays well under half of the frame's 81 percent while the cut share returns near the frame's 2 percent, the fix lives at a strength that costs nothing in length and the next step is confirming on CONF; if the lapses come back at half strength while the loops remain, strength alone does not separate the two effects and I will have to treat the stop decision directly.

  11. Before test run 4
    Run 3's lapse report settles the mechanism: with the delta boost at beta = 1, the foreign-script share on SEL is 0.7 percent (2 of 300 outputs; 242 lapses fixed, none created), borrowed Latin 0, Ge'ez share 1.000, Burmese 0 of …

    Run 3's lapse report settles the mechanism: with the delta boost at beta = 1, the foreign-script share on SEL is 0.7 percent (2 of 300 outputs; 242 lapses fixed, none created), borrowed Latin 0, Ge'ez share 1.000, Burmese 0 of 40, per-sentence chrF +0.38 (SE 0.64) and COMET +3.1 against the frame. The language is held completely in both languages once the between-script part of the output logits is doubled. What remains is the runaway loops (cut share 11 percent against 2, mean length 109 tokens against 62), which cost corpus chrF. The edit on disk is now the same delta boost at half strength, beta = 0.5, and this is the same request. I expect most of the lapse reduction to survive (the margins a lapse needs are small compared with a doubling) and the cut share to fall by more than half; a result with foreign share under 20 percent and cut share near the frame would make 0.5 the strength to confirm on CONF, while a cut share still far above the frame would tell me that the loops come from a different margin than the lapses and must be treated on their own.

  12. Before test run 5
    The dose-response on SEL is now three points: beta 0 / 0.5 / 1.0 give a foreign-script share of 81.3 / 4.7 / 0.7 percent, corpus chrF 19.27 / 20.63 / 17.69 and a cut share of 2.3 / 6.0 / 11.3 percent; Burmese goes 60 / 5 / 0 …

    The dose-response on SEL is now three points: beta 0 / 0.5 / 1.0 give a foreign-script share of 81.3 / 4.7 / 0.7 percent, corpus chrF 19.27 / 20.63 / 17.69 and a cut share of 2.3 / 6.0 / 11.3 percent; Burmese goes 60 / 5 / 0 percent. The loops grow with the boost while the lapses are gone long before it reaches full strength, so beta = 0.5 is the strength to confirm: it leaves one lapse in twenty, raises per-sentence chrF by 2.0 (SE 0.6) and COMET by 6.4 points on SEL, and costs a cut share of 6 percent against 2. This run is the confirmation the brief asks for: the same edit on the 671 CONF sentences, which were never used to choose anything, with the same 40 Burmese prompts. The stop rule needs the CONF foreign-script share at or under half of the unedited model's (the cached outputs give 77 percent on CONF, so under 38.5) with corpus chrF not under the unedited model's on the same ids (cached 19.58); I expect roughly SEL's picture, a share under 10 percent, chrF above the reference by about a point, and Burmese staying near zero. If it holds I install this edit; if CONF disagrees with SEL in either direction, the difference is the next thing to understand.

  13. Code
    Run 5 confirmed the edit on CONF, the 671 sentences never used for a choice: corpus chrF 21.41 against the unedited 19.58 on the same ids, per-sentence +1.99 (SE 0.37, 411 better and 246 worse), COMET 75.16 against 68.26; the …

    Run 5 confirmed the edit on CONF, the 671 sentences never used for a choice: corpus chrF 21.41 against the unedited 19.58 on the same ids, per-sentence +1.99 (SE 0.37, 411 better and 246 worse), COMET 75.16 against 68.26; the lapse shares are being computed beside this block and SEL predicts about one in twenty. The one blemish is the runaway loops (cut share 5.2 percent against about 2). Before installing, I want to know where they come from, because they are the only channel through which this edit could hurt a language that never lapses. The tied embedding means the boost also changes how tokens are read, and the whole prompt, the instruction and the English source, is Latin script: if perturbing the Latin rows is what unsettles the model, a boost that leaves Latin alone should bring the loops back to the frame while keeping the lapses fixed (the Ge'ez-versus-Latin margin is then widened only from the Ge'ez side). This block first reads the loops of run 5 (whether the cut sentences were already the unedited model's problem sentences, how long their sources are, whether the loop starts after a full translation or early), then saves the same delta boost at beta = 0.5 on the 21 non-Latin scripts only, for a test on SEL with the Burmese prompts. If loops fall to the frame's level with lapses still near zero, the Latin rows are the cause and the final edit shrinks to about 90,000 rows; if the loops stay, they come from the target-script side and beta is the only lever.

  14. Before test run 6
    The confirmation on CONF holds by a wide margin: the foreign-script share is 5.8 percent against 77.0 for the unedited model on the same 671 sentences (479 lapses fixed, 1 new), borrowed Latin 0.3 against 58 percent, chrF +1.99 …

    The confirmation on CONF holds by a wide margin: the foreign-script share is 5.8 percent against 77.0 for the unedited model on the same 671 sentences (479 lapses fixed, 1 new), borrowed Latin 0.3 against 58 percent, chrF +1.99 per sentence (SE 0.37) and +1.84 corpus, COMET +6.9, and the 40 Burmese prompts stay at 5 percent against 60. The loop diagnosis showed the length cost is small (cut share 5.2 against 4.0 percent for the unedited model on CONF) and that the loops are mostly early generic-syllable repeats where the base model used to borrow a foreign word, so they are the flip side of the repair rather than a separate damage. One question remains before installing: whether the Latin rows need to be part of the edit. They carry the whole prompt on the input side, so leaving them untouched would mean the model reads the instruction and the English source exactly as before, which is the safest possible position for the languages that never lapse (Spanish and Swahili would then differ from the unedited model only in having foreign-script tokens pushed down), and it shrinks the edit from 248,579 to 89,593 rows. The edit on disk is now the same delta boost at beta = 0.5 on the 21 non-Latin scripts only; this is the SEL request again. If the lapse shares stay near run 4's (4.7 percent Amharic, 5 percent Burmese) with borrowing still near zero and chrF still up, the smaller edit becomes the recipe and I confirm it once on CONF; if borrowing comes back, the Latin side of the margin is needed and run 5's edit stands.

  15. Before test run 7
    Run 6 settled the last design question: the boost without the Latin rows repairs the language exactly as well as the one with them (on SEL, foreign-script share 5.7 against 4.7 percent, a paired tie of 4 lapses fixed and 7 new; …

    Run 6 settled the last design question: the boost without the Latin rows repairs the language exactly as well as the one with them (on SEL, foreign-script share 5.7 against 4.7 percent, a paired tie of 4 lapses fixed and 7 new; borrowed 1.0 against 0 percent; Burmese 5 percent in both), with per-sentence chrF a touch higher (+0.67, SE 0.37, paired on the same sentences) and the same cut share, so the loops do not come from the prompt side. The smaller edit is the better claim: 21 non-Latin scripts, 89,593 rows, and the instruction and the English source are read exactly as the unedited model reads them. It is on disk now (edit hash ddc8d9acf7ab12ed) and this is its confirmation on the 671 CONF sentences with the same 40 Burmese prompts, the run that decides what gets installed. I expect run 5's picture again: a foreign-script share near 5 percent against 77, borrowing near 1 percent against 58, corpus chrF above 19.58, COMET well above 68.3, Burmese near 5 percent against 60. If it holds, this edit is final; if CONF shows borrowing creeping back above a few percent or chrF below the reference, the Latin rows earn their place and run 5's edit is installed instead.

  16. Code
    Run 7 confirmed the non-Latin boost on CONF with the same picture as run 5 (corpus chrF 21.59 against 19.58, per-sentence +2.45 with SE 0.37, COMET +7.0); its lapse shares are being computed from the files.

    Every CONF comparison so far is against the cached unedited outputs, which came from a separate scorer whose greedy decoding diverges from this engine on some sentences, and the brief asks for edited runs to be compared with same-engine frames. One run buys that frame for the confirmation set: the unedited model on the 671 CONF ids through this engine, so the paired lapse counts and chrF differences of the installed edit rest on identical decoding. This block only removes the edit from disk for that run; the recipe is a one-line function in the kernel and will be re-saved immediately after, and the final edit hash must come back as ddc8d9acf7ab12ed.

  17. Before test run 8
    The edit has been cleared from disk for this one run.

    This is the same-engine frame for the confirmation set: the unedited TranslateGemma on the 671 CONF ids, no free prompts (the Burmese frame on the 40 prompts is run 1, with the same weights and prompts, so repeating it would be an identical request). It settles the paired comparison for the installed edit (run 7) on identical decoding: I expect the lapse shares close to the cached outputs' 77 percent foreign and 58 percent borrowed on CONF, chrF within a few tenths of the cached 19.58 corpus, and the cut share near 4 percent; any sentence-level divergence from the cache is engine noise that this run removes from the comparison.

  18. Code
    The unedited frame on CONF is done, so the final edit goes back on disk: the delta boost at beta = 0.5 on the 21 non-Latin scripts with at least 400 tokens, the recipe confirmed by run 7.

    The saved file must be bit-identical to what run 7 tested, so the edit hash the server reports on any later request must be ddc8d9acf7ab12ed; this block re-saves it from the same function and the same in-kernel script means, prints the summary of the edit for the record (scripts, rows, per-script shift norms, rows that differ from TranslateGemma), and checks a few invariants: the Latin rows, the punctuation and special-token rows and the 64 padding rows are unchanged, and the mean shift of an edited row is exactly 0.5 times its script's delta.

  19. Before test run 9
    The same-engine frame made the confirmation clean: on CONF the installed edit against the unedited model through the same engine gives a foreign-script share of 6.0 against 78.1 percent (486 lapses fixed, 2 new), borrowed Latin …

    The same-engine frame made the confirmation clean: on CONF the installed edit against the unedited model through the same engine gives a foreign-script share of 6.0 against 78.1 percent (486 lapses fixed, 2 new), borrowed Latin 1.6 against 57.1 percent, off-language 0 against 2.8 percent, chrF +2.62 per sentence (SE 0.36) and +2.38 corpus, COMET +6.95; the engine's own noise against the cached outputs is 322 identical outputs of 671 and chrF -0.17 (SE 0.14). The final edit has been re-saved from the same function and verified row by row (89,593 rows changed, Latin, punctuation, special and padding rows untouched, every row shifted by exactly half its script's delta). This small request is the last check: twelve CONF sentences on the model now on disk, so the server reports the edit hash of the installed file, which must be ddc8d9acf7ab12ed, the hash of the edit that runs 6 and 7 measured, and whose outputs should match run 7's on these ids up to batch-composition noise.

  20. Code
    Closing state check.

    The final message (m20, no fenced block) was submitted and is recorded in the run log (tool_calls.jsonl) although the CLI would not execute a message without a block. This block changes nothing; it prints what is installed so the log ends with the state of work/edited: one tensor, language_model.model.embed_tokens.weight, the between-script boost at beta 0.5 on the 21 non-Latin scripts with at least 400 rows (89,593 rows), edit hash ddc8d9acf7ab12ed as read back by the server in run 9. Evidence, in one line each: CONF (671 held-out practice sentences, same engine) foreign-script share 6.0 against 78.1 percent, borrowed 1.6 against 57.1, chrF +2.62 per sentence (SE 0.36), corpus 21.59 against 19.21, COMET 75.30 against 68.35, cut share 5.7 against 3.7; Burmese (40 prompts) foreign 5.0 against 60.0 percent, borrowed 0 against 32.5. Budget used: 9 of 30 test runs.

Fable found that the model loses its language at the last step, where it picks the next word, and that every non-Latin writing system looks alike there.

To pick each word, the model compares its idea of the next word with every row of its vocabulary table, one row for each piece of a word it knows, and writes the best match. Amharic’s writing system has 847 rows, and Russian’s and Hindi’s have more than 13,000 each. And the rows of every non-Latin writing system lean the same way, so an idea that means “write Amharic” also matches Russian and Hindi words. At a content word, a foreign word the model knows well can win. The model knows the word and loses the writing system. Translating a sentence about cholesterol into Khmer, it wanted the word “level” and put 97% on the Thai spelling.

How the model picks its next wordThe model’s idea of the next wordmeans “now”in Amharicbuilt by its 34 layers, which the edit leaves aloneVocabulary table: one row per word piece262,144 rows. Each row records what its piece meansand which writing system it is written in.አሁንmeans “now”Amharicсейчасmeans “now”Russianअभीmeans “now”HindiIt scores every row against its idea and writes the best match.Fable edited only this table.Why it slips, and what the edit changeseach row’s score = meaning match + writing-system matchmeaning matchwriting-system matchBeforeአሁንAmharicсейчасRussianwrites thisअभीHindiEvery non-Latin writing system looks alike,so Russian gets nearly the same credit,and the model knows the Russian word well.After Fable’s editአሁንAmharicwrites thisсейчасRussianअभीHindiThe edit pushes the writing systems apart,so only the one the model is writing getsthe credit. The meaning match is unchanged.Illustration: the bar lengths are made up. The fold below shows measured numbers.
How the model picks its next wordThe model’s idea of the next wordmeans “now”in Amharicbuilt by its 34 layers, which the edit leaves aloneVocabulary table: one row per word piece262,144 rows. Each row records what its piecemeans and which writing system it is written in.አሁንmeans “now”Amharicсейчасmeans “now”Russianअभीmeans “now”HindiIt scores every row against its ideaand writes the best match.Fable edited only this table.Why it slips, and what the edit changeseach row’s score = meaning match+ writing-system matchmeaning matchwriting-system matchBeforeአሁንAmharicсейчасRussianwrites thisअभीHindiEvery non-Latin writing system looks alike,so Russian gets nearly the same credit,and the model knows the Russian word well.After Fable’s editአሁንAmharicwrites thisсейчасRussianअभीHindiThe edit pushes the writing systems apart,so only the one the model is writing getsthe credit. The meaning match is unchanged.Illustration: the bar lengths are made up.The fold below shows measured numbers.
Figure 3. How the model picks its next word, and why it slips. Each row of the vocabulary table carries what a piece of a word means and which writing system it belongs to. The model scores every row against its idea and writes the best match. Before the edit, a Russian word gets nearly the same writing-system credit as an Amharic one. After it, only the writing system the model is using gets the credit. An illustration. The bar lengths are made up.
Deeper divethe measured numbers behind the picture
How alike Amharic’s writing system looks to otherssimilarity of their average rows (cosine, where 0 means unrelated)beforeafter the edit0.00.10.20.3RussianCyrillic0.230.11HindiDevanagari0.250.09ChineseHan characters0.250.12Thai0.230.10The model’s chance for each next wordafter “እናም፣” (“and,”) in the opening exampleBeforeсейчас64%Russian, nowይህ14%Amharic, thisक्या4%Hindi, question wordAll Amharic words together: 26.4%After the editይህ56%Amharic, thisበዚህ8%Amharic, in thisእና8%Amharic, andAll Amharic words together: 99.9%
How alike Amharic’s writing systemlooks to otherssimilarity of their average rows(cosine, where 0 means unrelated)beforeafter the edit0.00.10.20.3RussianCyrillic0.230.11HindiDevanagari0.250.09ChineseHan characters0.250.12Thai0.230.10The model’s chance for each next wordafter “እናም፣” (“and,”) in the opening exampleBeforeсейчас64%Russian, nowይህ14%Amharic, thisक्या4%Hindi, question wordAll Amharic words together: 26.4%After the editይህ56%Amharic, thisበዚህ8%Amharic, in thisእና8%Amharic, andAll Amharic words together: 99.9%
Figure 4. The edit pushes the writing systems apart, and the model stops slipping. Left: how alike the rows of two writing systems are, on average, in the vocabulary table (cosine similarity). After the edit, Amharic’s writing system looks about half as much like the others. Right: the model’s probability for each possible next word at the slip in the opening example. Before the edit it gave the Russian word for “now” 64%. After it, Amharic words take 99.9%.

Fable’s edit changes only that table and names no language. To each row of 21 non-Latin writing systems it adds half of the part that sets that system apart from the others, and it leaves Latin letters alone. Whichever writing system the model is using, it now holds on to it harder. Its first try pushed every writing system, Latin included, and the model started running on without stopping. Taking out the part all writing systems share, and pushing at half strength, brought that down. It used 9 of its 30 test runs. After the edit, the first syllable of the Khmer word for “level” gets 95%.

TranslateGemmaafter Fable’s editCOMET(change)0%50%100%translations that slip (lower is better)Amharicpractice language81%7%+7.5Tigrinyanever seen65%4%+6.4Khmernever seen95%62%+5.7Georgiannever seen64%6%+7.3Sinhalanever seen46%2%−1.9Burmesepartly seen66%10%−0.9Laonever seen100%99%−5.0
TranslateGemmaafter Fable’s editCOMET(change)0%50%100%translations that slip (lower is better)Amharicpractice language81%7%+7.5Tigrinyanever seen65%4%+6.4Khmernever seen95%62%+5.7Georgiannever seen64%6%+7.3Sinhalanever seen46%2%−1.9Burmesepartly seen66%10%−0.9Laonever seen100%99%−5.0
Figure 5. One edit cuts the slips in Amharic and in languages Fable never saw. Share of translations that slip, before and after the edit. Right: the change in COMET. Tigrinya shares Amharic’s writing system, and the others have their own. The edit left Lao’s rows alone, so asked for Lao the model now writes in Khmer, a cousin writing system. 2,091 held-out TICO-19 sentences per language, and 1,012 FLORES-200 sentences each for Georgian, Sinhala and Lao. Partly seen: Fable could run the model on 40 Burmese sentences, without answers or scores. It never saw the other languages.
One held-out sentence per language, before and after the edit

The language Fable practiced on.

and i’m really having some bad chest pain today

Before

እናም आज እኔ በጣም የከባድ የልብ ህመም እ感觉Hindi for “today”, Chinese for “feel”

After

እናም ከዛሬ በኋላ እውነተኛ የልብ ህመም እየተሰማኝ ነው።

The edit has small costs, 1 to 2 points of chrF in Hindi and Chinese and 1 to 2 points of COMET in Burmese and Sinhala. Constrained decoding, a filter that bans other writing systems while the model writes, also stops the slips, but it must be told the target language for every request. Fable’s edit is inside the model and names no language.

Qwen3 4B, five LoRA adaptersCan an LLM combine fine-tuned adapters?

Task

Merge five public LoRA adapters for Qwen3 4B into one model that keeps all five skills. No training.

What Fable found

The digit adapter’s update is 2 to 9 times larger than the others and overrides the banking adapter in a plain sum.

What it changed

Reweighted the five adapters, halved the digit adapter’s MLP part, and reduced how much each adapter responds to the other tasks’ inputs.

Result

Banking comes back, and the average rises from 54% to 58%. Task arithmetic, a published method, does as well.

Fable’s task was to merge five public LoRA adapters [16] for Qwen3 4B [17] into a single model that retains all five skills. A LoRA adapter is a small, separately trained update to a model’s weights that specializes it for one task, such as classifying banking questions into 77 intents or reading digits drawn in ASCII. The simplest merge adds the five updates together. That plain sum loses most of the banking skill, whose accuracy falls from 62% to 41%. Reading the adapters, Fable traced the loss to the digit adapter, whose update is 2 to 9 times larger than each of the others and overrides the banking adapter in the sum.

Fable’s merge restores the banking skill and scores clearly above the plain sum across the five tasks. We compared it with three published merging methods, task arithmetic [18], TIES [19] and DARE [20], each tuned on the same practice questions. Fable’s merge scores above TIES and DARE. The best of the three, task arithmetic, scales all five adapters by one shared factor, and it performs as well as Fable’s merge. A shared scale corrects the same imbalance, because it shrinks the oversized digit adapter along with the others. So Fable can combine the adapters, and with five of them a published method does just as well. With twenty or more adapters, several could interfere with each other at once, and published methods such as task arithmetic, TIES and DARE may not suffice. We leave that for future work.

Average accuracy across the five tasks. Tap a method to show or hide its line. each adapter alone

Indirect answersCircaASCII digitsMNIST as textBanking intentsBanking77Spanish inferenceXNLIMessy questionsDisfl-QA50%
Indirect answersCircaASCII digitsMNIST as textBanking intentsBanking77Spanish inferenceXNLIMessy questionsDisfl-QA50%
Figure 6. The plain sum caves in on banking. Fable’s merge and task arithmetic, a published merging method, both fill it back in, about equally. TIES and DARE each leave a different dent. Each corner is one task, from the base model (center) to the adapter on its own task (dashed edge). About 500 held-out questions per task. TIES and DARE are served as their closest rank-320 version, as the serving engine requires. Hover or tap a corner for the raw scores.

Gemma 4 26BCan an LLM find what each expert does?

Task

Prune Gemma 4 26B for medicine from 52 GB to 22 GB, less than half its size. At that size frequency pruning scores lower on a hard medical exam and gets stuck in loops. No training.

What Fable found

Frequency pruning drops experts in the first layers that the model uses for every word it writes. The looping starts there.

What it changed

Kept the same number of experts, 1,320, with more in the first layers and fewer in the middle.

Result

3.7 points higher on a hard medical exam (MedXpertQA) at the same size, and half the looping.

Gemma 4 26B [21] is a mixture-of-experts model [22]. Each of its 30 layers is a team of 128 small specialist networks, and a router sends every token, a word or piece of a word, to 8 of them. Nothing in the model says which expert does which job. Our baseline for shrinking it for medicine is frequency pruning. It runs medical text through the model, counts how often each expert is picked, and keeps the most used, the same number in every layer. We kept 44 of 128. The model went from 52 GB to 22 GB, and it broke. It scored 12 points lower on a hard medical exam and often got stuck repeating itself. Frequency pruning still does real work. The same number of experts picked at random scores 26 points lower on that exam, and a published alternative, REAP pruning [23], 10 points lower.

Setup

Model: Gemma 4 26B-A4B, with 30 layers, 128 experts per layer and 8 activated per token. It has 25.8 billion parameters, about 4 billion active

Starting point: the 64 experts per layer the router picks most on medical text. Frequency pruning keeps the top 44 of them in every layer (52 GB to 22 GB), and Fable must match that total

Why this baseline: frequency pruning is simple and easy to reproduce, and we run it with our own code. REAP pruning [23] rates each expert by how much it adds when it is picked. We computed its published score with our own code, on the same medical questions. At 44 per layer it keeps 52% of the routing medical text uses, against 87% for the count, and scores 10 points lower on the exam (2,455 questions) and on following instructions

Task: choose which experts each layer keeps, 1,320 in total, the same as 44 per layer, at least 8 in every layer

Fable gets: a Python session over the weights (CPU only), practice questions, and 80 test runs (it used all 80)

Practice: all MedQA training questions and 20,000 MedMCQA training questions, cleaned against the test sets. The final exam is a different benchmark, MedXpertQA

Allowed edits: only which experts stay in each layer

Not allowed: training or gradients, and any look at the final tests

Evaluation: a hard medical exam (MedXpertQA, 2,455 questions) and following instructions (IFEval), thinking off, temperature 1.0, up to 4,096 tokens, all unseen by Fable

Leakage check: the practice questions and the texts behind the expert counts were cleaned against the test sets before the runs, and checked again after, with no exact copies, no shared 13-word passages and no near-duplicates

Time: about 6 hours on one GPU

How Fable did it: the prompt, every step, and its answer
  1. The task

    Gemma 4 26B pruned to 64 experts per layer, in a Python session

    Prune the model further: keep 1,320 experts in total, the same as 44 per layer, and choose how many each of the 30 layers gets, at least 8 in every layer.

    No training. The model runs only in test runs, 80 in all. It used 80.

    Read the full prompt, as Fable got it
    Task

    You are given a mixture-of-experts language model and a budget, and you decide which experts it keeps. The base is Gemma 4 26B-A4B-it (30 layers of width 2,816; every layer has attention (16 query heads, 8 key/value heads of size 256; layers 5, 11, 17, 23 and 29 attend to the whole context with 2 key/value heads of size 512, the others to a sliding window of 1,024 tokens), a dense GeGLU MLP of width 2,112, and a mixture of 128 experts of width 704 (experts.gate_up_proj, experts.down_proj) from which a router (router.proj, router.scale, router.per_expert_scale) picks 8 per token; RMSNorm before and after each block; vocabulary 262,144; tied embeddings; final logit soft-capping at 30). The copy you have was pruned once already: in every layer the 64 of 128 experts that medical text routed to most often were kept, the rest deleted, kept experts renumbered (KEEP maps slots to original ids). Your job is to PRUNE IT FURTHER TO A BUDGET: 1,320 active experts in total over the 30 layers (the same count as 44 per layer), split across layers as you see fit with at least 8 active in every layer. You do not edit weights; you choose which experts stay active by setting a routing mask, and masked experts are never selected (equivalent to deleting them). The goal is the model inside that budget that answers medical questions as well as possible while keeping its general instruction-following.

    How it will be measured

    After you finish, the model with your final mask is evaluated on a hard medical multiple-choice benchmark and on an instruction-following benchmark with this fixed protocol: the chat template with thinking off; the system message "You are a medical expert."; the user message is the question, the options one per line as "A. ...", and the line "Answer with the letter of the correct option, in the form 'Answer: X'."; sampling with temperature 1.0, top_k 64, top_p 0.95 and at most 4,096 new tokens; the LAST "Answer: X" in the response is graded against the key. You never see these benchmarks. Your model is reported next to: the standard recipe (44 experts per layer by medical frequency, called the floor below), the same recipe with a global budget (the 1,320 most-used experts across all layers at once, so layers get different counts), a control that keeps the most-used experts at YOUR per-layer counts (so that choosing how many per layer is separated from choosing which), the unpruned model, and the 64-expert model you start from. The headline is the fraction of the gap between the floor and the unpruned model that your selection closes, with the instruction-following score and the share of answers cut at the token limit alongside.

    What counts

    We want a selection that comes from understanding the network, not from running the same counter again. The frequency recipe has known blind spots, measured in an earlier run on the 44-per-layer model: (1) it counted routing on prompts only, so experts the model uses when WRITING its answer were under-counted (in most layers 20 to 39% of the routing weight on answer tokens went to deleted experts, against 7 to 12% on prompt tokens); (2) positions that occur once per text lost the most: the model-turn header, from which the first answer token is computed, lost 50 to 100% of its routing weight in layers 0, 1, 14, 16 and 27 to 29, and the colon of the final "Answer:" lost 40 to 88% in most layers; (3) the losses are very uneven across layers (layers 15, 19, 28 and 29 lose two to three times the median). Two things did NOT work in that run and you should know them: restoring the ten loudest early-layer experts (large output norms, firing on the first tokens and function words) changed nothing; and putting 97 answer-writing experts back in place of the least-used kept ones made the model write like the unpruned one (its log-probability of the unpruned model's answers rose by a nat per token) without changing its accuracy at all. A re-prune that counted answer tokens too lost 3 points of accuracy at 44 per layer: writing experts displaced knowledge experts. The open lever is allocation and redundancy: which layers deserve more than 44, which fewer, and which frequently used experts are redundant because another kept expert does the same work. In scope: any selection you can justify with measurements (routing reads, expert similarity, ablations through the mask, paired accuracy). Out of scope: weight edits of any kind (save_edit is disabled in this run), changes to the decoding or the prompt, and masks with fewer than 8 active experts in a layer.

    WHAT YOU HAVE.

    1. 1. A persistent Python kernel (no GPU, no internet): variables survive between your code blocks, like a notebook. The 64-expert model's files are read-only in ckpt/g26_keep64_freq, the unpruned base read-only in models/gemma-4-26B-A4B-it, practice problems in data/practice/practice.jsonl, and runs/r2_prune64/work is your read-write folder. Available: numpy, scipy, scikit-learn, PyTorch (CPU), pandas, sympy, networkx, safetensors, tokenizers. Defined in advance: NAMES and SHAPES; load(name, experts=None) (a float32 torch tensor of the 64-expert model; experts=[...] reads only those slots of a fused expert tensor or router tensor); load_full(name, experts=None) (the same tensor in the UNPRUNED base, by original index); tok (the tokenizer); CONFIG; KEEP[layer] (for each of the 64 slots, the original expert index); ACTIVE[layer] (the original ids currently active in that layer; all 64 at the start), set_active(layer, ids) (set the active experts of a layer by original id; takes effect on the next forward request), active_total() and save_mask() (writes runs/r2_prune64/work/mask.json, the object that is evaluated); KEEP44[layer] (the floor's 44 per layer) and GLOBAL[layer] (the mechanical global-budget selection), both as original ids, so you can start from either or measure them; STATS (routing statistics of the UNPRUNED model over 2.5M tokens of medical and 2.8M tokens of general text rendered as prompts: per layer and original expert, token counts, router-weight sums, output norms, REAP saliency) and STATS_GEN (the same counted separately on 2,000 practice prompts and on the unpruned model's own answers to them, with the header and "Answer:" colon positions apart; see data/stats/README.md); expert_slices(layer); eval_prompt(x) / eval_prompt_ids(x) (the exact prompt the server feeds the model for a practice id or your own user message). Gradients are disabled. One execution may take up to 900 seconds and about 9 GB of arrays; output is cut at 10,000 characters. You may run code up to 400 times. If the kernel is restarted (time or memory limit), its variables are lost, you are told so, and the mask is restored from runs/r2_prune64/work/mask.json.
    2. 2. Practice problems with answers (none of them is in the evaluation), one JSON object per line with id, source, question, options, answer and, when available, an explanation: data/practice/practice.jsonl (8,492 USMLE-style questions, ids medqa_train_*, and 20,000 Indian medical entrance questions, ids medmcqa_train_*). The floor's and the unpruned model's answers to the 2,000 problems listed in data/practice/pool_r1.txt were generated in advance, so paired passes on those ids cost no extra time; other ids work too. You may also write your own prompts.
    3. 3. A forward-pass tool with a budget of 80 forward passes in total. A forward pass is one of two things, and each counts as one pass:
    4. (a) GENERATION: a model answers up to 512 generations (problems x samples) with the evaluation's protocol. Reply with exactly one block that starts with ```forward and contains JSON: {"type": "generate", "model": "edited", "floor", "full" or "both", "problems": ["<practice id>", ...], "prompts": ["<your own user message>", ...] (optional, ungraded), "n": samples per item (items x n <= 512; with "both" <= 256 per model), "max_tokens": at most 4096, "activations": {"layers": [0..30], "mlp": true or false, "router": true or false} (optional)} "edited" runs the 64-expert model with your CURRENT mask (any mask with at least 8 active per layer is accepted, including all 64, so you can measure where you start; every reply shows the active total against the budget); "floor" is the 44-per-layer standard prune and "full" the unpruned model; "both" runs edited and floor on the same items and returns a paired comparison (the accuracy difference edited - floor over items with its standard error, how many samples went from wrong to right and back) together with the full model's accuracy on the same items when it is cached. The sampling seed of every item is fixed by the problem, in every pass and for every model. Every answer to a practice problem is graded. You get the accuracy (overall and by source), the mean length, the share cut at max_tokens and the failure counts; texts, extracted answers and grades are in runs/r2_prune64/work/gen_<k>.jsonl (with "both": gen_<k>_floor.jsonl and gen_<k>_edited.jsonl). With "activations", for every generated answer the residual stream at the requested layers is saved at the last prompt token and averaged over the answer; "mlp": true adds the dense MLP activations and "router": true the router probabilities over the active experts and each answer's expert-usage frequencies: runs/r2_prune64/work/gen_<k>_acts/. Not available for "full".
    5. (b) TEACHER-FORCED: a model reads up to 1,024 texts of up to 32,768 tokens each, at most 524,288 tokens in total (no generation; it takes a few minutes). Reply with a ```forward block containing JSON: {"type": "teacher_forced", "model": "edited" or "floor", "texts": ["raw text", ...] or "chats": [[{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}], ...], "return": {"token_logprobs": true, "topk": k (at most 50), "hidden_states": [layers 0..30], "mlp_act": [layers 0..29], "router": [layers 0..29] (router logits over the active experts, the 8 selected slots and their final weights, per token), "expert_act": [layers 0..29] (the input of each selected expert's down projection, per token)}} The results of (b) are .npy files (with meta.json describing every array) in runs/r2_prune64/work/fwd_<k>/, right-padded to the longest text (at most 6 GB per pass). To score an answer the model generated, send eval_prompt(id) + answer as one raw text. A request that fails does not count against the budget. A generation pass takes up to about 15 minutes at full size; the full model is not available teacher-forced (it does not fit in bf16).
    6. 4. A shell, as described in the preamble. The GPU is not visible to it and must not be made visible; loading or running the model anywhere except through the forward-pass tool is forbidden; so is reading anything under data/eval/ or any benchmark file. Every command you run is logged and audited after the run; a run that breaks these rules is discarded.

    HOW TO WORK.

    1. 1. Measure the frame first. One paired pass ("both" on a diagnostic set from data/practice/pool_r1.txt) with all 64 active gives the gap between the 64-expert model and the floor, and the full model's score on the same items: that is the most any mask can recover. A second paired pass with the floor's own list (set every layer to KEEP44) should show a difference of about zero; it calibrates the mask against the physical prune and the pairing noise.
    2. 2. Read before you cut. A teacher-forced read with "router" on a few hundred practice prompts with their reference answers, all 64 active, gives the usage, the router weight and the selection rank of every expert on every token, on prompt tokens and answer tokens separately. Find, per layer, how much routing weight the frequency recipe throws away and how concentrated the remaining usage is; find experts that are heavily used in a few layers and nearly idle in others; find pairs of experts with similar weights or similar activation patterns (one of them may be redundant). Decide the per-layer counts from evidence, then the experts.
    3. 3. Cut in steps and measure each step. Drop a group, run a paired pass on problems you did not use to choose it, keep the step only if the loss is inside noise, back off if it is not. The budget is tight enough that most of your passes should be paired generations of 256 problems per model (standard error about 2 points on the difference; pairing noise with identical weights was 0.000 with SE 0.021). Dense measurements are cheap and sharper: a teacher-forced pass over up to 1,024 practice problems with their reference answers gives the log-probability of the correct letter and of the explanation on every text; use them to rank candidate cuts, and confirm the survivors with generation.
    4. 4. Never repeat an identical request with an unchanged mask (it costs a pass and adds little). Keep runs/r2_prune64/work/notes.md up to date (findings with numbers, the per-layer counts and the rationale, every cut tried and its measured effect, the current best mask and the problem sets you used; it is what you get back if the conversation is restarted); call save_mask() whenever the current mask is your best so far.
    5. 5. Work efficiently: state the hypothesis of each code block in its first comment line; load things once; read experts selectively (a full expert tensor of one layer is 64 x 1,408 x 2,816 floats = 1 GB in float32); print compact summaries, never whole arrays, and never raw lists of vocabulary tokens; print short excerpts of generated texts, at most about 300 characters each.
    Explain every step

    In every message, before your code or forward block, explain in plain English (about 3 to 8 sentences): what the last result showed, what you conclude from it, what you will do now and why, and what outcome would confirm or refute your current hypothesis. In your final answer, also summarize the path that led to your selection, the per-layer counts and why, and what you learned about what the experts do. These explanations are read by the experimenters.

    Rules

    Not allowed: (a) gradient descent or any other training: no backward passes, autograd or optimizers, and no fitting of weights to a loss or to activations, iterative or closed-form (summary statistics such as means, norms, covariances, correlations, PCA and SVD are allowed); (b) running the model other than through the forward-pass tool: do not implement or simulate the network's computation on any input in the kernel or the shell; (c) internet access; (d) reading the evaluation sets; (e) weight edits. Allowed: any analysis of the weights and of forward-pass results, any use of the practice problems, and any mask with at least 8 active experts per layer.

    How the session runs

    It continues until all 80 forward passes are used (a message without a code block does not end it earlier); after that, make your final choice, call save_mask() so that runs/r2_prune64/work/mask.json holds it (it must be within the 1,320 budget, or the submission is refused), and send a final message without a fenced block, saying what you kept, the per-layer counts, the evidence and why you expect it to be better than the standard recipe.

  2. Runs 1–2

    Half the damage is loops. On practice questions frequency pruning scores 75.8% and the 64-expert copy it starts from 83.6%. About half of that gap is answers stuck repeating until they are cut off.

  3. Runs 3–29

    Its quick test misleads. Fable first rates each pruning by how well it predicts the full model’s answers, word by word. A pruning known to score worse comes out better, so from then on Fable judges by answers the model writes itself.

  4. Run 35

    It builds a loop test. On 64 practice questions where frequency pruning tends to loop, four tries each, it gets stuck in 131 of 256 answers. The 64-expert copy gets stuck in 16.

  5. Runs 39–40

    The first layers stop most loops. Giving experts back only in layers 0 to 14 removes 89 of the 131 loops. Giving them back in layers 15 to 29 removes 49.

  6. Runs 41–80

    More experts up front cut the loops. Its final shape, paid for by the middle layers, loops 56 times against 131. On 2,768 practice questions it scores 2.9 points above frequency pruning.

  7. Fable’s answer

    The same total, 1,320 experts, reshaped: 60 in each of the first three layers, 54 in layers 7 to 9, 48 in the last three, and 38 to 42 in the rest

    +3.7 points at the same size on 2,455 unseen hard medical exam questions (MedXpertQA), and about half the looping

Fable’s own log, all 186 steps as it wrote them
  1. Code
    First step: orient in the kernel before spending any forward pass.

    I want to confirm what the predefined objects contain (tensor names and shapes of one layer, the KEEP/KEEP44/GLOBAL lists, the STATS and STATS_GEN keys), and compute from the unpruned model's statistics how much medical routing weight each layer's 44-expert floor keeps versus the 64-expert start, and how the global-budget recipe distributes its counts. I expect uneven per-layer coverage (the README says the worst layer keeps 0.69 of hits at 44) and that GLOBAL moves slots from layers 16-28 to 0-2 and 7-9. Nothing is decided here; this is the frame for the first paired passes.

  2. Code
    The coverage table confirms the frame: at 44 per layer the floor keeps 0.68-0.95 of the unpruned model's medical routing weight (worst: layers 1, 0, 2, 9, 8, 7), the general-text coverage of the 64-expert start is already low in …

    The coverage table confirms the frame: at 44 per layer the floor keeps 0.68-0.95 of the unpruned model's medical routing weight (worst: layers 1, 0, 2, 9, 8, 7), the general-text coverage of the 64-expert start is already low in the middle layers (0.51-0.60 in layers 7-11), and GLOBAL moves slots to layers 0-2 and 7-9. Before spending passes I fix the problem sets so that selection and confirmation never share problems: four disjoint generation sets of 256 pool problems (128 MedQA + 128 MedMCQA each, G1-G4) and the remaining 976 pool problems as the teacher-forced ranking set T. I also note that the cached floor answers show a behaviour shift I should track: the floor answers 407 of 1,000 MedMCQA problems with a bare "Answer: X" (no reasoning) while the unpruned model never does. I write the sets to work/sets.json and start the notes file.

  3. Before test run 1
    Pass 1 measures the frame.

    With all 64 experts active in every layer (1,920 active, the ceiling of what any mask on this checkpoint can reach) I run a paired generation against the floor on G1 (256 pool problems, 128 MedQA + 128 MedMCQA). The reply gives the accuracy gap between the 64-expert model and the floor on these items, together with the unpruned model's accuracy on the same items from the cache. I expect the 64-expert model to sit between the floor and the unpruned model, by something like 3 to 6 points over the floor; that gap is the most my mask can recover, and the pairing standard error (about 2 points) tells me how coarse generation is as an instrument. I also want the per-answer files to see whether the 64-expert model, like the floor, answers MedMCQA questions with a bare letter, and how accurate those bare answers are.

  4. Code
    Before the calibration pass I set the mask to the floor's lists so the next forward request runs the floor as a mask (1,320 active, 44 per layer).

    I do not save it as mask.json yet (save_mask marks the best mask so far; the floor is only a reference).

  5. Code
    The reply shows mask.json is still "none": set_active only changes ACTIVE in the kernel, and the forward server reads work/mask.json.

    So I write the floor mask with save_mask() now; it will be overwritten as soon as I have a better mask, and the final mask is written at the end in any case.

  6. Before test run 2
    Pass 1 gave the frame on G1: floor 0.758, the 64-expert model 0.836, the unpruned model 0.895 (paired difference 64 vs floor +7.8 points, SE 2.6, 32 items wrong-to-right against 12 right-to-wrong).

    So the 64-expert start recovers about 57 percent of the floor-to-unpruned gap on these items, and that is the ceiling for any mask here. The floor also cuts 5.1 percent of answers at the token limit against 1.2 percent for the 64-expert model, and its mean answer is longer (493 vs 325 tokens), which points to repetition loops. Pass 2 is the calibration the protocol asks for: I set every layer to the floor's own 44 (KEEP44) and run the same paired request on G1. The edited side is now the floor as a mask on the 64-expert checkpoint, so the paired difference should be about zero; its size and the number of flips each way tell me the pairing noise of the instrument, and a non-zero result would mean the mask is not equivalent to the physical prune.

  7. Code
    The calibration passed: the floor as a mask against the floor's cached answers gives +0.8 points (SE 2.2) with 17 flips one way and 15 the other, so the mask is the physical prune up to pairing noise of about 2 points, and from …

    The calibration passed: the floor as a mask against the floor's cached answers gives +0.8 points (SE 2.2) with 17 flips one way and 15 the other, so the mask is the physical prune up to pairing noise of about 2 points, and from now on every paired difference is against that floor. Two findings from the answer files: (1) the floor's bare "Answer: X" replies (47 of 128 MedMCQA items, 15 for the 64-expert model) are not the problem, they are as accurate as its reasoned MedMCQA answers (0.72 vs 0.68); (2) 13 of the floor's 256 answers (5.1 percent) run into a repetition loop and are cut at 4,096 tokens with no answer, against 3 for the 64-expert model, so roughly half of the 7.8-point gap is lost to loops (a writing failure) and the other half to knowledge (on items where both models reason, floor 0.772 vs 0.854). Now I build the teacher-forced text sets for ranking: format B is the prompt followed directly by "Answer: X" with the correct letter (a knowledge probe without reasoning, 976 T problems), format A is the prompt followed by the unpruned model's own answer cut right after its final "Answer: X" (240 T problems with answers of at most 450 tokens), so the last token of every text is the letter whose log-probability I read. I check the tokenisation so that the letter is one token, and I check the total token count against the 524,288 limit.

  8. Code
    The texts are small (median prompt 135 tokens, longest 519), so the limit that binds is 1,024 texts per pass and the 6 GB of router logits a full 30-layer capture produces, not the token count.

    I fix the ranking set as 624 format-B texts (direct letter) plus 400 format-A texts (prompt and the unpruned model's correct reasoning, prompt plus answer at most 700 tokens), 1,024 texts in all; the router capture of this set on all 30 layers is 1,024 x 700 x 30 x 64 floats, about 5.5 GB, just inside the limit. The first read will be this set with all 64 experts active and the router captured in every layer: it is the baseline for every later ablation (same texts, same single-text mode) and the routing read I need for usage, concentration and redundancy analysis.

  9. Code

    For the routing read I need all 64 experts active again, so I reset every layer to KEEP and write the mask.

  10. Refused, not counted
    Pass 3 is the routing read and the teacher-forced baseline in one: the 1,024-text ranking set (624 direct-letter texts, 400 texts with the unpruned model's reasoning) through the 64-expert model with all experts active, returning …

    Pass 3 is the routing read and the teacher-forced baseline in one: the 1,024-text ranking set (624 direct-letter texts, 400 texts with the unpruned model's reasoning) through the 64-expert model with all experts active, returning token log-probabilities, the top-10 at every position and the router logits, selected slots and weights in all 30 layers. From it I get (a) the baseline log-probability of the correct letter in both formats, (b) the usage, weight and selection rank of every expert on prompt tokens, on answer tokens, at the header's last token and at the "Answer:" colon, in the pruned model itself rather than in the unpruned one, (c) per-text per-expert usage, which I will use as covariates when I attribute the loss of an ablation to individual experts, and (d) the margins between selected and runner-up experts, from which I can simulate to first order how any mask re-routes. The whole capture is about 5.5 GB; I expect usage to be concentrated (the README's entropy of 0.79) and a long tail of experts that the floor removes but that still carry 10 to 30 percent of the routing weight in the worst layers.

  11. Code
    The request was refused (not charged) at 6.1 GB.

    I trim the format-A texts to prompt plus answer of at most 630 tokens, which brings the padded capture to about 5 GB, and keep 1,024 texts.

  12. Before test run 3
    Pass 3 (second attempt, texts capped at 630 tokens) is the routing read and the teacher-forced baseline in one: the 1,024-text ranking set (624 direct-letter texts, 400 texts with the unpruned model's reasoning) through the …

    Pass 3 (second attempt, texts capped at 630 tokens) is the routing read and the teacher-forced baseline in one: the 1,024-text ranking set (624 direct-letter texts, 400 texts with the unpruned model's reasoning) through the 64-expert model with all experts active, returning token log-probabilities, the top-10 at every position and the router logits, selected slots and weights in all 30 layers. From it I get (a) the baseline log-probability of the correct letter in both formats, (b) the usage, weight and selection rank of every expert on prompt tokens, on answer tokens, at the header's last token and at the "Answer:" colon, in the pruned model itself rather than in the unpruned one, (c) per-text per-expert usage, which I will use as covariates when I attribute the loss of an ablation to individual experts, and (d) the margins between selected and runner-up experts, from which I can simulate to first order how any mask re-routes. I expect usage to be concentrated and a long tail of experts that the floor removes but that still carry 10 to 30 percent of the routing weight in the worst layers.

  13. Code
    The routing read finished in 160 s (output in work/fwd_4).

    I now extract everything I need from it in one block and save compact summaries, so the 5 GB of router logits need not be re-read: (a) the baseline log-probability of the correct letter in format B (direct) and format A (after the unpruned model's reasoning), plus the argmax-letter accuracy from the top-10 at the position before the letter; (b) per layer and slot, the selection count and routing weight on prompt tokens, answer tokens (format A), the header's last token and the "Answer:" colon, in the pruned model's own routing; (c) per text, per layer and slot, the routing weight over prompt tokens and over answer tokens (covariates for attribution later); (d) per layer, the weight the floor's lists would discard in each position class, and the margin between the 8th and 9th router logits. I expect the floor's discarded weight to be largest in layers 0-2 and 7-9 on prompt tokens and in layers 15, 19, 28, 29 on answer tokens, matching the full-model statistics but with the pruned model's own numbers.

  14. Before test run 4
    The read shows that the direct-letter probe (format B) is a usable instrument (mean log-prob of the correct letter -1.78, argmax accuracy 0.766 with all 64 active), while the letter after the unpruned model's reasoning is fully …

    The read shows that the direct-letter probe (format B) is a usable instrument (mean log-prob of the correct letter -1.78, argmax accuracy 0.766 with all 64 active), while the letter after the unpruned model's reasoning is fully determined (log-prob 0.0000, accuracy 1.000) and so useless as a knowledge probe; the format-A texts will serve only through the mean log-probability of the answer tokens (-0.460), a fluency measure. In the pruned model's own routing the floor's lists discard 8 percent of the prompt routing weight on average (layer 1: 20 percent), 12 percent of the answer weight (layers 28, 1, 29: 21 to 23 percent), and much more at single positions (colon: 21 percent on average, 75 percent in layer 18, 60 percent in layer 22). The median router margin between the 8th and 9th choice is only 0.05 logits, against 1.0 to 1.9 between the 1st and the 9th: the tail of each token's selection is nearly interchangeable, the head is not. Pass 4 runs the same 1,024 texts through the floor (all 30 layers at the floor's 44), again with the router captured in every layer: the paired drop in letter log-probability, argmax accuracy and fluency calibrates the teacher-forced instrument against the 7.8-point generation gap, and the floor's actual routing lets me check the first-order re-routing simulation I will use to rank candidate masks without passes.

  15. Code
    Pass 4 (the floor on the ranking set) is in work/fwd_5.

    I define a reusable metric function for every teacher-forced pass on this set (letter log-prob and argmax accuracy on the 624 direct-letter texts, mean answer-token log-prob on the 400 reasoning texts), and compare the floor with the all-64 baseline text by text. I also check the first-order re-routing simulation: from the all-64 router logits of pass 3 I predict which 8 of the floor's 44 slots each token would select under the floor mask and compare with the slots the floor actually selected in pass 4; agreement should be near-perfect in layer 0 (no upstream change) and fall with depth as the residual stream drifts. Finally I look at whether a text's drop in letter log-prob is predicted by how much routing weight it lost (a check of lost weight as a proxy).

  16. Code
    The kernel ran out of address space because I kept the 1 GB of expert arrays and two 5 GB memory maps open; I free them and keep only compact arrays.

    The numbers that did print are the calibration I wanted: on the ranking set the floor loses 0.58 nats of correct-letter log-probability in the direct probe (SE 0.14; MedQA -0.81, MedMCQA -0.36) and 2.4 points of argmax accuracy (SE 1.4), and its mean answer-token log-probability on the unpruned model's reasoning falls by 0.291 nats per token (SE 0.007), with the first two answer tokens losing 0.5 nats each (the floor prefers to start with a bare "Answer" rather than to reason). The letter drop is bimodal (most texts unchanged, 103 texts lose more than a nat, 63 gain more than a nat), so the mean letter log-prob is a coarse instrument for small cuts, while the per-token answer log-prob is precise. To separate knowledge from fluency inside that precise metric I now split the answer tokens by how surprising they are to the 64-expert model (content tokens such as drug names and diagnoses are high-surprisal; function words are low) and by the floor's drop per class, and I finish the re-routing check and the lost-weight correlation with per-layer memory maps.

  17. Code
    Instrument calibration summary from passes 3 and 4 on the ranking set: the floor loses 0.2115 nats per token on predictable answer tokens (fluency; SE 0.006), 0.374 nats on surprising content tokens (SE 0.035), 0.58 nats of …

    Instrument calibration summary from passes 3 and 4 on the ranking set: the floor loses 0.2115 nats per token on predictable answer tokens (fluency; SE 0.006), 0.374 nats on surprising content tokens (SE 0.035), 0.58 nats of correct-letter log-prob in the direct probe (SE 0.14) and 2.3 points of normalised letter probability (SE 1.3); the first-order re-routing simulation from the 64-expert logits reproduces the floor's actual routing on 99.8 percent of selections in layer 0, 95 percent in layer 1 and 83 to 90 percent deeper, and a text's lost routing weight does not predict its letter drop (correlation 0.02), so lost weight is not a usable proxy for knowledge loss and I will measure cuts directly. The first allocation question is whether moving slots toward the early layers, as the mechanical global-budget recipe does (57-64 in layers 0-2, 32-40 in layers 18-28), helps or hurts, so pass 5 measures the GLOBAL mask on the ranking set. I set the mask to GLOBAL and save it; the forward request follows.

  18. Before test run 5
    Pass 5: the GLOBAL mask (1,320 experts by medical rate across all layers: 57, 64, 62 in layers 0-2, 32 to 40 in most of layers 18-28) on the ranking set, with the router captured in layer 0 only so that the pass runs in the same …

    Pass 5: the GLOBAL mask (1,320 experts by medical rate across all layers: 57, 64, 62 in layers 0-2, 32 to 40 in most of layers 18-28) on the ranking set, with the router captured in layer 0 only so that the pass runs in the same single-text mode as the baselines. Compared with the floor (pass 4) this tells me whether slots are better spent early or late: if GLOBAL loses less on content tokens and the letter probe but more on fluency, early layers hold prompt reading and late layers hold answer writing, and the allocation has to balance the two; if it is worse on everything, the frequency-based reallocation is already too extreme.

  19. Code
    GLOBAL's pass is in work/fwd_6 (its overall mean token log-prob, which is dominated by prompt tokens, is -7.04 against -7.07 for all 64 and -7.19 for the floor, so it reads the prompt better than the floor and even than the …

    GLOBAL's pass is in work/fwd_6 (its overall mean token log-prob, which is dominated by prompt tokens, is -7.04 against -7.07 for all 64 and -7.19 for the floor, so it reads the prompt better than the floor and even than the 64-expert model, which is plausible since it has more experts in the early layers). I define one report function for all passes on the ranking set (fluency and content answer-token metrics, direct-letter log-prob, normalised probability and argmax accuracy, and the prompt-token log-prob) and apply it to the floor and GLOBAL against the all-64 baseline.

  20. Code

    Setting the mask for the restore pass of layers [0, 1, 2]: floor everywhere, 64 in these three layers (1,380 active).

  21. Before test run 6
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [0, 1, 2], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 0 loses 12/12/45/31 percent of prompt/answer/header-last/colon weight under the floor; layer 1 loses 20/22/10/14 percent of prompt/answer/header-last/colon weight under the floor; layer 2 loses 13/15/0/8 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  22. Code

    Setting the mask for the restore pass of layers [3, 4, 5]: floor everywhere, 64 in these three layers (1,380 active).

  23. Before test run 7
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [3, 4, 5], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 3 loses 11/12/0/0 percent of prompt/answer/header-last/colon weight under the floor; layer 4 loses 8/9/0/0 percent of prompt/answer/header-last/colon weight under the floor; layer 5 loses 7/8/0/0 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  24. Code

    Setting the mask for the restore pass of layers [6, 7, 8]: floor everywhere, 64 in these three layers (1,380 active).

  25. Before test run 8
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [6, 7, 8], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 6 loses 5/10/2/7 percent of prompt/answer/header-last/colon weight under the floor; layer 7 loses 11/12/0/0 percent of prompt/answer/header-last/colon weight under the floor; layer 8 loses 13/16/4/57 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  26. Code

    Setting the mask for the restore pass of layers [9, 10, 11]: floor everywhere, 64 in these three layers (1,380 active).

  27. Before test run 9
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [9, 10, 11], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 9 loses 12/16/3/26 percent of prompt/answer/header-last/colon weight under the floor; layer 10 loses 5/5/4/13 percent of prompt/answer/header-last/colon weight under the floor; layer 11 loses 7/10/11/9 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  28. Code

    Setting the mask for the restore pass of layers [12, 13, 14]: floor everywhere, 64 in these three layers (1,380 active).

  29. Before test run 10
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [12, 13, 14], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 12 loses 6/9/0/5 percent of prompt/answer/header-last/colon weight under the floor; layer 13 loses 9/15/12/51 percent of prompt/answer/header-last/colon weight under the floor; layer 14 loses 13/11/52/40 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  30. Code

    Setting the mask for the restore pass of layers [15, 16, 17]: floor everywhere, 64 in these three layers (1,380 active).

  31. Before test run 11
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [15, 16, 17], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 15 loses 9/18/13/8 percent of prompt/answer/header-last/colon weight under the floor; layer 16 loses 7/17/13/8 percent of prompt/answer/header-last/colon weight under the floor; layer 17 loses 6/9/3/49 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  32. Code

    Setting the mask for the restore pass of layers [18, 19, 20]: floor everywhere, 64 in these three layers (1,380 active).

  33. Before test run 12
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [18, 19, 20], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 18 loses 6/10/27/75 percent of prompt/answer/header-last/colon weight under the floor; layer 19 loses 5/13/0/35 percent of prompt/answer/header-last/colon weight under the floor; layer 20 loses 4/11/0/25 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  34. Code

    Setting the mask for the restore pass of layers [21, 22, 23]: floor everywhere, 64 in these three layers (1,380 active).

  35. Before test run 13
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [21, 22, 23], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 21 loses 5/8/13/26 percent of prompt/answer/header-last/colon weight under the floor; layer 22 loses 5/9/16/60 percent of prompt/answer/header-last/colon weight under the floor; layer 23 loses 4/10/2/22 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  36. Code

    Setting the mask for the restore pass of layers [24, 25, 26]: floor everywhere, 64 in these three layers (1,380 active).

  37. Before test run 14
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [24, 25, 26], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 24 loses 6/11/0/0 percent of prompt/answer/header-last/colon weight under the floor; layer 25 loses 6/8/16/6 percent of prompt/answer/header-last/colon weight under the floor; layer 26 loses 6/11/17/23 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  38. Code

    Setting the mask for the restore pass of layers [27, 28, 29]: floor everywhere, 64 in these three layers (1,380 active).

  39. Before test run 15
    This is one of ten restore passes that measure the marginal value of each 3-layer group at the floor's operating point: every layer is at the floor's 44 except layers [27, 28, 29], which get all 64 experts back.

    The paired difference against the floor pass (fluency and content answer tokens, the direct letter probe, prompt tokens) is the benefit of 60 extra experts in this group; the ten benefits together tell me where slots are worth most. In the pruned model's own routing, layer 27 loses 10/13/15/10 percent of prompt/answer/header-last/colon weight under the floor; layer 28 loses 4/23/40/7 percent of prompt/answer/header-last/colon weight under the floor; layer 29 loses 8/21/25/5 percent of prompt/answer/header-last/colon weight under the floor. I expect groups with large answer-token or header losses (early layers 0-2, and 27-29) to show up in fluency, and the middle groups in the content tokens; the router is captured in the three restored layers to see which restored experts take tokens.

  40. Code

    Setting the mask: 44 per layer ranked by the 64-expert model's OWN prompt-token selection count from the routing read (pass 3) instead of the unpruned model's medical count; it differs from the floor in 147 of 1,320 slots.

  41. Before test run 16
    This pass tests the selection lever at the floor's own counts (44 in every layer, 1,320 active), so that any difference against the floor pass comes from WHICH experts are kept and not from how many.

    Hypothesis: the floor's lists were ranked by the UNPRUNED model's routing, but after the first prune the deleted experts' tokens were redistributed, so the pruned model's own usage ranking differs (36 to 42 of 44 overlap per layer) and keeps 2 to 8 percent more of its prompt routing weight in layers 1, 13, 14, 15, 17, 18. If the pruned model's own usage is what matters, this mask should beat the floor on fluency and the letter probe at zero cost.

  42. Code
    Setting the mask: 44 per layer ranked by NEED, the sum over prompt tokens where an expert is selected of its router-logit margin over the 9th-ranked expert (the router's own estimate of how much worse the replacement would be); …

    Setting the mask: 44 per layer ranked by NEED, the sum over prompt tokens where an expert is selected of its router-logit margin over the 9th-ranked expert (the router's own estimate of how much worse the replacement would be); 181 slots differ from the floor.

  43. Before test run 17
    This pass tests the selection lever at the floor's own counts (44 in every layer, 1,320 active), so that any difference against the floor pass comes from WHICH experts are kept and not from how many.

    Hypothesis: an expert that is selected often but always by a hair over the runner-up is replaceable (the median 8th-to-9th margin is only 0.05 logits), while one selected less often but decisively is not; ranking by margin-weighted usage should keep the irreplaceable experts and beat both the floor and the plain own-count ranking. If it does worse, the router's margins do not reflect output usefulness and plain counts are the better proxy.

  44. Code
    Setting the mask: the floor's lists, but in 26 layers the 56 experts outside the floor that carry at least 5 percent of the routing weight at the header's last token or at the 'Answer:' colon (once-per-text positions that …

    Setting the mask: the floor's lists, but in 26 layers the 56 experts outside the floor that carry at least 5 percent of the routing weight at the header's last token or at the 'Answer:' colon (once-per-text positions that frequency undercounts) replace the floor's lowest-count experts, so counts stay 44.

  45. Before test run 18
    This pass tests the selection lever at the floor's own counts (44 in every layer, 1,320 active), so that any difference against the floor pass comes from WHICH experts are kept and not from how many.

    Hypothesis: the once-per-text positions (the header token that predicts the first answer token, and the colon that predicts the letter) lose 11 and 21 percent of their routing weight under the floor on average and up to 75 percent in single layers; restoring their 56 experts in place of the 56 least-used floor experts should repair the first-token distribution (the floor's P(Answer first) of 0.40 on MedMCQA against 0.11 for the 64-expert model) and the letter probe, at little cost elsewhere because the displaced experts are the least used.

  46. Code

    Setting the mask: NEED ranking plus the 56 position experts forced in, 44 per layer.

  47. Before test run 19
    This pass tests the selection lever at the floor's own counts (44 in every layer, 1,320 active), so that any difference against the floor pass comes from WHICH experts are kept and not from how many.

    This combines the two selection ideas (margin-weighted ranking and forced position experts); if their gains add up, it is the within-layer rule I will carry into the allocation step.

  48. Code

    Setting the mask for the deeper-cut pass of layers [0, 1, 2]: floor everywhere, and in these three layers only the 32 most used of the floor's 44 (by the floor's own criterion, the unpruned model's medical count), 1,284 active.

  49. Before test run 20
    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to …

    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to +0.08, letter +0.11 to +0.23) and are zero or negative for layers 9-11, 21-23 and 24-26 (restoring 9-11 and 24-26 even lowers question-token log-prob by 0.15 and 0.21). Those three groups, plus 0-2 and 27-29 (fluency and prompt reading only, no content gain), are the donor candidates; this pass measures the other side of the ledger for one of them, the cost of cutting it below the floor. This is a deeper-cut pass, the mirror of the restore passes: every layer at the floor's 44 except layers [0, 1, 2], which drop to 32 (the 12 least-used floor experts per layer removed). The loss against the floor pass is the cost of taking 36 slots from this group; together with the restore benefits (60 slots added) it gives the marginal value of a slot on both sides of 44, which is what the allocation needs. A group whose cut costs less per slot than another group's restoration gains is a donor.

  50. Code

    Setting the mask for the deeper-cut pass of layers [9, 10, 11]: floor everywhere, and in these three layers only the 32 most used of the floor's 44 (by the floor's own criterion, the unpruned model's medical count), 1,284 active.

  51. Before test run 21
    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to …

    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to +0.08, letter +0.11 to +0.23) and are zero or negative for layers 9-11, 21-23 and 24-26 (restoring 9-11 and 24-26 even lowers question-token log-prob by 0.15 and 0.21). Those three groups, plus 0-2 and 27-29 (fluency and prompt reading only, no content gain), are the donor candidates; this pass measures the other side of the ledger for one of them, the cost of cutting it below the floor. This is a deeper-cut pass, the mirror of the restore passes: every layer at the floor's 44 except layers [9, 10, 11], which drop to 32 (the 12 least-used floor experts per layer removed). The loss against the floor pass is the cost of taking 36 slots from this group; together with the restore benefits (60 slots added) it gives the marginal value of a slot on both sides of 44, which is what the allocation needs. A group whose cut costs less per slot than another group's restoration gains is a donor.

  52. Code

    Setting the mask for the deeper-cut pass of layers [21, 22, 23]: floor everywhere, and in these three layers only the 32 most used of the floor's 44 (by the floor's own criterion, the unpruned model's medical count), 1,284 active.

  53. Before test run 22
    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to …

    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to +0.08, letter +0.11 to +0.23) and are zero or negative for layers 9-11, 21-23 and 24-26 (restoring 9-11 and 24-26 even lowers question-token log-prob by 0.15 and 0.21). Those three groups, plus 0-2 and 27-29 (fluency and prompt reading only, no content gain), are the donor candidates; this pass measures the other side of the ledger for one of them, the cost of cutting it below the floor. This is a deeper-cut pass, the mirror of the restore passes: every layer at the floor's 44 except layers [21, 22, 23], which drop to 32 (the 12 least-used floor experts per layer removed). The loss against the floor pass is the cost of taking 36 slots from this group; together with the restore benefits (60 slots added) it gives the marginal value of a slot on both sides of 44, which is what the allocation needs. A group whose cut costs less per slot than another group's restoration gains is a donor.

  54. Code

    Setting the mask for the deeper-cut pass of layers [24, 25, 26]: floor everywhere, and in these three layers only the 32 most used of the floor's 44 (by the floor's own criterion, the unpruned model's medical count), 1,284 active.

  55. Before test run 23
    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to …

    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to +0.08, letter +0.11 to +0.23) and are zero or negative for layers 9-11, 21-23 and 24-26 (restoring 9-11 and 24-26 even lowers question-token log-prob by 0.15 and 0.21). Those three groups, plus 0-2 and 27-29 (fluency and prompt reading only, no content gain), are the donor candidates; this pass measures the other side of the ledger for one of them, the cost of cutting it below the floor. This is a deeper-cut pass, the mirror of the restore passes: every layer at the floor's 44 except layers [24, 25, 26], which drop to 32 (the 12 least-used floor experts per layer removed). The loss against the floor pass is the cost of taking 36 slots from this group; together with the restore benefits (60 slots added) it gives the marginal value of a slot on both sides of 44, which is what the allocation needs. A group whose cut costs less per slot than another group's restoration gains is a donor.

  56. Code

    Setting the mask for the deeper-cut pass of layers [27, 28, 29]: floor everywhere, and in these three layers only the 32 most used of the floor's 44 (by the floor's own criterion, the unpruned model's medical count), 1,284 active.

  57. Before test run 24
    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to …

    The ten restore passes are in: fluency benefits are spread evenly over all groups (0.016 to 0.031 nats per group), while content-token and letter-probe benefits concentrate in layers 6-8, 12-14, 15-17 and 18-20 (content +0.07 to +0.08, letter +0.11 to +0.23) and are zero or negative for layers 9-11, 21-23 and 24-26 (restoring 9-11 and 24-26 even lowers question-token log-prob by 0.15 and 0.21). Those three groups, plus 0-2 and 27-29 (fluency and prompt reading only, no content gain), are the donor candidates; this pass measures the other side of the ledger for one of them, the cost of cutting it below the floor. This is a deeper-cut pass, the mirror of the restore passes: every layer at the floor's 44 except layers [27, 28, 29], which drop to 32 (the 12 least-used floor experts per layer removed). The loss against the floor pass is the cost of taking 36 slots from this group; together with the restore benefits (60 slots added) it gives the marginal value of a slot on both sides of 44, which is what the allocation needs. A group whose cut costs less per slot than another group's restoration gains is a donor.

  58. Code
    Results of the three chains (all on the ranking set, deltas vs the floor unless stated).

    Restore passes (floor plus one 3-layer group at 64): fluency gains are spread evenly, +0.016 to +0.031 per group; content-token gains concentrate in layers 6-8 (+0.084), 12-14 (+0.077), 18-20 (+0.076) and 15-17 (+0.069) and are zero or negative for 0-2, 9-11, 21-23, 24-26; the letter probe gains most from 18-20 (+0.23), 6-8, 3-5, 12-14. Deeper cuts (floor with one group at 32): content costs are large for 21-23 (-0.133), 24-26 (-0.125), 9-11 (-0.107) and 0-2 (-0.073) but nil for 27-29 (+0.017), while fluency costs are similar everywhere (-0.019 to -0.031). So the value curves are convex: groups whose restoration gave nothing still lose when cut, and the only cheap donor for content is 27-29; the receivers are 6-8 and 12-20. Selection at 44 per layer: ranking by the pruned model's own usage (own44) or by router margins (need44) is WORSE than the floor on fluency and content (content -0.51 and -0.58 against -0.37), so the unpruned model's medical counts stay the base ranking; forcing in 56 position experts (floor_pos44) restores the first-token behaviour (P(Answer first) on MedMCQA 0.12, equal to the 64-expert model) and the letter probe (-0.135 vs -0.58) but costs content (-0.486) because it displaces experts of rank 39-44. Decision: moderate reallocation toward the receivers paid mostly by 27-29, base ranking by medical count, and only the dozen strongest position experts forced in. I write the notes and build the candidates; this block also builds three selection variants at 44 per layer for calibration: an approximation of keep_freqgen44 within the 64 (known to score 3 points below the floor on the hidden-style benchmark, so its teacher-forced signature tells me which of my metrics tracks that outcome), ranking by MedQA-only counts, and ranking by weight x output norm.

  59. Before test run 25
    Candidate A on the ranking set: the moderate reallocation (layers 6-8 and 12-20 at 49, 3-5 at 44, 0-2 and 9-11 at 42, 21-26 at 41, 27-29 at 34; 1,320 active), medical-count ranking within layers plus the strongest header/colon …

    Candidate A on the ranking set: the moderate reallocation (layers 6-8 and 12-20 at 49, 3-5 at 44, 0-2 and 9-11 at 42, 21-26 at 41, 27-29 at 34; 1,320 active), medical-count ranking within layers plus the strongest header/colon experts forced in (which changes only 4 slots against plain medical count at these counts). Against the floor I expect a content gain of roughly +0.1 (the receivers' restore gains were +0.07 to +0.08 per group for 60 experts; here they get 60 extra experts in all, spread over 12 layers) and a fluency change near zero (donors and receivers trade similar fluency per expert); a content loss would mean the donors' marginal experts matter more than the group cuts suggested.

  60. Code

    Setting candidate B, the aggressive version of the same reallocation: receivers 6-8 and 12-20 at 54, 0-2 at 40, 9-11 at 36, 21-26 at 38, 27-29 at 28 (1,320 active), medical-count ranking plus the strongest position experts.

  61. Before test run 26
    Candidate B doubles candidate A's transfers.

    If the value curves are as convex as the cut passes suggest (ranks 33-44 of the donor layers carry content), B should lose content relative to A while gaining little from ranks 50-54 of the receivers; if B beats A, the receivers' marginal value is still high at 54 and I should push further.

  62. Code

    Setting an approximation of keep_freqgen44 within the 64 (44 per layer ranked by the unpruned model's prompt rate plus answer rate on the 2,000 pool answers).

  63. Before test run 27
    Calibration pass: this list is known from the scored checkpoint to lose 3 points of accuracy against the floor on the hidden-style benchmark while gaining on instruction following.

    Its teacher-forced signature against the floor tells me which of my metrics tracks that outcome: I expect fluency to improve (it keeps answer-writing experts) and content to fall; if content falls, content is the metric to protect.

  64. Code

    Setting 44 per layer ranked by the unpruned model's MedQA-only counts (the medical corpus split by source), 125 slots different from the floor.

  65. Before test run 28
    Selection test: the hidden benchmark is USMLE-style vignettes, so ranking by routing on MedQA text alone may keep more vignette-reasoning experts than the mixed medical corpus does; a content gain on the MedQA half of the …

    Selection test: the hidden benchmark is USMLE-style vignettes, so ranking by routing on MedQA text alone may keep more vignette-reasoning experts than the mixed medical corpus does; a content gain on the MedQA half of the reasoning texts without a loss elsewhere would make it the base ranking.

  66. Code
    Setting 44 per layer ranked by the unpruned model's summed routing weight times expert output norm on the medical corpus (the REAP numerator, a count weighted by how large each selection's contribution is), 126 slots different …

    Setting 44 per layer ranked by the unpruned model's summed routing weight times expert output norm on the medical corpus (the REAP numerator, a count weighted by how large each selection's contribution is), 126 slots different from the floor.

  67. Before test run 29
    Selection test: experts whose outputs are large per selection should matter more than their count suggests; the pure REAP mean failed at 44 of 128 because it favours rarely used experts, but the summed version keeps the frequency …

    Selection test: experts whose outputs are large per selection should matter more than their count suggests; the pure REAP mean failed at 44 of 128 because it favours rarely used experts, but the summed version keeps the frequency weighting. A content or fluency gain against the floor would make it the base ranking.

  68. Code

    Setting candidate A again (the moderate reallocation, 1,320 active) for a paired generation pass.

  69. Before test run 30
    The teacher-forced calibration pass changed my reading of the instruments: the freqgen44 list, which is known to lose 3 points against the floor on the hidden-style benchmark, is BETTER than the floor on every answer-token metric …

    The teacher-forced calibration pass changed my reading of the instruments: the freqgen44 list, which is known to lose 3 points against the floor on the hidden-style benchmark, is BETTER than the floor on every answer-token metric (fluency +0.033, content +0.18) and worse only on question-token log-prob (-0.32) and marginally on the normalised letter probability; so the answer-token metrics measure imitation of the unpruned model's writing, not accuracy, and the teacher-forced instruments cannot rank knowledge effects of this size. From here the arbiter is paired generation. Candidate A (receivers 6-8 and 12-20 at 49, donors 27-29 at 34, 21-26 at 41, 0-2 and 9-11 at 42; medical-count ranking plus the strongest position experts) was about equal to the floor on every teacher-forced metric with small gains (first-token behaviour restored, letter probe +0.11); candidate B, twice the transfers, was clearly worse everywhere, so the value curves are convex and transfers must stay moderate. This pass measures A against the floor on G2 (256 fresh problems): I expect a small positive difference, and I will read the number of answers cut at the token limit as the loop measure.

  70. Code

    Setting the mechanical GLOBAL mask (1,320 by medical rate across layers) for a paired generation pass on G2.

  71. Before test run 31
    GLOBAL is one of the comparison arms of the final evaluation and the strongest alternative allocation (57-64 experts in layers 0-2, 32-40 in 18-28).

    Teacher-forced it reads the question better than the floor (+0.32 on question tokens) but writes worse (content -0.19) and answers MedMCQA directly 72 percent of the time. Its paired generation accuracy against the floor on the same G2 problems tells me whether reading or writing capacity wins in practice, and it anchors where candidate A stands relative to the arm I most need to beat.

  72. Code

    Setting the freqgen44 approximation (44 per layer by prompt plus answer rate of the unpruned model) for a paired generation pass on G2.

  73. Before test run 32
    Calibration of the practice-generation instrument itself: this list scored 3.0 points (SE 1.4) below the floor on the hidden-style benchmark.

    If it also loses on G2, practice generation tracks the benchmark and I can trust it for the final choice; if it wins on G2, the practice problems reward imitation of the unpruned model's writing in a way the hard benchmark does not, and I must weigh the MedQA half and the cut share more than the overall accuracy.

  74. Code

    Setting candidate E60: layers 0-2 at 60, paid by 21-26 at 41, 3-5 and 9-11 at 42, 12-17 at 41; medical-count ranking, 1,320 active.

  75. Before test run 33
    On G2 candidate A lost 2.3 points to the floor (SE 2.0; +0.8 on MedQA, -5.5 on MedMCQA) and looped MORE (15 answers cut at the token limit against the floor's 9), while GLOBAL was -0.8 (+1.6 MedQA, -3.1 MedMCQA) and looped LEAST …

    On G2 candidate A lost 2.3 points to the floor (SE 2.0; +0.8 on MedQA, -5.5 on MedMCQA) and looped MORE (15 answers cut at the token limit against the floor's 9), while GLOBAL was -0.8 (+1.6 MedQA, -3.1 MedMCQA) and looped LEAST (5 cut). Both A and GLOBAL gain slightly on the USMLE-style half and lose on the short-question half. Loops are the half of the floor's deficit that TF metrics do not see, and the two masks differ most in layers 0-2 (A 42, GLOBAL 57-64) and 27-29 (A 34, GLOBAL 48/35/46). This pass tests the early-layer hypothesis in isolation: layers 0-2 at 60 (the floor loses 12 to 20 percent of its answer-token routing weight there, the most of any early layer), paid by small cuts in the middle layers. If loops fall to GLOBAL's level and MedQA accuracy holds or rises, the early layers are the loop lever.

  76. Code

    Setting candidate L54: layers 27-29 at 54, paid by 21-26 at 39; medical-count ranking, 1,320 active.

  77. Before test run 34
    The mirror test for the late layers: 27-29 at 54 (the floor loses 21 to 23 percent of the answer-token weight in layers 28 and 29, the largest losses of all layers), paid by layers 21-26 (whose restoration gave no content or …

    The mirror test for the late layers: 27-29 at 54 (the floor loses 21 to 23 percent of the answer-token weight in layers 28 and 29, the largest losses of all layers), paid by layers 21-26 (whose restoration gave no content or letter gain). If candidate A's extra loops came from cutting 27-29 to 34, this mask should loop less than the floor; if loops are unchanged, the late layers are not the loop lever and the early layers (E60) are the remaining candidate.

  78. Code

    Setting all 64 experts active for the loop instrument's ceiling measurement.

  79. Before test run 35
    Loop instrument: 64 loop-prone practice problems (items on which the floor ran into a repetition loop at least once), 4 samples each per model, 2,048 max tokens (normal answers end well below that, so a cut answer is a loop).

    On G1 the floor's loops were not item-deterministic (its cached run and its live run looped on 13 and 11 items with only 4 in common) and the same items were answered correctly when they did not loop, so each loop costs about a full correct answer; the floor loops on 4-5 percent of answers and the 64-expert model on about 1 percent, which is roughly 3 of the 7.8 points between them. Teacher-forced metrics do not see this failure (candidate A looked equal to the floor but looped 15 times on G2 against 9). This pass measures the ceiling: the 64-expert model's loop count on these items against the floor's, paired.

  80. Code

    Setting candidate E60 (layers 0-2 at 60, middle layers trimmed) for the loop instrument.

  81. Before test run 36
    Loop instrument: 64 loop-prone practice problems (items on which the floor ran into a repetition loop at least once), 4 samples each per model, 2,048 max tokens (normal answers end well below that, so a cut answer is a loop).

    On G1 the floor's loops were not item-deterministic (its cached run and its live run looped on 13 and 11 items with only 4 in common) and the same items were answered correctly when they did not loop, so each loop costs about a full correct answer; the floor loops on 4-5 percent of answers and the 64-expert model on about 1 percent, which is roughly 3 of the 7.8 points between them. Teacher-forced metrics do not see this failure (candidate A looked equal to the floor but looped 15 times on G2 against 9). Early-layer hypothesis: GLOBAL, with 57-64 experts in layers 0-2, looped least on G2 (5 against the floor's 9 and A's 15). If E60 loops far less than the floor on these items, the early layers are the loop lever.

  82. Code

    Setting candidate L54 (layers 27-29 at 54, layers 21-26 at 39) for the loop instrument.

  83. Before test run 37
    Loop instrument: 64 loop-prone practice problems (items on which the floor ran into a repetition loop at least once), 4 samples each per model, 2,048 max tokens (normal answers end well below that, so a cut answer is a loop).

    On G1 the floor's loops were not item-deterministic (its cached run and its live run looped on 13 and 11 items with only 4 in common) and the same items were answered correctly when they did not loop, so each loop costs about a full correct answer; the floor loops on 4-5 percent of answers and the 64-expert model on about 1 percent, which is roughly 3 of the 7.8 points between them. Teacher-forced metrics do not see this failure (candidate A looked equal to the floor but looped 15 times on G2 against 9). Late-layer hypothesis: layers 28 and 29 lose the most answer-token routing weight under the floor (21 to 23 percent) and candidate A, which cut them to 34, looped most. If L54 loops far less than the floor, the late layers are the loop lever.

  84. Code

    Setting GLOBAL for the loop instrument.

  85. Before test run 38
    Loop instrument: 64 loop-prone practice problems (items on which the floor ran into a repetition loop at least once), 4 samples each per model, 2,048 max tokens (normal answers end well below that, so a cut answer is a loop).

    On G1 the floor's loops were not item-deterministic (its cached run and its live run looped on 13 and 11 items with only 4 in common) and the same items were answered correctly when they did not loop, so each loop costs about a full correct answer; the floor loops on 4-5 percent of answers and the 64-expert model on about 1 percent, which is roughly 3 of the 7.8 points between them. Teacher-forced metrics do not see this failure (candidate A looked equal to the floor but looped 15 times on G2 against 9). GLOBAL's loop count on the same items, for comparison with E60 (which shares its heavy early layers but keeps 44 in 27-29 and does not answer questions directly as often).

  86. Code

    Setting the bisection mask: layers 0-14 at 64, layers 15-29 at the floor's 44.

  87. Before test run 39
    The loop instrument's ceiling is decisive: on the 64 loop-prone problems (4 samples each) the floor loops in 131 of 256 answers and scores 0.406, the 64-expert model loops in 16 and scores 0.777 (paired SE on the loop difference …

    The loop instrument's ceiling is decisive: on the 64 loop-prone problems (4 samples each) the floor loops in 131 of 256 answers and scores 0.406, the 64-expert model loops in 16 and scores 0.777 (paired SE on the loop difference 12). Loops are the dominant failure of the floor on these items and the 64-expert model nearly eliminates them, so the question is which of the 600 extra experts do it. This is a bisection: floor everywhere except one half of the layers at 64 (1,620 active, over budget, allowed for measurement). If one half carries most of the 115-loop reduction, I split it further; if both halves carry about half, the loop protection is distributed and no allocation within 1,320 can buy much of it. This pass: layers 0-14 restored.

  88. Code
    Notes update while the loop-instrument chain runs (no mask change in this block; the chain's own set-mask blocks set the masks for its passes).

    Findings since the last notes: (1) the teacher-forced answer-token metrics are imitation metrics, not accuracy metrics: the freqgen44 list (known to lose 3 points on the hidden-style benchmark) beats the floor on them by a wide margin, and on G2 it loses 3.5 points (SE 2.4) with 18 loops against 9, so practice generation does track the benchmark; (2) on G2, candidate A -2.3, GLOBAL -0.8, E60 +0.8, L54 -0.8 against the floor, all four +0.8 to +1.6 on the MedQA half; (3) the loop instrument (64 loop-prone problems x 4 samples) is the sharp instrument: floor 131 loops of 256 and accuracy 0.406 on these items, all-64 16 loops and 0.777, E60 76, L54 95, GLOBAL 48 (40 on MedQA items alone, so not an artefact of bare answers); loops are not item-deterministic (the floor's two runs on G1 shared only 4 of 13 and 11 loops) and an item answered without a loop is usually answered correctly, so each loop costs about a full correct answer. The early layers 0-2 carry the most loop protection per slot, the late layers 27-29 next; GLOBAL's allocation (which fills 0-2 and 7-9) is the best measured so far.

  89. Code

    Setting the bisection mask: layers 15-29 at 64, layers 0-14 at the floor's 44.

  90. Before test run 40
    The loop instrument's ceiling is decisive: on the 64 loop-prone problems (4 samples each) the floor loops in 131 of 256 answers and scores 0.406, the 64-expert model loops in 16 and scores 0.777 (paired SE on the loop difference …

    The loop instrument's ceiling is decisive: on the 64 loop-prone problems (4 samples each) the floor loops in 131 of 256 answers and scores 0.406, the 64-expert model loops in 16 and scores 0.777 (paired SE on the loop difference 12). Loops are the dominant failure of the floor on these items and the 64-expert model nearly eliminates them, so the question is which of the 600 extra experts do it. This is a bisection: floor everywhere except one half of the layers at 64 (1,620 active, over budget, allowed for measurement). If one half carries most of the 115-loop reduction, I split it further; if both halves carry about half, the loop protection is distributed and no allocation within 1,320 can buy much of it. This pass: layers 15-29 restored.

  91. Code

    Setting candidate E64: layers 0-2 at 64 (all kept experts), paid by 21-26 at 40, 12-17 at 40, 3-5 and 9-11 at 42; 1,320 active.

  92. Before test run 41
    Candidate E60 (layers 0-2 at 60, paid by small cuts in the middle layers) halves the floor's loops on the prone items: 76 against 131 (paired SE 13), accuracy on these items 0.574 against 0.406, and on G2 it was +0.8 over the …

    Candidate E60 (layers 0-2 at 60, paid by small cuts in the middle layers) halves the floor's loops on the prone items: 76 against 131 (paired SE 13), accuracy on these items 0.574 against 0.406, and on G2 it was +0.8 over the floor with +1.6 on MedQA. The early layers are the loop lever the frequency recipe misses: the floor loses 12 to 20 percent of the answer-token routing weight in layers 0-2, the most of any early layer, and every generated token passes through them. This pass pushes the early layers to all 64: if loops fall further than E60's 76, the last four experts per early layer still matter and the early layers should be full; the cost is 12 more slots from the middle layers, which the G2 passes will price.

  93. Code
    Bisection on the loop instrument: layers 0-14 restored to 64 (others at the floor) remove 89 of the floor's 131 loops (paired SE 12); layers 15-29 restored remove 49; the halves overlap (their sum exceeds the 115 the full 64 …

    Bisection on the loop instrument: layers 0-14 restored to 64 (others at the floor) remove 89 of the floor's 131 loops (paired SE 12); layers 15-29 restored remove 49; the halves overlap (their sum exceeds the 115 the full 64 removes), and the first half dominates. Together with E60 (0-2 alone: -55) and GLOBAL (0-2 and 7-9 heavy: -83) this puts most of the loop protection in layers 0-9, which is also where the floor discards the most routing weight (layers 1, 0, 2, 8, 9, 7 lose 11 to 20 percent of prompt weight and 12 to 22 percent of answer weight). Recording this in the notes; the queued passes test 0-2 at 64, 0-2 plus 7-9, both ends together, and GLOBAL's allocation with the first-token experts forced in.

  94. Code

    Setting candidate GL2: layers 0-2 at 60 and 7-9 at 52 (the layers GLOBAL also fills), paid by 21-26 at 39, 12-17 at 40, 10-11 at 41, 3-5 and 27-29 at 42; 1,320 active.

  95. Before test run 42
    Candidate E60 (layers 0-2 at 60, paid by small cuts in the middle layers) halves the floor's loops on the prone items: 76 against 131 (paired SE 13), accuracy on these items 0.574 against 0.406, and on G2 it was +0.8 over the …

    Candidate E60 (layers 0-2 at 60, paid by small cuts in the middle layers) halves the floor's loops on the prone items: 76 against 131 (paired SE 13), accuracy on these items 0.574 against 0.406, and on G2 it was +0.8 over the floor with +1.6 on MedQA. The early layers are the loop lever the frequency recipe misses: the floor loses 12 to 20 percent of the answer-token routing weight in layers 0-2, the most of any early layer, and every generated token passes through them. This pass adds GLOBAL's other receivers, layers 7-9 (GLOBAL gives them 53 to 61; the floor loses 11 to 16 percent of their answer weight), on top of the early layers, to see whether loop protection extends into the early-middle layers or sits in 0-2 alone.

  96. Code

    Setting candidate EL: layers 0-2 at 60 and 27-29 at 54 together, paid by 21-26 at 38, 12-17 and 9-11 at 40, 3-5 at 42; 1,320 active, medical-count ranking.

  97. Before test run 43
    Loop instrument so far (64 prone problems x 4 samples; floor 131 loops): all 64 experts 16, E60 (layers 0-2 at 60) 76, L54 (layers 27-29 at 54) 95.

    Both ends of the network carry loop protection, the early layers more per slot (48 slots bought 55 loops, 30 late slots bought 36). This pass combines the two: if the reductions add (about 40 loops left, near the 64-expert model's 16), the loop failure is fixable within budget by moving slots from the middle to both ends; the middle cuts' cost in accuracy is priced separately on G2.

  98. Code

    Candidate EL again, for the paired accuracy pass on G2.

  99. Before test run 44
    Loop instrument so far (64 prone problems x 4 samples; floor 131 loops): all 64 experts 16, E60 (layers 0-2 at 60) 76, L54 (layers 27-29 at 54) 95.

    Both ends of the network carry loop protection, the early layers more per slot (48 slots bought 55 loops, 30 late slots bought 36). Accuracy side of candidate EL on G2 against the floor: the middle layers 12-17 and 21-26 lose 4 to 6 experts each, which the teacher-forced cuts priced as the costliest region for content, so this pass shows whether the loop gains outweigh the content cost on ordinary problems.

  100. Code

    Candidate E64 (layers 0-2 at 64) for the paired accuracy pass on G2.

  101. Before test run 45
    Loop instrument so far (64 prone problems x 4 samples; floor 131 loops): all 64 experts 16, E60 (layers 0-2 at 60) 76, L54 (layers 27-29 at 54) 95.

    Both ends of the network carry loop protection, the early layers more per slot (48 slots bought 55 loops, 30 late slots bought 36). Accuracy side of E64 on G2 against the floor, to pair with its loop count.

  102. Code
    Setting GLh: GLOBAL's exact per-layer counts, medical-count ranking, with the header-token experts of layers 0-2 and 12-14 (at least 10 percent of the routing weight at the token that predicts the first answer token) forced in; a …

    Setting GLh: GLOBAL's exact per-layer counts, medical-count ranking, with the header-token experts of layers 0-2 and 12-14 (at least 10 percent of the routing weight at the token that predicts the first answer token) forced in; a handful of slots differ from GLOBAL.

  103. Before test run 46
    GLOBAL on the loop instrument: 48 loops against the floor's 131 (the 64-expert model: 16; E60: 76; L54: 95), and 40 against 82 on the MedQA items alone, so its protection is not an artefact of its bare answers.

    GLOBAL's allocation (0-2 at 57-64, 7-9 at 53-61, 27 and 29 at 46-48, the rest 32-45) is the best loop allocation measured so far; its two weaknesses are the bare-answer habit on short questions (P(Answer first) 0.72 on MedMCQA, which cost it 3 points there on G2) and thin layers 18-26. GLh keeps GLOBAL's allocation and only forces in the first-token experts; the loop count should stay near 48 if the bare answers were not what protected GLOBAL.

  104. Code

    GLh again, for the paired accuracy pass on G2.

  105. Before test run 47
    GLOBAL on the loop instrument: 48 loops against the floor's 131 (the 64-expert model: 16; E60: 76; L54: 95), and 40 against 82 on the MedQA items alone, so its protection is not an artefact of its bare answers.

    GLOBAL's allocation (0-2 at 57-64, 7-9 at 53-61, 27 and 29 at 46-48, the rest 32-45) is the best loop allocation measured so far; its two weaknesses are the bare-answer habit on short questions (P(Answer first) 0.72 on MedMCQA, which cost it 3 points there on G2) and thin layers 18-26. Accuracy side of GLh on G2: against GLOBAL's 0.801 (MedQA 0.867, MedMCQA 0.734, 97 bare answers), I expect the same MedQA accuracy with fewer bare answers and a better MedMCQA score.

  106. Code
    Notes update (no mask change here).

    New results: on the loop instrument E64 (0-2 at 64) 61 loops, GL2 (0-2 at 60 plus 7-9 at 52, paid by 10-17 and 21-26) 65, EL (0-2 at 60 plus 27-29 at 54, paid by 9-17 and 21-26) 74, so the donors matter as much as the receivers: cutting layers 9-17 costs loop protection (bisection: layers 3-14 hold about 20 loops), and GLOBAL's donors (15-26) are the cheap ones. On G2 accuracy, EL +1.2 (MedQA +2.3, 9 cut) and E64 +1.2 (MedQA +1.6, MedMCQA +0.8, 7 cut) are the best so far, GLOBAL -0.8 because of its bare answers on MedMCQA. Queued: GLh (GLOBAL's counts plus first-token experts), GLX (smoothed GLOBAL), GLE (both ends plus 7-9, donors 15-26 only).

  107. Code

    Setting GLX, a smoothed version of GLOBAL's allocation: 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; header experts forced in; 1,320 active.

  108. Before test run 48
    GLOBAL on the loop instrument: 48 loops against the floor's 131 (the 64-expert model: 16; E60: 76; L54: 95), and 40 against 82 on the MedQA items alone, so its protection is not an artefact of its bare answers.

    GLOBAL's allocation (0-2 at 57-64, 7-9 at 53-61, 27 and 29 at 46-48, the rest 32-45) is the best loop allocation measured so far; its two weaknesses are the bare-answer habit on short questions (P(Answer first) 0.72 on MedMCQA, which cost it 3 points there on G2) and thin layers 18-26. GLX keeps GLOBAL's receivers but spreads the donors more evenly and keeps 18-20 at 42 instead of 32-39; if its loop count matches GLOBAL's, the smoother allocation is preferable for content.

  109. Code

    GLX again, for the paired accuracy pass on G2.

  110. Before test run 49
    GLOBAL on the loop instrument: 48 loops against the floor's 131 (the 64-expert model: 16; E60: 76; L54: 95), and 40 against 82 on the MedQA items alone, so its protection is not an artefact of its bare answers.

    GLOBAL's allocation (0-2 at 57-64, 7-9 at 53-61, 27 and 29 at 46-48, the rest 32-45) is the best loop allocation measured so far; its two weaknesses are the bare-answer habit on short questions (P(Answer first) 0.72 on MedMCQA, which cost it 3 points there on G2) and thin layers 18-26. Accuracy side of GLX on G2.

  111. Code

    Setting candidate GLE: receivers 0-2 at 60, 7-9 at 50, 27-29 at 50; donors 15-26 at 37; 3-6 and 10-14 kept at 44; header experts forced; 1,320 active.

  112. Before test run 50
    Where the donors sit matters for loops: EL (0-2 at 60 and 27-29 at 54, paid by 9-17 and 21-26) loops 74 times on the prone items, no better than E60's 76 although it adds the late layers, while GLOBAL, whose donors are layers …

    Where the donors sit matters for loops: EL (0-2 at 60 and 27-29 at 54, paid by 9-17 and 21-26) loops 74 times on the prone items, no better than E60's 76 although it adds the late layers, while GLOBAL, whose donors are layers 15-26, loops 48 times; the bisection agrees (layers 3-14 hold about 20 loops of protection). On ordinary problems EL is the best so far (+1.2 over the floor on G2, +2.3 on MedQA, 9 answers cut) and GLOBAL the weakest of the reallocations (-0.8, 97 bare answers). GLE takes EL's receivers (both ends, plus 7-9) and GLOBAL's donors (15-26 only), leaving layers 3-6 and 10-14 untouched. If it loops like GLOBAL (about 50) while keeping EL's accuracy, it is the final family.

  113. Code
    Notes update (no mask change).

    GLh (GLOBAL's counts with four first-token experts forced in) loops 57 times on the prone items against GLOBAL's 48, and on G2 scores 0.789 (-2.0 against the floor, MedQA 0.828 against GLOBAL's 0.867 with only four slots changed), which shows that single G2 passes carry about 2 points of sampling noise and that forcing the first-token experts in did not stop the bare answers (75 against 97). GLX (smoothed GLOBAL allocation) loops 56 times. Across all passes the early-layers-at-64 family (E60, E64, EL) is the only one consistently at or above the floor on G2 (+0.8 to +1.2) while cutting loops by half.

  114. Code

    GLE again, for the paired accuracy pass on G2.

  115. Before test run 51
    Where the donors sit matters for loops: EL (0-2 at 60 and 27-29 at 54, paid by 9-17 and 21-26) loops 74 times on the prone items, no better than E60's 76 although it adds the late layers, while GLOBAL, whose donors are layers …

    Where the donors sit matters for loops: EL (0-2 at 60 and 27-29 at 54, paid by 9-17 and 21-26) loops 74 times on the prone items, no better than E60's 76 although it adds the late layers, while GLOBAL, whose donors are layers 15-26, loops 48 times; the bisection agrees (layers 3-14 hold about 20 loops of protection). On ordinary problems EL is the best so far (+1.2 over the floor on G2, +2.3 on MedQA, 9 answers cut) and GLOBAL the weakest of the reallocations (-0.8, 97 bare answers). Accuracy side of GLE on G2 against the floor.

  116. Code
    Notes update (no mask change).

    GLX, the smoothed GLOBAL allocation (0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38, first-token experts forced in), is the best candidate so far on both instruments: 56 loops on the prone items (floor 131) and on G2 0.836 against the floor's 0.809 (+2.7, SE 2.2; MedQA +3.9, MedMCQA +1.6), with 5 answers cut and 36 bare answers (floor 47). Its confirmation on G3 and G4 with the control at the same counts is queued behind the two remaining exploratory candidates (GLE, E64g).

  117. Code

    Setting candidate E64g: layers 0-2 at 64, paid entirely by layers 15-26 at 39; everything else at 44; medical-count ranking; 1,320 active.

  118. Before test run 52
    Standing: on the loop instrument GLOBAL 48, GLh 57, E64 61, GL2 65, EL 74, E60 76 (floor 131, all-64 16); on G2 accuracy E64 and EL +1.2 over the floor, E60 +0.8, GLOBAL -0.8 and GLh -2.0 (both with 75-97 bare answers on MedMCQA …

    Standing: on the loop instrument GLOBAL 48, GLh 57, E64 61, GL2 65, EL 74, E60 76 (floor 131, all-64 16); on G2 accuracy E64 and EL +1.2 over the floor, E60 +0.8, GLOBAL -0.8 and GLh -2.0 (both with 75-97 bare answers on MedMCQA and, for GLh, MedQA 0.828, which with only 4 slots changed from GLOBAL shows the size of the sampling noise). The early layers at 64 with donors in the middle (E64) is the most robust so far on both instruments; its donors were 3-5, 9-11 (42) and 12-17, 21-26 (40), and the bisection says cuts in 3-14 cost loop protection. E64g moves E64's donors out of layers 3-14 and into 15-26 (GLOBAL's donors). If it loops less than E64's 61 while keeping its accuracy, the donor side is settled: pay for the early layers from the late-middle layers.

  119. Code
    Notes update (no mask change).

    GLE (both ends plus 7-9 raised, donors 15-26 at 37) loops 62 times on the prone items and scores 0.805 on G2 (-0.4 against the floor; MedQA +1.6, MedMCQA -2.3), so it is not better than GLX (56 loops, +2.7) or E64 (61 loops, +1.2). The remaining exploratory candidate is E64g (0-2 at 64 paid only by 15-26), after which the GLX confirmation on G3 and G4 with its control runs.

  120. Code

    E64g again, for the paired accuracy pass on G2.

  121. Before test run 53
    Standing: on the loop instrument GLOBAL 48, GLh 57, E64 61, GL2 65, EL 74, E60 76 (floor 131, all-64 16); on G2 accuracy E64 and EL +1.2 over the floor, E60 +0.8, GLOBAL -0.8 and GLh -2.0 (both with 75-97 bare answers on MedMCQA …

    Standing: on the loop instrument GLOBAL 48, GLh 57, E64 61, GL2 65, EL 74, E60 76 (floor 131, all-64 16); on G2 accuracy E64 and EL +1.2 over the floor, E60 +0.8, GLOBAL -0.8 and GLh -2.0 (both with 75-97 bare answers on MedMCQA and, for GLh, MedQA 0.828, which with only 4 slots changed from GLOBAL shows the size of the sampling noise). The early layers at 64 with donors in the middle (E64) is the most robust so far on both instruments; its donors were 3-5, 9-11 (42) and 12-17, 21-26 (40), and the bisection says cuts in 3-14 cost loop protection. Accuracy side of E64g on G2 against the floor.

  122. Code

    Setting candidate GLX (per-layer counts [60, 60, 60, 42, 42, 42, 42, 54, 54, 54, 39, 39, 39, 39, 39, 39, 39, 39, 42, 42, 42, 38, 38, 38, 38, 38, 38, 48, 48, 48]) for a paired confirmation pass on G3.

  123. Before test run 54
    Confirmation pass: candidate GLX against the floor on G3, 256 problems not used to choose it.

    The paired difference, the MedQA half and the number of answers cut at the token limit are the quantities I will report.

  124. Code
    Notes update (no mask change).

    E64g (0-2 at 64, 15-26 at 39, rest 44, plain medical-count ranking) ties GLX on G2: 0.836, +2.7 against the floor (SE 1.8; MedQA +3.1, MedMCQA +2.3; 6 answers cut, 14 items wrong-to-right against 7), with 67 loops on the prone items. Confirmation plan: GLX on G3 and G4 with its control (running), then E64g and the hybrid H64 (0-2 at 64, 7-9 at 50, 27-29 at 46, 15-26 at 37) on G3 and G4.

  125. Code

    Setting the control at candidate GLX's per-layer counts: plain medical-count ranking within each layer (differs from the candidate in 4 slots).

  126. Before test run 55
    Control pass on G3: the same per-layer counts as candidate GLX with the most-used experts (medical count) in every layer, which separates the allocation effect from the selection effect; it is the arm the final evaluation also …

    Control pass on G3: the same per-layer counts as candidate GLX with the most-used experts (medical count) in every layer, which separates the allocation effect from the selection effect; it is the arm the final evaluation also runs.

  127. Code

    Setting candidate GLX (per-layer counts [60, 60, 60, 42, 42, 42, 42, 54, 54, 54, 39, 39, 39, 39, 39, 39, 39, 39, 42, 42, 42, 38, 38, 38, 38, 38, 38, 48, 48, 48]) for a paired confirmation pass on G4.

  128. Before test run 56
    Confirmation pass: candidate GLX against the floor on G4, 256 problems not used to choose it.

    The paired difference, the MedQA half and the number of answers cut at the token limit are the quantities I will report.

  129. Code
    Notes update (no mask change).

    GLX on G3: 0.762 against the floor's 0.781 (-2.0, SE 2.2) with MedQA +4.7 and MedMCQA -8.6; its control at the same counts (plain medical-count ranking, 4 slots different) scored 0.793 (+1.2; MedQA +6.2, MedMCQA -3.9) and beat GLX by 3.1 points (15 items against 7). Together with GLh below GLOBAL on G2, this says forcing the first-token experts in is harmful: it displaces medical-count experts and suppresses bare answers that are accurate on short questions. The final family is therefore the GLX allocation with plain medical-count ranking (GLXc), against E64g and H64; all three will have G2, G3 and G4.

  130. Code

    Setting the control at candidate GLX's per-layer counts: plain medical-count ranking within each layer (differs from the candidate in 4 slots).

  131. Before test run 57
    Control pass on G4: the same per-layer counts as candidate GLX with the most-used experts (medical count) in every layer, which separates the allocation effect from the selection effect; it is the arm the final evaluation also …

    Control pass on G4: the same per-layer counts as candidate GLX with the most-used experts (medical count) in every layer, which separates the allocation effect from the selection effect; it is the arm the final evaluation also runs.

  132. Code

    Setting candidate E64g (per-layer counts [64, 64, 64, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 44, 44, 44]) for a paired confirmation pass on G3.

  133. Before test run 58
    E64g (layers 0-2 at 64, paid entirely by layers 15-26 at 39, nothing else changed, plain medical-count ranking) scored 0.836 on G2 (+2.7 against the floor, SE 1.8, MedQA +3.1, MedMCQA +2.3, 6 answers cut) and loops 67 times on …

    E64g (layers 0-2 at 64, paid entirely by layers 15-26 at 39, nothing else changed, plain medical-count ranking) scored 0.836 on G2 (+2.7 against the floor, SE 1.8, MedQA +3.1, MedMCQA +2.3, 6 answers cut) and loops 67 times on the prone items against the floor's 131; it ties GLX on G2 with a simpler allocation. Confirmation pass: candidate E64g against the floor on G3, 256 problems not used to choose it. The paired difference, the MedQA half and the number of answers cut at the token limit are the quantities I will report.

  134. Code
    Notes update (no mask change).

    GLX on G4: 0.816 against the floor's 0.723 (+9.4, SE 2.5; MedQA +6.2, MedMCQA +12.5; 34 items wrong-to-right against 10), with 4 answers cut against the floor's 17: G4 happens to be a loop-heavy set for the floor and the reallocation removes most of that loss. Over G2, G3 and G4 (768 problems) GLX is +2.7, -2.0, +9.4 against the floor, and +3.9, +4.7, +6.2 on the MedQA halves.

  135. Code

    Setting candidate E64g (per-layer counts [64, 64, 64, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 44, 44, 44]) for a paired confirmation pass on G4.

  136. Before test run 59
    E64g (layers 0-2 at 64, paid entirely by layers 15-26 at 39, nothing else changed, plain medical-count ranking) scored 0.836 on G2 (+2.7 against the floor, SE 1.8, MedQA +3.1, MedMCQA +2.3, 6 answers cut) and loops 67 times on …

    E64g (layers 0-2 at 64, paid entirely by layers 15-26 at 39, nothing else changed, plain medical-count ranking) scored 0.836 on G2 (+2.7 against the floor, SE 1.8, MedQA +3.1, MedMCQA +2.3, 6 answers cut) and loops 67 times on the prone items against the floor's 131; it ties GLX on G2 with a simpler allocation. Confirmation pass: candidate E64g against the floor on G4, 256 problems not used to choose it. The paired difference, the MedQA half and the number of answers cut at the token limit are the quantities I will report.

  137. Code
    Notes update (no mask change).

    The control at GLX's counts on G4: 0.809 (+8.6 against the floor; MedQA +6.2, MedMCQA +10.9; 5 cut against 17), equal to GLX within noise. Over the three sets the GLX allocation with plain medical-count ranking is about +4 points over the floor overall and +5 on the MedQA halves. Remaining: E64g and H64 on G3/G4, GLXc on G2, then the final choice, a pass on G1 for the winner, and an instruction-following sanity pass with my own prompts.

  138. Code

    Setting candidate H64 (per-layer counts [64, 64, 64, 44, 44, 44, 44, 50, 50, 50, 44, 44, 44, 44, 44, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 46, 46, 46]) for a paired confirmation pass on G3.

  139. Before test run 60
    H64 is the hybrid of the two leaders: layers 0-2 at 64 (E64g), 7-9 at 50 and 27-29 at 46 (GLX's other receivers, smaller), paid by layers 15-26 at 37; plain medical-count ranking, so its control is itself.

    Confirmation pass: candidate H64 against the floor on G3, 256 problems not used to choose it. The paired difference, the MedQA half and the number of answers cut at the token limit are the quantities I will report.

  140. Code

    Setting candidate H64 (per-layer counts [64, 64, 64, 44, 44, 44, 44, 50, 50, 50, 44, 44, 44, 44, 44, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 46, 46, 46]) for a paired confirmation pass on G4.

  141. Before test run 61
    H64 is the hybrid of the two leaders: layers 0-2 at 64 (E64g), 7-9 at 50 and 27-29 at 46 (GLX's other receivers, smaller), paid by layers 15-26 at 37; plain medical-count ranking, so its control is itself.

    Confirmation pass: candidate H64 against the floor on G4, 256 problems not used to choose it. The paired difference, the MedQA half and the number of answers cut at the token limit are the quantities I will report.

  142. Code

    Setting GLXc: GLX's per-layer counts (0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38) with plain medical-count ranking and no forced experts, i.e. the control at GLX's counts.

  143. Before test run 62
    On G3 the control at GLX's counts (plain medical-count ranking) scored 0.793 against GLX's 0.762 and the floor's 0.781 (MedQA 0.883 against 0.820), and on G2 GLh (GLOBAL plus forced first-token experts) was below GLOBAL: forcing …

    On G3 the control at GLX's counts (plain medical-count ranking) scored 0.793 against GLX's 0.762 and the floor's 0.781 (MedQA 0.883 against 0.820), and on G2 GLh (GLOBAL plus forced first-token experts) was below GLOBAL: forcing the first-token experts in costs accuracy by displacing medical-count experts and by suppressing bare answers that are in fact accurate on short questions. So the final family uses plain medical-count ranking at the GLX allocation. This pass measures GLXc on G2, where only the forced-expert version has run, so that GLXc has the same three sets (G2, G3, G4) as the other finalists.

  144. Code
    Setting and saving the final family mask GLXc as the current best: GLX's per-layer counts (layers 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; 1,320 active) with plain medical-count ranking …

    Setting and saving the final family mask GLXc as the current best: GLX's per-layer counts (layers 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; 1,320 active) with plain medical-count ranking inside every layer (no forced experts). Evidence: against the floor on G3 +1.2 and on G4 +8.6 (its forced-expert twin GLX: G2 +2.7, G3 -2.0, G4 +9.4), MedQA halves +4 to +6 on every set, answers cut at the token limit 5 and 5 against the floor's 7 and 17, and on the loop instrument the GLX allocation removes 75 of the floor's 131 loops on prone problems. The remaining passes measure it further (G1, second samples, loop instrument) and run an instruction-following sanity check; save_mask() is called now so that mask.json holds the best mask so far.

  145. Code

    Setting the final family mask GLXc (GLX's counts, plain medical-count ranking) for the instruction-following sanity pass.

  146. Before test run 63
    Instruction-following sanity check with 20 of my own prompts (format, length, casing, counting and wrapping constraints like an instruction-following benchmark), two samples each, through the final family mask and the floor.

    Nothing is graded here; I read the answers to see whether the reallocation (fewer experts in layers 10-26, more in 0-2, 7-9, 27-29) breaks constraint following or produces loops on general prompts. If the final mask follows the constraints at least as often as the floor, the general ability is intact.

  147. Code
    Notes update (no mask change).

    H64 on G4: 0.801 (+7.8; MedQA +7.8, MedMCQA +7.8; 4 cut), on G3 -0.8 (MedQA +4.7), so H64 is close to but not better than GLXc. GLXc on G2: 0.824 (+1.6; MedQA +2.3, MedMCQA +0.8; 6 cut). Over 768 problems (G2+G3+G4) GLXc is +3.8 over the floor (SE about 1.3), +4.9 on the MedQA halves, with 16 answers cut against the floor's 33. GLXc stays the final family; the remaining passes add an instruction-following check, G1, second samples and fresh T problems.

  148. Code

    Setting GLXc for the paired pass on G1.

  149. Before test run 64
    Final-family measurement with more samples: GLXc (layers 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; plain medical-count ranking) against the floor.

    Over G2, G3 and G4 it stands at about +4 points overall and +5 on the MedQA halves with far fewer answers cut at the token limit. G1 is the frame set where the 64-expert model scored +7.8 over the floor (0.836 vs 0.758, full 0.895), so this pass places the final mask on the same scale: the share of the 64-expert gap it recovers on identical items.

  150. Code
    Notes update (no mask change).

    Instruction-following sanity pass (20 constrained prompts x 2 samples, 1,024 max tokens): GLXc passes 32 of 40 automatic constraint checks, the floor 31 of 40; the failures are the same prompts for both (JSON-only, quotes wrapping, bilingual labels), and both loop on 4-5 of the 40 short answers. General instruction following is intact under the reallocation. The remaining 17 passes measure GLXc against the floor on G1, second samples, four fresh pool sets and three sets of practice problems outside the pool.

  151. Code

    Setting GLXc for a two-sample pass on the first half of G2.

  152. Before test run 65
    Final-family measurement with more samples: GLXc (layers 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; plain medical-count ranking) against the floor.

    Over G2, G3 and G4 it stands at about +4 points overall and +5 on the MedQA halves with far fewer answers cut at the token limit. Two samples per problem on half of G2 (128 problems x 2 = 256 generations per model): the second sample of each problem is new for both models, so this adds an independent draw to the paired estimate on these items.

  153. Code

    Setting GLXc for a two-sample pass on the first half of G3.

  154. Before test run 66
    Final-family measurement with more samples: GLXc (layers 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; plain medical-count ranking) against the floor.

    Over G2, G3 and G4 it stands at about +4 points overall and +5 on the MedQA halves with far fewer answers cut at the token limit. Two samples per problem on half of G3.

  155. Code
    Notes update (no mask change).

    GLXc on G1: 0.781 against the floor's 0.758 (+2.3, SE 2.3), MedQA 0.883 against 0.820 (+6.2), which equals the 64-expert model's MedQA score on the same items (0.883), while MedMCQA stays near the floor (0.680 vs 0.695; the 64-expert model 0.789); 5 answers cut against 13. On the first half of G2 with two samples: +2.0, loops 5 against 10.

  156. Code

    Setting GLXc for a two-sample pass on the first half of G4.

  157. Before test run 67
    Final-family measurement with more samples: GLXc (layers 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; plain medical-count ranking) against the floor.

    Over G2, G3 and G4 it stands at about +4 points overall and +5 on the MedQA halves with far fewer answers cut at the token limit. Two samples per problem on half of G4.

  158. Code

    Setting GLXc for the loop instrument.

  159. Before test run 68
    Final-family measurement with more samples: GLXc (layers 0-2 at 60, 7-9 at 54, 27-29 at 48, 18-20 at 42, 3-6 at 42, 10-17 at 39, 21-26 at 38; plain medical-count ranking) against the floor.

    Over G2, G3 and G4 it stands at about +4 points overall and +5 on the MedQA halves with far fewer answers cut at the token limit. Loop instrument for the final family itself (GLX with the forced experts had 56 loops against the floor's 131; the 64-expert model 16).

  160. Code

    Setting GLXc for a paired pass on T1.

  161. Before test run 69
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. T1: 256 pool problems from the teacher-forced ranking set, never generated before (the floor's answers are generated live and cached).

  162. Code
    Notes update (no mask change).

    Pooled over 1,792 paired generations (G1-G4 first samples, half sets with two samples): floor 0.771, GLXc 0.804, +3.3 points (SE 0.9 by generation), MedQA +5.0, MedMCQA +1.6, answers cut at the token limit 84 against 38. Loop instrument for the final mask itself: 56 loops against the floor's 131 (the 64-expert model 16), accuracy on the prone items 0.652 against 0.406. The twelve remaining passes run GLXc against the floor on fresh problems (four pool sets never generated, three sets outside the pool) and second samples of the other halves.

  163. Code

    Setting GLXc for a paired pass on T2.

  164. Before test run 70
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. T2: 256 pool problems from the teacher-forced ranking set, never generated before (the floor's answers are generated live and cached).

  165. Code

    Setting GLXc for a paired pass on T3.

  166. Before test run 71
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. T3: 256 pool problems from the teacher-forced ranking set, never generated before (the floor's answers are generated live and cached).

  167. Code

    Setting GLXc for a paired pass on T4.

  168. Before test run 72
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. T4: 256 pool problems from the teacher-forced ranking set, never generated before (the floor's answers are generated live and cached).

  169. Code

    Setting GLXc for a paired pass on F1.

  170. Before test run 73
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. F1: 256 practice problems outside the 2,000-problem pool, never used in this run.

  171. Code
    Notes update (no mask change).

    Fresh pool sets, GLXc against the floor: T1 +5.5 (SE 2.0), T2 +4.7, T3 +0.0, T4 +7.2; pooled over all 2,000 pool problems (2,768 paired generations): floor 0.770, GLXc 0.806, +3.6 points (SE 0.7), MedQA +4.6, MedMCQA +2.6, answers cut at the token limit 127 against 55. Three sets outside the pool and second samples remain.

  172. Code

    Setting GLXc for a paired pass on F2.

  173. Before test run 74
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. F2: 256 practice problems outside the 2,000-problem pool, never used in this run.

  174. Code

    Setting GLXc for a paired pass on F3.

  175. Before test run 75
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. F3: 256 practice problems outside the 2,000-problem pool, never used in this run.

  176. Code

    Setting GLXc for a two-sample pass on G1s.

  177. Before test run 76
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. G1s with two samples per problem: the second sample is a fresh draw for both models on these items.

  178. Code

    Setting GLXc for a two-sample pass on G2s.

  179. Before test run 77
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. G2s with two samples per problem: the second sample is a fresh draw for both models on these items.

  180. Code

    Setting GLXc for a two-sample pass on G3s.

  181. Before test run 78
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. G3s with two samples per problem: the second sample is a fresh draw for both models on these items.

  182. Code

    Setting GLXc for a two-sample pass on G4s.

  183. Before test run 79
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. G4s with two samples per problem: the second sample is a fresh draw for both models on these items.

  184. Code

    Setting GLXc for a two-sample pass on G1h.

  185. Before test run 80
    Final mask GLXc against the floor on problems not used before (the instruction-following check passed 32 of 40 constraint checks for GLXc against 31 of 40 for the floor, so general instruction following is intact).

    Each remaining pass adds paired items or a second independent sample to the final estimate, which stands at +3.8 points (SE 1.4) over 768 problems with half as many answers cut at the token limit. G1h with two samples per problem: the second sample is a fresh draw for both models on these items.

  186. Code
    All 80 forward passes are used.

    Final choice: the mask I call GLXc, saved again here so that work/mask.json holds it: per-layer counts 60, 60, 60 (layers 0-2), 42, 42, 42, 42 (3-6), 54, 54, 54 (7-9), 39 in each of layers 10-17, 42, 42, 42 (18-20), 38 in each of layers 21-26, 48, 48, 48 (27-29), total 1,320; inside each layer the experts most used by the unpruned model on medical text (the floor's own criterion), no forced experts. The evidence is in the notes: over 4,816 paired generations on 2,768 practice problems (all 2,000 pool problems plus 768 outside the pool) the floor scores 0.769 and this mask 0.797, +2.9 points (SE 0.5), +3.7 on the MedQA halves and +2.1 on MedMCQA, with 115 answers cut at the token limit against the floor's 220; on the 64 loop-prone problems it loops 56 times against the floor's 131 (the 64-expert model 16); instruction following on 20 constrained prompts 32/40 against 31/40. This block sets the mask, saves it, checks the budget and the minimum per layer, and writes the final summary to the notes.

Fable found that frequency pruning throws away the experts the model needs to write its answers.

Its test runs showed that the experts frequency pruning drops from the first layers are ones the model uses for every word it writes. Giving experts back to the first 15 layers stopped 89 of 131 loops on practice questions from MedQA and MedMCQA. So Fable kept the same total and moved experts from the middle layers into the first ones.

Deeper divewhich experts each layer keeps
One layer of the model: 128 expertskept: the 44 picked most on medical textlet go: the other 84, on each of 30 layersA router sends every token to 8 of them.
One layer of the model: 128 expertskept: the 44 picked most on medical textlet go: the other 84, on each of 30 layersA router sends every token to 8 of them.
Figure 7. What frequency pruning does to one layer. It keeps the 44 experts medical text uses most and deletes the other 84, in every one of the 30 layers. Shown: layer 15.
Full model3,840 expertssize52 GBhard medical exam45.9answers stuck looping0.1%Frequency pruning1,320 expertssize22 GBhard medical exam33.5answers stuck looping5.7%Fable’s pruning1,320 expertssize22 GB equivalenthard medical exam37.2answers stuck looping2.8%more herefewer herelast layerfirst layer
Frequency pruning1,320 expertsFable’s pruning1,320 expertsmore herefewer herelast layerfirst layer
Full model3,840 experts
Frequency pruning1,320 experts
Fable’s pruning1,320 experts
size
52 GB
22 GB
22 GB equivalent
hard medical exam
45.9
33.5
37.2
answers stuck looping
0.1%
5.7%
2.8%
Figure 8. Fable keeps the same number of experts, 1,320, and moves some of them into the first layers, where the looping starts. Each stack is the model, first layer at the bottom, one bar per layer. Green: experts Fable added to the first layers. Pale red: what the middle layers gave up.
What pruning costs, and what Fable wins backfull modelfrequency pruning (baseline)REAP pruningFable’s pruning45.933.523.437.2Hard medical examscore, higher is better0.1%5.7%7.3%2.8%Answers stuck loopingpercent, lower is better
What pruning costs, and what Fable wins backfull modelfrequency pruning (baseline)REAP pruningFable’s pruning45.933.523.437.2Hard medical examscore, higher is better0.1%5.7%7.3%2.8%Answers stuck loopingpercent, lower is better
Figure 9. At the same size, Fable’s pruning scores higher on the medical exam and loops half as often. Scores on all 2,455 questions of a hard medical exam (MedXpertQA), and the share of answers that repeat until they are cut off. REAP, a published pruning method, does worse than frequency pruning here.

Below are four exam questions, with the same random seed for every model. In one, frequency pruning gets stuck in a loop. In the other three, nothing loops and it still picks the wrong answer.

Four exam questions, with the prompts and the models’ answers
Prompt

A 38-year-old female presents to the emergency department with left leg pain and swelling that started the previous day. She has no fever or recent … Which gene mutation is most likely present in this patient?

Show the full prompt

A 38-year-old female presents to the emergency department with left leg pain and swelling that started the previous day. She has no fever or recent trauma. Her medical history includes osteosarcoma of the right distal femur at age 13. Her mother was diagnosed with breast cancer at age 52, and her grandfather had bronchioloalveolar carcinoma at age 45. Physical examination reveals a warm, tender, erythematous left leg with edema and positive Homan's sign. Abdominal examination identifies a firm, fixed mass with irregular borders in the left lower quadrant. Left leg ultrasonography shows a non-compressible femoral vein with thrombus confirmed by color flow Doppler. A contrast-enhanced abdominal CT scan reveals a large left abdominopelvic cystic mass with thick septae, consistent with ovarian cancer, along with localized lymphadenopathy and ascites. Which gene mutation is most likely present in this patient?

  1. A. PTEN
  2. B. KRAS
  3. C. RB1
  4. D. BRCA2
  5. E. BRCA1
  6. F. PALB2
  7. G. CDH1
  8. H. APC
  9. I. TP53
  10. J. MLH1

Answer with the letter of the correct option, in the form ‘Answer: X’.

Answer keyI. TP53 (Li-Fraumeni syndrome)
Answers
Full 26B modelI. TP53✓ right356 tokens
Read the full answer
The patient's presentation involves several key clinical findings:
1.  Osteosarcoma at age 13: Early-onset bone cancer is a hallmark of certain hereditary cancer syndromes.
2.  Ovarian Cancer: The abdominal mass and imaging findings are highly suggestive of epithelial ovarian cancer.
3.  Deep Vein Thrombosis (DVT): The patient presents with a DVT (non-compressible femoral vein, positive Homan's sign), which is often a paraneoplastic manifestation of an underlying malignancy (such as ovarian cancer).

The constellation of early-onset osteosarcoma and ovarian cancer is highly characteristic of Li-Fraumeni Syndrome (LFS). Li-Fraumeni Syndrome is caused by a germline mutation in the TP53 tumor suppressor gene.

Let's evaluate the other options:
- PTEN (A): Associated with Cowden syndrome (breast, thyroid, and endometrial cancer), but not typically osteosarcoma.
- RB1 (C): Associated with retinoblastoma and osteosarcoma, but not classically with the ovarian cancer/LFS pattern described.
- BRCA1/2 (D/E): Associated with breast and ovarian cancer, but not typically early-onset osteosarcoma.
- MLH1 (J): Associated with Lynch syndrome (colorectal, endometrial, and ovarian cancer), but not osteosarcoma.

The most unifying diagnosis for a patient presenting with both a childhood/adolescent bone malignancy (osteosarcoma) and an adult malignancy (ovarian cancer) is a mutation in the TP53 gene.

Answer: I
Frequency pruningNo answer✗ wrong (stuck in a loop)4,096 tokens
Read the full answer
The patient's presentation involves a constellation of findings that suggest a hereditary cancer syndrome:
1.  Osteosarcoma at the age of 13 (early-onset bone cancer).
2.  Ovarian cancer (the large cystic mass with thick septae).
3.  Thromboembolism (deep vein thrombosis presenting as leg pain/swelling).
4.  Family history of breast cancer and potentially other malignancies.

The combination of osteosarcoma and breast cancer (or ovarian cancer) is characteristic of Li-Fraumeni Syndrome (LFS). LFS is caused by a germline mutation in the TP53 gene (commonly referred to as TP53, though the standard nomenclature is TP53 or TP53—wait, the standard gene is TP53 actually TP53... checking standard gene name: it is TP53... actually, it is TP53... no, it is TP53... correction: the gene is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53... actually, it is TP53
Fable’s pruningI. TP53✓ right427 tokens
Read the full answer
The clinical presentation is highly suggestive of Li-Fraumeni Syndrome (LFS).

Clinical Reasoning:
1.  Osteosarcoma: The patient has a history of osteosarcoma at age 13, which is one of the most common cancers associated with LFS.
2.  Ovarian Cancer: The current presentation (large abdominopelvic cystic mass with thick septae and ascites) is consistent with ovarian cancer. While LFS is associated with many cancers (sarcomas, breast cancer, brain tumors, adrenocortical carcinomas, and osteosarcomas), ovarian cancer can be noted, though breast cancer (as seen in the mother) is a hallmark.
3.  Family History: The history of various cancers (breast cancer, potentially lung/bronchioloalveolar carcinoma) suggests a germline predisposition.
4.  Deep Vein Thrombosis (DVT): The patient presents with left leg pain, swelling, erythement, positive Homan's sign, and non-compressible vein on Doppler, confirming DVT. In many oncology patients, DVT is a common complication of malignancy (Trousseau syndrome/hypercoagulable state).

Genetic Correlation:
*   Li-Fraumeni Syndrome is caused by a germline mutation in the TP53 gene. 
*   LFS classically presents with a spectrum of tumors: Sarcomas (Osteosarcoma), Breast cancer, Brain tumors, Adrenocortical tumors, and Leukemias.
*   While other genes are listed: BRCA1/2 are associated with breast/ovarian cancer, but not necessarily with childhood osteosarcoma. APC is associated with Familial Adenomatous Polyposis. PTEN is associated with Cowden Syndrome.

The combination of childhood osteosarcoma and potentially early-onset malignancy (suggested by family history) is the classic "must-be-tested" scenario for a TP53 mutation.

Answer: I

Frequency pruning finds the right gene, then repeats it until it runs out of room: 4,096 tokens, no answer.

One answer per model, same random seed. Across all 2,455 exam questions (MedXpertQA), Fable’s pruning turns 270 of frequency pruning’s wrong answers right and 179 right answers wrong, a net 91.

gpt-oss-120bA first look at 120B-class models

Task

Prune a 120B reasoning model, first cut to 60B to fit our GPU, to a quarter of its experts for medicine. No training.

What Fable found

A few dozen experts do the model’s arithmetic, at the moment it writes a result. Frequency pruning never sees them and throws them all out.

What it changed

Re-ranked the experts by how the model uses them while it reasons, with a share for arithmetic, at the same size.

Result

A version Fable built during the run brings the grade-school math back (GSM8K) and scores 3 points higher on a hard medical exam (MedXpertQA).

gpt-oss-120b [24] is a reasoning model with 117 billion parameters in 36 layers of 128 experts, 4 activated per token. The question here is whether Fable can still find which experts matter at this size. As with Gemma, we prune it for medicine, aiming for a much smaller model that keeps its medical accuracy. To fit our GPU, we first kept the half of its experts medical text uses most, about 60B parameters. Fable prunes that to a quarter of the original experts. Frequency pruning costs some medical accuracy and wipes out arithmetic, and grade-school math falls from 88% to 2%.

Fable found the few dozen experts, out of 4,608, that do the model’s arithmetic, and saw that frequency pruning throws out every one of them.

A reasoning model does its arithmetic while it thinks, at the moment it writes a result. Frequency pruning only counts which experts the model uses to read a question, and reading never uses these. Fable re-ranked the experts by how the model uses them while it reasons, with a share for arithmetic, and kept the same number. Fable built this version earlier in the run, and the results below are from it. The version it finalized was more cautious and did not fix the math.

Deeper divewhy Fable finalized the cautious version

On Fable’s practice questions, the version with arithmetic experts looked about 5 points worse on the medical exam than the cautious one, so Fable finalized the cautious one. On the final tests that cost did not appear, and the two scored about the same on the held-out medical exam, 3 and 2 points above frequency pruning.

We think the practice scores misled it. Fable refined the cautious version on the same practice questions it used to compare the two, which can flatter a score, and a small sample is noisy. Fable’s reading of the weights held up, and its estimate of the cost is where it went wrong.

60B starting copyfrequency pruning (baseline)REAP pruningFable’s pruning88.41.970.172.9Grade-school math(GSM8K)28.021.521.224.5Hard medical exam(MedXpertQA)050100
60B starting copyfrequency pruning (baseline)REAP pruningFable’s pruning05010088.41.970.172.9Grade-school math(GSM8K)05010028.021.521.224.5Hard medical exam(MedXpertQA)
Figure 10. Frequency pruning wipes out the 120B model’s math. Fable’s pruning brings it back and scores higher on the medical exam. The three pruned versions use the same number of experts, 1,152. REAP, a published method, brings the math back too, with no medical gain. Math: 1,319 test problems. Exam: 1,478 held-out questions. The first bar is the 60B copy before pruning, scored on 500 math and 492 exam questions. REAP’s math was scored on our second machine.
Deeper divewhich experts changed, layer by layer
Frequency pruningbaseline, 32 per layergrade-school math1.9hard medical exam21.5REAP pruning495 experts swapped ingrade-school math70.1hard medical exam21.2Fable’s pruning289 experts swapped ingrade-school math72.9hard medical exam24.5kept by frequency pruningswapped in by REAPswapped in by Fablelast layerfirst layer
REAP pruning495 experts swapped inFable’s pruning289 experts swapped inlast layerfirst layerkept by frequency pruningswapped in by REAPswapped in by Fable
Frequency pruningbaseline, 32 per layer
REAP pruning
Fable’s pruning
grade-school math
1.9
70.1
72.9
hard medical exam
21.5
21.2
24.5
Figure 11. Which experts each pruning keeps in the 120B model, layer by layer. Grey: experts frequency pruning keeps. REAP (amber) swaps 495 of them for others, and Fable (green) swaps 289, chosen by how much the model uses them while it reasons. Each stack is the model, first layer at the bottom, and every stack has 1,152 experts. REAP’s math score was measured on our second machine.
Two math problems and a medical question, with the prompts and the 120B model’s reasoning
Prompt

My mom went to a gardening shop. She bought a set of pots for $19 and a sack of garden soil for $26. At checkout, she used a coupon for $7 off. How much money did my mom spend at the gardening shop?

Answer with the final number only, in the form 'Answer: N'.

Answer key38
Answers
Frequency pruning15✗ wrong155 tokens
Read the full answer
Thinking: We need calculate: purchase: pots set $19, soil $26; total = 19 + 26 = 19 + 2? Actually 19 + 26 = 100? Let's: 19 * 26 = 26 19 = 1? Let's: 27? Let's: 9? Hmm.

Compute: 9? The is?

We compute: 9. Let's.

We answer: Answer? Probably.

We need sum: 19 + 6? Actually.

Let's need: 4? The answer should be 13.

We find? The?

Probably: 0.

Check.

Need: 14? Let's.

Ok. Need.

We...

Final: Answer: 15
Fable’s pruning38✓ right68 tokens
Read the full answer
Thinking: We need calculate: pot set cost $19, soil sack $26, total = 19 + 26 = 45. Coupon $7 off, subtract 7 => total = 45 - 7 = 38. Answer: "Answer: 38".

Final: Answer: 38

Same question, same random seed. The frequency-pruned model cannot add 19 and 26. Fable’s does it in one line.

Simple fixes don’t bring the math back. Adding 5% more experts by frequency pruning, or rebalancing the router, still scores 1 to 2%. REAP pruning [23], the published method from the Gemma section, does bring it back, to 70, and leaves the medical exam where frequency pruning had it. Fable’s version scores 3 points above frequency pruning there.

At this size, Fable still found experts that baseline frequency pruning misses, the ones that do arithmetic.

Could an LLM do this on even bigger models?

In our experiments, Fable never reads a model number by number. It reads short summaries its own code makes, runs a few dozen tests, and edits whole parts, such as a layer or an expert. So the work it does grows much more slowly than the model.

Parameters in the model1B10B100B1T4B4BGemma 326B26BGemma 460B60Bgpt-oss-120bpruned1T1Tnot runMost context Fable used in a run0250K500K750K1MFable’s context windowevery run: 270K to 430K4BGemma 326BGemma 460Bgpt-oss-120bpruned1Tnot runexpected
Parameters in the model1B10B100B1T4B4BGemma 326B26BGemma 460B60Bgpt-oss-120bpruned1T1Tnot runMost context Fable used in a run0250K500K750K1MFable’s context windowevery run: 270K to 430K4BGemma 326BGemma 460Bgpt-oss-120bpruned1Tnot runexpected
Figure 12. The model grows about 250 times. Fable’s context use does not grow with it. Green: the most context Fable used in each run, under half of its window. Fable reads short summaries its code makes, never the weights. From the run logs. Dashed: a model we have not run.

The same loop ran at 4.3, 26 and 60 billion parameters, each with a few dozen test runs and a few hours on one GPU. The most context Fable used in a run did not grow with the model. We expect this to carry on, because the summaries grow with the number of layers and experts, far more slowly than the parameters. We have not shown anything past 60 billion. The argument assumes a model built from experts, and a trillion-parameter model needs several GPUs for every test run.

Deeper divethe numbers behind the chart
ModelParametersMost context Fable usedShare of its window
Gemma 3 4B4B270K27%
TranslateGemma 4B4B300K30%
Gemma 4 26B26B430K43%
gpt-oss-120b, pruned60B280K28%
Parameters
Gemma 3 4B4B
TranslateGemma 4B4B
Gemma 4 26B26B
gpt-oss-120b, pruned60B
Most context Fable used
Gemma 3 4B270K
TranslateGemma 4B300K
Gemma 4 26B430K
gpt-oss-120b, pruned280K
Share of its window
Gemma 3 4B27%
TranslateGemma 4B30%
Gemma 4 26B43%
gpt-oss-120b, pruned28%

What could this make possible?

  1. Version control for weights. Code has diffs and commit logs. Model checkpoints have none. Subtracting two checkpoints says little, since each of MedGemma’s 34 layers changed by about the same amount. An LLM that reads and tests the weights could write the diff in words, and much of version control might follow.
    OperationFor a modelIn this post
    diffWhat a fine-tune changed, in wordsMedGemma’s skill lives in its first 17 layers, and needs its new eyes
    blameWhich part causes a behaviorThe 26B model’s looping starts in its first layers, and experts put back there stop 89 of 131 loops
    cherry-pickTake some changes and leave the restFable’s merge is Gemma 3 plus only the parts of MedGemma’s change that carry the skill
    revertUndo a change, fully or in partThe rest of MedGemma’s change is kept at half strength
  2. Composite models. Thousands of public fine-tunes share a few base models. A specialist could take the parts that carry each skill from several of them. Some parts only work together, as MedGemma’s eyes needed its early layers, and finding those pairings is the reading Fable did here.
  3. Causal analysis of a model’s parts. Baseline frequency pruning judges an expert by how often it is used, and in both large models that missed what the model needed. Fable changed parts and measured what happened. It swapped parts in and out, tried a change at half strength and built its own tests. On a 60-billion-parameter model, experiments like these took hours.

We set out to see whether an LLM can read the weights of much larger language models and change them for a specific target. In these experiments, up to 60 billion parameters, it could, with no training. Each result comes from one model and mostly one run, and published methods sometimes did as well. We were pleasantly surprised by these edits at this scale, and we are curious how far this goes.

Code and logs

The prompts, every step Fable took, its final answers, the edits and the scores behind every number in this post are at github.com/ray-invnt/weight-space-programming-at-scale. Each folder has a script that rebuilds its models from the public base models.

Citation

Ray Ding. “Weight-Space Programming at Scale.” November 7, 2026. https://ray-invnt.github.io/blog/weight-space-programming-at-scale/
@misc{ding2026weightspacescale,
  title  = {{Weight-Space Programming at Scale}},
  author = {Ding, Ray},
  year   = {2026},
  month  = nov,
  note   = {Blog post},
  url    = {https://ray-invnt.github.io/blog/weight-space-programming-at-scale/}
}

References

  1. Bo Liu et al. "SLAKE: A Semantically-Labeled Knowledge-Enhanced Dataset for Medical Visual Question Answering." ISBI 2021, arXiv:2102.09542. arxiv.org/abs/2102.09542
  2. Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab. "Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights." Blog post, November 2026. rikiyat.github.io/blog/weight-space-programming/
  3. Gemma Team. "Gemma 3 Technical Report." arXiv:2503.19786, 2025. arxiv.org/abs/2503.19786
  4. Google Research and Google DeepMind. "MedGemma Technical Report." arXiv:2507.05201, 2025. arxiv.org/abs/2507.05201
  5. Jason J. Lau et al. "A dataset of clinically generated visual questions and answers about radiology images." Scientific Data, 2018. doi.org/10.1038/sdata.2018.251
  6. Di Jin et al. "What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Exams." arXiv:2009.13081, 2020. arxiv.org/abs/2009.13081
  7. Yuxin Zuo et al. "MedXpertQA: Benchmarking Expert-Level Medical Reasoning and Understanding." arXiv:2501.18362, 2025. arxiv.org/abs/2501.18362
  8. Jeffrey Zhou et al. "Instruction-Following Evaluation for Large Language Models." arXiv:2311.07911, 2023. arxiv.org/abs/2311.07911
  9. Yubo Wang et al. "MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark." NeurIPS 2024, arXiv:2406.01574. arxiv.org/abs/2406.01574
  10. Karl Cobbe et al. "Training Verifiers to Solve Math Word Problems." arXiv:2110.14168, 2021. arxiv.org/abs/2110.14168
  11. Google. TranslateGemma 4B model card, 2026. huggingface.co/google/translategemma-4b-it
  12. Antonios Anastasopoulos et al. "TICO-19: the Translation Initiative for COvid-19." arXiv:2007.01788, 2020. arxiv.org/abs/2007.01788
  13. Maja Popović. "chrF: character n-gram F-score for automatic MT evaluation." WMT 2015. aclanthology.org/W15-3049/
  14. Ricardo Rei et al. "COMET-22: Unbabel-IST 2022 Submission for the Metrics Shared Task." WMT 2022. aclanthology.org/2022.wmt-1.52/
  15. NLLB Team. "No Language Left Behind: Scaling Human-Centered Machine Translation." arXiv:2207.04672, 2022. arxiv.org/abs/2207.04672
  16. Edward J. Hu et al. "LoRA: Low-Rank Adaptation of Large Language Models." ICLR 2022, arXiv:2106.09685. arxiv.org/abs/2106.09685
  17. Qwen Team. "Qwen3 Technical Report." arXiv:2505.09388, 2025. arxiv.org/abs/2505.09388
  18. Gabriel Ilharco et al. "Editing Models with Task Arithmetic." ICLR 2023, arXiv:2212.04089. arxiv.org/abs/2212.04089
  19. Prateek Yadav et al. "TIES-Merging: Resolving Interference When Merging Models." NeurIPS 2023, arXiv:2306.01708. arxiv.org/abs/2306.01708
  20. Le Yu et al. "Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch." ICML 2024, arXiv:2311.03099. arxiv.org/abs/2311.03099
  21. Google. Gemma 4 26B-A4B-it model card, 2026. huggingface.co/google/gemma-4-26B-A4B-it
  22. Noam Shazeer et al. "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer." ICLR 2017, arXiv:1701.06538. arxiv.org/abs/1701.06538
  23. Mike Lasby et al. "REAP the Experts: Why Pruning Prevails for One-Shot MoE compression." ICLR 2026, arXiv:2510.13999. arxiv.org/abs/2510.13999
  24. OpenAI. gpt-oss-120b model card, 2025. huggingface.co/openai/gpt-oss-120b