Skip to content
Search

What is fine-tuning an LLM?

Fine-tuning trains an existing model further on a smaller dataset. In a 2023 study, retrieval beat unsupervised fine-tuning for adding facts to a model.

In short. Fine-tuning is further training of a trained model on a smaller set of data, to adapt it to a task or a style. OpenAI describes it as giving a base model examples of the inputs and outputs an application expects. It changes how a model responds. For adding facts, a 2023 study found that retrieval-augmented generation worked better than unsupervised fine-tuning.

On this page 7 sections

The evidence

Confirmed

OpenAI's supervised fine-tuning needs at least 10 examples. OpenAI says it sees improvements from 50 to 100 examples and recommends starting with 50.1

1OpenAI API documentationOpenAI API documentation. Checked Nov 20, 2026.
Tested

The InstructGPT paper fine-tuned GPT-3 on labeler demonstrations and then with human feedback. Raters preferred outputs from the 1.3 billion parameter result, InstructGPT, to those of the 175 billion parameter GPT-3.3

3arXivarXiv, Mar 4, 2022. Human evaluations on OpenAI's prompt distribution.
Tested

Across knowledge-intensive tasks, retrieval-augmented generation consistently outperformed unsupervised fine-tuning, for both facts seen in training and new facts.4

4arXivarXiv, Dec 10, 2023.
Confirmed

OpenAI says it is winding down its fine-tuning platform, which is no longer open to new users. Existing fine-tuned models stay available until their base models are deprecated.1

1OpenAI API documentationOpenAI API documentation. Checked Nov 20, 2026.

Fine-tuning changes how a model responds, but a 2023 study found retrieval, the method AI search uses for current facts, consistently better than unsupervised fine-tuning for adding facts. OpenAI is also winding down its own fine-tuning platform.

Fine-tuning is further training of a model that has already been trained. A large language model first learns from a large body of text. Fine-tuning then trains it on a much smaller set of examples, so that it performs a specific task or writes in a specific style.

#How fine-tuning works

OpenAI's model optimization guide describes the process: collect a dataset of example inputs and outputs, upload it, create a fine-tuning job, and evaluate the result. OpenAI lists several methods. Supervised fine-tuning trains on examples of correct responses. Direct preference optimization trains on pairs of a better and a worse response. OpenAI says fine-tuning lets a model learn from more examples than fit in one prompt, work with shorter prompts, and use a smaller, cheaper model for a narrow task.2

OpenAI's supervised fine-tuning guide sets a minimum of 10 examples and recommends starting with 50. It also says to set up evaluations first, so there is a way to tell whether the fine-tuned model performs better than the base model.1 The same guide says OpenAI is winding down its fine-tuning platform: it is no longer open to new users, and existing fine-tuned models remain available until their base models are deprecated.1

#Fine-tuning for instruction following

Instruction-following models are built with fine-tuning. Training language models to follow instructions with human feedback, published in March 2022, fine-tuned GPT-3 in two stages: first on demonstrations written by labelers, then with reinforcement learning from human feedback. In human evaluations, raters preferred outputs from the 1.3 billion parameter result, InstructGPT, to outputs from the 175 billion parameter GPT-3.3 How do RLHF and Constitutional AI differ? covers the feedback methods.

#Fine-tuning and retrieval

What a model learns from fine-tuning is fixed when training ends. Retrieval adds documents to the prompt each time the model answers. Fine-tuning or retrieval? Comparing knowledge injection in LLMs, published in December 2023, compared the two on knowledge-intensive tasks. Retrieval-augmented generation consistently outperformed unsupervised fine-tuning, both for facts the model had seen in training and for new facts. The authors found that models struggle to learn new facts through unsupervised fine-tuning.4

AI search products answer questions about current facts by retrieving pages, as What is retrieval-augmented generation (RAG)? explains. A page's content can reach an answer in two ways: through the training data collected before a model's cutoff, or through retrieval when the question is asked. When does AI answer from training data, and when does it search? covers the difference, and What is training data? covers what models learn from.

Questions

What is the difference between fine-tuning and RAG?

Fine-tuning changes a model's weights by training it on examples, so the change is fixed when training ends. Retrieval-augmented generation leaves the model unchanged and adds retrieved documents to each prompt at answer time. A 2023 study found retrieval better for adding facts.

How many examples does fine-tuning need?

OpenAI's supervised fine-tuning requires at least 10 examples. OpenAI says it sees improvements from 50 to 100 well-crafted examples and recommends starting with 50 and evaluating the results before adding more.

Does fine-tuning teach a model new facts?

Not reliably, according to a 2023 study. It found that language models struggle to learn new facts through unsupervised fine-tuning, and that exposing them to many variations of the same fact during training helped. Retrieval-augmented generation outperformed fine-tuning in the same tests.

Notes

  1. 1
    Supervised fine-tuningOpenAI API documentation · Checked Nov 20, 2026 · Primary source
  2. 2
    Model optimizationOpenAI API documentation · Checked Nov 20, 2026 · Primary source
  3. 3
    Training language models to follow instructions with human feedbackarXiv · Mar 4, 2022 · Checked Nov 20, 2026 · Paper
  4. 4
    Fine-tuning or retrieval? Comparing knowledge injection in LLMsarXiv · Dec 10, 2023 · Checked Nov 20, 2026 · Paper

About this page

Researched and reviewed by Promptly Found. Reviewed Nov 20, 2026. Next review due Feb 2027.

Cite this page
Citation style

Promptly Found. (2026, November 20). What is fine-tuning an LLM? https://promptlyfound.com/glossary/fine-tuning

Revisions 1
First published.