arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.06913cs.LGcs.AI
收藏

多领域训练中的采样权重与损失权重

Sampling and Loss Weights in Multi-Domain Training

University of Southern California(南加州大学);Google Research(谷歌研究)

Mahdi Salmani, Pratik Worah, Meisam Razaviyayn, Vahab Mirrokni

AI总结:

本文研究多领域训练中采样权重与损失权重的互补作用,通过线性回归的理论与实验证明二者可降低梯度估计方差并缩小泛化差距,为数据混合策略提供理论依据。

摘要:

在大型深度神经网络的训练中,需要海量的训练数据。为了满足这一需求,数据通常从多个领域收集,例如 Wikipedia 和 GitHub。这些领域在数据质量及其所提供信息的多样性方面具有异质性。这就提出了一个问题:我们应该在多大程度上依赖每个领域。已有若干方法尝试通过启发式或近似方法为每个数据领域分配采样权重来解决这一问题。作为深入理解数据混合作用的第一步,本工作通过研究两类权重重新审视该问题:采样权重,用于控制每个领域在一个批次中的贡献比例;以及损失权重,用于在训练过程中缩放来自每个领域的损失。通过对线性回归的严格研究,我们表明这两类权重发挥着互补的作用。首先,它们可以降低迭代方法(如随机梯度下降 SGD)中梯度估计的方差。其次,它们可以通过缩小泛化差距来提升泛化性能。我们为这些论断提供了理论和实证支持。我们进一步研究了采样权重与损失权重的联合动态,考察如何将它们结合起来以同时获得两方面的贡献。

英文摘要:

In the training of large deep neural networks, there is a need for vast amounts of training data. To meet this need, data is collected from multiple domains, such as Wikipedia and GitHub. These domains are heterogeneous in both data quality and the diversity of information they provide. This raises the question of how much we should rely on each domain. Several methods have attempted to address this issue by assigning sampling weights to each data domain using heuristics or approximations. As a first step toward a deeper understanding of the role of data mixing, this work revisits the problem by studying two kinds of weights: sampling weights, which control how much each domain contributes in a batch, and loss weights, which scale the loss from each domain during training. Through a rigorous study of linear regression, we show that these two weights play complementary roles. First, they can reduce the variance of gradient estimates in iterative methods such as stochastic gradient descent (SGD). Second, they can improve generalization performance by reducing the generalization gap. We provide both theoretical and empirical support for these claims. We further study the joint dynamics of sampling weights and loss weights, examining how they can be combined to capture both contributions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑