Racing Thoughts:解释大型语言模型中的上下文化错误
Racing Thoughts: Explaining Contextualization Errors in Large Language Models
AI总结:
研究大型语言模型上下文化错误的机制,提出LLM竞态条件假设解释token依赖违反导致的错误,并通过机制可解释性技术提供因果证据和推理时干预方案。
摘要:
基于transformer的语言模型的深刻成功很大程度上归因于它们能够整合来自输入序列的相关上下文信息,以生成响应或完成任务。然而,我们对模型用来实现这一能力的算法知之甚少,也不了解其失败模式。例如,给定提示“John要去钓鱼,所以他走向bank(河岸)。他能进行ATM交易吗?”,如果模型没有将“bank”正确上下文化为地理特征而非金融机构,它可能会错误地回答“是”。我们提出LLM Race Conditions Hypothesis(大型语言模型竞态条件假设)作为对这种形式的上下文化错误的解释。该假设识别了token之间的依赖关系(例如,“bank”必须在最终token“?”整合来自“bank”的信息之前被正确上下文化),并声称上下文化错误是违反这些依赖关系的结果。使用来自机制可解释性的多种技术,我们提供了支持该假设的相关性和因果证据,并建议推理时干预来解决它。
英文摘要:
The profound success of transformer-based language models can largely be attributed to their ability to integrate relevant contextual information from an input sequence in order to generate a response or complete a task. However, we know very little about the algorithms that a model employs to implement this capability, nor do we understand their failure modes. For example, given the prompt "John is going fishing, so he walks over to the bank. Can he make an ATM transaction?", a model may incorrectly respond "Yes" if it has not properly contextualized "bank" as a geographical feature, rather than a financial institution. We propose the LLM Race Conditions Hypothesis as an explanation of contextualization errors of this form. This hypothesis identifies dependencies between tokens (e.g., "bank" must be properly contextualized before the final token, "?", integrates information from "bank"), and claims that contextualization errors are a result of violating these dependencies. Using a variety of techniques from mechanistic intepretability, we provide correlational and causal evidence in support of the hypothesis, and suggest inference-time interventions to address it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。