Domain-adaptive Text Summarization

Machine Learning
Introduced by
Multiple contributors; domain adaptation methods consolidated via transformer-era NLP (c. 2019–2021)
Year
2019–2021
Type
Domain adaptation of sequence-to-sequence neural summarization
Family
Deep learning / NLP / CV

What does it do?

Domain-adaptive text summarization fine-tunes or adapts a pre-trained sequence-to-sequence language model on a target domain corpus so that summaries conform to domain-specific vocabulary, style, and factual constraints.

It bridges the gap between general-purpose summarization models trained on news or web data and specialized domains such as biomedical literature, legal documents, scientific papers, or financial reports.

The intuition behind the method

General summarization models learn to compress news articles well, but medical abstracts, court rulings, or earnings reports follow very different conventions and contain domain-specific terminology. Domain-adaptive summarization transplants the broad language understanding of a large pre-trained model into a new target domain by continuing training on in-domain examples. The model then generates summaries that sound like a domain expert wrote them rather than a generic news editor, preserving critical technical terms and adhering to the length and style conventions of that field.

History

Text summarization moved from rule-based and extractive methods to neural sequence-to-sequence models once attention mechanisms became established, and then to large pre-trained transformer models such as BERT, BART, T5, and PEGASUS. Domain adaptation became a separate concern when general models were found to underperform on biomedical, legal, and scientific text. The method is not tied to a single originating publication; it developed as a practice around 2019 to 2021 as large pre-trained sequence-to-sequence models became widely available.

When to use it

Choose domain-adaptive summarization when general-purpose summaries of your documents use the wrong terminology, the wrong length, or unsupported facts, and you have labelled in-domain document-summary pairs or a large unlabelled in-domain corpus for DAPT. The amount of labelled data needed depends on the domain, the base model, and whether DAPT is applied, so it should be determined on a held-out validation split rather than fixed in advance. DAPT on unlabelled in-domain text can help when labelled pairs are limited. Do not use it when the domain has almost no in-domain data and a zero-shot general model already produces acceptable output, since adaptation then adds cost without a measurable benefit. Avoid it as the sole method where factual precision is critical and no faithfulness check is planned, because neural abstractive models can generate unsupported content.

Limitations and considerations

  • Requires labelled in-domain document-summary pairs or weak substitutes for them; specialised domains make such data expensive to collect.
  • Neural abstractive models can hallucinate facts. Maynez et al. (2020) found substantial hallucinated content in all neural abstractive summaries they examined, and this matters most where factual errors have consequences.
  • Standard transformer encoders have a limited input window of roughly 512 to 1024 tokens, so long documents must be truncated, chunked, or processed with a long-input architecture.
  • Automatic metrics such as ROUGE may not track human judgments of domain-specific quality. SummEval compared 14 automatic metrics with expert and crowd-sourced human judgments, but on CNN/DailyMail news summaries, so its agreement results do not directly establish how well a metric tracks quality in a specialised domain.
  • Fine-tuning large models such as BART-large or T5-large requires substantial GPU memory and compute time.
  • Adaptation assumes that test documents resemble the in-domain training pairs; performance on documents from a different sub-domain, period, or document style should not be assumed.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Starts from a pre-trained sequence-to-sequence model, so adaptation needs far fewer labelled pairs than training a summarizer from scratch on the domain.
  • DAPT uses unlabelled in-domain text to extend coverage of domain vocabulary without requiring summary labels.
  • Learns length and phrasing conventions from in-domain reference summaries, which a model trained on general news data may not reproduce.
  • Domain-specific decoding constraints, such as length limits or vocabulary restrictions, can be added on top of the adapted model.

Applications

  • Biomedical literature summarization (PubMed abstracts, clinical notes).
  • Legal document summarization (court rulings, contracts, regulatory filings).
  • Financial report summarization (earnings calls, 10-K filings).
  • Scientific paper summarization to support literature screening.
  • News summarization adapted to niche industry verticals (e.g., tech, policy).
  • Customer-support ticket and feedback summarization in enterprise domains.

How it works

How it works

1

A large sequence-to-sequence model such as BART, T5, or PEGASUS is pre-trained on a massive general-domain corpus (news articles, web text, or document-summary pairs). This step instils broad language generation capability and is typically done once by the model provider and reused.

2

A target-domain dataset of document-summary pairs is collected or constructed. Where human summaries are scarce, weak supervision is used: extractive heuristics (e.g., lead sentences, TF-IDF selection) or distant supervision from structured abstracts. Weakly supervised references inherit the bias of their construction method, so a lead-sentence heuristic teaches the model to favour the opening of each document. Data is cleaned, tokenised, and split into train, validation, and test sets.

3

The pre-trained model is fine-tuned on the in-domain pairs using a standard sequence-to-sequence cross-entropy loss. The learning rate and number of epochs are chosen on the validation set, because overly aggressive updates on a small domain set can erase general language ability. Domain-adaptive pre-training (DAPT), meaning continued masked-language-model training on unlabelled in-domain text before fine-tuning, can extend coverage of domain vocabulary when labelled pairs are limited.

4

At inference time, beam search is the usual decoding choice for summarization. It generates candidate summaries, and the highest-scoring candidate is returned. Domain-specific length constraints, vocabulary restrictions, or factual consistency filters may be applied after generation to improve adherence to domain norms. These filters change which candidate is returned; they do not change what the model has learned, so they cannot correct missing domain knowledge. Any alternative decoding strategy should be compared against the evaluation checks below rather than assumed to improve results.

5

Outputs are evaluated with ROUGE scores against reference summaries, supplemented by domain-specific measures such as faithfulness scores (FactCC, QAFactEval), BERTScore, or human evaluation of fluency, coherence, and factual accuracy. Maynez et al. (2020) report that textual entailment measures correlated better with faithfulness than standard metrics did. SummEval compared automatic metrics with expert and crowd-sourced human judgments, but its human judgments cover CNN/DailyMail news summaries only. An automatic score should therefore be validated against human ratings on the target domain before it is trusted.

Common pitfalls

  • Relying on ROUGE alone: a model can score well on n-gram overlap while introducing domain facts that are not in the source document.
  • Fine-tuning on a small in-domain set without regularisation or validation-based stopping, which can cause catastrophic forgetting of general language ability.
  • Ignoring tokenizer coverage: domain terms that the tokenizer splits into many subword fragments may be reproduced inaccurately or not at all.
  • Training on weakly supervised references (for example, lead sentences) and then reading the output as a faithful domain summary, when the model has largely learned the heuristic.
  • Truncating long documents silently, so that the summary omits content from later sections that the model never saw.
  • Skipping review by a domain expert, because automatic metrics do not reliably detect subtle factual or terminological errors.

Frequently asked questions

How many training examples are needed for effective domain adaptation?

No fixed number can be given for this method. The amount of labelled data needed depends on the domain, the base model, whether DAPT on unlabelled in-domain text is applied, and the regularisation used during fine-tuning. Determine it empirically by tracking validation performance as the training set grows. In very low-resource settings, data augmentation or transfer from a related domain may help.

How do I reduce hallucinations in domain-adaptive summarization?

Apply factual consistency checks such as FactCC or QAFactEval to candidate summaries, and have domain experts review outputs before use in high-stakes settings. Maynez et al. (2020) show that hallucination is common in neural abstractive output, so these checks should be treated as necessary rather than optional.

Should I use BART, T5, or PEGASUS as the base model?

The choice depends mainly on available GPU memory, since BART-large and T5-large are large models, and on whether the task needs T5-style task prefixes for controllable generation. Relative performance can differ by domain, so compare the candidates on a validation split drawn from your own data before choosing.

Is ROUGE a reliable evaluation metric for domain-specific summaries?

ROUGE measures n-gram overlap with reference summaries and may not capture domain-specific quality such as factual correctness or terminology fidelity. SummEval compared ROUGE and other automatic metrics with human judgments on news summaries, which is why the reliability of any metric should be checked for the target domain. Complement ROUGE with BERTScore, faithfulness metrics, and human evaluation for any serious deployment.

Can domain-adaptive summarization work with very long documents?

Standard transformer encoders are limited to around 512 to 1024 tokens. For long documents, options include hierarchical encoders, sliding-window attention as in Longformer, or chunk-then-merge strategies. LED (Longformer Encoder-Decoder) is the long-input model among those named on this page. PEGASUS is pre-trained for summarization but does not by itself remove the input length limit.

Related methods

Sources

  1. Fabbri, A. R., KryŜiński, W., McCann, B., Xiong, C., Socher, R., & Radev, D. (2021). SummEval: Re-evaluating Summarization Evaluation. Transactions of the Association for Computational Linguistics, 9, 391–409.

    Open DOI reference
  2. Maynez, J., Narayan, S., Bohnet, B., & McDonald, R. (2020). On Faithfulness and Factuality in Abstractive Summarization. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL 2020), pp. 1906–1919.

    Open DOI reference