通过聚焦视图提升非结构化知识编辑中的原子事实召回
研究论文 · 2026/10/06
大型语言模型(LLM)日益充当事实知识的通用接口,但其参数不会自动反映预训练后变化的信息。知识编辑(KE)通过修改选定知识并保留无关知识和通用能力,为昂贵的重新训练提供了一种有针对性的替代方案。传统KE使用结构化事实三元组,而无结构KE(UKE)使用包含多个事实的自由形式段落。然而,现有UKE编辑器表现出一种称为上下文依赖的失败模式:编辑后的LLM通常能复现编辑段落,但无法在没有原始段落上下文的情况下可靠地回忆其个别事实。我们识别出标准段落级编辑目标下上下文引起的难度低估:后面的片段获得越来越丰富的真实上下文,因此初始损失较低,使其看起来更容易学习。为此,我们提出FOVEATED,一种即插即用框架,通过随机移动其前文上下文键所分配的旋转位置嵌入(RoPE)位置,为每个句子构建聚焦视图。该扰动在编辑期间应用,之后移除,在推理时保持模型原生位置编码不变。我们为直接优化和先定位后编辑编辑器实例化了FOVEATED。我们从理论上分析了FOVEATED如何抵消上下文引起的难度低估,并实证展示了在五个KE编辑器、两个LLM骨干和三个基准上的一致改进。
该研究解决了无结构知识编辑中一个关键但被忽视的失败模式,提出了简单有效的即插即用解决方案,并在多个编辑器、模型和基准上验证了其有效性,对提升LLM事实召回能力具有重要意义。
Large language models (LLMs) increasingly serve as general-purpose interfaces to factual knowledge, but their parameters do not automatically reflect information that changes after pretraining. Knowledge editing (KE) provides a targeted alternative to costly retraining by modifying selected knowledge and preserving unrelated knowledge and general capabilities. Conventional KE uses structured factual triples, whereas unstructured KE (UKE) uses free-form passages containing multiple facts. Nonetheless, existing UKE editors exhibit a failure mode known as context reliance: edited LLMs can often reproduce the editing passage but fail to reliably recall its individual facts without the original passage context. We identify context-induced difficulty underestimation under the standard passage-level editing objective: later facts receive increasingly rich ground-truth context and consequently incur lower initial losses, making them appear easier to learn. In response, we propose FOVEATED, a plug-and-play framework that constructs focused views of each sentence by randomly shifting the Rotary Position Embedding (RoPE) positions assigned to the keys of its preceding context. The perturbation is applied during editing and removed afterward, leaving the model's native positional encoding unchanged at inference time. We instantiate FOVEATED for both direct-optimization and locate-then-edit editors. We theoretically analyze how FOVEATED counteracts context-induced difficulty underestimation and empirically demonstrate consistent improvements across five KE editors, two LLM backbones, and three benchmarks.