English

$FastDoc$: Domain-Specific Fast Continual Pre-training Technique using Document-Level Metadata and Taxonomy

Computation and Language 2024-11-04 v3 Machine Learning

Abstract

In this paper, we propose FastDocFastDoc (Fast Continual Pre-training Technique using Document Level Metadata and Taxonomy), a novel, compute-efficient framework that utilizes Document metadata and Domain-Specific Taxonomy as supervision signals to continually pre-train transformer encoder on a domain-specific corpus. The main innovation is that during domain-specific pretraining, an open-domain encoder is continually pre-trained using sentence-level embeddings as inputs (to accommodate long documents), however, fine-tuning is done with token-level embeddings as inputs to this encoder. We perform such domain-specific pre-training on three different domains namely customer support, scientific, and legal domains, and compare performance on 6 different downstream tasks and 9 different datasets. The novel use of document-level supervision along with sentence-level embedding input for pre-training reduces pre-training compute by around 1,0001,000, 4,5004,500, and 500500 times compared to MLM and/or NSP in Customer Support, Scientific, and Legal Domains, respectively. The reduced training time does not lead to a deterioration in performance. In fact we show that FastDocFastDoc either outperforms or performs on par with several competitive transformer-based baselines in terms of character-level F1 scores and other automated metrics in the Customer Support, Scientific, and Legal Domains. Moreover, reduced training aids in mitigating the risk of catastrophic forgetting. Thus, unlike baselines, FastDocFastDoc shows a negligible drop in performance on open domain.

Keywords

Cite

@article{arxiv.2306.06190,
  title  = {$FastDoc$: Domain-Specific Fast Continual Pre-training Technique using Document-Level Metadata and Taxonomy},
  author = {Abhilash Nandy and Manav Nitin Kapadnis and Sohan Patnaik and Yash Parag Butala and Pawan Goyal and Niloy Ganguly},
  journal= {arXiv preprint arXiv:2306.06190},
  year   = {2024}
}

Comments

Accepted to Transactions on Machine Learning Research (TMLR), 36 pages, 8 figures

R2 v1 2026-06-28T11:01:32.080Z