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

LLMs中特征特定误差校正的证据

Evidence for feature-specific error correction in LLMs

Pivotal Research(Pivotal研究院)

Francisco Ferreira da Silva, Stefan Heimersheim

AI总结:

通过激活扰动实验,发现LLMs的残差流激活对沿特征方向(对比对构造的“纯”方向)的扰动更鲁棒,且扰动效应满足p>2的Lp范数,表明存在特征特定的误差校正机制。

摘要:

理解大型语言模型(LLMs)的特征是可解释性的核心目标。通常假设LLMs使用叠加来表示比其维度更多的特征。它们可能不仅在叠加中表示特征,还在叠加中执行计算。理论预测,在叠加中计算需要误差校正,该校正优先考虑特征方向而非通用方向,但这一预测尚未得到实证检验。我们提出了一种基于激活扰动的LLMs误差校正实证测试。通过扰动残差流激活,我们发现它们对小扰动具有鲁棒性——形成与误差校正一致的激活平台——但沿着候选特征方向(从对比提示对构建的“纯”方向)比沿着两个此类方向的混合方向鲁棒性更差,表明纯方向具有特权。我们通过将扰动效应建模为其分解为特征分量的$L^p$范数的函数来量化这种特权性。对于$p=2$,响应是一个二次型,其非零特征值最多与残差流维度相同,这无法赋予叠加所需的众多特征方向以特权。$p>2$解除了这一约束,并且与特征特定的误差校正一致。我们发现对比方向、MELBO方向和SAE解码器方向具有$p>2$,而随机方向和PCA方向(对照)具有$p\approx2$。这些结果在Gemma-2-9B、Qwen3-1.7B、Llama-3.1-8B、Mistral-7B-v0.3、Aya-Expanse-8B和Yi-1.5-9B上重复。我们进一步在已知真实特征的误差校正玩具模型上验证了我们的方法,对于真实特征方向恢复出$p>2$,当从它们旋转离开时退化为$2$。

英文摘要:

Understanding the features of large language models (LLMs) is a central goal of interpretability. LLMs are commonly assumed to use superposition to represent more features than they have dimensions. They may not only represent features in superposition but also perform computation in superposition. Theory predicts that computing in superposition requires error correction that privileges feature directions over generic ones, but this prediction has not been tested empirically. We propose an empirical test of error correction in LLMs based on activation perturbations. Perturbing residual-stream activations, we find that they are robust to small perturbations--forming activation plateaus consistent with error correction--but less robust along candidate feature directions ("pure" directions, constructed from contrastive prompt pairs) than along mixtures of two such directions, indicating that the pure directions are privileged. We quantify this privilegedness by modeling the perturbation effect as a function of the $L^p$-norm of its decomposition into feature components. For $p=2$ the response is a quadratic form with at most as many nonzero eigenvalues as the residual-stream dimension, which cannot privilege the many feature directions superposition requires. $p>2$ lifts this constraint and is consistent with feature-specific error correction. We find $p>2$ for contrastive, MELBO, and SAE-decoder directions, and $p\approx2$ for random and PCA directions (controls). These results replicate across Gemma-2-9B, Qwen3-1.7B, Llama-3.1-8B, Mistral-7B-v0.3, Aya-Expanse-8B, and Yi-1.5-9B. We further validate our method on a toy model of error correction with known ground-truth features, recovering $p>2$ for true feature directions, degrading toward $2$ as we rotate away from them.

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

↑