All insights

    AI in Production

    What Training Already Decided Before You Arrived

    · 8 min read · Anton Babayan, Founder

    A model arrives with its knowledge, its manners and its refusals already set, by a process nobody buying it had any part in. Most arguments about whether to fine-tune are really arguments about which of those three can still be changed, and they settle quickly once the stages are clear.

    The stage that put the knowledge in

    The first and overwhelmingly largest stage trains the model to predict the next fragment of text across an enormous corpus. Everything the model knows about the world arrives here, as a side effect of getting better at that prediction.

    It is also where the money goes. The scale is set by a trade-off between how many parameters the model has and how much text it sees, and the reference point for that trade-off is the 2022 Chinchilla work by Hoffmann and colleagues: for a fixed training budget, roughly twenty tokens of text per parameter. By that measure GPT-3, at 175 billion parameters trained on around 300 billion tokens, was substantially undertrained for its size.

    Current practice deliberately overshoots the ratio, training smaller models on far more text than the compute optimum suggests. The reason is not better training economics. It is that a smaller model is cheaper every time it answers, and a model that will serve many requests pays back the extra training many times over.

    The consequence for a buyer is that this stage is finished and unrepeatable at any budget a normal organisation has. Whatever the model does not know, it will not learn here.

    The stage that taught it to answer

    Straight out of the first stage a model continues text rather than responding to it. Asked how to fix a leaking tap, it may produce another plausible question, because that is what follows such a sentence on many web pages.

    A much smaller supervised stage converts it into something that answers: curated examples of an instruction followed by a good response, with the training signal applied only to the response. This is where the assistant shape comes from, and it needs a tiny fraction of the data the first stage needed. Quality matters far more than quantity here, which is why a few thousand carefully written examples can outperform a much larger careless set.

    This is the stage an organisation can realistically reproduce, and it is why fine-tuning is good at some things and poor at others.

    The stage that produced the refusals

    A final stage tunes the model against comparisons: people, or automated graders, judge which of two candidate answers is better, and the model is adjusted toward the preferred kind. Helpfulness, tone, hedging and refusals all come from here.

    None of that judging knew anything about your industry. A question that is routine in a bank's fraud team, a hospital's records office or a police procurement department can resemble a pattern the model was taught to decline, and it will decline it politely and consistently.

    That is a genuine input to the build-or-buy decision, because it is a behaviour of the general-purpose model rather than a defect to be reported, and no amount of prompting reliably argues a model out of it.

    So what can still be changed

    Facts: use retrieval, not fine-tuning. Teaching a model your documents by fine-tuning is the expensive wrong turn, because the stage that absorbs knowledge is the one you cannot run. Retrieval puts the document in front of the model at the moment of the question, and when the document changes you change the document. Fine-tuning bakes a fact in and requires another training run to correct it.

    Behaviour: fine-tuning works well. A house format, a narrow classification, a structured output that must parse every time, a consistent tone. These are shapes rather than facts, they are exactly what the supervised stage teaches, and a few thousand good examples move them a long way.

    Refusals: mostly not. They can be softened by a provider with a specialised agreement, and they cannot usually be argued away in a prompt. Treat them as a constraint when choosing, not as something to fix later.

    The part that made fine-tuning affordable

    Updating every weight in a large model needs enough memory to hold the model several times over, which puts it out of reach for most teams. Low-rank adaptation leaves the original weights frozen and trains a small set of additional ones alongside them, cutting the trainable parameters by orders of magnitude.

    Two practical effects follow. The hardware bill for a fine-tune drops to something an ordinary team can meet. And because the base model is untouched, several task-specific adaptations can sit alongside one copy of it in memory rather than requiring a separate deployment each.

    Why this keeps mattering after you choose

    Every one of these stages is redone when the provider releases the next model, by people optimising for their benchmarks rather than your task. A fine-tune is attached to a specific base model, so a retirement notice means repeating the work rather than changing a configuration value.

    Which is the argument for holding on to a graded set of real examples. It is the only instrument that can tell you whether the next model, or your own fine-tune of it, is better or worse at the thing you actually do.

    The short version

    Knowledge comes from a stage nobody outside a frontier lab can rerun, so use retrieval for facts. Behaviour comes from a small supervised stage that an ordinary team can reproduce, so fine-tune for format and task shape. Refusals come from an alignment stage that knew nothing about your industry, so treat them as a constraint on the choice. And keep an evaluation set, because the whole sequence is repeated by somebody else every time a model is replaced.

    Frequently asked questions

    Will fine-tuning teach the model our documents?

    Usually not in the way people hope. The stage that puts knowledge into a model is the enormous first one, and the fine-tuning you can afford is a much smaller pass that is good at teaching format, tone and task shape. For facts that must be current and correct, retrieval beats fine-tuning and is cheaper to fix when it is wrong.

    What is fine-tuning actually good for?

    Making the model behave a particular way every time: a house format, a narrow classification task, a style, a structured output that must parse. Those are behaviours rather than facts, and a few thousand good examples move them further than a hundred thousand mediocre ones.

    What is LoRA?

    A way of fine-tuning that leaves the original model untouched and trains a small set of additional weights alongside it. It cuts the hardware needed by a large factor and lets several task-specific versions share one base model in memory, which is what makes fine-tuning practical outside a research budget.

    Why does the model refuse things our business needs?

    Refusals come from the alignment stage, where the model was taught which answers people preferred. That training had no knowledge of your industry, so a bank's legitimate question can resemble a pattern the model was taught to avoid. It is a known cost of the general-purpose model and a real input to the build-or-buy decision.

    Related reading

    Planning something similar?

    We find where AI actually fits, build it, and get it running in production.

    Get in Touch