野性算术:Llama使用十进制加法来推理循环概念
Arithmetic in the Wild: Llama uses Base-10 Addition to Reason About Cyclic Concepts
AI总结:
研究Llama-3.1-8B如何用十进制加法处理循环概念,发现其通过通用加法机制而非模运算实现,利用傅里叶特征进行计算,揭示了因果抽象与特征几何的交互对语言模型的理解作用。
摘要:
表示中的结构是否意味着计算中的结构?我们研究Llama-3.1-8B如何处理循环概念(如“八月后六个月是几月”)。尽管这些概念的表示是循环结构的,但我们发现模型并未直接进行模运算(如12个月),而是使用通用加法机制跨任务独立运作。首先,模型用十进制加法计算两个输入的和(六+八月=14),然后将此和映射回循环概念空间(14→二月)。我们证明Llama-3.1-8B使用任务无关的傅里叶特征进行这些计算——这些特征的周期遵循标准十进制加法(如2、5、10),而非循环概念的周期(如12个月)。此外,我们识别出一组28个MLP神经元在所有任务中被重复使用(约占第18层MLP的0.2%),这些神经元可以划分为不相交的簇,每个簇计算不同周期的傅里叶特征的和。我们的工作展示了因果抽象与特征几何的交互如何加深对语言模型的理解。
英文摘要:
Does structure in representations imply structure in computation? We study how Llama-3.1-8B reasons over cyclic concepts (e.g., "what month is six months after August?"). Even though Llama-3.1-8B's representations for these concepts are circularly structured, we find that instead of directly computing modular addition in the period of the cyclic concept (e.g., 12 for months), the model re-uses a generic addition mechanism across tasks that operates independently of concept-specific geometry. First, it computes the sum of its two inputs using base-10 addition (six + August=14). Then, it maps this sum back to cyclic concept space (14->February). We show that Llama-3.1-8B uses task-agnostic Fourier features to compute these sums--in fact, these features have periods that respect standard base-10 addition, e.g., 2, 5, and 10, rather than the cyclic concept period (e.g., 12 for months). Furthermore, we identify a sparse set of 28 MLP neurons re-used across all tasks (approximately 0.2% of the MLP at layer 18) that can be partitioned into disjoint clusters, each computing the sum for a Fourier feature with a different period. Our work highlights how an interplay between causal abstraction and feature geometry can deepen our mechanistic understanding of LMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。