Naru News日本語

Home › Glossary › AI

What is fine-tuning in AI?

Also called: Fine tuning

Term explainer · Checked November 9, 2026 · 10 min read

In one minute

Fine-tuning means giving an AI that has already learned from lots of data (a pre-trained model) some extra training on a smaller set of data chosen for a goal, so that the numbers inside it (its parameters) shift a little.

An AI first learns broadly from huge amounts of text or images (pre-training). That takes many computers and a long time. Fine-tuning doesn’t rebuild this base from scratch; it adds training on examples for a goal, such as answering medical questions or replying in a set format. That is why it needs far less data and computing. It is also used to finish chat AIs.

But it can’t teach just anything. It is poor at adding new facts, and it can make an AI forget what it could do before or weaken its ability to refuse dangerous requests.

A common mix-up

“Fine-tuning lets you reliably teach an AI new knowledge.”

Partly right, but not “reliably.” Changing the numbers inside an AI by fine-tuning does change how it answers. But it has turned out to be poor at teaching new facts. A 2023 study (Ovadia et al.) gave an AI called Mistral 7B four-choice questions about events that happened after the AI finished training. Fine-tuning it on articles about those events only raised its score from 48.1% to 50.4%. Looking up and reading the same articles each time it answers (retrieval-augmented generation, or RAG) got 87.5%. The researchers concluded that RAG is the more reliable way to add knowledge. A 2024 study (Gekhman et al.) also reported that examples of facts the AI didn’t know were learned much more slowly than facts it already knew, and that as it learned them, it became more prone to convincing but wrong answers (hallucinations).

Explained in pictures

A flow chart of pre-training and fine-tuning (the examples are made up for this page). Title: “Build the base once, then tune it.” Left box, “① Pre-training”: a stack of papers and “Learns broadly from huge text,” with “Takes a long time and much computing” below. An arrow leads right to a navy box in the middle, “Base AI (pre-trained model),” with “Tuning starts here” beneath it. From the base, three arrows branch right to three “② Fine-tuning” boxes: “Medical questions (tuned on medical Q&A),” “Shop inquiries (tuned on shop chats)” and “Set-format summaries (tuned on model summaries).” Band at the bottom: Not from scratch: just nudge the base’s numbers.
In pre-training (left), the AI learns broadly from huge amounts of text, building skills such as how words are used into the numbers inside it (its parameters). This is the step that takes the most time and computing. The base AI in the middle is the result. In fine-tuning (right), training starts from the base’s numbers and adds a little more with a few examples for each goal, making an AI for each one. Because the base isn’t rebuilt, it needs far less data and computing.
A figure comparing the computing in the BERT paper as squares. Title: “Base: 1,536 squares. Tuning: 1 square.” Subtitle: BERT-Large (2018 paper). 1 square = 1 Cloud TPU for 1 hour. Top row, “① Pre-training: 16 Cloud TPUs × 4 days = 1,536 squares”: a long rectangle packed with small gray squares, 16 rows (TPUs) by 96 columns (hours), labeled “16 TPUs” on the left and “96 hours (4 days)” below. Bottom row, “② Fine-tuning: 1 Cloud TPU, at most 1 hour = 1 square”: a single small orange square, circled, with “just this one” next to it. Band at the bottom: Every result: tuned in at most 1 hour on 1 TPU.
Each small gray square stands for using one Cloud TPU, Google’s computer for AI, for one hour. Pre-training the large version of BERT took 16 of them for 4 days (96 hours), so it fills 16 × 96 = 1,536 squares. Fine-tuning could reproduce any result in the paper in at most an hour on one of them, so it takes one square at most. Because it reuses the skills built into the base, the finishing step is far lighter (multiplying machines by hours to compare them is this page’s way of looking at it).
A figure of how LoRA works. Title: “Freeze the original, train small add-ons.” Subtitle: LoRA (2021). Left: a sketch, not to scale. On the left, a large square of gray cells with a padlock, labeled “Original numbers: frozen, unchanged.” To its right, “+,” a tall thin bar, “×,” and a wide thin bar, both striped orange, labeled “Small added numbers: only these train.” Box on the right, “On GPT-3 (175 billion)”: “Numbers trained: about 1/10,000,” “Memory in training: 1.2 TB → 350 GB,” “Saved per goal: 350 GB → 35 MB,” and “vs. full fine-tuning.” Band at the bottom: As good as full fine-tuning, far lighter (in the paper).
The large square on the left is the original numbers set in pre-training, and LoRA freezes them. The two thin striped bars are small added tables of numbers, and only these are trained. The two are multiplied together, and the result is added to the original numbers. The box on the right gives the paper’s figures for GPT-3 compared with changing every number: far fewer numbers to train, less memory and much less to save (the sketch on the left is not to scale).

Think of it like this

A trained cook learning a new restaurant’s flavors

Pre-training is like spending years at cooking school, learning basics such as cutting, grilling and simmering, along with how to make many dishes. It takes a lot of time and ingredients.

Fine-tuning is like that cook starting work at a noodle shop and learning its broth and plating in a few weeks. The basics are already there, so there is no need to start over. Different shops can each add their own finish on top of the same basics.

But the comparison has limits. A person who gets used to a new shop’s ways doesn’t quickly forget the dishes they could make before. An AI, though, can suddenly lose what it could do before when it learns something new (catastrophic forgetting). And while a person picks up news heard at work right away, fine-tuning is poor at teaching an AI new facts.

Key points

Why does it take less than training from scratch?

Because pre-training has already soaked skills that help with almost any goal, such as how words are used and facts about the world, into the values of the numbers inside the AI (its parameters). For an AI, learning means adjusting a huge number of such values, little by little, so that its answers come out right. Fine-tuning starts from those numbers and only nudges them to fit the goal, so a small number of examples and a little computing are enough. Even large language models (LLMs) can sometimes be fine-tuned on just a few hundred or a few thousand examples.

In language AI, this approach spread around 2018. A paper that year (Howard and Ruder) reported that, on tasks of sorting texts into types, fine-tuning a pre-trained model with only 100 labeled examples did as well as a model trained from scratch on 100 times as many.

The same year, Google researchers (Devlin et al.) released BERT. Just by adding one answer-giving part (an output layer) to the pre-trained model and fine-tuning it, BERT set new records on 11 tasks. Pre-training its large version used about 3.3 billion words of text from books and Wikipedia and took 4 days on 16 Cloud TPUs (Google’s computers for AI). Fine-tuning, by contrast, could reproduce any result in the paper in at most an hour on a single Cloud TPU, the paper says. Each task gets its own model, but every one starts from the same pre-trained numbers.

How is it different from prompts and RAG?

All three are ways to fit an AI to a goal, but they change different things. Fine-tuning changes the numbers inside the AI itself. A prompt (the instructions given to an AI) leaves those numbers alone and shows what you want, with examples, in text. Retrieval-augmented generation (RAG) also leaves them alone and has the AI look up and read documents each time it answers.

The 2020 GPT-3 paper (Brown et al., OpenAI) named a weakness of fine-tuning: it needs thousands or tens of thousands of examples for each task. GPT-3, without changing its numbers even once, handled many tasks just by being shown what to do and about 10 to 100 examples in text (few-shot).

Because fine-tuning is poor at teaching new facts, research has found RAG the more reliable way to add knowledge (more on the “Retrieval-augmented generation (RAG)” page).

How is it used in chat AIs?

An AI that has only been pre-trained is good at continuing text, but it doesn’t necessarily answer the way it is asked. So fine-tuning is used to finish chat AIs.

InstructGPT (Ouyang et al., OpenAI, 2022) was made with two rounds of fine-tuning. First, GPT-3 was trained on model answers written by people (this is called supervised fine-tuning, because the AI is shown the right answers). Then it was fine-tuned further with reinforcement learning from human feedback (RLHF), which uses people’s rankings of the AI’s answers as a guide. When people compared them on the requests the paper collected, they preferred the answers of this 1.3-billion-parameter model to those of the 175-billion-parameter GPT-3 (more on the “Reinforcement learning” page).

The paper calls fine-tuning with human feedback a promising direction for aligning AI with human intent (AI alignment).

Do all the numbers have to be changed?

In the usual way, where every number is changed (full fine-tuning), the finished model has as many parameters as the original. Fine-tuning a big AI for each goal leaves you with many big models. Training also takes a lot of computer memory.

So there are ways to avoid changing every number (parameter-efficient fine-tuning). LoRA (Hu et al., Microsoft, 2021) freezes the original numbers, adds two small tables of numbers, and trains only those. When it is used, a table the same size as the original is calculated from the two long, thin tables and added on top of the original numbers. Because the two can be merged into one before use, answering needs no extra computing and is no slower.

Tested on GPT-3 (175 billion parameters), compared with changing every number, it cut the numbers to be trained to about 1/10,000 and the memory of the GPUs (the chips used for AI computing; memory is where the numbers being worked on are kept) needed for training to about a third, from 1.2 TB to 350 GB. What has to be saved for each goal shrank from 350 GB to about 35 MB. Even so, on the tasks in the paper, its results were as good as or better than changing every number.

Can it forget what it learned before?

Yes. When a neural network changes its numbers to fit a new task, it can also change numbers that were important for an earlier task, and suddenly lose the ability to do it. This problem, pointed out in a 1989 paper and others, is called “catastrophic forgetting.”

It happens in large language models too. A 2023 study (Luo et al.) found it widely: when language AIs with 1 to 7 billion parameters were fine-tuned on one task after another, they lost knowledge they had, along with reasoning and reading skills. Within that range of sizes, it says, the bigger the model, the worse the forgetting.

There are ways to forget less. A 2017 study (Kirkpatrick et al., DeepMind and others) showed that if the numbers most important for earlier tasks are made harder to move during learning, a network can learn a new task while keeping its skill at the old ones.

Can safety training wear off?

Yes. Chat AIs are trained to refuse dangerous requests, but fine-tuning them afterward can weaken that. A 2023 study (Qi et al., Princeton University and others) fine-tuned GPT-3.5 Turbo through OpenAI’s fine-tuning service (API) on just 10 deliberately made examples. For less than $0.20, it came to answer nearly any dangerous request.

It can happen without bad intent, too. In the same study, just fine-tuning GPT-3.5 Turbo on a commonly used dataset of instructions and answers (Alpaca) raised the share of answers judged harmful, on a test of dangerous requests, from 5.5% to 31.8%. The researchers write that current safety measures fall short of handling the risks that fine-tuning brings.

Unlike the more familiar “jailbreaking,” which slips past the safeguards through the wording of a request, here the training itself loosens them (more on the “Jailbreaking” page).

Check yourself

  1. Q1What does “fine-tuning” an AI usually mean?

    Answer and explanation

    Answer: B Nudging the numbers of a trained AI a little

    Fine-tuning starts from the numbers inside an AI that has already learned from lots of data (a pre-trained model) and nudges them a little with a smaller set of data chosen for a goal. Because it doesn’t train from scratch, it needs far less data and computing. Keeping the numbers and improving the wording of a request is prompting, which is a different approach.

    More on this → In one minute

  2. Q2LoRA, announced in 2021, is one way to fine-tune a big AI. Which numbers (parameters) does LoRA change during training?

    Answer and explanation

    Answer: C Only added numbers; the originals stay fixed

    LoRA freezes the original numbers set in pre-training, adds two small tables of numbers, and trains only those. In the paper’s tests on GPT-3 (175 billion parameters), the numbers to be trained fell to about 1/10,000 and the memory needed to about a third, with results as good as or better than changing every number.

    More on this → Key points: Do all the numbers have to be changed?

  3. Q3In a 2023 study, a chat AI trained to refuse dangerous requests (GPT-3.5 Turbo) was fine-tuned on deliberately harmful examples and on ordinary everyday data, and its answers to dangerous requests were tested. What did the study find?

    Answer and explanation

    Answer: A Even ordinary data weakened its refusals

    Ten deliberately harmful examples made it answer almost any dangerous request, but that was not all. Even fine-tuning on harmless, ordinary data (Alpaca) raised the share of answers judged harmful, on a test of dangerous requests, from 5.5% to 31.8%. Changing the numbers inside an AI by fine-tuning can also weaken the ability to refuse dangerous requests that it learned before.

    More on this → Key points: Can safety training wear off?

Sources and how we checked

AI wrote this page from the sources above, and a different AI checked it against the text of those sources (November 9, 2026). A person with a master’s degree in science and a Japanese high-school science teaching license also read and checked it before publishing. Numbers are as of that date. If anything was hard to follow, you spot a mistake, or there’s a term you’d like explained, please write to [email protected].

AI terms

All 25 AI terms →