Skip to content
ML Academy

LLMs, GenAI, RAG, agents, evaluation · insight-0544

Consider continued pretraining only when you hold a large unlabelled domain corpus

Evidence type
empirical finding
Difficulty
hard
Roles
ML engineer, Applied AI
Industries
insurance, healthcare

Summary: situation, action, reason, boundary

  1. Situation

    An insurer's claims text is full of domain jargon, and a general model handles it poorly even after prompt work.

  2. Action

    If a large unlabelled in-domain corpus exists, test domain-adaptive continued pretraining followed by task fine-tuning against the plain fine-tuned baseline on the same eval set.

  3. Reason

    Gururangan et al. found a second phase of pretraining on in-domain and task text improved downstream performance across several domains.

  4. Boundary

    Specialised domains with distinctive language and abundant unlabelled text.

Symptom or risk

The team jumps to supervised fine-tuning on a few labelled examples that cannot teach the vocabulary and style of the domain.

Exceptions

Small corpora or general-language tasks rarely justify it; retrieval or prompting may be enough.

Trade-offs

Compute cost, data governance for the corpus, and risk of forgetting general skills.

Pitfalls

Pretraining on documents that include eval-set content.

Lessons and concepts

Claims and their sources