Fisher-Guided Submodular Data Selection for Continual Pre-Training of Large Language Models
Organizations: University of Illinois Chicago · Cisco Research
Abstract
Data selection is already a central bottleneck in large-language-model training, where web-scale corpora are noisy and token budgets are finite. In continual pre-training (CPT), it becomes a forgetting-control problem: a poorly chosen target-domain corpus can overwrite capabilities encoded in the pretrained checkpoint. Existing CPT practice either scores candidates with parameter-agnostic scalars such as perplexity, or mitigates forgetting by spending many extra general-domain replay tokens. Neither strategy directly asks how training on a candidate will move the model parameters. We show that loss-based selection causes the post-CPT Fisher diagonal to drift downward on exactly the high-Fisher coordinates the pretrained model had committed to, while leaving low-Fisher coordinates largely untouched. This asymmetry exposes a parameter-space mechanism for catastrophic forgetting. Motivated by this observation, we propose a Fisher-aware CPT selector that decomposes each candidate's gradient into an anchor component, which measures perturbation along committed parameter directions, and a frontier component, which measures update capacity in unconstrained low-Fisher subspaces. We aggregate these signals with a log-determinant submodular objective and optimize it in a single pass using a scalable streaming data selection pipeline. On TinyLlama-1.1B and Llama-3.1-8B CPT over medical data, our selector improves target-domain quality while bounding forgetting on held-out pretraining benchmarks. Most importantly, it is substantially more token-efficient than forgetting-aware replay. 1B selected tokens already outperform the replay strategy trained with 10B tokens on both adaptation and forgetting, giving a 10x token-efficiency advantage.
Figures & tables
| Variant | Med-PPL | PubMedQA | |||
|---|---|---|---|---|---|
| Ours (full, ) | +5.5 | 0.4 | +5.1 | 6.2 | 70.0 |
| No (drop anchor term) | +4.2 | 5.0 | 0.8 | 6.5 | 68.0 |
| No (drop frontier term) | +0.8 | 0.5 | +0.3 | 8.5 | 65.5 |
| Identity Fisher ( ) | +1.5 | 2.5 | 1.0 | 7.3 | 65.5 |
| Set-level on raw (no Fisher reweighting) | +2.0 | 2.0 | 0.0 | 7.2 | 66.0 |
| Selection rule | wall-clock (ms) | ||||
|---|---|---|---|---|---|
| Top- by | +1.8 | 0.6 | 0.45 | 0 8.5 | 00 0.3 |
| Top- by | +3.5 | 4.0 | 0.22 | 11.5 | 00 0.3 |
| Top- by | +3.0 | 2.2 | 0.30 | 10.0 | 00 0.4 |
| Sieve-Streaming (Ours) | +5.5 | 0.4 | 0.12 | 18.5 | 00 1.2 |
| Token budget | tok | tok | tok | |||||
|---|---|---|---|---|---|---|---|---|
| Method | ||||||||
| Replay | 3.5 | 1.2 | 2.9 | 1.0 | 2.6 | 0.9 | 2.0 | 0.8 |
| Ours | +3.0 | 0.6 | +4.5 | 0.5 | +5.5 | 0.4 | - | - |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Filter | Rule | Docs removed | % of pool |
|---|---|---|---|
| 1. Source-ID | Drop every PMC/PubMed record whose PMID or DOI is in the source lists of PubMedQA (PQA-L/U/A, k PMIDs) or BioASQ | ||
| 2. -gram overlap | Drop any candidate sharing a -gram with any evaluation instance (question + context + answer) | ||
| 3. Near-duplicates | MinHash LSH; drop pairs with Jaccard similarity on -gram shingles | ||
| Total |
| Method | Stage | Med-PPL | PubMedQA | BioASQ | ||
|---|---|---|---|---|---|---|
| DSIR | Pretraining | 7.2 | 66.9 | 75.4 | +2.4 | 2.9 |
| DoReMi ‡ | Pretraining | 7.5 | 65.8 | 74.1 | +1.2 | 1.6 |
| FisherSFT † | SFT | 6.9 | 67.4 | 76.1 | +3.0 | 3.3 |
| SPICE † | SFT | 6.7 | 67.9 | 76.7 | +3.6 | 2.6 |
| Ours | CPT | 6.2 | 70.0 | 78.5 | +5.5 | 0.4 |
| Stage | EFLOP | GPU-h | Share |
|---|---|---|---|
| (i) Warmup adapter | |||
| (ii) Diagonal Fisher | |||
| (iii) Perplexity gate | |||
| (iv) Per-sample LoRA gradients | |||
| (v) TRAK projection | |||
| (vi) Sieve-Streaming selection |
| Method | CPT tokens | EFLOP | GPU-h | FLOP ratio | GPU-h ratio | ||
|---|---|---|---|---|---|---|---|
| Replay | B | 2.0 | 0.8 | ||||
| Ours | B | +5.5 | 0.4 | ||||
| Ours | B | +3.0 | 0.6 |
| Coords clipped | Max inflation | |||
|---|---|---|---|---|
| (no effective floor) | +3.0 | 4.5 | ||
| +4.1 | 1.9 | |||
| +5.3 | 0.5 | |||
| = median ⋆ | +5.5 | 0.4 | ||
| +5.2 | 0.4 | |||
| (constant ; frontier on ) | +3.4 | 1.2 |
| Sweep | Value | ||
|---|---|---|---|
| Frontier weight | 0.5 | +4.8 | 0.7 |
| 1.0 ⋆ | +5.5 | 0.4 | |
| 2.0 | +5.4 | 0.5 | |
| 4.0 | +4.6 | 0.4 | |
| Per-term scale | 5 | +3.8 | 1.0 |
| 10 | +4.9 | 0.6 |
| per-candidate wall-clock (ms) | |||
| 0.05 | 94 | 99.1% | 7.8 |
| 0.1 | 48 | 98.5% | 4.0 |
| 0.2 | 25 | 96.8% | 2.1 |
| 0.4 | 14 | 94.6% | 1.2 |
| Offline greedy (diagnostic reference) | 100% | 720 | |
Continued Pretraining
Continued pretraining adapts pretrained models to new domains, languages, modalities, or contexts by training further on targeted data.
See all 56 papers