arXiv:2607.16693cs.CL2026-07被引 1

发现大模型算术能力在不同形式间共享同一神经机制。

Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs

论文配图:Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs
图 1 · 摘自论文原文
  • 通过归因与激活替换,定位跨符号、文本、代码的共用算术神经元。
  • 转移成功执行的激活状态可恢复97%以上错误预测,证明失败源于状态而非电路差异。
  • 这些神经元始终属于相同启发式类别,说明算术计算具有形式不变性。

大型语言模型在某一问题形式下表现良好,却在等价形式下失败,原因尚不明确。近期机制可解释性研究指出,大模型中的算术能力源自‘启发式集合’,由少数稀疏的MLP神经元编码不同算术策略。本文在三个Llama-3模型中,考察算术启发式神经元在符号算术、自然语言应用题和Python代码三种格式下的形式不变性。采用两阶段流程(归因修补+激活修补)识别各格式中的算术神经元。结果显示,少量神经元在三类格式间共享,且干预实验表明该共享回路对后期层算术计算既必要又充分。将某格式成功执行时的神经元激活状态迁移至另一格式的失败案例,可恢复超过97%的错误预测,表明跨格式失败源于激活状态差异而非独立电路。此外,共享神经元在各类格式中均归属于相同启发式家族,证实大模型中的算术计算在神经元层面具有高度形式不变性。

原文摘要 · Abstract (English)

Large language models often succeed on one formulation of a problem while failing on an equivalent formulation. Whether these failures arise from distinct internal circuits or different activation states of a shared circuit remains unknown. Recent mechanistic interpretability studies suggest that arithmetic in LLMs emerges from a "bag of heuristics," encoded by a sparse set of MLP neurons that represent distinct arithmetic strategies. We investigate whether arithmetic heuristic neurons are form-invariant across symbolic arithmetic, natural language word problems, and Python code in three Llama-3 models. In each format, we identify arithmetic heuristic neurons using a two-stage pipeline combining attribution patching and activation patching. A compact set of neurons is shared across all three formats, and targeted interventions show this shared circuit is both necessary and sufficient for late-layer arithmetic computation. Transferring the shared neurons' activations from a successful execution in one format to a failed execution in another recovers most incorrect predictions, exceeding 97% for addition and subtraction, indicating that cross-format failures arise from activation states rather than distinct circuits. Moreover, shared neurons consistently belong to the same heuristic families across formats, demonstrating that arithmetic computation in LLMs is largely form-invariant at the neuron level.

机制可解释算术推理神经元分析形式不变性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。