Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuron

Sicheng Shen, Mingyang Lv, Han Shen, Jialin Wu, Binghao Wang, Zhou Yang, Guobin Shen, Dongcheng Zhao, Feifei Zhao, Yi Zeng

Abstract

The safety of large language models (LLMs) has increasingly emerged as a fundamental aspect of their development. Existing safety alignment for LLMs is predominantly achieved through post-training methods, which are computationally expensive and often fail to generalize well across different models. A small number of lightweight alignment approaches either rely heavily on prior-computed safety injections or depend excessively on the model's own capabilities, resulting in limited generalization and degraded efficiency and usability during generation. In this work, we propose a safety-aware decoding method that requires only low-cost training of an expert model and employs a single neuron as a gating mechanism. By effectively balancing the model's intrinsic capabilities with external guidance, our approach simultaneously preserves utility and enhances output safety. It demonstrates clear advantages in training overhead and generalization across model scales, offering a new perspective on lightweight alignment for the safe and practical deployment of large language models.

Introduction

As Large Language Models (LLMs) grow in capability, ensuring they do not generate harmful content is paramount. Standard post-training alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO), are computationally intensive and require vast human preference datasets. Moreover, these processes must be repeated for every new model iteration.

To address these challenges, researchers have explored inference-time safety methods. However, existing approaches often face a trade-off: external intervention methods (e.g., SafeDecoding) can degrade utility by applying constraints uniformly, leading to "over-alignment" and reduced performance on reasoning tasks. Conversely, self-reflection methods, while efficient, are often unreliable against sophisticated jailbreak attacks. This paper introduces Neuron-Guided Safe Decoding (NGSD), a lightweight method that selectively applies safety constraints using a single-neuron gating mechanism, balancing robust safety with high utility.

Methodology: Neuron-Guided Safe Decoding (NGSD)

NGSD integrates internal risk awareness with minimal external control through a two-phase process involving prompt-level reflection and token-level gating.

Overview of the NGSD framework, illustrating prompt self-reflection, the dual-model architecture, and the single-neuron gating mechanism.

Prompt-Level Self-Reflection

Before text generation begins, the base model performs a self-reflection on the user's prompt across four dimensions: Severity, Actionability, Evasion, and Targeting. This analysis yields a risk score that dynamically adjusts the strength of the safety intervention ($\alpha$) for that specific interaction.

Neuron-Guided Gating and Selective Intervention

During the decoding process, NGSD monitors both the base model ($p_b$) and a significantly smaller "safety expert" model ($p_e$) from the same family. At each step, the $L_1$-norm distributional discrepancy between the two models is calculated.

This discrepancy signal is processed by a biologically-inspired, nonlinear "neuron" model (specifically, a leaky integrate-and-fire model). The neuron accumulates the signal over time; when the "membrane potential" exceeds a threshold—indicating sustained risk—the neuron "spikes." Only during these spikes does the system intervene by mixing the expert model's safe probabilities with the base model's output. Otherwise, the base model generates text normally, preserving its original reasoning and utility.

Experimental Evaluation

The authors evaluated NGSD across safety, utility, and over-refusal metrics using standard benchmarks including GCG, PAIR, and AutoDAN for safety, and GSM8K for mathematical reasoning utility.

Key Results

NGSD demonstrates significant improvements in safety while maintaining model utility across different architectures.

Comparison of NGSD against various defense methods across Vicuna, Llama3, and Qwen3 models under multiple jailbreak attacks.

As shown in the results, NGSD drastically reduces Attack Success Rates (ASR). For instance, on the Vicuna model under a GCG attack, the ASR dropped from 96.00% with no defense to just 4.00%. Crucially, unlike uniform intervention methods, NGSD preserves reasoning capabilities. On Llama-3-8B, NGSD maintained 78.8% accuracy on GSM8K, whereas standard SafeDecoding saw a drop to 68.7%.

Furthermore, NGSD is highly efficient. By only intervening when the neuron spikes, it achieves higher throughput than Speculative Safety-Aware Decoding (SSD) and reduces the expert model's active intervention time by over 80%.

Discussion and Insights

A key finding is that uniform safety interventions act as a "tax" on reasoning. By using a temporal gating mechanism like a biological neuron, NGSD can react instantly to sudden risks while ignoring transient noise, resetting quickly once the danger passes. Additionally, the method scales efficiently; a tiny 1B parameter expert can effectively guide much larger base models within the same family.

Limitations and Future Work

NGSD currently requires the base and expert models to share the same tokenizer, limiting its application to within-family model transfers. Future research will focus on developing more adaptive risk estimation and exploring cross-family deployment strategies that can accommodate diverse tokenizers.

Summary updated

BibTeX
@misc{shen2026light,
  author = {Sicheng Shen and Mingyang Lv and Han Shen and Jialin Wu and Binghao Wang and Zhou Yang and Guobin Shen and Dongcheng Zhao and Feifei Zhao and Yi Zeng},
  title = {{Light Alignment Improves LLM Safety via Model Self-Reflection with a Single Neuron}},
  year = {2026},
  eprint = {2602.02027},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.02027},
}
Figure