RAFT on an Electronics Course: A Negative Result

P04 - Post-Mortem: Too Brief or Damaged?

Numbers are measured unless marked Hypothesis. The goal, the method and the references are on the front page of this series.

Part 3 ended with two fine-tuned models that were worse than the instruct model everywhere. This post works through the possible causes, cheapest to rule out first.

1. Is the Served Model the Trained Model?

Every score came from an adapter that was converted to GGUF and served on a quantised copy of the instruct model. A broken conversion would invalidate everything else. I loaded the original trained adapter (bf16, Hugging Face + PEFT) and measured how likely it finds the served model's answers.

On the 20 exam questions the adapters failed worst (median loss per token, lower = more likely):

served adapter's answers, scored by Sonnet Opus
the trained adapter 0.156 0.140
the instruct model 0.699 0.582

The served answers are what the trained adapter would write, not what the instruct model would write. Run directly, the trained adapter repeats most of the same wrong answers (69 Ω and 300 kΩ on colour codes, 91 on a hex conversion). The losses come from training, not from conversion or serving.

2. Wrong Training Data or Missing Topics?

The training data was searched for the topics the adapters failed on:

topic training questions (Sonnet / Opus)
resistor colour codes 7 / 11
binary ↔ hex 17 / 14
signed/binary → decimal 38 / 38
bitwise operations 44 / 54
quarter-wave / velocity factor 20 / 16

All the Sonnet colour-code and binary↔hex examples were read: all correct, all with the right procedure. Only one failed topic (testing a capacitor with an ohmmeter) is absent. The adapters got basics wrong that their training showed correctly.

Correction: a first version of this check reported that both training sets contained one specific exam conversion, and that the Opus adapter failed it anyway. The search behind it had matched a section id, not the example, and decontamination had actually dropped the Opus example. It was corrected the same day. The checked version is narrower but still holds: on that item the Opus adapter lost a skill the instruct model has, on content it never trained on.

3. Was It Retrieval?

On Fable with documents, every answer was read where an adapter scored at least 0.3 below the instruct model (62 Sonnet, 74 Opus):

  • The source section was in the top 5 for 59/62 and 71/74 of them, mostly at rank 1.
  • The adapters quoted it in 45/59 and 60/71.

Retrieval and page choice were not the problem. The adapters found the right page and then reasoned badly from it, or dropped part of the answer.

4. Why Did Documents Hurt on the Exam?

On the exam with documents, 32% of retrieved documents were the course's Socratic practice questions (no answers), against 10% on Fable. The training data never used a practice question as the source section. Splitting the exam items by how many of their 5 documents are practice questions:

practice questions among the 5 docs instruct model, docs − no docs Sonnet adapter Opus adapter
0 flat +0.00 −0.04
2 flat −0.17 −0.16
3–5 flat −0.14 −0.25

The instruct model is unaffected by document type. The adapters lose more as the share of practice questions grows. Hypothesis: they learned "the source section is a quotable explanation", and when the context is mostly unanswered problems, they keep the quoting habit and fill in made-up quotes (the 54–58% invented quotes from part 3). This is a correlation. The test that would confirm it (rerun with practice questions removed from retrieval) was built and then shelved, because it tests a condition that isn't RAFT's task.

5. Too Brief?

The adapters write 3–5× less than the instruct model. I measured the training answers:

  • The written explanation in each training answer: median ~117 tokens (Sonnet) and ~138 (Opus), 40–50% of it quotes.
  • They weren't simply copied: 93% of numeric answers show a calculation, and only 3–5% of final answers are mostly lifted from a quote.
  • The instruct model writes ~530–920 tokens on the same kinds of questions.

The training answers were brief, not lazy. Sonnet and Opus can be that brief and still right, because the answer was in the section in front of them. The generation prompt asked for short quotes and a short final answer and never for full working (part 3).

Hypothesis: the adapter learned the frontier models' brevity, including when to stop. A 4B model can't be that brief and right, so it skips steps it needs.

Not every error fits. 22 exam answers where an adapter failed and the instruct model didn't were read, one per question group. Most show their working. Errors:

  • 6: a wrong procedure on basics the instruct model gets right (colour code without the multiplier band, binary grouped from the wrong end)
  • 7: a wrong concept, or talked out of the right answer
  • 3: arithmetic slips in written-out working
  • 6: other (odd choices, partial answers, likely scoring artefacts)

More room to write would plausibly fix only the 3 slips. That points to a second cause: training damaged skills the instruct model had.

6. Test A: Too Brief vs Damaged

If brevity is the cause, the instruct model forced to be brief should fail the same way. If damage is the cause, the brief instruct model should still beat the adapters.

Setup: the instruct model gets the same prompts plus one instruction: at most about 90 words of reasoning and a one- or two-sentence final answer. It was run on the exam without documents and on Fable with top 5, with one server slot. Its median length landed close to the adapters' (exam 389 tokens, Fable 193).

Labels made before the run. Before any Test A output existed, every Fable failure was labelled from the adapter outputs alone. 12 were "skipped a step" and 29 "wrote the step out and got it wrong". Labelling first keeps the categories independent of the result.

Results (paired, 95% CI):

brief − normal instruct model Sonnet − brief Opus − brief
Fable, top 5 −0.062 [−0.075, −0.050] +0.011 [−0.003, +0.024] +0.006 [−0.007, +0.019]
exam, no docs −0.031 [−0.079, +0.019] −0.044 [−0.116, +0.041] −0.065 [−0.119, −0.020]
  • Fable with documents (RAFT's own task): brevity alone reproduces the entire adapter gap. Brief instruct model = adapters. The lost points are conceptual parts going "partly" or "missing", because short final answers drop parts of two-part questions.
  • Exam: brevity explains about a third to half of the gap. The adapters stay below the brief instruct model. For Opus the interval excludes zero; for Sonnet it doesn't.
  • On the pre-labelled errors: the brief instruct model also failed 7 of 12 "skipped step" items, mostly leaving out the same step. On the "wrong written step" items it wrote the step correctly in most cases (it failed 6 of 29, and repeated the adapters' exact error in only 2).

Reading: skipped steps fit "too brief", because the instruct model at the same length skips them too. Wrong written-out steps don't, because the instruct model at the same length gets them right. Those fit skill damage from training.

Limits:

  • The labels come from one reader and weren't checked by a second.
  • The groups are small (12 and 29).
  • The items were chosen because the instruct model did well on them, so some regression to the mean is expected.

Findings

Measured:

  • The adapters copied the training answers' length and style. On RAFT's own task that costs exactly what the adapters lost.
  • On the exam there's an additional loss beyond length: wrong procedures on basics the instruct model knows.
  • Not the cause: serving, wrong training data, missing topics, retrieval.

Design gap. The training data teaches "the answer is in one of these documents: find it and cite it". The instruct model already did that well (0.875 on Fable with documents). The headline test, the exam, measures problem-solving, and its answers aren't in the documents at all. So the condition that mattered most never measured RAFT's skill, and the condition that did had little room left.

Not established: why training cost skills. The textbook explanation is forgetting (fine-tuning shifts weights that all skills share), and it fits, but it wasn't tested. An adapter-strength test (serve the adapter at 0.5 or 0.25 strength and see if the damage fades) was built and sanity-checked but not run.

Bug: a second scoring bug, again in unitless numbers, was found and fixed. It moved scores by +0.002 to +0.016 for every model alike and changed no conclusion.

Next Direction

I decided not to retrain with new Claude-written answers. ModEL is public coursework that the instruct model has probably seen (hypothesis), and the score of 0.875 left little room. The original target was niche documents. Two open questions: would longer reasoning from an open teacher model fix the length problem, and could the whole pipeline (teacher, retriever, judge) run locally? That's part 5.

Learning Points

  • Short reasoning in the training data had the largest single effect. It set the adapters' length, and on RAFT's own task that length explains the whole loss.
  • Rule out the plumbing first. The serve check was cheap and removed a whole class of explanations.
  • Write the labels before the test. Labelling the errors before Test A ran is what makes its split between brevity and damage believable.
  • Measure headroom before generating data. A small instruct-model run with and without documents would have shown 0.875 on the task RAFT trains for, and an exam whose answers can't be retrieved.

Next: part 5, the open-model retry. Gemma 4 31B as teacher and judge, longer answers, far fewer invented quotes, and still below the instruct model.