What is Supervised fine-tuning?
In Turkish: Denetimli ince ayar (SFT) · Topic: Models and training
Continuing to train an already pre-trained model on labeled examples made of inputs and expected outputs, in order to adapt it to a specific task or behavior.
How does it work?
The starting point is a model that has already gained general ability through pre-training. It is shown examples with known good answers, usually prepared by people, and it compares its own output with those answers and adjusts its weights. The process resembles pre-training, but the data is much smaller and carefully chosen. For language models, the examples are typically good responses to a request. The quality of the data can matter more than its quantity.
Why does it matter?
SFT is usually the first step in building a chat assistant and gives later preference-based training a solid starting point. It also lets companies adapt a general model to their own domain, such as law or customer service, at relatively low cost.
Example
A bank could fine-tune a general language model on real, approved answers to customer questions so that it picks up the institution's tone and policies.
FAQ
How is supervised fine-tuning different from RLHF?
SFT learns by imitating examples of correct answers. RLHF learns from human preferences between several answers. SFT is usually applied first, then RLHF.
How much data does SFT need?
It depends on the task and model, but far less data than pre-training is generally enough. The quality and variety of the examples matter most.