arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16638cs.AIcs.CLcs.LG
收藏

LLMScan:用于LLM不当行为检测的因果扫描

LLMScan: Causal Scan for LLM Misbehavior Detection

American Express(美国运通);Chongqing University(重庆大学)

Mengdi Zhang, Kai Kiat Goh, Peixin Zhang, Jun Sun, Rose Lin Xin, Hongyu Zhang

AI总结:

LLMScan基于因果分析监控LLM内部运作,通过分析输入令牌和变换器层的因果贡献,有效检测不当行为,实验显示正常与不当行为因果分布差异明显,支持轻量级检测器开发。

摘要:

尽管大型语言模型(LLMs)在各个领域取得了成功,但它们生成不真实、有偏见和有害回应的潜力带来了重大风险,尤其是在关键应用中。这凸显了迫切需要系统性的方法来检测和防止此类不当行为。虽然现有方法针对特定问题(如有害回应),本工作引入了LLMScan,一种基于因果分析的创新LLM监控技术,提供全面的解决方案。LLMScan通过因果推断的视角系统地监控LLM的内部运作,其前提是LLM的“大脑”在行为不当时表现不同。通过分析LLM输入令牌和变换器层的因果贡献,LLMScan有效检测不当行为。跨各种任务和模型的广泛实验揭示了正常行为与不当行为之间因果分布的明显区别,从而能够为各种不当行为检测任务开发准确、轻量级的检测器。

英文摘要:

Despite the success of Large Language Models (LLMs) across various fields, their potential to generate untruthful, biased and harmful responses poses significant risks, particularly in critical applications. This highlights the urgent need for systematic methods to detect and prevent such misbehavior. While existing approaches target specific issues such as harmful responses, this work introduces LLMScan, an innovative LLM monitoring technique based on causality analysis, offering a comprehensive solution. LLMScan systematically monitors the inner workings of an LLM through the lens of causal inference, operating on the premise that the LLM's `brain' behaves differently when misbehaving. By analyzing the causal contributions of the LLM's input tokens and transformer layers, LLMScan effectively detects misbehavior. Extensive experiments across various tasks and models reveal clear distinctions in the causal distributions between normal behavior and misbehavior, enabling the development of accurate, lightweight detectors for a variety of misbehavior detection tasks.

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

↑