Full text not available for this paper
DAiSy: Online Data Selection by Adaptive Utility Estimation for LLM Pretraining
Authors: Simin Fan, Martin Jaggi (EPFL)
Paper: arXiv:2611.32294v1 [cs.LG], November 2026
Summary (Overview)
- DAiSy (online DAta Selection by adaptive utility estimation) is a lightweight online data selection pipeline for LLM pretraining that eliminates the computational overhead of existing gradient-based selection methods.
- The method trains a linear auxiliary model that predicts gradient-based data utility scores from frozen document embeddings, requiring only +5.6% FLOPs and +6% memory overhead compared to standard training.
- DAiSy significantly outperforms uniform sampling, static embedding similarity baselines, and prior online selection methods (GREATS, OPUS, MATES) across English and multilingual pretraining scenarios.
- The pretraining gains from DAiSy survive instruction tuning, maintaining 2.0–4.8% accuracy improvements over uniform baselines after SFT.
- The paper also investigates data-boundary scenarios (token-limited training), showing that a properly designed memory factor () and redundancy penalties (especially momentum-based) help balance task-relevance with diversity.
Introduction and Theoretical Foundation
Background and Motivation
Training data quality is one of the strongest levers determining LLM pretraining quality. While static selectors (quality classifiers, target-matching resampling) curate documents once before training, they are not adaptive to evolving model states. Online model-aware selectors estimate how much a candidate would help the model at its current learning status, but existing methods suffer from severe computational overhead:
- Gradient-based utility scoring requires full forward-backward passes on every candidate document
- Oversampling-then-selection paradigms (e.g., 2× candidates) consume 2× more FLOPs than training itself
- Memory/bandwidth waste from loading 2× more data into GPU/RAM
Theoretical Foundation
The core utility score is derived from a first-order approximation of how an optimization step on document changes the target loss:
where:
- = model parameters at step
- = learning rate
- = optimizer preconditioner (for AdamW: )
- = target loss on validation set
- = document's mean token loss
This builds on prior work in:
- Influence functions and trajectory-based scores
- Ghost-engine techniques (Wang et al., 2024) that extract gradient-based utilities as a by-product of standard backward passes
- Learned data valuation methods (meta-learned reweighting, DVRL)
Methodology
1. Synchronized Utility Labels from Training Backward Pass
DAiSy uses the ghost engine technique to extract exact first-order gradient-based utility scores during the standard backward pass. For one linear layer with per-token input and output gradient :
where is the preconditioned target direction, refreshed every steps.
2. Online Linear Scorer on Frozen Embeddings
The selector is a linear vector applied to frozen document embeddings:
Gaussianized ranks are used as labels for robustness against outliers:
where is the standard normal quantile function.
Running ridge regression updates the selector:
where is the decay factor controlling selector memory.
3. Selection from Candidate Window
At each step, candidates are drawn until the window holds the batch's tokens (window factor controls selectivity). The top-ranked documents are selected for training.
Default hyperparameters: (label interval), (target refresh), (refit interval), , , selection starts at step 2500.
Empirical Validation / Results
Experimental Setup
- Models: Decoder-only Llama-architecture transformers at 124M and 720M parameters
- Data: FineWeb (English), FineWeb2 (multilingual: French, German, Chinese, Spanish, Portuguese, Italian)
- Embeddings: XLM-RoBERTa-base (768-dim) for English; mmBERT-base for multilingual
- Training: 33.6B tokens, AdamW optimizer, peak LR , cosine scheduler
Task-Oriented Pretraining Results
Key results (Table 1, 124M scale, ):
| Metric | Uniform | Similarity | DAiSy |
|---|---|---|---|
| Downstream Loss | 3.521 | 3.129 | 3.040 |
| I.D. Tasks Avg. | 48.38% | 54.31% | 56.28% |
| All Tasks Avg. | 43.22% | 46.38% | 48.52% |
Efficiency gains:
- DAiSy with reaches final downstream loss with 7.6× fewer tokens at 124M and 4.7× fewer at 720M
- Prior online methods (OPUS, MATES) fall behind uniform sampling at equal compute
- OPUS would take 209 GPU hours vs. 28.8 for uniform at 124M scale
Web-Targeted Pretraining
- DAiSy with high-quality FineWeb-Edu target improves benchmarks with no benchmark items in the target
- At , DAiSy achieves +3.3% average accuracy over Uniform at 124M
- DAiSy outperforms the strict FineWeb-Edu oracle baseline with 0.7–1.5% accuracy improvements
- FineWeb topic-uniform target gives no gain (negative control): when the target resembles uniform sampling, selection cannot improve much
Instruction Tuning Survival
- DAiSy runs lead uniform baseline by 2.0–4.8% after every SFT epoch (chat template)
- DAiSy with maintains leads over FineWeb-Edu baseline with +0.39% and +0.80% improvements
Multilingual Pretraining
Key findings:
- With HQ-FineWeb2 target at : DAiSy achieves 0.28 nats reduction on downstream losses, with +0.63% (Global-MMLU) and +2.5% (INCLUDE) accuracy improvements
- Similarity fails completely in multilingual settings—it selects only 0.1% from Chinese with HQ target and over-weights Portuguese (48%), causing severe degradation in other languages
- DAiSy with balanced stream + mixed target achieves the best downstream loss overall
Data Boundary Analysis (Token-Limited Scenario)
Training on a 10B-token subset (3.36× repetition):
- Memory factor controls selector adaptivity:
- High (0.999, 0.99): overfits to narrow document set, degrades around 20B tokens
- Low (0.1, 0): adapts fast but less accurate task-relevance estimation
- : optimal trade-off, best downstream performance
Redundancy penalties (evaluated at token boundary):
| Penalty | Coverage | Downstream Improvement |
|---|---|---|
| Count penalty | 80% | ✗ No help |
| Embedding penalty | 60% | ✗ No help |
| Gradient penalty | +10% | ✓ Effective |
| Momentum penalty | +10% | ✓ Most effective |
The momentum penalty uses the optimizer's existing first-order momentum, incurring zero extra computation:
Theoretical and Practical Implications
Theoretical Implications
-
Linear expressivity on data utility: DAiSy validates that a simple linear predictor on frozen embeddings can effectively approximate gradient-based utility scores, supporting the "linear representation" hypothesis for data valuation.
-
Online vs. static selection: The paper demonstrates that online adaptation matters most in heterogeneous (multilingual) and constrained (token-limited) settings, where static methods fail catastrophically.
-
Memory-diversity trade-off: The analysis of reveals a fundamental tension between selector accuracy (long memory) and adaptivity (short memory), with an optimal intermediate regime.
Practical Implications
-
Scalability: DAiSy makes online data selection practical for production LLM training with only +5.6% FLOPs overhead, unlike prior methods that cost 2× or more.
-
Target design flexibility: The method works with various targets (benchmarks, high-quality web data, mixed targets), making it adaptable to different training objectives.
-
Cross-stage benefits: Pretraining gains survive instruction tuning, suggesting DAiSy improves the quality of learned representations, not just benchmark overfitting.
-
Multilingual robustness: DAiSy remains effective in heterogeneous multilingual spaces where embedding-similarity methods fail, making it suitable for multilingual LLM development.
Conclusion
DAiSy introduces a lightweight, effective online data selection pipeline that:
- Eliminates the computational overhead of gradient-based selection through a linear auxiliary model on frozen embeddings
- Achieves significant data efficiency improvements across English and multilingual pretraining
- Survives instruction tuning
- Handles token-limited scenarios with proper memory design and redundancy penalties
Limitations:
- Single random seed per run (compute constraints)
- Candidate window not exceeded (benefits not yet capped)
Future directions:
- Apply DAiSy to more heterogeneous task spaces (world models, physical AI)
- Multi-modal data selection
- Exploring larger candidate windows and more diverse target designs
Related papers
- RecurSciBench: Benchmarking Recursive Self-Improvement in Data-Driven Scientific Research
RecurSciBench shows recursive self-improvement gains are system-dependent and uneven, with half of evolved states regressing, yet experience can transfer across task types and domains in non-obvious ways.
- How to build and train your recurrent-depth model: A fixed-point perspective
Input injection in recurrent-depth models is exactly Halpern iteration, enabling depth-independent truncated backpropagation windows and guiding a new Lipschitz-aware optimizer called Sparrow.
- Looped Models are Fast Multi-Token Predictors
Floodgates achieves up to 7.5x lossless decoding speedup on looped language models by using a single loop with low-rank adapters to draft multiple future tokens in parallel.