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

泛化还是记忆:面向模式引导的动态解码

Generalization or Memorization: Dynamic Decoding for Mode Steering

Stanford University, Palo Alto, USA(斯坦福大学);Department of Computer Science, University of Wisconsin-Madison, Madison, USA(计算机科学系,威斯康星大学麦迪逊分校)

Xuanming Zhang

AI总结:

针对大模型泛化与记忆的不可预测性,提出基于信息瓶颈的理论框架及动态模式引导(DMS)推理算法,通过线性探针识别记忆依赖并动态引导激活,显著提升逻辑一致性与事实准确性。

摘要:

大型语言模型(LLMs)表现出一种令人不安的双重性,既能进行显著的泛化,又能对其训练数据进行脆弱的、逐字逐句的记忆。这种不可预测性削弱了它们在高风险应用中的可靠性。在这项工作中,我们提出了一个统一框架来理解、识别和控制这些不同的推理模式。首先,我们引入了一个基于信息瓶颈(IB)原理的理论模型,将泛化形式化为学习一种压缩的、与任务相关的表示,而将记忆形式化为压缩的失败。在此理论基础上,我们开发了动态模式引导(DMS),一种新颖的推理时算法,它包含两个组成部分:(1)一个轻量级的、基于因果关系的线性探针,用于识别模型对记忆的即时依赖;(2)一种动态激活引导机制,将模型的计算推向预先识别的泛化电路。我们将DMS视为一种自适应、自对比解码的形式。在推理和忠实性任务上的实验表明,DMS显著提高了逻辑一致性和事实准确性,从而为增强LLM的可靠性提供了一种有原则的方法。

英文摘要:

Large Language Models (LLMs) exhibit a troubling duality, capable of both remarkable generalization and brittle, verbatim memorization of their training data. This unpredictability undermines their reliability in high-stakes applications. In this work, we propose a unified framework to understand, identify, and control these distinct reasoning modes. First, we introduce a theoretical model based on the Information Bottleneck (IB) principle, formalizing generalization as the learning of a compressed, task-relevant representation and memorization as a failure to compress. Building on this theory, we develop Dynamic Mode Steering (DMS), a novel inference-time algorithm which comprises two components: (1) a lightweight, causally-grounded linear probe that identifies the model's instantaneous reliance on memorization, and (2) a dynamic activation steering mechanism that nudges the model's computation towards pre-identified generalization circuits. We frame DMS as a form of adaptive, self-contrastive decoding. Experiments on reasoning and faithfulness tasks demonstrate that DMS significantly improves logical consistency and factual accuracy, thereby offering a principled approach to enhancing LLM reliability.

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

↑