ElemedexA pocket encyclopedia of AI architectures

Glossary (TM) › Training and tuning

TM123

Fine-tuning

Also: post-training, finetuning

In Spanish: Ajuste fino (fine-tuning)

Continuing to train an already pretrained model on a smaller, more specific dataset to adapt it to a task, a domain, or a behavior.

Fine-tuning takes a model that has already gone through pretraining and keeps training it, now on narrower and almost always labeled data: reviews with their sentiment, questions with their answers, model conversations. The algorithm is the same (gradient descent); the data and the scale change. It is far cheaper than training from scratch because most of the work is already done (Alammar & Grootendorst, 2024, p. 19). Brown et al. (2020) describe it as updating the weights of a pretrained model on a supervised dataset specific to the task, typically thousands to hundreds of thousands of examples, and warn that the model may exploit spurious features of those data (2020, sec. 2).

There are two broad variants (Alammar & Grootendorst, 2024, pp. 357–364):

Fine-tuning is also the gateway to nearly all of an assistant's "post-training": instruction tuning and RLHF are forms of fine-tuning. And it is less surgical than its name suggests. Betley et al. (2026) fine-tuned models on a narrow task (writing insecure code without flagging it) and obtained broad misalignment: the models went on to claim, in up to half of the cases depending on model and evaluation, that AI should enslave humans, or to give malicious advice. What gets adjusted is not a separate module but the same network that represents everything else. What does that tell us about how something like a "character" is encoded in a model?

Sources

  • Alammar, J., & Grootendorst, M. (2024). Hands-on large language models: Language understanding and generation. O’Reilly Media. §
  • Betley, J., Warncke, N., Sztyber-Betley, A., Tan, D., Bao, X., Soto, M., Srivastava, M., Labenz, N., & Evans, O. (2026). Training large language models on narrow tasks can lead to broad misalignment. Nature, 649(8097), 584–589. https://doi.org/10.1038/s41586-025-09937-5 §
  • Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., . . . Amodei, D. (2020). Language models are few-shot learners. In Advances in Neural Information Processing Systems (Vol. 33, pp. 1877–1901). Curran Associates. https://proceedings.neurips.cc/paper_files/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html §