上下文保真度提升:通过水印启发式解码增强忠实生成
Context-Fidelity Boosting: Enhancing Faithful Generation through Watermark-Inspired Decoding
AI总结:
本文提出CFB框架,通过增加源支持标记的生成概率减少大语言模型中的保真度幻觉,采用基于水印技术的logit调整策略,三种增强策略提升生成忠实度,无需重训练即可兼容多种LLM。
摘要:
大型语言模型(LLMs)常常生成与输入上下文矛盾或忽略信息的内容,这种现象称为保真度幻觉。本文提出上下文保真度提升(CFB),一种轻量且通用的解码时框架,通过增加源支持标记的生成概率来减少此类幻觉。受水印技术中logit塑造原理启发,CFB基于标记从输入上下文获得的支持程度进行加性标记级logit调整。具体而言,我们开发了三种增强策略:静态增强,对源支持标记应用固定偏置;上下文感知增强,通过有无上下文的下一个标记分布差异缩放此偏置;以及标记感知增强,根据源位置注意力和源范围语义相似性估计进一步重新分配适应性偏置。CFB无需重训练或架构更改,使其兼容多种LLM。在多个开源LLM上的摘要和问答任务实验表明,CFB在最小生成开销下一致提高保真度指标。我们的实现完全开源。
英文摘要:
Large language models (LLMs) often produce content that contradicts or overlooks information provided in the input context, a phenomenon known as faithfulness hallucination. In this paper, we propose Context-Fidelity Boosting (CFB), a lightweight and general decoding-time framework that reduces such hallucinations by increasing the generation probability of source-supported tokens. Motivated by logit-shaping principles from watermarking techniques, CFB applies additive token-level logit adjustments based on a token's degree of support from the input context. Specifically, we develop three boosting strategies: static boosting, which applies a fixed bias to source-supported tokens; context-aware boosting, which scales this bias using the divergence between next-token distributions with and without context; and token-aware boosting, which further redistributes the adaptive bias according to local relevance estimated from source-position attention and source-scoped semantic similarity. CFB requires no retraining or architectural changes, making it compatible with a wide range of LLMs. Experiments on summarization and question answering tasks across multiple open-source LLMs show that CFB consistently improves faithfulness metrics with minimal generation overhead. Our implementation is fully open-sourced.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。