[Paper Review] Efficient Continual Pre-training for Building Domain Specific Large Language Models
This paper proposes efficient continual pre-training methods—ETS-DACP and ETA-DACP—for building domain-specific large language models, demonstrating that selective data curation improves performance on financial tasks with only 10% of the data and cost of vanilla continual pre-training, while preserving open-domain capabilities.
Large language models (LLMs) have demonstrated remarkable open-domain capabilities. LLMs tailored for a domain are typically trained entirely on domain corpus to excel at handling domain-specific tasks. In this work, we explore an alternative strategy of continual pre-training as a means to develop domain-specific LLMs over an existing open-domain LLM. We introduce FinPythia-6.9B, developed through domain-adaptive continual pre-training on the financial domain. Continual pre-trained FinPythia showcases consistent improvements on financial tasks over the original foundational model. We further explore simple but effective data selection strategies for continual pre-training. Our data selection strategies outperform vanilla continual pre-training's performance with just 10% of corpus size and cost, without any degradation on open-domain standard tasks. Our work proposes an alternative solution to building domain-specific LLMs cost-effectively.
Motivation & Objective
- To investigate whether domain-adaptive continual pre-training can effectively build high-performing domain-specific LLMs, particularly in low-data domains like finance.
- To address the high cost and data inefficiency of training domain-specific LLMs from scratch by exploring continual pre-training as a cost-effective alternative.
- To develop data selection strategies that enhance continual pre-training efficiency without requiring task-specific data or sacrificing open-domain performance.
- To evaluate whether continual pre-training degrades general language capabilities on standard benchmarks.
- To establish a scalable, low-cost pipeline for building domain-specific LLMs using pre-trained foundation models and targeted data curation.
Proposed method
- Curated a large-scale financial corpus of 16 billion words from public sources: financial news via CommonCrawl and SEC filings, with de-duplication to improve training efficiency.
- Proposed ETS-DACP (task-aware) and ETA-DACP (task-agnostic) methods that use similarity, perplexity, and token type entropy to select high-value training samples for continual pre-training.
- Applied continual pre-training on the Pythia-6.9B foundation model using selected financial data, fine-tuning it on domain-specific distribution without retraining from scratch.
- Used three data selection metrics: (1) semantic similarity to task data (for ETS-DACP), (2) perplexity (for ETS-DACP and ETA-DACP-ppl), and (3) token type entropy (for ETA-DACP-ent), enabling task-agnostic selection.
- Evaluated performance on financial benchmarks and standard open-domain tasks (e.g., MMLU, TruthfulQA) to assess domain adaptation and capability retention.
- Compared results across vanilla continual pre-training, ETS-DACP, and ETA-DACP variants, using 10% of the full domain corpus to assess cost-performance trade-offs.

Experimental results
Research questions
- RQ1Can domain-adaptive continual pre-training effectively improve performance on financial tasks compared to the original foundation model?
- RQ2Can data selection strategies significantly reduce training cost and data volume while maintaining or improving performance over vanilla continual pre-training?
- RQ3Does continual pre-training on domain data degrade the model’s performance on open-domain standard benchmarks?
- RQ4How effective are task-agnostic data selection metrics (e.g., perplexity, entropy) compared to task-aware similarity-based selection?
- RQ5Can continual pre-training enable the model to acquire and retain up-to-date financial domain knowledge?
Key findings
- FinPythia-6.9B, trained via continual pre-training on 8% of the original Pythia training data size, achieved consistent performance gains on financial benchmarks compared to the base Pythia model.
- The ETS-DACP and ETA-DACP methods outperformed vanilla continual pre-training when using only 10% of the domain corpus, achieving better results with significantly reduced cost and data volume.
- ETA-DACP, which uses perplexity and entropy as task-agnostic selection criteria, performed nearly as well as task-aware ETS-DACP, enabling data selection without requiring labeled task data.
- No significant degradation was observed on open-domain benchmarks such as MMLU, TruthfulQA, and HellaSwag, indicating that continual pre-training preserves general language capabilities.
- Qualitative analysis confirmed that FinPythia successfully acquired and retained up-to-date financial knowledge, including recent market and regulatory developments.
- The model trained with 10% of the domain data (2.39B tokens) achieved state-of-the-art performance on financial tasks, demonstrating that data efficiency and cost reduction are achievable without sacrificing performance.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.