arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.18672cs.LGstat.ML
收藏

用于忠实表示干预的概念集中化

Concept Concentration for Faithful Representation Intervention

SAIC Centre, USYD(SAIC中心)

Hongzheng Yang, Yongqiang Chen, Zeyu Qin, Tongliang Liu, Chaowei Xiao, Kun Zhang, Bo Han

AI总结:

研究大语言模型表示干预中定位忠实概念的问题,提出概念集中化(COCA)方法,通过重构训练数据简化决策边界,有效降低分布内和分布外越狱成功率,且在常规任务上保持性能。

摘要:

表示干预旨在定位和修改大语言模型(LLMs)中编码潜在概念的表示,以引发一致和预期行为。尽管取得了实证成功,但从未研究过是否能定位忠实概念进行干预。本文在安全对齐中探讨此问题。若干预是忠实的,干预后的LLMs应消除有害概念,对分布内对抗性提示和分布外(OOD)越狱具有鲁棒性。虽在线性设置中消除有害概念且不降低LLMs良性效用可行,但在一般非线性设置中不可行。为此提出概念集中化(COCA),它通过明确推理过程重构训练数据,先识别潜在不安全概念再决定响应。本质上简化了有害与良性表示间的决策边界,实现更有效的线性消除。大量实验表明,COCA显著降低分布内和OOD越狱成功率,同时在数学和代码生成等常规任务上保持强大性能。

英文摘要:

Representation intervention aims to localize and modify the representations that encode the underlying concepts in large language models (LLMs) to elicit the aligned and expected behaviors. Despite the empirical success, it has never been examined whether one could localize the faithful concepts for intervention. In this work, we explore the question in safety alignment. If the interventions are faithful, the intervened LLMs should erase the harmful concepts and be robust to both in-distribution adversarial prompts and the out-of-distribution (OOD) jailbreaks. While it is feasible to erase harmful concepts without degrading the benign utility of LLMs in linear settings, we show that it is infeasible in the general non-linear setting. To tackle the issue, we propose COncept ConcentrAtion (COCA). COCA refactors the training data with an explicit reasoning process, which first identifies the potential unsafe concepts and then decides the responses. Essentially, COCA simplifies the decision boundary between harmful and benign representations, enabling more effective linear erasure. Extensive experiments with multiple representation intervention methods and model architectures demonstrate that COCA significantly reduces both in-distribution and OOD jailbreak success rates, and meanwhile maintaining strong performance on regular tasks such as math and code generation. Our code is publicly available at: https://github.com/tmlr-group/COCA .

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

↑