Domain Adaptation (LLM)
A model trained on the open web has read a little of everything and specialised in nothing. Point it at radiology reports, tax rulings or your company's support history and it stays articulate while being out of its depth. Domain adaptation is the work of moving a general model into one of those worlds without training a new one from scratch.
The ladder of options- Prompting and retrieval first: no training at all, and enough when the gap is missing facts rather than missing language.
- Continued pretraining on a large pile of unlabelled domain text, which teaches vocabulary, notation and idiom — the step that fixes a model mangling a drug name or a statute citation.
- Supervised fine-tuning on domain examples in the shape you want answers, usually with LoRA, so one base model serves several domains from small adapter files.
A 7B model adapted to a narrow field routinely beats a far larger general model on that field's tasks at a fraction of the serving cost, which is the practical reason teams do this. The bill arrives as catastrophic forgetting: push hard on domain text and general reasoning, instruction-following and safety behaviour all erode together. Adaptation therefore mixes general data back in, and adapted models are re-tested on general benchmarks such as MMLU, not only on the domain's own.
When it is the wrong moveIf what the model lacks is current or private facts, adaptation is an expensive way to memorise them badly. Retrieval fetches them correctly and updates in seconds. Adapt for language and form; retrieve for knowledge.
Domain adaptation adjusts a general pretrained model to a specialised field — medicine, law, finance, a company's own records — by continued pretraining on domain text, supervised fine-tuning, or both, commonly through LoRA adapters. It buys fluency in the field's vocabulary and conventions, letting a small adapted model outperform a much larger general one on its own tasks. The risk is catastrophic forgetting of general ability, so general data is mixed back in.
A brilliant general doctor still sends you to a specialist. Both trained in medicine; one of them spent years inside a single field and absorbed its language, its shorthand, its unwritten rules. Domain adaptation is how a general-purpose AI assistant becomes that specialist. It has already read an enormous amount of everything; now it reads a great deal of one thing — hospital notes, court judgments, a bank's own paperwork — until that field's vocabulary and habits feel normal to it. The payoff is a smaller, cheaper assistant that beats a giant one inside its field. The danger is that it starts forgetting the world outside.