Skip to main content
AI / MLTraining & TuningDiagramIntermediate

Fine-Tuning

KO: 파인튜닝·EN: Fine-Tuning·JA: ファインチューニング

The process of further training a pre-trained foundation model's weights on curated domain data to specialize its style, format, or task accuracy

Table of Contents

Structure Diagram

RAG (Knowledge Injection) vs Fine-Tuning (Behavior Adaptation)
Prompt + RAGPrompting & RAG

Frozen weights · Live external knowledge

  • Best ForDynamic facts, docs & citations
  • Setup CostLow (no training loop, fast iteration)
  • Updating DataInstant via vector store re-index
  • Inference CostHigher input tokens per request
Fine-TuningFine-Tuning (SFT / LoRA)

Updated weights · Specialized style & speed

  • Best ForStrict schemas, tone, domain reasoning
  • Setup CostHigh (curated dataset + GPU training)
  • Updating DataRequires retraining & redeployment
  • Inference CostShort prompts & smaller fast models
Quick Answer

What is Fine-Tuning?

The process of further training a pre-trained foundation model's weights on curated domain data to specialize its style, format, or task accuracy. It is a core concept in Training & Tuning within AI / ML.

Core Principles

Fine-Tuning adapts a pre-trained foundation model to a specialized task by updating its weights on a curated domain dataset rather than training from scratch. It builds on the model's existing language and reasoning representations to teach strict formats, domain jargon, or niche decision patterns.

Updating every parameter (Full Fine-Tuning) demands massive GPU memory and risks Catastrophic Forgetting of general abilities. In practice, teams rely heavily on Parameter-Efficient Fine-Tuning (LoRA / QLoRA), which freezes the base model and trains tiny low-rank adapter matrices instead.

Practical Takeaways

  • Use RAG for knowledge, Fine-Tuning for behavior: Teaching fast-changing facts (prices, policies, wiki pages) via fine-tuning is brittle and hard to update. Use RAG for dynamic knowledge, and reserve fine-tuning for style, strict JSON/tool schemas, and distilling a large model's skill into a fast, cheap 7B–8B model.
  • Data quality beats volume: A clean, human-verified dataset of 500–2,000 examples consistently outperforms 100,000 noisy logs. Always build an automated evaluation suite (Evals) before training so you can prove fine-tuning beats simpler prompting.
  • Climb the complexity ladder: Start with prompting, add RAG if external context is missing, and reach for fine-tuning only once you hit clear ceilings in latency, token cost, or structural consistency.

Notable Examples

  • Model distillation for high-throughput classifiers: Fine-tuning a compact 8B model on frontier-model outputs to slash inference cost by 80–90%.
  • Enterprise Text-to-SQL & internal code assistants: Adapting models to proprietary schemas, DSLs, and coding conventions.
  • Preference alignment (DPO / RLHF): Following Supervised Fine-Tuning (SFT) with chosen/rejected preference pairs to sharpen tone, safety, and refusal behavior.