Skip to content
atlas

Fine-tuning

Giving an already trained model a short extra round of training on a smaller, focused set of examples to change how it behaves.

Draft - this entry has not been reviewed yet.

Formal

A second, smaller round of model training that starts from a finished general model and adjusts some or all of its weights on task-specific data, such as a company's own texts.

In plain English

Like a trained nurse doing a short course to focus on children's care - the broad skills stay, a narrow set is sharpened.

In practice

A pension fund fine-tunes a language model on thousands of past replies to members, so that it drafts answers in the fund's own tone and format.

Why it matters

Data used here becomes part of the model and is hard to take out again, so personal data in it may leak and cannot simply be deleted when someone asks.

Technical deep dive

Fine-tuning continues gradient descent from pretrained weights instead of a random initialisation, usually with a much smaller learning rate and dataset than pretraining. For language models the most common form is supervised fine-tuning (SFT): the model is trained with the ordinary next-token cross-entropy loss on prompt-response pairs, with the loss typically masked so that only the response tokens are scored. Preference-based stages such as RLHF or Direct Preference Optimization (Rafailov et al., 2023) are also fine-tuning in the broad sense; instruction tuning is SFT on a large, diverse set of instructions, which is what turns a raw pretrained model into an assistant.

Full fine-tuning updates every weight and needs optimiser state for all of them, which for a large model means several times the memory of the weights alone. Parameter-efficient fine-tuning (PEFT) avoids this. LoRA (Hu et al., 2021) freezes the original weight matrix W and learns a low-rank update BA, where B and A have a small inner rank r (often 8 to 64) and the update is scaled by alpha divided by r; for GPT-3 175B the authors reported roughly 10,000 times fewer trainable parameters. QLoRA (Dettmers et al., 2023) combines LoRA with a 4-bit quantised base model and made fine-tuning a 65-billion-parameter model feasible on a single 48 GB GPU. Adapters can be merged into the weights for serving or kept separate and swapped per tenant.

Fine-tuning is good at changing behaviour - format, tone, domain vocabulary, classification labels, tool-call conventions - and relatively poor at reliably adding new facts, which is why the usual advice is RAG for knowledge and fine-tuning for form. Typical failure modes are overfitting to a small dataset, catastrophic forgetting of general capabilities, and erosion of safety training: Qi et al. (2023) showed that fine-tuning an aligned model on as few as ten adversarial examples, through a commercial fine-tuning API, largely removed its refusal behaviour, and that even benign datasets degraded safety somewhat. Evaluation should therefore include regression and safety test sets, not just the target task.

Two governance points follow. Training data is absorbed into the weights and can be partially extracted by memorisation attacks, and there is no reliable way to delete one person's data from a trained model, so honouring GDPR Art. 17 erasure in practice means retraining or not training on personal data in the first place. Under the EU AI Act, the Commission's July 2025 guidelines on general-purpose AI models treat a downstream modifier as the provider of a new model, as an indicative threshold, only where the modification uses more than one third of the original model's training compute, so ordinary fine-tuning by a deployer normally does not trigger the GPAI provider obligations, though other AI Act roles may still apply.

Relationships

Sources & further reading

Standards & official texts

  • ISO/IEC 22989:2022 - Artificial intelligence concepts and terminology · ISO/IEC

Reference works

  • Howard & Ruder (2018), Universal Language Model Fine-tuning for Text Classification

Textbooks

  • Goodfellow, Bengio & Courville, Deep Learning · MIT Press

Where this data comes from

This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.

See the review queueSuggest a correction on GitHubThis term as JSON

Mentioned in

Check yourself

Loading…

Atlas is in beta.