Manuscript Offprint

arXiv:2610.02092

Scalable, Transferable Meta-network for Data Selection Requires a Different Loss (and Why the Obvious Choice is Problematic)

Zilin Du, Bowen Yang, Boyang Albert Li

Zilin Du

College of Computing and Data Science

Nanyang Technological University

Singapore

zilin003@e.ntu.edu.sg

Bowen Yang

College of Computing and Data Science

Nanyang Technological University

Singapore

yang1117@e.ntu.edu.sg

Boyang Albert Li ∗^{*}

College of Computing and Data Science

Nanyang Technological University

Singapore

boyang.li@ntu.edu.sg

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.

1 INTRODUCTION

The performance of modern AI systems is fundamentally shaped by the training data (Zha et al., 2025; Kumar et al., 2024; Zha et al., 2023; Whang et al., 2023). For large language models (LLMs), scaling requires assembling massive corpora from heterogeneous sources (Zhou et al., 2025; Weber et al., 2024; Langlais et al., 2026; Li et al., 2024a), which often introduces redundant and low-quality examples. Training data selection is hence an important component of LLM training. Many existing methods rank training examples by manually designed scores, such as entropy (Li et al., 2026), instruction-following difficulty (Li et al., 2024b), reducible training loss (Mindermann et al., 2022), and distance to target domain (Deng et al., 2026; Min et al., 2026), to name a few. These scoring rules lack the ability to dynamically adapt to new scenarios. Though each captures a potentially useful signal, it remains an open question how these scores may be combined to create more powerful ranking mechanisms.

Meta-learning for Training-data Selection (MTS) (Shen et al., 2025a; Pan et al., 2025; Ren et al., 2018; Wang et al., 2020; Du et al., 2026; Shu et al., 2019; Yu et al., 2025; Calian et al., 2026) provides a principled alternative, where the values of training data are learned directly from their effects on the validation loss Lval\mathcal{L}_{\text{val}}. Let θ\theta denote the LLM parameters, wi>0w_i > 0 be the learnable weight for the loss of the ii-th training data point, ℓi(θ)\ell_i(\theta), and the vector w=(wi)i\boldsymbol{w} = (w_i)_i contain all wiw_i as

∗^{*}Corresponding author.

components. MTS formulates data weighting as the following bilevel optimization problem:

w∗=arg⁡min⁡wLval(θ∗(w)),s.t.θ∗(w)=arg⁡min⁡θ∥w∥1−1∑iwiℓi(θ).(1)\mathbf{w}^{*}=\arg\min_{\mathbf{w}}\mathcal{L}_{\mathrm{val}}\big(\boldsymbol{\theta}^{*}(\mathbf{w})\big),\qquad\mathrm{s.t.}\quad\boldsymbol{\theta}^{*}(\mathbf{w})=\arg\min_{\boldsymbol{\theta}}\|\boldsymbol{w}\|_{1}^{-1}\sum_{i}w_{i}\ell_{i}(\boldsymbol{\theta}). \tag{1}

This framework allows automatic identification of effective training data, which lead the model to generalize to the validation data.

Nevertheless, MTS in practice runs into two obstacles; the first is scalability. Computing the exact hypergradient ∇wLval(θ∗(w))\nabla_w \mathcal{L}_{\text{val}}(\theta^*(\mathbf{w})) by unrolling the inner optimization is costly. Even unrolling one step and taking the finite-different approximation require three backward operations on θ\theta for one gradient step on w\mathbf{w} (Du et al., 2026; Shu et al., 2019), which is prohibitive expensive for large LLMs. Calian et al. (2026) manage to unroll 8 steps using 64 v5 TPUs, which is beyond the capability of most academic labs. With penalty-based reformulations (Shen & Chen, 2023; Xiao et al., 2023; Shen et al., 2025b), ScaleBiO (Pan et al., 2025) reduces the number of backward calls to two, whereas SEAL (Shen et al., 2025a) reduces it further to one, but incurs discernible performance losses.

The second challenge is generalization to unseen data. In the formulation of Ren et al. (2018); Shen et al. (2025a), every data point receives a separate weight wiw_i, and no generalization is possible. An alternative approach (Pan et al., 2025) is to assign a separate weight for each data domain (e.g., one dataset in a collection of multiple datasets), which provides generalization within each domain. However, this overlooks heterogeneity among data points in a single domain and cannot generalize to new data domains.

One intuitively appealing idea is to train a meta-network that outputs wiw_i for every data point. If the meta-network can generalize to unseen data points, we would be able to train on a small dataset and perform data selection on a much larger dataset, which would also substantially improve efficiency and scalability. Though the meta-network approach has been used by Shu et al. (2019); Du et al. (2026); Calian et al. (2026), no such generalization has been reported, not even for the extraordinarily large-scale experiments of Calian et al. (2026). Perhaps unsurprisingly, our experiments find simplistic training of the meta-network leads to unstable optimization (Figure 2) and poor generalization (Table 1 and 3).

Given the massive success of deep learning, the failure of the meta-network to generalize to unseen data is especially perplexing. Our analysis traces the failure to two properties of the training loss. First, as training progresses, most predicted data weights are suppressed toward zero. As a result, over time, the meta-network loses the ability to distinguish useful training data from harmful training data. Second, the loss causes the network to exclusively learn easy features and ignores hard feature, so the network becomes susceptible to shortcut learning.

To improve the scalability and generalization of MTS, we propose Transferable Example Scoring and Selection (TESS). At its core, TESS simplifies ScaleBiO (Pan et al., 2025) and introduces a simple mean squared error objective, which we call Pointwise Value Matching (PVM). TESS constructs sample-level pseudo-labels that capture the utility of training data points and uses these values as supervision for the data-selecting meta-network. Compared to the existing loss, the PVM loss is less focused on easy features, which curbs shortcut learning and promotes generalization. Further, TESS removes the requirement of ScaleBiO to simultaneously train two LLMs with the meta-network, cutting peak memory footprint by more than 20%. Experiments on LLM safety and targeted instruction tuning demonstrate substantially improved generalization of TESS across three settings: cross-dataset transfer, small-to-large model transfer, and subset-to-full-corpus transfer. Our contributions can be summarized as:

• We identify and theoretically analyze two limitations of applying the existing MTS training objective to a shared selection network: competitive weight suppression that undermines the identification of high-quality training data, and persistent preference for easy-to-learn features that can encourage shortcut learning.

• We propose TESS, a transferable data-selection framework that constructs sample-level pseudo-labels and uses them as supervision to learn a data selection network generalizable to unseen data. To the best of our knowledge, this is the first work that demonstrates generalization to unseen data in MTS.

References (90)