arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.08284cs.CLcs.AI
收藏

分布式多层编辑用于大语言模型中的规则级知识

Distributed Multi-Layer Editing for Rule-Level Knowledge in Large Language Models

School of Software, Shandong University(山东大学软件学院);Salesforce AI Research

Yating Wang, Wenting Zhao, Yaqi Zhao, Yongshun Gong, Yilong Yin, Haoliang Sun

AI总结:

研究针对规则级知识的编辑问题,提出分布式多层编辑方法,通过多层干预提升规则理解和实例可迁移性。

摘要:

大语言模型不仅存储孤立事实,还存储支持符号表达、自然语言解释和具体实例之间推理的规则。然而,大多数模型编辑方法针对事实级知识,假设目标编辑可通过局部干预实现。这一假设不适用于规则级知识,其中单条规则必须在多个相互依赖的形式中保持一致。我们通过机制性研究规则级知识编辑问题,扩展了RuleEdit基准测试,涵盖200个手动验证的规则,涵盖数学和物理领域。细粒度因果追踪揭示了规则知识在transformer层中的形式特定组织:公式和描述集中在早期层,而实例更关联于中层。这些结果表明规则知识并非均匀局部化,因此不能通过单层或连续块干预可靠编辑。基于此见解,我们提出分布式多层编辑(DMLE),对公式和描述应用共享的早期层更新,对实例应用独立的中层更新。尽管在标准编辑指标上保持竞争力,DMLE在规则级编辑性能上显著更强。在GPT-J-6B、Qwen2.5-7B、Qwen2-7B和LLaMA-3-8B上,平均提升实例可迁移性50.19个百分点,规则理解13.91个百分点。代码可在https://github.com/Pepper66/DMLE获取。

英文摘要:

Large language models store not only isolated facts but also rules that support reasoning across symbolic expressions, natural language explanations, and concrete instances. Yet most model editing methods are built for fact-level knowledge, assuming that a target edit can be achieved through a localized intervention. This assumption does not hold for rule-level knowledge, where a single rule must remain consistent across multiple interdependent forms. We investigate this problem through a mechanistic study of rule-level knowledge editing. To support this study, we extend the RuleEdit benchmark from 80 to 200 manually verified rules spanning mathematics and physics. Fine-grained causal tracing reveals a form-specific organization of rule knowledge in transformer layers: formulas and descriptions are concentrated in earlier layers, while instances are more associated with middle layers. These results suggest that rule knowledge is not uniformly localized, and therefore cannot be reliably edited by a single-layer or contiguous-block intervention. Based on this insight, we propose Distributed Multi-Layer Editing (DMLE), which applies a shared early-layer update to formulas and descriptions and a separate middle-layer update to instances. While remaining competitive on standard editing metrics, DMLE achieves substantially stronger rule-level editing performance. On average, it improves instance portability and rule understanding by 13.91 and 50.19 percentage points, respectively, over the strongest baseline across GPT-J-6B, Qwen2.5-7B, Qwen2-7B, and LLaMA-3-8B. The code is available at https://github.com/Pepper66/DMLE.

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

↑