Is fine-tuning an LLM still worth it, or has it been debunked?
Fine-tuning has not been debunked: research shows it is a poor way to teach a model new facts and a good way to change how it behaves on a narrow task. Nodus runs fine-tuning as a priced, capped job, and a LoRA pass over 1,000 examples of an 8B model needs an estimated $0.36 of H100 time at our listed price. The GPU is rarely the reason to skip it; what decides is whether your gap is knowledge or…
Fine-tuning is not a debunked method for teaching large language models (LLMs). Research indicates it is a poor way to teach models new facts but an effective tool for changing how the model behaves on narrow tasks. The decision to use fine-tuning depends on whether the knowledge gap or behavioral gap needs to be addressed, and whether the results can be measured.
The idea that fine-tuning is dead stems from three real findings: retrieval beats fine-tuning for knowledge, long prompts with many examples can rival fine-tuning on certain tasks, and fine-tuning can inadvertently damage a model's existing capabilities. Ovadia et al. (2023) found retrieval-augmented generation consistently outperformed unsupervised fine-tuning in their controlled closed-book QA setup.
Gekhman et al. (2024) demonstrated that fine-tuning led to slower learning of new knowledge and increased hallucinations. Google DeepMind's many-shot in-context learning paper showed that prompts with hundreds or thousands of examples can perform comparably to fine-tuning, with linearly increasing inference costs based on the number of examples.
Fine-tuning excels at altering a model's behavior, such as format, style, and judgment on specific tasks, as well as improving a small model's performance on a single job. Meta's LIMA paper fine-tuned a 65B LLaMa on 1,000 curated prompts and responses, achieving human-level or superior performance in 43% of cases, 58% for Bard, and 65% for DaVinci003. A thousand well-chosen examples can move a base model close to the output quality of top assistants.
However, fine-tuning cannot reliably add facts or cause a model to forget previously learned skills. Knowledge gaps should be addressed using retrieval, while format or tone issues can be tackled with prompt engineering. To decide whether to fine-tune, follow these steps: first, determine if the gap is behavioral; if not, use retrieval.
If the model lacks a fact, retrieval is the appropriate choice. If the model knows the facts but provides incorrect format, tone, or judgment, refine the prompt and test it on held-out cases.
Fine-tuning is computationally inexpensive, costing less than most people expect—minutes to hours on one GPU for an 8B model. The estimated cost for 1,000 examples of an 8B model on an NVIDIA H100 SXM is $0.36. For 10,000 and 100,000 examples, the costs increase to $3.59 and $35.88, respectively. Despite these costs, fine-tuning remains a valuable tool when the gap is behavior and measurable results can be achieved.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to