Scalable, Transferable Meta-network for Data Selection Requires a Different Loss (and Why the Obvious Choice is Problematic)
Organizations: College of Computing and Data Science Nanyang Technological University Singapore
Abstract
Data selection is critical for training large language models on massive and heterogeneous corpora. Meta-learning for Training-data Selection offers a principled alternative to heuristic scoring by learning data weights from a target validation objective, but existing methods face a trade-off between fine-grained valuation and transferability to unseen data. A natural solution is to replace per-sample weights with a selection network. However, we find that directly incorporating such a network into existing MTS objectives leads to unstable optimization and poor generalization, caused by weight suppression and persistent reliance on easy-to-learn features. To address these issues, we propose Transferable Example Scoring and Selection (TESS), a scalable data-selection framework built on a Pointwise Value Matching objective (PVM). Experiments on LLM safety and targeted instruction tuning demonstrate strong transfer across datasets, from subsets to full corpora, and from smaller to larger models.
Figures & tables
| Shortcut ( / ) | Method | Early Stage | Middle Stage | Late Stage | Avg. Gap | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Strong 0.17 / 0.57 | TESS + | 98.84 | 79.38 | 19.46 | 99.56 | 84.62 | 14.94 | 99.56 | 84.97 | 14.59 | 16.33 |
| TESS + | 97.96 | 72.44 | 25.52 | 90.22 | 52.26 | 37.96 | 84.71 | 46.31 | 38.40 | 33.96 | |
| ScaleBiO + | 93.42 | 78.84 | 14.58 | 90.76 | 57.73 | 33.03 | 76.00 | 32.44 | 43.56 | 30.39 | |
| Weak 0.06 / 0.41 | TESS + | 98.04 | 91.47 | 6.57 | 98.67 | 93.51 | 5.16 | 98.76 | 93.60 | 5.16 | 5.63 |
| TESS + | 96.53 | 80.71 | 15.82 | 87.82 | 65.78 | 22.04 | 84.00 | 60.53 | 23.47 | 20.44 | |
| Setting | Training | Generalization | ||||||||||
| Dataset | Bench | Random | Task-agnostic Heuristics | Learnable Weighting | ||||||||
| GradSafe | Bi-Anchor | SEAL w | SBO w | SEAL ϕ | SBO ϕ | TESS | SEAL ϕ | SBO ϕ | TESS | |||
| Target LLM: Llama3-8B-Instruct | ||||||||||||
| Alpaca | DH4 | 25.00 | 28.00 | 49.00 | 26.75 | 38.25 | 12.50 | 12.50 | 36.75 | 8.50 | 6.50 | 35.50 |
| HB | 15.00 | 16.00 | 35.00 | 13.50 | 21.00 | 9.00 | 7.00 | 20.50 | 6.00 | 4.00 | 25.00 | |
| HEx | 6.55 | 8.97 | 24.58 | 6.90 | 10.69 | 5.86 | 3.44 | 11.38 | 3.10 | 3.44 | 15.52 | |
| Setting | Method | Alpaca | Dolly | Avg. | ||||
| DH4 | HB | HEx | DH4 | HB | HEx | |||
| Training | TESS w/ PVM Loss | 44.50 | 23.50 | 24.83 | 86.50 | 87.00 | 88.62 | 59.16 |
| TESS w/ SBO Loss | 39.50 | 19.50 | 22.06 | 58.25 | 40.50 | 45.52 | ||
| TESS w/ KL Loss | 40.75 | 19.00 | 23.86 | 60.75 | 53.50 | 59.66 | ||
| Pseudo-Label Ranking | 11.25 | 7.50 | 5.86 | 75.75 | 75.00 | 70.69 | ||
| Generalization | TESS w/ PVM Loss | 38.75 | 16.00 | 18.28 | 84.50 | 83.50 | 80.00 | 53.51 |
| Method | GSM8K | CodeX | Overall Avg. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| =1K | =5K | =10K | Avg. | =5K | =10K | =20K | Avg. | ||
| Random | 13.41 | 15.92 | 16.13 | 15.15 | 29.05 | 27.03 | 27.70 | 27.93 | 21.54 |
| LESS | 18.80 | 22.36 | 22.59 | 21.25 | 25.00 | 26.35 | 28.37 | 26.57 | 23.91 |
| RDS+ | 17.43 | 21.60 | 23.57 | 20.87 | 28.37 | 26.35 | 29.73 | 28.15 | 24.51 |
| SEAL w | 14.78 | 16.37 | 17.89 | 16.35 | 24.32 | 25.00 | 25.68 | 25.00 | 20.67 |
| SBO w | 15.01 | 17.74 | 18.65 | 17.13 | 26.35 | 25.68 | 27.03 | 26.35 | 21.74 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Setting | Method | Alpaca | Dolly | Overall ASR | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DH4 | HB | HEx | DH4 | HB | HEx | Avg. | Retention | ||||
| Training | Big2Big | 44.50 | 23.50 | 24.83 | 1.00 | 86.50 | 87.00 | 88.62 | 1.00 | 59.16 | – |
| Small2Big | 35.50 | 13.00 | 13.79 | 6.60 | 74.00 | 72.00 | 66.90 | 5.65 | 45.87 | 77.53 | |
| Generalization | Big2Big | 38.75 | 16.00 | 18.28 | 1.00 | 84.50 | 83.50 | 80.00 | 1.00 | 53.51 | – |
| Small2Big | 32.25 | 13.00 | 14.14 | 6.20 | 77.50 | 70.00 | 61.72 | 5.65 | 44.77 | 83.67 | |