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

Jacobian Scopes: LLM中的令牌级因果归因

Jacobian Scopes: A Unified Geometric Framework for Token-Level LLM Attribution

Cornell University(康奈尔大学);Imperial College London(伦敦帝国理工学院);Goodfire AI

Toni J. B. Liu, Baran Zadeoğlu, Gurbir Arora, Raphaël Sarfati, Nicolas Boullé, Christopher J. Earls

AI总结:

提出Jacobian Scopes,一种基于梯度的令牌级因果归因方法,用于解释LLM预测,揭示政治偏见、翻译策略和上下文学习机制。

摘要:

大型语言模型(LLM)基于上下文中的线索(如语义描述和上下文示例)进行下一个令牌预测。然而,由于现代架构中层和注意力头的 proliferation,阐明哪些先前的令牌对给定预测影响最大仍然具有挑战性。我们提出Jacobian Scopes,一套基于梯度的令牌级因果归因方法,用于解释LLM预测。基于微扰理论和信息几何,Jacobian Scopes量化输入令牌如何影响模型预测的各个方面,例如特定logits、完整预测分布和模型不确定性(有效温度)。通过涵盖指令理解、翻译和上下文学习(ICL)的案例研究,我们展示了Jacobian Scopes如何揭示隐含的政治偏见,揭示词级和短语级翻译策略,并阐明最近争论的上下文时间序列预测的潜在机制。为了便于在自定义文本上探索Jacobian Scopes,我们开源了实现,并在以下网址提供了云托管交互式演示:this https URL。

英文摘要:

Large language models (LLMs) make next-token predictions based on clues present in their context, such as semantic descriptions and in-context examples. Yet, elucidating which prior tokens most strongly influence a given prediction remains challenging due to the proliferation of layers and attention heads in modern architectures. We propose Jacobian Scopes, a suite of gradient-based, token level causal attribution methods for interpreting LLM predictions. Grounded in perturbation theory and information geometry, Jacobian Scopes quantify how input tokens influence various aspects of a model's prediction, such as specific logits, the full predictive distribution, and model uncertainty (effective temperature). Through case studies spanning instruction understanding, translation, and in-context learning (ICL), we demonstrate how Jacobian Scopes reveal implicit political biases, uncover word- and phrase-level translation strategies, and shed light on recently debated mechanisms underlying in-context time-series forecasting. On token-ablation faithfulness benchmarks (LAMBADA and IWSLT2017) across six LLMs, the distribution-level Fisher and Temperature Scopes significantly outperform established gradient-based attribution methods in 10 of 12 model-dataset settings. To facilitate exploration of Jacobian Scopes on custom text, we open-source our implementations and provide a cloud-hosted interactive demo at https://huggingface.co/spaces/Typony/JacobianScopes.

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

↑