Fine-tuning
Fine-tuning is further training of an already trained model on a smaller set of data, to adapt it to a specific task or style.
Fine-tuning takes a model that has already been trained and trains it a little more on new data. The new data is much smaller than the original and focused on one task, domain or style. Because the model already knows a lot, it needs far less data and compute to adapt. Fine-tuning usually means learning from examples of the desired output.
Fine-tuning can update all of a model's parameters or only a small added part. Methods that train a small added part, such as LoRA, cost much less and produce a small file that is loaded on top of the original model. Fine-tuning teaches behavior and format well but is a poor way to add facts that change often. Too much fine-tuning on narrow data can make the model worse at everything else.
Fine-tuning is often followed by reinforcement learning, which improves whole tasks from rewards instead of examples. The examples for fine-tuning an agent are often trajectories of good runs, recorded in sandboxes. Before a fine-tuned agent is used, it is tested on a benchmark that runs each task in its own sandbox. The training itself runs on accelerators, apart from the sandboxes.
Related terms