Fine-Tuning
Further training a model for a defined behavior or task
What is Fine-Tuning?
Fine-tuning further trains an existing model using selected examples. It can improve task behavior, style, or format when the data and evaluation fit the objective. It does not guarantee exact imitation or reliable storage of changing facts.
How it works
Read the diagram
- Base model
- Training examples
- Further training
- Held-out test
Key takeaways
-
Curate training data and keep held-out evaluation data.
-
Measure improvement rather than promising an exact voice.
Illustrative example
A support team wants its model to route messages to billing, delivery, or returns. It labels past requests, including difficult cases such as a customer asking for a refund because an order never arrived. Those examples teach the routing decision the team wants the model to repeat.
How to tell whether the training helped
Set aside complete support conversations before selecting training examples. Two messages from the same thread can have nearly identical wording. If one goes into training and the other into the test, a correct answer tells you little about how the model handles a new customer’s request.
Give the original and fine-tuned models the same instructions and the same held-out requests. Count errors for each destination. A higher overall score can hide a rise in misrouted returns if most messages concern billing.
Sources and documentation
Continue in the portal
Related terms
LLM (Large Language Model)
A trained model that processes and generates language
Open Weights
A model’s learned parameters, available to download
Prompt Engineering
Designing and testing instructions for a model
RAG (Retrieval-Augmented Generation)
Retrieving source material before generating an answer