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

AI对齐中的意外权衡:在LLMs中平衡幻觉缓解与安全

The Unintended Trade-off of AI Alignment:Balancing Hallucination Mitigation and Safety in LLMs

Applied Artificial Intelligence Initiative(应用人工智能倡议);Deakin University(德肯大学);School of Information Technology(信息科技学院)

Omar Mahmoud, Ali Khalil, Buddhika Laknath Semage, Thommen George Karimpanal, Santu Rana

AI总结:

本文提出了一种方法,通过解耦幻觉和拒绝特征,平衡LLMs中的真实性与安全性,减少因提高真实性而削弱安全对齐的问题。

摘要:

大型语言模型(LLMs)中的幻觉现象近年来已广泛研究,检测和缓解方面的进展旨在提高真实性。然而,一个关键的副作用仍被忽视:提高真实性可能会负面影响安全对齐。在本文中,我们研究了这种权衡,并展示增加事实准确性往往以削弱拒绝行为为代价。我们的分析揭示,这种现象源于模型中重叠的组件,这些组件同时编码幻觉和拒绝信息,导致对齐方法无意中抑制事实知识。我们进一步探讨了即使在安全 curated 数据集上微调,也会因相同原因而降低对齐性。为了解决这个问题,我们提出了一种方法,利用稀疏自编码器将与拒绝相关的特征与幻觉特征解耦,并通过子空间正交化在微调过程中保留拒绝行为。这种方法防止幻觉增加的同时保持安全对齐。我们评估了我们的方法在常识推理任务和有害基准(AdvBench和StrongReject)上的表现。结果表明,我们的方法保持了拒绝行为和任务效用,缓解了真实性与安全之间的权衡。

英文摘要:

Hallucination in large language models (LLMs) has been widely studied in recent years, with progress in both detection and mitigation aimed at improving truthfulness. Yet, a critical side effect remains largely overlooked: enhancing truthfulness can negatively impact safety alignment. In this paper, we investigate this trade-off and show that increasing factual accuracy often comes at the cost of weakened refusal behavior. Our analysis reveals that this arises from overlapping components in the model that simultaneously encode hallucination and refusal information, leading alignment methods to suppress factual knowledge unintentionally. We further examine how fine-tuning on benign datasets, even when curated for safety, can degrade alignment for the same reason. To address this, we propose a method that disentangles refusal-related features from hallucination features using sparse autoencoders, and preserves refusal behavior during fine-tuning through subspace orthogonalization. This approach prevents hallucinations from increasing while maintaining safety alignment.We evaluate our method on commonsense reasoning tasks and harmful benchmarks (AdvBench and StrongReject). Results demonstrate that our approach preserves refusal behavior and task utility, mitigating the trade-off between truthfulness and safety.

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

↑