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

Simfluence:通过模拟训练样本来模拟个体训练样本的影响

Simfluence: Modeling the Influence of Individual Training Examples by Simulating Training Runs

Google Research(谷歌研究院);Brown University(布朗大学)

Kelvin Guu, Albert Webson, Ellie Pavlick, Lucas Dixon, Ian Tenney, Tolga Bolukbasi

摘要:

训练数据属性(TDA)方法提供将模型对任何给定示例的预测追溯到特定的有影响力的训练样本。现有的方法是在影响是加性的简化假设下,通过为每个训练样本分配标量影响分数来实现的。但在现实中,我们观察到,训练样本交互高度非加性的方式,由于因素,如样本间冗余,培训顺序,和课程学习的影响。为了研究这种相互作用,我们提出了Simfluence,这是TDA的一种新范式,其目标不是为每个示例产生单一的影响分数,而是训练运行模拟器:用户问,"如果我的模型在示例$z_1$上训练,那么$z_2$,.那么$z_n$,它在$z_{test}$上会有什么表现呢?'';然后,模拟器应该输出模拟训练运行,其是预测在模拟运行的每一步上$z_{test}$的损失的时间序列。这使用户能够回答关于他们的模型在不同的培训课程下会学到什么的反事实问题,并直接看到在培训中学习会发生在哪里。我们提出了一个模拟器,Simfluence-Linear,捕捉非添加剂的相互作用,往往能够预测的尖峰轨迹的个别例子的损失与令人惊讶的保真度。此外,我们表明,现有的TDA方法,如TracIn和影响函数可以被视为特殊情况下的Simfluence线性。这使我们能够直接比较方法的模拟精度,包括几个以前的TDA方法进行评估。在大语言模型(LLM)微调的实验中,我们表明,我们的方法预测损失轨迹的准确性比现有的TDA方法高得多(斯皮尔曼的相关性增加一倍,均方误差减少75%),在几个任务,模型和训练方法。

英文摘要:

Training data attribution (TDA) methods offer to trace a model's prediction on any given example back to specific influential training examples. Existing approaches do so by assigning a scalar influence score to each training example, under a simplifying assumption that influence is additive. But in reality, we observe that training examples interact in highly non-additive ways due to factors such as inter-example redundancy, training order, and curriculum learning effects. To study such interactions, we propose Simfluence, a new paradigm for TDA where the goal is not to produce a single influence score per example, but instead a training run simulator: the user asks, ``If my model had trained on example $z_1$, then $z_2$, ..., then $z_n$, how would it behave on $z_{test}$?''; the simulator should then output a simulated training run, which is a time series predicting the loss on $z_{test}$ at every step of the simulated run. This enables users to answer counterfactual questions about what their model would have learned under different training curricula, and to directly see where in training that learning would occur. We present a simulator, Simfluence-Linear, that captures non-additive interactions and is often able to predict the spiky trajectory of individual example losses with surprising fidelity. Furthermore, we show that existing TDA methods such as TracIn and influence functions can be viewed as special cases of Simfluence-Linear. This enables us to directly compare methods in terms of their simulation accuracy, subsuming several prior TDA approaches to evaluation. In experiments on large language model (LLM) fine-tuning, we show that our method predicts loss trajectories with much higher accuracy than existing TDA methods (doubling Spearman's correlation and reducing mean-squared error by 75%) across several tasks, models, and training methods.

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

↑