Adaptation

Adaptation is the process of taking a model trained for one purpose or kind of data and adjusting it so it works well on a new task, domain or set of users.

Almost nobody uses a large AI model exactly as it came out of pre-training. It is adapted first: tuned for a task, a field or a style of interaction. Google's machine learning glossary treats adaptation as a synonym for tuning or fine-tuning, and the 2021 report that coined the term foundation model described those models as adaptable to a wide range of downstream tasks. The word covers the whole family of methods for getting from a general model to a useful specific one.

The methods differ in how much of the model they change. Full fine-tuning retrains every parameter on new examples. Parameter-efficient methods such as low-rank adaptation (LoRA) freeze the original weights and train small add-on pieces; the 2021 LoRA paper reported cutting the trainable parameters for GPT-3 by a factor of 10,000. At the lightest end, in-context learning changes no weights at all: the 2020 GPT-3 paper showed a model could take on new tasks from instructions and a few examples written into the prompt.

A narrower, older sense is domain adaptation: making a model trained on one kind of data work on related but different data. A standard example is a spam filter trained on one person's email that must cope with another person's very different inbox. The research field distinguishes cases by what has shifted, such as the mix of inputs, the balance of labels or the relationship between them, and by whether any labelled data from the new domain is available.

In practice, adaptation is where most businesses meet model training. Pre-training a large model is out of reach for nearly everyone, but adapting one with a few thousand examples, or simply with careful prompts and retrieved documents, is routine. The risk runs the other way too: the foundation model report warned that flaws in a base model are inherited by every model adapted from it.

Common questions

What does adaptation mean in AI?

It means adjusting a trained model so it performs well on a new task or kind of data. That can involve retraining some or all of its parameters, adding small trainable components, or steering it with instructions and examples in the prompt. The term is often used interchangeably with fine-tuning.

What is domain adaptation?

Domain adaptation is the problem of making a model trained on one data distribution work on a related but different one. For example, a spam filter trained on one user's email may need adapting to another user's. Methods range from retraining on a small labelled sample of the new data to techniques that use only unlabelled data from the new domain.

Is adaptation the same as fine-tuning?

Fine-tuning is the most common form of adaptation, and Google's glossary treats the words as synonyms. In wider use, adaptation also includes methods that change few or no weights, such as low-rank adaptation and in-context learning through prompts.

Why not just train a new model for each task?

Training a large model from scratch costs far more data, compute and expertise than most organisations have. Adapting an existing model reuses what it already learned in pre-training, so a small amount of task data can go a long way.

Finding more

Search for "domain adaptation", "model adaptation fine-tuning", "parameter-efficient fine-tuning" or "in-context learning" depending on which sense you need. Research papers on arXiv, machine learning glossaries from major providers and the documentation of fine-tuning services describe the methods accurately. Claims that a model was adapted to a field such as law or medicine are worth checking against published evaluations on that field's tasks.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.