Model-aware online data selection prioritizes the training documents that contribute the most given the model's current state. Existing online selectors rank candidates upon gradient-based data utility scores, which requires the full forward-backward pass of the main model on every candidate document. Scoring each document therefore pays as much as training on it, yet only a small fraction is used for the real model update. We introduce DAiSy, a lightweight linear auxiliary model that learns to predict data utility scores from frozen document embeddings, which eliminates the computation overhead and infrastructure burdens. The linear estimator is updated alongside the main language model, fitting to the exact gradient-based utility scores obtained from the backward pass of regular training steps. Consequently, scoring a candidate requires only a linear transformation, bypassing the costly gradient-alignment computation. We demonstrate its effectiveness and efficiency for LLM pretraining in English and multilingual scenarios, with various steering target designs. The improvements from DAiSy can consistently survive the instruction-tuning phase.
Figures & tables
Figure 1: The DAiSy pipeline inside a training run. (1) Data Select : Linear selector processes the candidate pool. No pass through the LLM; (2) Train and Label : LLM’s standard backward pass holds each trained document’s exact gradient utility; (3) Learn Selector : An online ridge regression maps embeddings to those labels, so the linear selector keeps up with the model.
Figure 2: Downstream loss and zero-shot benchmark accuracy curves on target-oriented pretraining at 124M and 720M. DAiSy outperforms all prior data selection baselines. Similarity works comparable as DAiSy with small candidate window λ=2,4 , while its marginal benefits plateau with large λ=16,32,64 .
Figure 3: Gain over uniform sampling per candidate window . (a) Downstream loss improvements; (b) Average zero-shot accuracy improvements against uniform baseline.
Figure 4: Held-out losses and zero-shot accuracies (%) with HQ FineWeb-Edu target. (a, b, e, f) Held-out downstream loss and held-out FineWeb loss at each model scale. (c) FineWeb-Edu loss on a held-out set unseen in the target. (d, h) Zero-shot Accuracy averaged over the five benchmarks.
Figure 5: Topic composition of the trained documents at 124M .
Figure 6: Zero-shot accuracy after k epochs of instruction tuning at 720M , averaged over the seven reasoning benchmarks. (a) plain prompts ; (b) Tulu chat template . Epoch 0 denotes pretrained models.
Figure 7: Multilingual pretraining with online data selection at λ=16 . (a) Held-out HQ FineWeb2 Loss ; (b) Held-out FineWeb2 Loss following natural distribution. (c) Downstream loss , average held-out loss on INCLUDE and Global-MMLU across 6 languages.
Figure 8: Language of the trained tokens at λ=16 . (a-c) Benchmark target with natural stream; (d-f) HQ-Fineweb2 target with natural stream; (g-i) Mixed target with balanced stream.
Figure 9: Selection from a 10B-token subset with λ=16 . (a, b) Held-out downstream and FineWeb loss; (c) Share of the subset trained at least once.
Figure 10: How the runs of Figure 9 spread their trainings : (a) a document’s first seen or (b) its 16th repetition or later.
Figure 11: Redundancy penalties on the 10B subset . (a, b) Held-out downstream and FineWeb loss. (c) Share of the subset trained at least once.
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
124M (English)
720M (English)
124M (multilingual)
Architecture
Layers
12
12
12
Width
768
2,048
768
Attention heads (query and key/value)
12
16
12
Head dimension
64
128
64
SwiGLU hidden width
2,048
5,632
2,048
Appendix
Table 3: Model and training configuration.
124M
720M
Arm
s/step
× standard
GPU-h
Peak GiB
s/step
GPU-h
Uniform
0.1012
1.00
28.8
16.2
0.4099
116.6
Similarity λ=2
0.1126
1.11
32.0
16.2
–
–
Similarity λ=4
0.1153
1.14
32.8
16.2
0.4227
120.2
Similarity λ=8
0.1184
1.17
33.7
16.2
–
–
Similarity λ=16
0.1247
1.23
35.5
16.2
0.4286
121.9
Appendix
Table 4: Cost of every method on Nvidia-H200 GPU. Every entry is measured per GPU. GPU-hours reports the entire GPU time cost on 33.6B training tokens, 256k steps at 124M and 64k at 720M; × standard reports step time over standard uniform run.
Figure 12: Held-out downstream loss against measured GPU-hours . (a, b) Benchmark target at 124M and 720M: the runs of Figure 2 , including OPUS runs on sequence-wise selection. (c, d) FineWeb-Edu target at 124M and 720M: the runs of Figure 4 . The dotted horizontal line marks the final loss of a standard uniform training baseline. The curve of MATES, shown in (a) only, runs flat while a stage boundary training the selector and selecting data.
Figure 13: Raw labels, z-scores and Gaussianized ranks as regression targets (124M run with 25% exploration). (a) Density of each target over all 13.1M labeled documents, with raw labels in units of the median step’s standard deviation. Ranks follow the standard normal (dashed), whereas z-scores and raw labels have heavy tails. (b) Standard deviation of a step’s targets relative to the run’s median (line: median; shaded: 5th to 95th percentile over steps). (c) Share of a step’s variance that its k most extreme documents carry; raw labels and z-scores coincide.
Downstream loss
FineWeb loss
λ
Scorer
Loss
Δ
Loss
Δ
124M
Uniform
3.521
–
2.887
–
5
MATES
3.435
−0.086
2.887
+0.000
4
DSIR
3.452
−0.069
2.935
+0.048
Similarity
3.321
−0.200
3.000
+0.113
Appendix
Table 5: Held-out FineWeb loss of the runs of Table 1 Δ denotes the distance against uniform training run, lower means improvements while higher means degradation.
Figure 14: Zero-shot accuracy curves with task-oriented pretraining at 124M . Top: mean over the five targets (left) and over the three untargeted benchmarks (right). Bottom: each target.
Figure 15: Zero-shot accuracy curves with task-oriented pretraining at 720M . Top: mean over the five targets (left) and over the three untargeted benchmarks (right). Bottom: each target.
Figure 16: Zero-shot accuracy curves with task-oriented pretraining at 124M . Top: mean over the five targets (left) and over the three untargeted benchmarks (right). Bottom: each target.
Figure 17: Zero-shot accuracy curves with task-oriented pretraining at 720M . Top: mean over the five targets (left) and over the three untargeted benchmarks (right). Bottom: each target.
Figure 18: Topic composition of the trained documents at 124M .
Figure 19: Topic composition of the trained documents at 720M , as Figure 5 , for the benchmark target and the FineWeb-Edu target.
Figure 20: Five epochs of instruction tuning at 720M. (a) Held-out Tulu loss; (b) held-out FineWeb-Edu loss; (c) downstream loss.
Figure 21: IFEval after k epochs of instruction tuning at 720M : prompt-level strict accuracy, with greedy decoding and the Tulu chat template. Epoch 0 is the pretrained model.
Five benchmarks
Two other tasks
Mean (7 tasks)
λ
Scorer
ARC-E
ARC-C
PIQA
SciQ
HellaSw.
WG
OBQA
Plain
Chat
IFEval
Uniform
47.94
26.45
68.72
82.30
45.97
53.91
21.20
48.96
46.62
35.86
FineWeb-Edu
59.43
31.31
67.90
87.60
45.72
55.41
24.00
52.98
50.39
34.94
4
Similarity
55.77
29.61
69.15
85.90
46.61
52.01
22.80
51.56
48.16
38.45
DAiSy
43.43
28.75
67.41
86.30
47.73
52.96
21.80
49.56
49.58
36.78
16
Similarity
57.95
31.74
66.92
84.60
44.06
52.25
23.20
51.33
49.53
36.41
Appendix
Table 6: Best accuracy over five instruction tuning epochs at 720M . Every value is the highest over the five tuned models of a run on Tulu-v3. Zero-shot accuracy (%) with plain prompts on each task reports acc_norm of the five benchmarks, acc of WinoGrande and OpenBookQA; the mean takes the average over seven reasoning tasks with plain prompts and with the Tulu chat template . IFEval applies the prompt-level strict accuracy (greedy decoding, chat template). DAiSy and similarity select with the FineWeb-Edu target.
Loss
Accuracy (%)
λ
Scorer
Down
HQ FW2
Nat. FW2
Global-MMLU
INCLUDE
Benchmark target, natural language mix
Uniform ( natural )
3.526
2.845
2.879
25.91
27.43
4
Similarity
3.510
2.869
2.912
25.85
26.62
DAiSy
3.447
2.872
3.151
25.95
28.23
16
Similarity
3.517
2.905
2.998
25.92
27.79
Appendix
Table 7: Multilingual online selection results at 124M.
Figure 22: Multilingual runs with the benchmark target at λ=4 , 16 and 64 .
Figure 23: Multilingual runs with the benchmark target . (a) Held-out FineWeb2 loss and (b) downstream loss, the average held-out loss on the 12 benchmark tasks (6 languages × 2 benchmarks).
Figure 24: The runs of Figure 7 with the HQ-FineWeb2 and the benchmark target, per language : held-out HQ FineWeb2 (top) and natural FineWeb2 loss (middle) at every permanent checkpoint, on the documents without a pool copy, and held-out benchmark loss (bottom; the mean of the language’s Global-MMLU and INCLUDE tasks).
Figure 25: How often the rank-target runs train each document of the 10B subset across memory factor γ .
Figure 26: Repetition by topic on the 10B subset at the end of training. (a) Share of a topic’s documents trained at least once. (b) Trainings per document of the topic. (c–f) The trained documents of each topic by the number of times they were trained.
Steps 120k
End of Training (256k)
Penalty
β
Down
FineWeb
Used
Down
FineWeb
Used
DAiSy ( γ=0.9 )
–
3.345
3.214
29.6%
3.325
3.081
42.6%
Count penalty
0.5
3.420
3.070
58.0%
3.352
2.934
78.5%
Embedding penalty
15.41
3.412
3.107
44.2%
3.369
2.991
59.1%
Gradient penalty
1
3.349
3.171
36.9%
3.313
3.044
49.1%
Momentum penalty
1
3.342
3.161
37.4%
3.305
3.043
48.5%
Appendix
Table 8: Performance under redundancy penalties on the 10B subset at 124M. DAiSy ( γ=0.9 ) serves as a reference without any penalty terms here.