arXiv:2505.16146cs.CVcs.AI2025-05EMNLP被引 3

用稀疏自编码器定位幻觉方向,精准调控大模型输出

Steering LVLMs via Sparse Autoencoder for Hallucination Mitigation

  • 通过稀疏自编码器识别与真实性和幻觉相关的语义方向
  • 在多个数据集上将幻觉率降低20%以上,且不损害模型通用性
  • 无需重训练,插件式部署,计算开销极低,适合实际应用

大型视觉语言模型(LVLMs)在多模态任务中表现卓越,但仍存在与视觉输入不符的生成内容,即幻觉问题,严重影响实际应用。现有方法多依赖外部知识库、对齐训练或解码策略,成本高昂。近期研究尝试通过调整内部表示来改进,但可能抑制不足或过度干预而破坏正常语义。本文利用稀疏自编码器(SAEs)识别与忠实性或幻觉密切相关的语义方向,提取更精确、解耦的幻觉相关表示。分析表明,沿忠实方向干预可缓解幻觉,而沿幻觉方向则会加剧。基于此,提出基于SAE潜在方向的可控调节方法(SSL),为插件式设计,无需重训练。大量实验显示,SSL在多个基准上显著优于现有解码方法,有效降低幻觉率超20%,同时保持跨模型架构的迁移能力,额外计算开销可忽略。代码已公开于https://github.com/huazhenglin2003/SSL。

原文摘要 · Abstract (English)

Large vision-language models (LVLMs) have achieved remarkable performance on multimodal tasks. However, they still suffer from hallucinations, generating text inconsistent with visual input, posing significant risks in real-world applications. Existing approaches to address this issue focus on incorporating external knowledge bases, alignment training, or decoding strategies, all of which require substantial computational cost and time. Recent works try to explore more efficient alternatives by adjusting LVLMs' internal representations. Although promising, these methods may cause hallucinations to be insufficiently suppressed or lead to excessive interventions that negatively affect normal semantics. In this work, we leverage sparse autoencoders (SAEs) to identify semantic directions closely associated with faithfulness or hallucination, extracting more precise and disentangled hallucination-related representations. Our analysis demonstrates that interventions along the identified faithful direction can mitigate hallucinations, while those along the hallucinatory direction can exacerbate them. Building on these insights, we propose Steering LVLMs via SAE Latent Directions (SSL), a plug-and-play method based on SAE-derived latent directions to mitigate hallucinations in LVLMs. Extensive experiments demonstrate that SSL significantly outperforms existing decoding approaches in mitigating hallucinations, while maintaining transferability across different model architectures with negligible additional time overhead. The code is available at https://github.com/huazhenglin2003/SSL.

幻觉抑制自编码器视觉语言模型可控生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。