编辑1个神经元能修复LLM中的重复循环吗?
When Can One Neuron Fix Repetition Loops in LLMs?
AI总结:
本文发现Gemma 4模型在长事实列举任务中高达95%的概率陷入重复循环,通过逐层消融和逐神经元归因定位到少量MLP神经元,并用静态权重编辑(小至单个神经元符号反转)消除循环,但无法解决因知识缺失导致的“末日循环”。
摘要:
是的。它能治愈末日循环吗?可能不行。Gemma 4指令微调模型存在一个可复现的失败:在长事实列举提示(如列出电视剧的每一集、88个IAU星座或151个原始宝可梦)上,它们会崩溃成重复,要么是严格的逐字循环,要么是列表条目退化到单一答案。这些循环的发生率高达95%,并且能抵抗提示改写、推理引擎更改和大多数采样调整。在本文中,我们探讨这种行为是否足够局部化,从而可以通过权重编辑来消除。为了定位原因,我们使用逐层消融和逐神经元归因,然后通过完整生成扫描确认最强候选。循环追溯到一小部分MLP神经元(或者在26B-A4B混合专家模型中,几个路由专家),我们通过静态权重编辑抑制它们。这些“手术”可以小到单个符号反转的神经元(在E2B模型中)。有效编辑的大小随模型规模增长,但在所有情况下,循环模式可以在正常生成预算内解决,同时保持通用基准分数。然而,编辑并不能解决所有问题:我们还研究了更长的思考预算,其中两个较大的模型最明显地进入末日循环,即模型在无法回忆的事实上自我纠正的循环,耗尽预算而不给出最终答案。我们表明,这种残余失败通过相同的编辑减少但未消除,并认为它本质上是知识精度问题,而非可移除的电路;权重手术可以删除循环,但不能提供缺失的事实。我们的结果既是可行性证明——即具体的生成病理可以定位到少数参数并编辑掉——也是对该方法适用范围的界定。
英文摘要:
The Gemma 4 instruction-tuned models share a reproducible failure: on long factual enumeration prompts, such as TV episodes, the 88 IAU constellations, or the 151 original Pokemon, they collapse into repetition, either a tight verbatim loop or a list whose entries decay onto one answer. These loops reach 87.5% (7/8 generations) and survive prompt rewording and most sampling adjustments. In this paper, we explore whether edits to a few internal model components can directly reduce this failure, without relying on repetition penalties, which can distort valid repetition and degrade task performance. To locate such targets, we combine per-layer ablation with per-neuron or routed-expert attribution, then evaluate weight edits over complete generations. We find that these edits substantially reduce detected loops on the prompts and seeds used to select them; in Gemma 4 E2B, for example, one sign-inverted neuron suffices. Across all four Gemma models, detected loops fall from 46/384 to 12/384 on frozen held-out prompts and seeds, driven mainly by E4B and 31B, while general-purpose benchmarks show no statistically detectable regressions. Our attribution methodology identifies useful candidates, but rankings vary across examples. At longer generation budgets, edits remain effective for E2B and E4B, whereas remaining failures in 26B and 31B shift toward doom looping: non-convergent self-correction over facts the model cannot recall. In exploratory experiments on Qwen3.5 and LFM2.5, sparse edits also reduce repetition, providing preliminary cross-family evidence, although effect strength and selectivity vary. Overall, our results show the promise and limits of targeted, small-scale weight editing: it can suppress specific repetition failures and provide a training-free causal intervention, but does not reveal a universal loop circuit, guarantee clean termination, or supply missing knowledge.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。