How we fine-tuned a 4B model to answer twice as fast On 25 FinanceBench questions, median answer time fell from 7.5 to 3.5 minutes. Both versions earned 89% of available points.
- Some document collections cannot leave the building, so the AI that reads them has to be a small open model on the customer's own server. Small models are cheap to run but slow when they think: a 4B model reasoning through a page of financial tables can write thousands of words before it answers.
- We let a model 7 times bigger (Qwen 3.8, 27 billion parameters) write the final answer for 251 questions, reasoning included, kept the 234 it got right (rejection sampling), and fine-tuned Qwen3.5 4B on them: knowledge distillation of the teacher's chain of thought, by supervised fine-tuning with QLoRA.
- On 25 FinanceBench questions held out from training, run through the full agent: same accuracy (89%), and the median time per question fell from 7.5 to 3.5 minutes.
- Why: the trained model reasons far less before answering, about 1,050 tokens instead of 6,900. Our reading: it no longer has to work out how financial statements are laid out, because that knowledge is now in its weights.
- It is specific: on other kinds of documents the same model was also faster, but lost about 3 points out of 32.
A small model that thinks is accurate, and slow.
VectoGrid answers questions over a document collection with an agent: it searches, reads the passages it found, searches again, and finally writes an answer with a citation for every figure. For customers who cannot send their documents to an outside model, that agent runs on an open model on their own hardware, often on processors alone.
Out of the box, Qwen3.5 4B does this surprisingly well, but only when it is allowed to think before writing the answer. With thinking on it scores clearly higher than with thinking off; the price is time. To answer one question about a company's cash conversion cycle, it reasons through the balance sheet and the income statement line by line, writing several thousand tokens before the first word of the answer. On a GPU that is minutes; on a processor-only server, where a 4B model writes about 12 tokens a second, it can be half an hour for a single answer.
So the question was not "can training make it smarter" but: can it keep the accuracy of thinking, and lose most of the thinking?
FinanceBench: analyst questions over real filings.
FinanceBench is a public benchmark of 150 questions an equity analyst would ask, over 368 annual and quarterly reports of US listed companies. The answers are in the filings, but rarely in one sentence: a figure sits in a table on page 60, the question wants it for a given fiscal year, often as a ratio of two figures from different statements, and the documents run to hundreds of pages each. It is a fair test of reading financial tables, which is exactly where a small model spends its thinking.
With a hosted 27B model as the agent, VectoGrid answers 91% of the 150 questions over the whole 368-report library, at about 2 cents and 12 seconds a question. The question here is what a 4B model can do on a customer's own hardware, where every token is slow.
Teach only the last step, with a teacher that shows its work.
The agent's work has two parts: the search steps (which query to run, which page to open) and the final writer, which reads everything the searches gathered and writes the answer. The final writer is where the hard reading happens: figures are found in tables, years are matched and ratios are computed, and it is where a thinking model writes the most. We trained only that step. The search steps stay the untrained 4B, thinking off, in every run below.
- Collect the inputs. From earlier agent runs we took 251 final-writer calls: the question plus the passages the searches had gathered, exactly as the writer saw them. 197 come from FinanceBench (questions over US companies' annual and quarterly filings), 54 from other collections. They cover 139 questions; 25 more FinanceBench questions were set aside and never used in training.
- Let the teacher answer, reasoning included. Qwen 3.8 27B, 7 times the parameters of the student, answered each call with its reasoning kept, on a hosted service (Cerebras), for $5.16 in all. We graded every answer against its reference: 232 were right on the first pass, 2 more on a retry with more reasoning effort.
- Keep only the right answers. 234 examples, each the teacher's reasoning followed by its answer. A wrong answer is never shown to the student.
- Fine-tune. LoRA on Qwen3.5 4B: the base model loaded in 4-bit and frozen, small low-rank matrices trained on top (rank 16), learning rate 1e-4, 3 passes over the data, the loss on the teacher's turns only. One 48 GB GPU rented by the hour, about two hours.
- Choose the copy. After each pass we saved a copy. Each copy rewrote the final answer for 50 writer calls from the 25 held-out FinanceBench questions; the answers were graded blind. The copies scored 48.5, 50 and 49.5 out of 50 (the untrained model, thinking on: 48); the copy after 2 passes is the one tested below.
The difference with our first attempt matters. Earlier we had fine-tuned the same 4B on 300 of Claude's answers, which carry no visible reasoning: the student learned Claude's confident style without its judgement and got worse, 25.5 to 15.5 out of 32. This time the teacher's reasoning is in every example, so the student learns how the answer was reached, not only what it looked like.
Same accuracy, half the time.
The test: the 25 held-out FinanceBench questions, through the full agent (search steps and final writer), over the whole 368-document FinanceBench collection. Each version ran twice; Claude graded all four runs blind and side by side, reading every answer in full against the reference.
| Final writer, thinking on | Run 1 | Run 2 | Accuracy | Median time per question | Mean |
|---|---|---|---|---|---|
| Qwen3.5 4B, untrained | 22.5 | 22 | 89% | 7.5 min | 9.4 min |
| Qwen3.5 4B, trained by the 27B | 21.5 | 23 | 89% | 3.5 min | 5.35 min |
These are the same 25 questions whose writer calls chose the copy, so this is not an untouched test set: read it as a measurement on these 25 questions. The choice was between three copies within 1.5 points of each other, so it favours the trained model only slightly; the time saving does not depend on it. Out of 25: 1 for a correct and complete answer, 0.5 for a partly right one. One 48 GB GPU served both versions; the four runs ran side by side, four questions at a time each. The trained model was better on 3 questions and worse on 5; with two runs of 25 questions that is noise, so we read it as equal accuracy.
Where the time went
Replaying the final-writer calls of the 25 held-out questions shows what changed. The trained model still thinks before it answers, but much less:
| Final writer, thinking on, 50 held-out calls | Score | Tokens written per answer | Time per answer (GPU) |
|---|---|---|---|
| Untrained | 48 / 50 | about 6,900 | 164 s |
| Trained by the 27B | 50 / 50 | about 1,050 | 65 s |
On a processor-only server the gap is wider, because time there is almost entirely tokens written. We replayed one identical call (a cash conversion cycle question, with a 20,000-token prompt) on an 8-core CPU server with a 4-bit build of the model: the untrained writer had not finished after 30 minutes; the trained one answered in 20 minutes, and correctly.
Why it reasons less: our reading.
The shorter reasoning is measured; the reason for it is our interpretation. One call shows the difference: the same cash conversion cycle question, the same passages, both versions ending on the right answer (-3.70 days).
| Untrained writer | Trained writer | |
|---|---|---|
| Tokens written | 10,192 | 4,474 |
| Reasoning restarts ("Wait") | 19 | 3 |
| How it starts | "DPO Formula: ... Wait, the prompt says 'FY2019 COGS + change in inventory'. Usually, DPO denominator is (COGS + Change in Inventory) or just COGS. The definition provided in the prompt explicitly states ..." - and goes on re-reading the question's definitions before touching a figure. | "Values from GENERALMILLS_2019_10K: FY2019 Net sales: $16,865.2M - p53, Consolidated Statements of Earnings ... Inventories: May 26, 2019 = $1,559.3M; May 27, 2018 = $1,642.2M - p55, Consolidated Balance Sheets ..." - every figure with its page first, then the arithmetic. |
Reading the untrained model's reasoning, most of it is not arithmetic. It is orientation: which table holds the figure, whether it covers the quarter or the six months, which column is the year asked about, and then re-reading the same table to check. Its reasoning restarts with "Wait" a median of 18 times per answer. The teacher's reasoning goes straight to the figures and stops: a median of about 650 tokens, presumably because a 27B model already knows how financial statements are laid out.
Two observations support this. The gain is in the domain the teacher's examples came from: on our other test, 32 questions over different kinds of documents (company papers and market reports), the trained writer was also about 40% faster but lost about 3 points (25.5 against 28.25). A version trained on the teacher's answers without its reasoning gained no accuracy either, but it also ran with thinking off, so it does not separate the two effects. We have not proved the mechanism; it is the explanation that fits what we measured.
The post-training recipe, in full.
For readers who want the exact setup: this is post-training of a small reasoning model by teacher-student distillation, done with parameter-efficient fine-tuning (PEFT), served with multi-LoRA and quantised for CPU inference.
| Stage | What we used |
|---|---|
| Teacher | Qwen 3.8 27B, reasoning on, served by Cerebras; sequence-level distillation of its reasoning traces and answers (chain-of-thought distillation) |
| Data curation | Rejection sampling against reference answers (graded by an LLM judge), a retry at higher reasoning effort for the misses, no reference shown to the teacher; 234 examples in chat format with tool context |
| Student | Qwen3.5 4B, a hybrid linear-attention / full-attention model, trained with flash-linear-attention kernels |
| Method | Supervised fine-tuning (SFT) with QLoRA: base weights frozen in 4-bit (NF4), LoRA adapters of rank 16 and alpha 32 on the attention, linear-attention and MLP projections; loss masked to the assistant turns only (completion-only loss), reasoning kept in the target |
| Optimisation | Unsloth and Hugging Face Transformers; learning rate 1e-4, cosine schedule with warm-up, gradient accumulation, 3 epochs, sequences up to 43,000 tokens, one 48 GB GPU (RunPod) |
| Model selection | A checkpoint per epoch, chosen by graded score on writer calls from questions held out of training, not by validation loss (the full-agent evaluation then used the same 25 questions) |
| Comparison | The same data without the reasoning, trained and run with thinking off: no accuracy gain; since thinking was also off, this does not isolate the reasoning traces on its own |
| Evaluation | Held-out FinanceBench questions through the full agentic RAG loop (hybrid search, a Nemotron cross-encoder reranker, tool calls), two runs per version, blind side-by-side LLM-as-a-judge grading of every full answer |
| Serving (GPU) | vLLM with multi-LoRA: the base model and every adapter behind one OpenAI-compatible endpoint with native tool calling |
| Serving (CPU) | The adapter converted to GGUF and applied at load time on a Q4_K_M quantised base in llama.cpp |
In the vocabulary of inference-time scaling, the result is a cut in test-time compute: the trained model reaches the same accuracy with about 6 times fewer reasoning tokens, so the same hardware answers twice as many questions.
About $11, most of it the teacher.
| Step | Where | Cost |
|---|---|---|
| Teacher answers, 251 calls with reasoning | Qwen 3.8 27B, hosted | $5.16 |
| Training (two versions) and validation | one 48 GB GPU each, by the hour | about $5 |
| The FinanceBench test | one 48 GB GPU, about 1.5 hours | about $1 |
| Total | about $11 |
The result is a LoRA adapter of 65 MB that loads on top of the standard 4B model, on a GPU or on a CPU server.
What this does not show.
- 25 questions, also used to choose the copy. Enough to see a halving of time, which is large and consistent; not enough to see a few points of accuracy either way, and not an untouched test set. The next step is the same comparison on FinanceBench questions used for nothing else.
- One domain. The speed-up at equal accuracy holds on financial filings, where the teacher's examples came from. On other documents it costs accuracy. A customer with other documents would need examples from them.
- Only the final step. The search steps were not trained; teaching them the same way is the obvious next experiment.
The practical lesson for anyone running a small model on their own hardware: a bigger model's worked answers, reasoning included and wrong ones removed, can turn a slow, careful small model into a fast one in its domain, for the price of a lunch.
The terms, in plain words.
- Post-training: everything done to a model after its makers released it, to specialise it. Fine-tuning is the main form.
- Knowledge distillation (teacher-student): a big model (the teacher) produces worked examples; a small model (the student) is trained to reproduce them, inheriting part of what the big one knows.
- Chain-of-thought distillation: the examples include the teacher's step-by-step reasoning, not only its final answers, so the student learns how an answer is reached.
- Rejection sampling: generate answers, grade them, throw away the wrong ones; the student only ever sees correct work.
- SFT (supervised fine-tuning): training on input / expected-output pairs, here the question and passages in, the teacher's reasoning and answer out.
- PEFT, LoRA: instead of changing the model's 4 billion weights, train a small add-on (the adapter, here 65 MB) that adjusts them. Cheap to train, easy to switch on and off.
- QLoRA: LoRA with the base model held in 4-bit precision during training, so it fits on one rented GPU.
- Rank and alpha: the size of the adapter and how strongly it pulls on the base model.
- Completion-only loss: the model is graded only on the part it must learn to write (the reasoning and the answer), not on the question and passages it is given.
- Epoch, checkpoint selection: one epoch is one pass over the training examples; a copy (checkpoint) is saved after each, and the best is picked on questions kept aside for that purpose.
- Held-out validation and test sets: questions the model never trained on, one set to choose the checkpoint, another touched once to measure the final result.
- Ablation: remove one ingredient and rerun, to see whether that ingredient is what made the difference; a clean one changes only that ingredient.
- LLM-as-a-judge: a strong model grades each answer against the reference; blind and side by side, it does not know which version wrote which answer.
- Agentic RAG: the model answers by searching the documents itself, in several steps, rather than being handed one batch of passages.
- Cross-encoder reranker: a small model that rereads each search result next to the question and reorders them by relevance.
- vLLM, multi-LoRA: a GPU inference server that serves the base model and several adapters at once, each chosen per request.
- Quantisation, GGUF, llama.cpp: storing the weights in 4 bits instead of 16 so the model fits and runs on an ordinary CPU server; GGUF is the file format and llama.cpp the program that runs it.
- Test-time compute: the work a model does while answering, mostly the tokens it writes while reasoning. Less of it means faster, cheaper answers.