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

激活差异揭示后门:SAE架构的比较

Activation Differences Reveal Backdoors: A Comparison of SAE Architectures

LexisNexis

Sachin Kumar

AI总结:

研究通过对比稀疏自编码器架构,探讨如何通过激活差异检测语言模型中的后门,发现Diff-SAE在后门隔离中表现优于Crosscoders,且在不同层和微调策略下均有效。

摘要:

语言模型中的后门攻击对AI安全构成重大威胁,其中模型在大多数输入上表现正常,但在特定模式触发时表现出有害行为。通过机制可解释性检测此类后门仍是一个开放挑战。我们研究了两种稀疏自编码器架构——Crosscoders和Differential SAEs(Diff-SAE)——以隔离微调模型中的后门相关特征。使用受年份上下文控制的SQL注入后门(

英文摘要:

Backdoor attacks on language models pose a significant threat to AI safety, where models behave normally on most inputs but exhibit harmful behavior when triggered by specific patterns. Detecting such backdoors through mechanistic interpretability remains an open challenge. We investigate two sparse autoencoder architectures -- Crosscoders and Differential SAEs (Diff-SAE) -- for isolating backdoor-related features in fine-tuned models. Using a controlled SQL injection backdoor triggered by year-based context ("2024" triggers vulnerable code, "2023" triggers safe code), we evaluate both approaches across LoRA and full-rank fine-tuning regimes on SmolLM2-360M. We find that Diff-SAE consistently and substantially outperforms Crosscoders for backdoor isolation. Diff-SAE achieves a Backdoor Isolation Score (BIS) of 0.40 with perfect precision (1.0) and zero false positive rate across most experimental conditions, while Crosscoders fail almost entirely with BIS below 0.02 in most cases. This performance gap holds across multiple transformer layers (14, 18, 22, 26) and both fine-tuning regimes, with full-rank fine-tuning producing particularly clean backdoor signals. Our results suggest that backdoors manifest as directional activation shifts rather than sparse feature activations, making difference-based representations fundamentally more effective for detection. These findings have important implications for AI safety monitoring and the development of interpretability tools for detecting model manipulation.

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

↑