Slopfluencer

Notes › AI › Models and training

Adapting language models

A language model is first trained on a very large body of text, a stage called pretraining, which gives it general knowledge and fluency. Almost every model people use has then been changed again for a narrower purpose, such as following instructions, classifying customer messages or working as an agent. The second round of training uses fine-tuning, lightweight adapters, model merging, distillation or reinforcement learning (RL).

The methods differ in what they can add. Fine-tuning and distillation mostly teach a model to reproduce examples it is shown, so they are good at narrowing and cheapening a capability that already exists somewhere. Reinforcement learning lets a model try tasks and learn from whether it succeeded, which I see as how models pick up abilities that no example demonstrated, though researchers dispute it. Anyone deciding whether to train their own model or rent a general one runs into that difference.

After about three years of fine-tuning small models for narrow jobs, I treat a general model with a good prompt as the default starting point (see also The bitter lesson).

Background

Pretraining produces a model that predicts the next token of text. That model can continue a document but is not yet a useful assistant. Labs then apply post-training: supervised fine-tuning on examples of good responses, followed by preference training (teaching the model which of two answers people prefer) or RL, to produce the chat and coding models sold today. Outside the labs, companies and individuals apply the same techniques at small scale to adapt open-weight models to their own data.

Scaling research showed that a model's quality improves predictably with more parameters, data and compute.[22] That is why the strongest general models are large, and why the adaptation methods below are mostly used either to specialize a model or to make a capability cheaper to run.

How it works

Supervised fine-tuning

Supervised fine-tuning (SFT) continues training on input and output pairs that show the desired behavior. It is simple and reliable when good examples exist. Its limit is that the model learns the samples and only a little around them. As I put it, SFT gives you the sample and some limited generalization nearby.[3]

SFT is also better at teaching a model to use what it already knows than at teaching it new facts. In a controlled study on question answering, training examples that contained facts the model had not seen in pretraining were learned much more slowly than familiar ones, and once the model did learn them, its tendency to make up wrong answers rose in step. The authors conclude that models acquire most factual knowledge in pretraining, while fine-tuning teaches them to use it.[26] Fine-tuning can also erase general skills, a problem called catastrophic forgetting. One remedy is to have the model rewrite the training answers in its own words before training on them, so the data stays close to what the model would already produce. That reduced forgetting while matching or beating ordinary fine-tuning on the target tasks.[27]

Adapters and merging

Retraining every parameter of a large model is expensive, so most fine-tuning now trains a small adapter instead. LoRA freezes the original weights and learns a pair of small matrices per layer that nudge its output.[5] Variants push the size down further; LoRA-XS makes adapters more than a hundred times smaller than standard LoRA adapters for a 7-billion-parameter model while matching LoRA's accuracy.[8] Recent work even predicts the minimum adapter size a dataset needs before training starts.[9] One of its authors summarized the idea this way. A LoRA adapter injects some amount of information into a base model. For a given base model, it is possible to measure how much new information a dataset contains, and also how much a LoRA of each rank (its size) can store. Comparing those two measurements tells you which rank to use.[38]

Adapters are cheaper but not equivalent to full fine-tuning. A 2024 comparison on programming and math found that LoRA learned substantially less than training all the weights in most settings, but kept more of the base model's ability on tasks outside the target domain. Full fine-tuning made changes of 10 to 100 times higher rank than typical LoRA settings allow, which may explain the gap.[23] A later study found that LoRA still forgets in a specific way. Its trained weights contain new dominant directions, which the authors call intruder dimensions, and these pile up when a model is fine-tuned several times in sequence.[24]

Trained models can also be merged. Averaging the weights of several full models fine-tuned from the same base model, a "model soup", improves accuracy without making inference slower.[7] The same idea works for adapters: merging adapters that each learned one skill can solve tasks that need both skills, and in one study beat training a single model on the combined data.[6] A hypernetwork, a network whose output is the weights of another network, goes one step further and generates adapter weights directly, for example from a code repository[21] or from a document or a plain description of a task.[31]

Distillation

Distillation trains a smaller student model to imitate a larger teacher. The student can copy the teacher's final answers or, in layer-wise distillation, its internal representations.[10] The result is cheaper to run but, as a rule, no better than the teacher. A student can still beat much larger models. Orca-Math, a 7-billion-parameter model trained on 200,000 math problems generated by several cooperating models and then on feedback about its own solutions, scored 86.8 percent on the GSM8K benchmark of grade-school math and outperformed larger models such as Llama 2 70B and GPT-3.5.[33]

Self-distillation uses one model in both roles. The model answers once with extra help in its prompt, such as a worked solution, and those answers are used to train the same model to answer without the help. One study reports that it matches standard RL training on math reasoning benchmarks with much less compute.[12] It also has a known failure. A reasoning model writes out its thinking before answering, and part of that thinking is hesitation, words such as "wait" or "let me check" where it pauses to re-examine a step. One study found that self-distillation suppresses these hesitation tokens, with large drops in accuracy on unfamiliar math problems.[11]

Some self-distillation needs no help in the prompt at all. Researchers at Apple sampled code solutions from a model with particular temperature and truncation settings and fine-tuned the same model on those raw samples, with no teacher, no checker and no RL. Qwen3-30B-Instruct, an open model from Alibaba, rose from 42.4 to 55.3 percent on LiveCodeBench, a benchmark of recent programming problems, with most of the gain on hard problems. The authors attribute it to reshaped token probabilities. The model becomes more decisive where a single answer is right and keeps its variety where exploring helps.[28] An older loop, STaR, adds a filter. The model writes out its reasoning for many questions, only the reasoning that reached the correct answer is kept, and the model is fine-tuned on that and repeats. In 2022 this matched fine-tuning a model 30 times larger on a commonsense reasoning benchmark.[29] Because the filter is a score on the model's own attempts, STaR sits between distillation and RL.

In 2026 a run of papers made self-distillation on-policy, meaning the model learns from its own fresh attempts while a better-informed copy of itself grades each token. Self-Distillation Zero has the model revise its own answer after learning whether it passed, then trains the first-try model toward the revision; it improved math and code scores by at least 10 percent over the base models with only a pass or fail signal.[34] Reflective on-policy self-distillation gives the teacher copy a short corrective idea instead of a whole worked solution and trains only from the first wrong sentence onward, which kept reasoning more varied and training more stable.[35] Other variants choose what to teach, either by isolating the part of the model tied to correct answers[36] or by using the model's own short-context answers as the teacher for long documents.[37] All of them get a dense, token-by-token training signal without a separate, larger teacher.

Distillation is also a policy question. Because a student can be trained on a large model's outputs, anyone with access to a strong model can copy much of its ability cheaply, and frontier labs forbid this in their terms of service. Others argue that this copying is healthy, because it is one of the few forces that keep capability from concentrating in a handful of labs.[13] Labs usually hide their models' reasoning, and good distillation is thought to depend on it. In August 2026 one researcher relayed unconfirmed rumors that labs behind open models had found ways to recover hidden reasoning from commercial coding agents and trained on it. The same researcher's published work found that a model trained to reconstruct reasoning from final outputs can often recover useful traces, and the post argued that whether open labs can approximate frontier reasoning may decide the future of open-weight models.[30]

Reinforcement learning and environments

In reinforcement learning the model attempts a task, a checker scores the result, and training raises the probability of whatever led to a good score. When the score comes from a program that can verify the answer, such as a unit test or a math checker, the method is called RL with verifiable rewards. The checker together with its tasks is called an environment.

Environments have become the main object of post-training work. Reasoning Gym provides more than a hundred generators that produce endless verified problems at adjustable difficulty.[14] A researcher behind the GLM open models reported, without published data, large gains from a month of RL on long, multi-step environments in a release whose base model, architecture and parameter count were unchanged from its predecessor, and argued that past a certain model size, post-training such as this improves a model more than more parameters do.[16] One team trained agents inside a model that simulates seven kinds of software environment and found that this beat training in the actual environments.[17] Models can even write their own fine-tuning data and learn through RL which of those self-written training examples actually improve them.[15] Research on new reasoning formats, such as reasoning that keeps several candidate next tokens in play at once instead of committing to one, also relies on RL, because no human-written examples of the new format exist to imitate.[20]

Editing weights directly

A newer line of work skips training altogether and has a large model edit a small model's weights. In November 2026 one team reported that GPT-6 Astra, an OpenAI model (Model field notes calls it Astra), changed 0.016 percent of the weights of Qwen3.5-0.8B, a small open model, and improved its math up to sixfold and its instruction following threefold, with no gradients or training.[39] Weeks later another researcher had Claude, Anthropic's model, write small hand-built components, such as a calculator and mistake detectors, directly into the weights of Qwen3-0.6B. With them switched on, the model's GSM8K score rose from 68 to 83 percent and its IFEval instruction-following score from 58 to 72 percent.[40] Both results were announced in posts rather than peer-reviewed papers.

History and timeline

  • 2020: scaling research shows model quality improving predictably with parameters, data and compute.[22]
  • May 2022: STaR shows a model improving its reasoning by training on its own correct attempts.[29]
  • 2023 to 2026: I fine-tune small models for narrow, high-volume tasks and learn how expensive the upkeep is.[1]
  • Feb 2024: Orca-Math shows a 7-billion-parameter model trained on synthetic problems outperforming much larger models at grade-school math.[33]
  • Feb 2024: self-distillation fine-tuning is proposed as a fix for catastrophic forgetting.[27]
  • May 2024: two studies find that LoRA learns less than full fine-tuning but forgets less,[23] and that fine-tuning on unfamiliar facts encourages made-up answers.[26]
  • Oct 2024: I write that reports of fine-tuning's death are exaggerated, because a small model fine-tuned for one purpose has much lower per-token latency than a large general model.[32]
  • Feb 2026: Sakana AI shows hypernetworks that generate LoRA adapters on the fly.[31]
  • Apr 2026: Apple researchers report that a model improves at code by fine-tuning on its own unfiltered samples.[28]
  • Apr to May 2026: a run of papers on on-policy self-distillation appears.[34][35]
  • Jun 2026: I describe LoRA adapters and hypernetworks as a promising, cheap way to specialize models.[5]
  • Jul 2026: I argue that distillation is capped by its teacher and that RL is how models exceed it.[4] I also note that tools which automate fine-tuning still leave the hard part, building the right evals and curating the dataset, and that I would not yet let an agent run the whole process.[43]
  • Aug 2026: I argue that training a model for one specific agent harness is a step backward, since the goal was models that generalize across tools.[19] I also contrast SFT and RL with the piano analogy quoted below.[3]
  • Aug 2026: rumors circulate that open models were distilled from reasoning recovered from frontier coding agents.[30]
  • Oct 2026: I publish my account of fine-tuning small models, and an article on small, fast judgment models.[1][2]
  • Nov 2026: Hugging Face releases a version of a small open model, Inkling-2-Mini, trained with RL to work inside Pi, a minimal open-source agent harness. On Terminal-Bench 2.1, a benchmark of command-line tasks, the adapted model reaches the original model's score in 25 minutes of working time instead of 60, and scores higher within a one-hour budget. It is a counterexample to my harness argument.[18]
  • Nov 2026: researchers report frontier models editing small models' weights directly to fix failure modes.[39][40]

My position

The methods fall into two groups. Fine-tuning and distillation from a separate teacher narrow a capability that exists somewhere into a cheaper or faster form, and they top out at their source. Distillation in particular is training on synthetic data. The teacher generates the examples, so the student can at best learn what the teacher already does.[4] Reinforcement learning can add abilities no example showed. It is closer to handing a musician a piano and letting them follow their own rabbit holes than to having them copy sheet music.[3]

For my own work this means I don't fine-tune to gain capability. I start with a general model and an eval, get a prompt working even if it is slow and expensive, and fine-tune only when I need lower cost or latency at volume (Start with the eval). After years of doing it the other way, I found that every new base model reset the work: new data formats, new training settings, retraining, and sometimes worse results.[1] Fine-tuning a small model can beat a large lab's model at one narrow task, but it leads into an endless cycle of curating datasets and evals, chasing new model releases and running inference, and the upkeep stays expensive even with agents doing some of it.[41] For quick yes-or-no decisions I now use off-the-shelf judgment models that need no task-specific training (A small model decides when to interrupt); training a classifier of my own still pays only for fixed, high-volume classification.[2]

I also don't think models should be trained for one harness. The point of a general model is that it works with any set of tools, so a model tuned to one harness's tool names and habits gives that up, and it ages when the harness changes.[19] I hold these views with medium to high confidence.

Evidence

My fine-tuning experience is the main evidence for the cost side of this view.[1] The research above fits the capability side less firmly. A researcher behind the GLM models reported, without published data, that RL on long tasks improved a release whose size was held fixed,[16] and the distillation work cited here reports students that come close to their teachers without exceeding them.[10] Self-distillation is the case that fits least well: it matched RL on math benchmarks.[12] I read it as consistent with the view, because its source is the model plus a worked solution in the prompt, which is more than the model alone, but the result does narrow my claim to distillation from a separate teacher. Simple self-distillation on code is harder to fit, since it used no extra help of any kind.[28] The authors' explanation is that training sharpens choices the model could already make. I read that as a gain in how reliably the model uses an existing ability rather than a new ability, but the paper does not test that distinction. The strongest result against the capability side is an April 2025 study which found that RL with verifiable rewards makes a model more reliable at reasoning its base model could already produce, but does not create new reasoning patterns (RL with verifiable rewards).[25] The research on SFT supports the narrower half of the view more directly: fine-tuning struggles to add knowledge and can raise the rate of made-up answers when it tries.[26]

Criticism and counterpoints

Fine-tuning remains the right tool for some jobs. High-volume classification and extraction run far cheaper on a small trained model, and a fine-tuned model can be the only option when data can't leave a company. Students can also beat their teachers on narrow tasks when only the teacher's best outputs are kept for training, which is a common argument for distillation. RL tied to one harness clearly works in the short term,[18] even if it ages with the harness. My confidence rests mostly on my own projects and on lab reports rather than controlled comparisons.

My own record cuts both ways. In 2024 I defended fine-tuning small models on latency and per-token cost,[32] and the reasons have not gone away. What changed my practice was the upkeep each new base model demanded, and a team with better training tooling might pay less of it. The cheap adapters I favored in mid-2026 also carry a measured price, since LoRA learns less than full fine-tuning on hard domains such as code.[23]

Open questions

  • Is there a durable niche for small fine-tuned models beyond latency and volume?
  • Will adapter merging make fine-tuning cheap enough to survive the churn of base models?
  • How much of the recent progress in math comes from new datasets and training environments rather than new methods, and could tracking what data is being produced predict the next gains?[42]
  • Can direct weight editing by a stronger model become a dependable alternative to fine-tuning, or does it only work on small models?
  • When do models learn reliably on the job, so that curated context (An agent is only as useful as what it knows about you) matters less?

See also

Change log

  • 2026-12-03: Enriched with Orca-Math, the 2026 wave of on-policy self-distillation, direct weight editing by frontier models, a measured view of LoRA rank, my note on the upkeep spiral of small fine-tuned models, and more papers in Reading.
  • 2026-12-03: Enriched with research on what SFT and LoRA can and can't teach, simple self-distillation and STaR, the reasoning-trace distillation debate, and a longer dated timeline including my 2024 defense of fine-tuning.

Reading

References

  1. ^ Fine-tuning small models is a fast way to learn the bitter lesson (post, Oct 2026)
  2. ^ Are system one models worth the hype? (post, Oct 2026)
  3. ^ SFT gives you the sample, RL gives you new capabilities (@trashpandaemoji, Aug 2026), since deleted
    @loktar00 That’s interesting. Supervised Fine Tuning (SFT) is exactly this but you also get some capabilities local to the sample, basic limited generalization. RL is where you get new capabilities. Like giving a musician a piano and letting them try stuff and going down rabbit holes.
  4. ^ Distillation is synthetic data capped by the teacher (@trashpandaemoji, Jul 2026), since deleted
    @oneill_c At the end of the day distillation is just another form of synthetic data generation. It caps out at the teacher model’s limits. RL is how models exceed the limits.
  5. ^ LoRAs as cheap adapters, and hypernetworks (@trashpandaemoji, Jun 2026), since deleted
    @randNonce Sakana has a paper on hyper networks. Loras are useful for text too, it’s basically a small adapter layer over the base model layers that you train. Lets you train a much smaller chunk than training the full weights. What they did here is to train a neural network to output…
  6. ^ Prabhakar et al., LoRA Soups: Merging LoRAs for Practical Skill Composition Tasks
  7. ^ Wortsman et al., Model soups: averaging weights of multiple fine-tuned models
  8. ^ Bałazy et al., LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameters
  9. ^ Computing the minimum LoRA rank for a fine-tuning dataset (@EngramLab, Nov 2026)
  10. ^ Liang et al., Less is More: Task-aware Layer-wise Distillation
  11. ^ Why Self-Distillation Sometimes Degrades Reasoning Capability of LLMs
  12. ^ On-Policy Self-Distillation for Large Language Models (OPSD)
  13. ^ Distillation is good and healthy for AI (@ClementDelangue, Nov 2026)
  14. ^ Stojanovski et al., Reasoning Gym: Reasoning Environments for RL with Verifiable Rewards
  15. ^ Zweiger et al., Self-Adapting Language Models (SEAL)
  16. ^ Scale RL and long-horizon environments, not parameters (@jietang, Aug 2026)
  17. ^ Qwen-AgentWorld, a language world model as an RL environment (@Alibaba_Qwen, Jun 2026)
  18. ^ A small model trained with RL for one specific agent harness (@ClementDelangue, Nov 2026)
  19. ^ Training models for one harness is a step backward (@trashpandaemoji, Aug 2026), since deleted
    @NousResearch @firesidealpha I thought the whole point was to build generalizable models. Tying them to the harness kinda admits defeat?
  20. ^ Tang et al., Multiplex Thinking: Reasoning via Token-wise Branch-and-Merge
  21. ^ Code2LoRA: a hypernetwork that turns a repository into adapter weights (@liliana_hotsko, Jun 2026)
  22. ^ Kaplan et al., Scaling Laws for Neural Language Models
  23. ^ Biderman et al., LoRA Learns Less and Forgets Less
  24. ^ Shuttleworth et al., LoRA vs Full Fine-tuning: An Illusion of Equivalence
  25. ^ Yue et al., Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?
  26. ^ Gekhman et al., Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?
  27. ^ Yang et al., Self-Distillation Bridges Distribution Gap in Language Model Fine-Tuning
  28. ^ Zhang et al., Embarrassingly Simple Self-Distillation Improves Code Generation
  29. ^ Zelikman et al., STaR: Bootstrapping Reasoning With Reasoning
  30. ^ Rumors that open models were distilled from frontier reasoning traces (@jxmnop, Aug 2026)
  31. ^ Doc-to-LoRA and Text-to-LoRA, hypernetworks that generate adapters (@SakanaAILabs, Feb 2026)
  32. ^ Task Oriented Dialog Systems (post, Oct 2024)
  33. ^ Mitra et al., Orca-Math: Unlocking the potential of SLMs in Grade School Math
  34. ^ He et al., Self-Distillation Zero: Self-Revision Turns Binary Rewards into Dense Supervision
  35. ^ Zhao et al., Beyond Imitation: Reflective On-Policy Self-Distillation for LLM Reasoning
  36. ^ Hao et al., Self-Policy Distillation via Capability-Selective Subspace Projection
  37. ^ Zhang et al., OPSDL: On-Policy Self-Distillation for Long-Context Language Models
  38. ^ LoRA injects a measurable amount of information into a base model (@jxmnop, Nov 2026)
  39. ^ A frontier model edits a small model's weights to improve its math (@rikiyatakehi, Nov 2026)
  40. ^ Weight-space micromachines bolted onto a small model (@DimitrisPapail, Nov 2026)
  41. ^ Fine-tuning small models is a surefire way to experience the bitter lesson (@trashpandaemoji, Oct 2026)
  42. ^ Are recent math gains driven by new datasets and environments? (@trashpandaemoji, Nov 2026)
  43. ^ The hard part of automated fine-tuning is still evals and data (@trashpandaemoji, Jul 2026), since deleted
    @zekramu @UnslothAI has been enabling this for two years now, it’s cool to see it more automated, the hard part is still building the right evals and curating the dataset. Idk if I would fully let an agent own the full thing end to end yet.