Research Papers 论文研究 1d ago Updated 1d ago 更新于 1天前 50

From Detection to Refusal: Safer LLMs via Circuit-Guided Weight Scaling 从检测到拒绝:通过电路引导的权重缩放实现更安全的LLM

Researchers identify a multi-stage "safety circuit" in LLMs comprising Harmful Detection Heads, Safety Neurons, and Refusal Heads that collectively organize refusal behavior Causal evidence from attention-head and neuron-level interventions confirms that suppressing upstream detection heads disrupts downstream refusal, with safety neurons acting as mediators A simple architecture-preserving weight scaling technique guided by this circuit improves safety rates by 26.5% across six LLMs under adver 从机制可解释性视角识别LLM安全行为的多阶段电路结构,包含有害检测头、安全神经元和拒绝头 通过注意力头和神经元级干预提供因果证据,验证上游检测头抑制会破坏下游拒绝行为 电路引导的权重缩放方法在6个LLM上验证,对抗攻击下安全性提升26.5% 该方法仅造成4个标准基准测试准确率1.7%的微小下降 安全电路模式在多种LLM架构和对抗攻击设置下具有跨架构泛化能力

65
Hot 热度
78
Quality 质量
72
Impact 影响力

Analysis 深度分析

TL;DR

  • Researchers identify a multi-stage "safety circuit" in LLMs comprising Harmful Detection Heads, Safety Neurons, and Refusal Heads that collectively organize refusal behavior
  • Causal evidence from attention-head and neuron-level interventions confirms that suppressing upstream detection heads disrupts downstream refusal, with safety neurons acting as mediators
  • A simple architecture-preserving weight scaling technique guided by this circuit improves safety rates by 26.5% across six LLMs under adversarial attacks
  • The safety circuit decomposition recurs across multiple architectures and attack settings, suggesting mechanistic abstractions reveal stable, transferable patterns of aligned behavior
  • The approach incurs only a 1.7% accuracy drop across four standard benchmarks, demonstrating a favorable safety-utility tradeoff

Why It Matters

This work bridges mechanistic interpretability and practical LLM safety by moving beyond black-box alignment to identify the internal circuitry responsible for refusal behavior. For AI practitioners, it demonstrates that targeted, circuit-guided interventions can significantly harden models against adversarial prompts without substantial performance degradation, offering a scalable alternative to retraining or extensive red-teaming.

Technical Details

  • The safety circuit is composed of three stages: (i) Harmful Detection Heads that identify harmful inputs, (ii) Safety Neurons that mediate and stabilize safety signals within the residual stream, and (iii) Refusal Heads that convert these signals into safe response generation
  • Causal interventions at both the attention-head and neuron levels were used to establish the functional dependencies within the circuit, showing that suppressing upstream detection heads disrupts downstream refusal behavior
  • Circuit-guided weight scaling was applied as an architecture-preserving mechanistic probe across six different LLMs, consistently improving adversarial safety without modifying model architecture
  • Evaluation covered multiple adversarial attack settings and four standard benchmarks, demonstrating generalization across architectures and attack types
  • The method achieved a 26.5% improvement in safety rates under attacks with only a 1.7% accuracy drop on standard benchmarks

Industry Insight

  • Mechanistic interpretability is transitioning from theoretical analysis to actionable safety engineering; practitioners should invest in circuit-level understanding of their models to develop targeted hardening strategies rather than relying solely on post-hoc alignment
  • Circuit-guided weight scaling offers a lightweight, architecture-preserving alternative to full fine-tuning for safety improvement, making it attractive for deployment in resource-constrained environments where retraining is impractical
  • The cross-architecture recurrence of the safety circuit suggests that safety mechanisms may be universal enough to warrant standardized interpretability audits, potentially becoming a routine part of model evaluation pipelines before deployment

TL;DR

  • 从机制可解释性视角识别LLM安全行为的多阶段电路结构,包含有害检测头、安全神经元和拒绝头
  • 通过注意力头和神经元级干预提供因果证据,验证上游检测头抑制会破坏下游拒绝行为
  • 电路引导的权重缩放方法在6个LLM上验证,对抗攻击下安全性提升26.5%
  • 该方法仅造成4个标准基准测试准确率1.7%的微小下降
  • 安全电路模式在多种LLM架构和对抗攻击设置下具有跨架构泛化能力

为什么值得看

该研究首次从机制可解释性角度系统揭示了LLM安全行为的内部电路组织,为理解对齐机制提供了可验证的因果证据。提出的电路引导权重缩放方法以极小的性能代价显著提升了模型安全性,为工业界安全增强提供了可落地的技术方案。

技术解析

  • 安全电路架构:识别出三阶段安全电路——(i)有害检测头响应有害输入,(ii)安全神经元在残差流中调解和稳定安全信号,(iii)拒绝头将这些信号转化为安全响应生成
  • 因果干预验证:通过靶向注意力头和神经元级别的干预,证明抑制上游有害检测头会破坏下游拒绝行为,安全神经元在此过程中起中介作用
  • 电路引导权重缩放:采用简单且保持架构的权重缩放作为机制探针,验证电路的功能相关性,方法无需额外训练
  • 实验验证:在6个不同LLM上验证,覆盖多种对抗攻击设置,安全性提升26.5%,标准基准测试准确率仅下降1.7%

行业启示

  • 机制可解释性研究可直接转化为安全增强技术,电路级抽象为LLM安全对齐提供了可操作的技术路径
  • 跨架构泛化的安全电路模式表明,安全行为存在稳定且可迁移的内在机制,有利于开发通用安全增强方案
  • 以极小性能代价实现显著安全性提升的方法论,为工业界在安全与能力之间取得平衡提供了实践参考

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Security 安全 Alignment 对齐 Research 科学研究