Fix a Model's Gap With the Pillar the Gap Belongs To
Before you fine-tune, find out which decision went wrong.
Every turn an agent takes involves six decisions. We call them the Six Pillars:
| pillar | the decision it makes |
|---|---|
| Intent | what is being asked, and how much effort it deserves |
| Context | what the model needs to know that is not in its weights, and where to get it |
| Reasoning | how deeply to think before answering |
| Orchestration | which model, tool or agent should do the work |
| Creation | what to produce, in which format |
| Learning | what to keep from the outcome, and what to change |
When a model fails a benchmark dimension, the obvious conclusion is that the model is weak at it, and the obvious fix is to train it. We measured four of those gaps today on two small models: Bonsai 2 27B and Gemma 4 12B, which share one RTX 5090 (see Two Small Models, One GPU). Three of the four had nothing to do with weights. Each was a wrong decision in one pillar, and fixing that decision cost nothing. The fourth is a real skill gap, and it is the only one we are training for.
How the numbers were taken
Every number below comes from AitherBench result files and eval_report.py. For each item
both runs answered, the report takes the score difference, draws 2,000 seeded bootstrap
resamples and prints a 95% interval. A delta counts only when the interval excludes zero.
A dimension has 15 items, so one flipped answer moves it by 0.067. Empty answers and transport
errors are left out of both sides of a pair; they are never scored as zero.
Context: a knowledge gap, fixed by retrieval
stack_ops asks for one shell command that is correct on our stack. Our fleet is rootful
podman inside a dedicated WSL distro, not Docker. Services speak TLS only. Pausing a service
durably means removing it, not stopping it, because a self-healing timer restarts stopped
containers. A command is scored against required patterns and against every known trap. No
public model has seen this stack, so a generic docker ps is wrong however well-reasoned it is.
Without help, both models scored 0.00, 15 of 15 items wrong. That is not a reasoning failure. The models were never told the facts.
The facts already exist in one file. Every trap that has cost a real session is recorded as a row with the situation that triggers it, the wrong form an agent reaches for, and the right form. We rendered the file into a system-prompt block, one line per row:
- {trigger}: NOT `{wrong}` -> USE `{right}`
A rendered row looks like this:
- operating fleet containers: NOT `docker compose restart` -> USE `podman` in the fleet distro, or systemctl on the quadlet unit
The block has 44 rows and 6,777 characters. We ran the same 15 items again with the block in the system prompt:
| model | no rules | with rules | paired delta | 95% CI | better / worse / tied |
|---|---|---|---|---|---|
| Bonsai 2 27B | 0.000 | 0.933 | +0.933 | [+0.80, +1.00] | 14 / 0 / 1 |
| Gemma 4 12B | 0.000 | 0.800 | +0.800 | [+0.60, +1.00] | 12 / 0 / 3 |
Compare that with training. The targeted LoRA round from the earlier post included 211 stack_ops rows for Bonsai and 221 for Gemma. Each adapter was benchmarked against its own base on the same server:
| fix | Bonsai 2 27B on stack_ops | Gemma 4 12B on stack_ops |
|---|---|---|
| LoRA (211 / 221 rows, rented GPU time) | +0.000, CI [+0.00, +0.00], 0 / 0 / 15 | +0.333, CI [+0.13, +0.53], 5 / 0 / 10 |
| rules in the prompt (6.8 KB, no training) | +0.933 | +0.800 |
The LoRA helped Gemma a little, and it did nothing for Bonsai. The prompt block beat it on both models, and it updates the moment someone adds a row to the file.
The bench items are derived from the same rules file, so this is an open-book test, which is also the production setting: when a turn touches the fleet, the matching rows are retrieved at answer time. Here the whole file was supplied, so retrieval quality is not part of the score.
Reasoning: a depth gap, fixed by turning thinking on
Bonsai 2 27B scored 0.47 on planning with thinking off. The same model, on the same 15
items, with thinking on and a 2,048-token reasoning budget:
| Bonsai 2 27B, planning | thinking off | thinking on |
|---|---|---|
| score | 0.467 | 0.840 |
| paired delta | +0.373, CI [+0.13, +0.64] | |
| better / worse / tied | 6 / 0 / 9 | |
| wall time for 15 items | 17.3 s | 181.6 s |
The weights already knew how to plan. The turn simply had not been given room to think. This fix is not free: it took about ten times the wall time. That is why the decision belongs in the Reasoning pillar, scaled by effort, rather than turned on everywhere. A one-line lookup should not pay for a planning budget.
The budget has to be capped. On a server with no reasoning cap, a model can spend its whole output allowance thinking and never return an answer, which reads as a wrong answer.
Orchestration: a perception gap, fixed by routing
Bonsai read text in images on 0 of 6 OCR items; Gemma read 6 of 6. Across the 42-image vision bench the scores were 0.762 and 0.929, a paired delta for Gemma of +0.167, CI [+0.024, +0.310].
The first suspicion was quantisation. Switching Bonsai's vision projector from Q8_0 to BF16 moved OCR to 1 of 6. Precision is not the problem, and no affordable training run would fix it. The fix is to route: image turns go to Gemma first, with Bonsai as the fallback. Both are resident on one RTX 5090 at about 22-25 GB of the card's 32 GB, so the route costs no load time. The model did not have to get better. The router had to stop sending it the wrong work.
Creation: a format gap, the one worth training
six_pillars asks whether a model produces our six-move reasoning trace. Inside its thinking
the model is expected to write tagged moves in order:
[INTENT] restate the task and the check that says "done"
[CONTEXT] measured: ... | assumed: ...
[PLAN+PREDICT] numbered steps, then PREDICT: <expected observation> p=<0..1>
[ORCHESTRATE] which tool and why
[CREATE] the smallest thing that tests the idea
Diagnosis tasks add a strategy block. After a tool result, the next turn opens with [LEARN],
quoting what was observed against what was predicted. A deterministic grader scores the structure, prediction before action, and
whether LEARN cites the real observation, with a penalty for overthinking simple items.
This dimension grades the reasoning itself, so the grader has to see it. llama.cpp returns
reasoning in a separate field, reasoning_content, next to the final answer. The benchmark
transport now keeps that field for items graded on the raw reply, and both models were measured
with it:
| six_pillars, thinking on | answer only | answer + reasoning_content | paired delta |
|---|---|---|---|
| Bonsai 2 27B | 0.200 | 0.067 | -0.133, CI [-0.33, +0.00] ~ |
| Gemma 4 12B | 0.133 | 0.200 | +0.067, CI [+0.00, +0.20] ~ |
Neither change is significant: with the full reasoning visible, both models still rarely produce the format. This is a gap in skill and format, not in knowledge, depth or routing, and it is the one kind of gap where fine-tuning is the right tool: the model has to learn to write something it has never seen.
Learning: the gate keeps only measured wins
We have trained four paired LoRA runs so far, $57.82 of rented GPU time in total:
| run | corpus | delta vs own base | dimensions lost |
|---|---|---|---|
| Bonsai r1 | generic | +0.009 | doctrine (significant) |
| Gemma r1 | generic | -0.009 | six_pillars (significant) |
| Bonsai v25 | targeted, anchored | +0.020, CI [+0.000, +0.044] | none significant |
| Gemma v25 | targeted, anchored | +0.015, CI [-0.015, +0.044] | none significant |
The promotion gate rejected all four. It needs an overall lower bound strictly above zero and no dimension lost. Each round-1 run lost a dimension it was not trained on: a corpus unteaches what it leaves out. The v25 corpus fixed that by using the model's own correct answers as anchors, about 45% of rows. No dimension dropped significantly, but no gain cleared its interval either.
That is the gate doing its job. A run that cannot beat its own base by a measurable margin does not ship, however good its training loss looks. The loop now runs during quiet hours on our own DGX Spark, so a rejected run costs only electricity. With the gaps above handled outside the weights, the training corpus can concentrate on the six-move format, where training is the only fix.
Classify the gap first
| gap kind | symptom | pillar | fix | measured effect today |
|---|---|---|---|---|
| knowledge | right shape, wrong facts about our world | Context | retrieve the facts into the prompt | stack_ops 0.00 -> 0.93 (Bonsai), 0.00 -> 0.80 (Gemma); LoRA +0.00 (Bonsai) |
| depth | right facts, plan falls apart | Reasoning | thinking on, capped budget, scaled by effort | planning 0.47 -> 0.84, CI [+0.13, +0.64], ~10x wall time |
| perception | cannot see what is in the input | Orchestration | route to the model that can | OCR 0/6 -> 6/6 by sending images to Gemma; BF16 projector 1/6 |
| skill / format | knows and sees, cannot produce the shape | Creation | fine-tune, anchored, gated | six_pillars 0.067 (Bonsai) / 0.20 (Gemma) with reasoning graded; training target |
| regression | a tune helps one dimension, hurts another | Learning | anchor corpus + promotion gate | 4 of 4 runs rejected; anchored runs lost no dimension |
Run the cheap checks before the expensive one. Give the model the facts and see if the score moves. Give it room to think and see if it moves. Try the other model. Train only what is left after those three.
What comes next
This is the plan; none of it has shipped yet.
- A per-turn PillarTrace. Each turn records its six decisions: the classified intent, the gap kind, the effort level, which context was retrieved, whether thinking was on, which model answered, and the outcome. When a turn fails, the trace shows which pillar decided wrong.
- Per-pillar eval dimensions. Today the bench scores tasks, and we infer the pillar afterwards, as in this post. The next step is to score each pillar's decision directly: was the right context retrieved, was the effort level right, was the route right.
- Small models for the routing decisions. AitherNeurons, our small fast models, learn the Intent, Context and Orchestration decisions from PillarTrace outcomes. Those decisions are classification problems, and a small model can make them in milliseconds. The large model is then trained only on what it actually lacks, which is skills such as the six-move format.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.