Zubnet AIApprendreWiki › Instruction Tuning
Training

Instruction Tuning

Instruction Fine-Tuning, IFT, SFT
Faire du fine-tuning d'un modèle de langage pré-entraîné sur un jeu de données de paires (instruction, réponse) pour lui apprendre à suivre des instructions. Un modèle de base qui ne fait que prédire du texte devient un modèle qui répond à des questions, suit des directives et se comporte comme un assistant. C'est l'étape qui transforme GPT en ChatGPT, ou un Llama de base en Llama-Chat.

Pourquoi c'est important

L'instruction tuning est le pont entre un modèle de langage brut (qui ne peut que compléter du texte) et un assistant utile (qui peut suivre des instructions). Sans ça, même le modèle de base le plus capable ne fait que générer du texte qui sonne plausible au lieu de vraiment faire ce que tu demandes. C'est sans doute l'étape post-training la plus importante.

Deep Dive

The process: collect thousands to millions of (instruction, ideal response) pairs covering diverse tasks — Q&A, summarization, coding, creative writing, math, conversation. Fine-tune the base model on these pairs using standard supervised learning (minimize the loss on the response tokens given the instruction). The model learns the meta-pattern: "when given an instruction, produce a helpful response."

SFT vs. RLHF vs. DPO

Instruction tuning (Supervised Fine-Tuning / SFT) is typically the first post-training step, followed by alignment via RLHF or DPO. SFT teaches the model the format and basic helpfulness. RLHF/DPO then refines the behavior — making responses more helpful, less harmful, and better calibrated. Some approaches (like ORPO) combine SFT and preference alignment into a single step.

Data Quality Over Quantity

Research consistently shows that a small set of high-quality instruction-response pairs outperforms a large set of low-quality ones. The LIMA paper (Zhou et al., 2023) showed that fine-tuning with just 1,000 carefully curated examples could produce surprisingly good results. The key is diversity (covering many task types) and quality (responses that are genuinely excellent, not just adequate). This is why instruction data curation has become a specialized discipline.

Concepts liés

← Tous les termes
← Instruction Following Jailbreak →