Glossary

Fine-Tuning

Adapting a pre-trained AI model to a specific task or domain by continuing to train it on a smaller, task-specific dataset — rather than training a new model from scratch.


What it means

Fine-tuning is the process of taking a model that was pre-trained on a large, general dataset and continuing to train it on a smaller dataset specific to your task. The model starts with useful general representations already learned from the large dataset, then adjusts those representations toward the specifics of the new task.

The analogy: a medical student already has foundational knowledge of biology and chemistry before they specialize. Specialization (fine-tuning) takes less time than starting from scratch precisely because the foundation is already there.

How it works in practice

A typical fine-tuning workflow:

  1. Start with a pre-trained model — e.g., ESM-2 (a protein language model), a general chemical property predictor, or a large language model
  2. Prepare a task-specific dataset — e.g., your lab’s experimental measurements of protein binding affinity, a curated set of reaction outcomes, a set of annotated research papers
  3. Continue training on your dataset, typically with a lower learning rate than the original pre-training — this adjusts the model weights toward your task without overwriting the general knowledge
  4. Evaluate on a held-out test set to verify performance

When fine-tuning helps

Fine-tuning is most valuable when:

  • You have a specific prediction task but insufficient data to train a model from scratch
  • Your domain is a subset of what the pre-trained model covers (e.g., fine-tuning a protein LM on your enzyme family)
  • You want to adapt a general language model to scientific writing conventions or a specific vocabulary

Fine-tuning is less helpful when:

  • Your domain is very different from the pre-training data (limited transfer)
  • Your task-specific dataset is too small (risk of overfitting)
  • You need a model that generalizes across many tasks (a fine-tuned model specializes; it trades breadth for depth)

Fine-tuning vs. prompt engineering

For large language models used in research (writing, summarization, extraction), you often don’t need to fine-tune at all — careful prompt engineering achieves much of what fine-tuning would, without requiring a dataset or compute. Fine-tuning an LLM makes most sense when you need consistent stylistic or structural output at scale, or when prompt engineering alone can’t encode the necessary task structure.