CLSep 18, 2023

Adapting Large Language Models to Domains via Reading Comprehension

Microsoft
arXiv:2309.09530v455 citationsh-index: 102Has Code
Originality Highly original
AI Analysis

This addresses the challenge of maintaining prompting ability while gaining domain knowledge for researchers and practitioners in specialized fields, representing a novel approach rather than an incremental improvement.

The paper tackles the problem of adapting large language models to specific domains by proposing a method that transforms raw corpora into reading comprehension texts, which consistently enhances performance across tasks in biomedicine, finance, and law, with a 7B model achieving competitive results against larger domain-specific models like BloombergGPT-50B.

We explore how continued pre-training on domain-specific corpora influences large language models, revealing that training on the raw corpora endows the model with domain knowledge, but drastically hurts its prompting ability for question answering. Taken inspiration from human learning via reading comprehension--practice after reading improves the ability to answer questions based on the learned knowledge--we propose a simple method for transforming raw corpora into reading comprehension texts. Each raw text is enriched with a series of tasks related to its content. Our method, highly scalable and applicable to any pre-training corpora, consistently enhances performance across various tasks in three different domains: biomedicine, finance, and law. Notably, our 7B language model achieves competitive performance with domain-specific models of much larger scales, such as BloombergGPT-50B. Furthermore, we demonstrate that domain-specific reading comprehension texts can improve the model's performance even on general benchmarks, showing the potential to develop a general model across even more domains. Our model, code, and data are available at https://github.com/microsoft/LMOps.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes