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

大型语言模型预训练的可扩展影响与事实追踪

Scalable Influence and Fact Tracing for Large Language Model Pretraining

Google DeepMind(谷歌DeepMind);UC San Diego(加州大学圣迭戈分校)

Tyler A. Chang, Dheeraj Rajagopal, Tolga Bolukbasi, Lucas Dixon, Ian Tenney

AI总结:

本文改进了基于梯度的训练数据归因方法,使其能在160B token规模下为8B参数LLM检索有影响力的训练样本,并揭示了事实归因与因果影响间的错位关系。

摘要:

训练数据归因(TDA)方法旨在将模型输出归因于特定的训练样本,将这些方法应用于大型语言模型(LLM)的输出,将显著推进模型透明度和数据筛选。然而,迄今为止,将这些方法应用于LLM预训练的全规模仍具有挑战性。在本文中,我们改进了现有的基于梯度的方法,使其能够在大规模下有效工作,使我们能够从一个包含超过1600亿(160B)个token的预训练语料库中,为一个80亿(8B)参数的语言模型检索有影响力的样本,而无需进行子采样或预过滤。我们的方法结合了几种技术,包括优化器状态校正、任务特定的Hessian近似和归一化编码,我们发现这些对于大规模下的性能至关重要。在事实追踪任务的定量评估中,我们的方法在识别影响模型预测的样本方面表现最佳,但像BM25这样的经典模型无关检索方法在查找明确包含相关事实的段落方面仍然表现更好。这些结果证明了事实*归因*与因果*影响*之间存在不一致。随着模型大小和训练token的增加,我们发现影响与事实归因更加一致。最后,我们检查了被我们的方法识别为有影响力的不同类型的样本,发现虽然许多样本直接推导出特定事实,但其他样本则通过强化关于关系类型、常见实体和名称的先验来支持相同的输出。我们发布了我们的提示集和模型输出,以及一个基于网络的可视化工具,用于探索8B参数LLM在事实预测、常识推理、算术和开放式生成方面的有影响力样本。

英文摘要:

Training data attribution (TDA) methods aim to attribute model outputs back to specific training examples, and the application of these methods to large language model (LLM) outputs could significantly advance model transparency and data curation. However, it has been challenging to date to apply these methods to the full scale of LLM pretraining. In this paper, we refine existing gradient-based methods to work effectively at scale, allowing us to retrieve influential examples for an 8B-parameter language model from a pretraining corpus of over 160B tokens with no need for subsampling or pre-filtering. Our method combines several techniques, including optimizer state correction, a task-specific Hessian approximation, and normalized encodings, which we find to be critical for performance at scale. In quantitative evaluations on a fact tracing task, our method performs best at identifying examples that influence model predictions, but classical, model-agnostic retrieval methods such as BM25 still perform better at finding passages which explicitly contain relevant facts. These results demonstrate a misalignment between factual *attribution* and causal *influence*. With increasing model size and training tokens, we find that influence more closely aligns with factual attribution. Finally, we examine different types of examples identified as influential by our method, finding that while many directly entail a particular fact, others support the same output by reinforcing priors on relation types, common entities, and names. We release our prompt set and model outputs, along with a web-based visualization tool to explore influential examples for factual predictions, commonsense reasoning, arithmetic, and open-ended generation for an 8B-parameter LLM.

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

↑