Research Papers 论文研究 5h ago Updated 18m ago 更新于 18分钟前 49

NeuronFuzz: Safety Neuron Guided Fuzzing for LLM Safety Evaluation NeuronFuzz:安全神经元引导的模糊测试用于LLM安全评估

NeuronFuzz introduces a white-box fuzzing framework that uses internal safety neuron activations as continuous feedback for LLM safety evaluation, eliminating the need for full response generation during the fuzzing loop A SafetyOracle converts safety-neuron activations into a differentiable continuous safety alarm score, obtained during the prefill phase, enabling efficient gradient-based optimization The framework identifies a compact set of safety neurons through template-invariant harmful/be NeuronFuzz提出了一种白盒模糊测试框架,利用LLM内部安全神经元作为连续执行反馈,在prefill阶段即可获取安全警报分数,无需生成完整响应 通过模板不变的有害/良性输入和稳定性感知选择,识别出能捕捉有害意图识别的紧凑安全神经元集合,构建SafetyOracle 利用可微分的安全警报分数梯度定位安全敏感模板位置,结合掩码语言模型生成流畅且上下文兼容的变异,同时保留原始有害载荷 在21个文本和多模态模型上评估,5个白盒源模型上实现76-100%的jailbreak发现率,较基线最高提升48个百分点 优化模板零样本迁移至开放权重和6个专有目标模型,平均ASR达69.6%,top-5集成AS

65
Hot 热度
75
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • NeuronFuzz introduces a white-box fuzzing framework that uses internal safety neuron activations as continuous feedback for LLM safety evaluation, eliminating the need for full response generation during the fuzzing loop
  • A SafetyOracle converts safety-neuron activations into a differentiable continuous safety alarm score, obtained during the prefill phase, enabling efficient gradient-based optimization
  • The framework identifies a compact set of safety neurons through template-invariant harmful/benign inputs and stability-aware selection to capture harmful-intent recognition
  • NeuronFuzz leverages gradients of the safety alarm score to pinpoint safety-sensitive template positions and uses a masked language model to generate fluent, context-compatible mutations while preserving harmful payloads
  • Evaluated across 21 text and multimodal models, achieving 76-100% jailbreak discovery rate on five white-box source models, outperforming baselines by up to 48 percentage points, with strong zero-shot transfer to proprietary models

Why It Matters

This work addresses a critical bottleneck in LLM safety evaluation: existing automated testing methods are expensive and provide sparse feedback, especially against strongly aligned models where most attack candidates fail identically. By shifting from response-level to neuron-level feedback, NeuronFuzz dramatically reduces computational cost while providing denser, more informative guidance for generating effective jailbreak prompts.

Technical Details

  • SafetyOracle Construction: Uses template-invariant harmful and benign inputs combined with stability-aware selection to identify a compact set of safety neurons whose activations reliably capture harmful-intent recognition, forming a continuous safety alarm score
  • Differentiable Fuzzing Loop: The safety alarm score is differentiable, enabling gradient-based identification of safety-sensitive template positions without requiring full model response generation
  • Mutation Generation: Employs a masked language model to produce fluent, context-compatible prompt mutations that preserve the original harmful payload while avoiding additional optimization variables
  • Evaluation Scope: Tested across 21 text and multimodal models, with zero-shot transfer evaluation to open-weight and six proprietary target models
  • Performance Metrics: Achieved average ASR of 69.6%/92.6% and top-5 ensemble ASR of 44.1%/60.0% across transferred templates

Industry Insight

  • The shift from black-box response feedback to white-box neuron-level feedback represents a paradigm change in LLM red-teaming, suggesting that internal model representations can be leveraged for more efficient and effective safety evaluation
  • The strong zero-shot transferability of optimized templates to proprietary models highlights the growing capability of automated jailbreak generation, raising urgency for more robust alignment techniques
  • Safety neuron identification through stability-aware selection could inform the development of more interpretable and auditable safety mechanisms in future LLM architectures

TL;DR

  • NeuronFuzz提出了一种白盒模糊测试框架,利用LLM内部安全神经元作为连续执行反馈,在prefill阶段即可获取安全警报分数,无需生成完整响应
  • 通过模板不变的有害/良性输入和稳定性感知选择,识别出能捕捉有害意图识别的紧凑安全神经元集合,构建SafetyOracle
  • 利用可微分的安全警报分数梯度定位安全敏感模板位置,结合掩码语言模型生成流畅且上下文兼容的变异,同时保留原始有害载荷
  • 在21个文本和多模态模型上评估,5个白盒源模型上实现76-100%的jailbreak发现率,较基线最高提升48个百分点
  • 优化模板零样本迁移至开放权重和6个专有目标模型,平均ASR达69.6%,top-5集成ASR(EASR)达92.6%

为什么值得看

本文首次将安全神经元激活作为连续反馈信号引入LLM安全评估,突破了传统响应级反馈的效率瓶颈,为白盒模糊测试提供了新的技术路径。其模板迁移能力和零样本泛化表现对工业界安全评估实践具有重要参考价值。

技术解析

  • SafetyOracle机制:将安全神经元激活转换为连续安全警报分数,可在prefill阶段获取,彻底消除模糊测试循环中的响应生成开销,实现高效迭代
  • 安全神经元识别:采用模板不变的有害和良性输入,结合稳定性感知选择策略,筛选出激活模式稳定且能有效区分有害意图的紧凑神经元子集
  • 梯度引导变异生成:利用安全警报分数的可微性,通过梯度定位模板中的安全敏感位置,配合掩码语言模型生成流畅变异,避免引入额外优化变量
  • 跨模型迁移验证:在21个模型(含文本和多模态)上验证,优化模板在开放权重和6个专有模型上均保持高攻击成功率,展现强泛化能力

行业启示

  • 白盒安全评估正从黑盒响应测试向内部机制可解释性分析演进,安全神经元等内部信号可作为高效评估指标,建议安全团队探索模型内部表征的利用
  • 模板不变性和迁移性研究揭示了jailbreak攻击的通用模式,模型部署前应进行跨模板、跨模型的泛化安全测试,而非仅依赖单一模板评估
  • 模糊测试与可微分反馈的结合为自动化安全评估提供了新范式,可推动建立更高效、低成本的LLM安全基准测试流水线

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

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