AI fundamentals

SFT

AI-assisted editorial review:

SFT stands for supervised fine-tuning. It is a post-training step in which a pretrained language model is trained further on example prompts paired with desired answers, often written by humans, so that it learns to follow instructions.[1] A base model trained only on raw text tends to continue text rather than carry out a request. A common recipe is therefore to teach response format and behavior with SFT first, then apply preference optimization such as RLHF or DPO.[1][7] ChatGPT's first version was built this way: an initial model trained with SFT, then refined with RLHF.[2]

What does SFT mean in simple terms?

SFT (supervised fine-tuning) is like handing a well-read but inexperienced new hire a binder of model Q&A and asking them to follow it. The new hire already knows a lot from reading, but does not yet know how to answer a customer. After this training step, a model that used to just continue sentences starts answering questions like an assistant.[1]

How can SFT be explained with an analogy?

It is like on-the-job training with a book of model answers, so a new employee picks up the company's tone and way of working.

Where is SFT used?

Case 1

OpenAI — InstructGPT, the groundwork for ChatGPT

In its 2022 InstructGPT paper, OpenAI described a post-training process that combines SFT with reinforcement learning from human feedback.[1] Labelers wrote demonstrations of the desired behavior, which were used to fine-tune GPT-3 with supervised learning; ranked comparisons of model outputs were then used for RLHF.[1] OpenAI trained ChatGPT with the same methods, with slight differences in data collection, starting from an initial model trained with SFT.[2]
Result (as reported in the paper): In human evaluations, outputs from the 1.3B-parameter InstructGPT model were preferred to those of the 175B GPT-3, despite having 100x fewer parameters.[1]

Case 2

LG AI Research — Two-stage post-training for EXAONE 3.0

In the EXAONE 3.0 technical report released in August 2024, LG AI Research describes a two-stage post-training process: SFT on instruction data to help the model generalize to new tasks, then DPO to align it with human preferences.[3] The report lists 8 trillion training tokens for the 7.8B model.[3] It is an example of SFT used as a standard step in a Korean model's published training recipe.
Result (as reported by LG AI Research): Ranked first among the compared open models on average Korean "general" benchmarks (74.1, covering KMMLU, five KoBEST tasks and Belebele) and on Korean real-world use-case benchmarks (8.77, the average of KoMT-Bench and LogicKor).[3]

Case 3

OpenAI developer guidance — Choosing SFT, DPO or RFT

An OpenAI Cookbook guide separates SFT, vision fine-tuning, DPO and reinforcement fine-tuning (RFT) and lists what each is good for and not good for.[4] It recommends SFT for customizing structure or tone, producing a specific format and correcting instruction-following failures, but not for adding entirely new knowledge (where it suggests RAG) or tasks with subjective quality.[4] The recipe is now archived, and OpenAI says it is winding down its fine-tuning platform, which no longer accepts new users.[4][5] The selection criteria remain a useful checklist when deciding whether to customize a model.
Result: A clear split: tasks with a clear correct output point to SFT; tasks driven by preference comparisons point to DPO.[4]

Case 4

Hugging Face — SFTTrainer in the open-source TRL library

Hugging Face's TRL library provides SFTTrainer, a trainer API for running SFT on open models with your own dataset.[6] It accepts standard and conversational datasets, applies the chat template automatically for conversational data, and can train lightweight PEFT adapters instead of the full model.[6] In the open-source ecosystem, SFT is a basic tool for customizing a model.
Result (per the official docs): Supported dataset formats (language modeling and prompt-completion, standard or conversational) lower the barrier to running SFT.[6]

Try it today

  1. Think about why the chatbot you use follows instructions well. The difference between a base model and an instruction-tuned model comes largely from SFT and the steps that follow it.[1][2]
  2. Write 10 internal FAQs as question and model-answer pairs. Ten examples is the minimum OpenAI's fine-tuning API accepted; OpenAI recommends starting from about 50 well-crafted examples.[5]
  3. Read OpenAI's SFT/DPO/RFT selection table and decide which type your task is.[4]
  4. If you are a developer, try the SFTTrainer examples in Hugging Face TRL on a small open model.[6]
  5. Before fine-tuning, check whether better prompts or RAG are enough, and set up an evaluation first. SFT needs prepared data and is not suited to adding entirely new knowledge.[4][5]

Limits and direction

SFT depends on data quality. The model learns to reproduce what it sees in the example pairs, so the quality of the example answers strongly affects the result, and mistakes in the examples can be learned.[4] OpenAI also noted that supervised training can mislead a model because the ideal answer depends on what the model knows, not what the human writer knows.[2] Performance is not guaranteed outside the training data, and fine-tuning can degrade existing abilities; the InstructGPT authors had to manage regressions on public NLP benchmarks.[1] For these reasons, evaluate SFT carefully and consider preference optimization when the task calls for it.

The steps after SFT are becoming more varied. DPO learns from preference pairs without a separate reward model, and RFT uses graders or reward signals for reinforcement learning.[7][4] Model developers such as LG AI Research now publish their post-training recipes in technical reports, so SFT appears regularly when businesses evaluate models.[3] Vendor offerings also change: OpenAI is winding down its hosted fine-tuning platform, so check the current status of any service before planning a project.[5]

Which sources explain SFT?

  1. arXiv (OpenAI, Ouyang et al.) — Training language models to follow instructions with human feedback (2022-03-04) — https://arxiv.org/abs/2203.02155
  2. OpenAI — Introducing ChatGPT (2022-11-30) — https://openai.com/index/chatgpt/
  3. arXiv (LG AI Research) — EXAONE 3.0 7.8B Instruction Tuned Language Model (2024-08-07; v4 2026-01-02) — https://arxiv.org/abs/2408.03541
  4. OpenAI Cookbook — Fine-Tuning Techniques: Choosing Between SFT, DPO, and RFT (archived recipe; accessed 2026-10-13) — https://developers.openai.com/cookbook/examples/fine_tuning_direct_preference_optimization_guide
  5. OpenAI API docs — Supervised fine-tuning (accessed 2026-10-13) — https://developers.openai.com/api/docs/guides/supervised-fine-tuning
  6. Hugging Face — TRL documentation: SFT Trainer (v1.15.0; accessed 2026-10-13) — https://huggingface.co/docs/trl/sft_trainer
  7. arXiv (Rafailov et al.) — Direct Preference Optimization: Your Language Model is Secretly a Reward Model (2023-05-29) — https://arxiv.org/abs/2305.18290