Abstract Large Language Models (LLMs) often exhibit "bias drift" during extended multi-turn dialogues, where initially aligned models resurface harmful patterns as context accumulates. This paper presents Dynamic Neuron Suppression (DNS), an inference-time framework that identifies and masks biased neurons in real-time. By utilizing Integrated Gradients and a novel Memory Consistency Probe, DNS distinguishes between transient responses and persistent biases. Evaluation across multilingual benchmarks and the multi-turn FairMT-Bench demonstrates significant bias reduction (e.g., from 75.8% to 31.0% in Pashto) with minimal latency overhead (1.3 ms per turn) and high utility preservation.
Introduction
Large Language Models (LLMs) are notorious for drifting into biased or harmful territory during long conversations. While a model might start a chat perfectly aligned, subtle cues over multiple turns can cause it to resurface unwanted patterns. Current fairness interventions usually happen at training time (like RLHF) or through static inference-level fixes (like prompt engineering). Training-time methods are computationally expensive and irreversible; once a neuron is "neutered" to prevent bias, its ability to provide helpful information in non-biased contexts may also be compromised.
Furthermore, bias in LLMs is often a dynamic phenomenon known as bias drift. Static methods fail to account for how conversation evolves. This research identifies the need for a "scalpel" rather than a "sledgehammer": a tool that can suppress biased activations when they appear but restore them when the context is safe.
The DNS Framework
The authors propose a four-stage pipeline that operates entirely during the decoding process to perform context-aware "brain surgery" on the fly.
- Behavioral Detection: Using an "LLM-as-a-judge" (GPT-3.5 and Claude), the system monitors outputs for signs of ideological polarization or harmful stereotypes.
- Bias Neuron Identification: When bias is detected, the system uses Integrated Gradients to trace that behavior back to specific neurons in the feed-forward network (FFN) layers. It distinguishes between "local" bias (from the current turn) and "memory-borne" bias (carried over from previous turns).
- Concept-Based Testing: A novel Memory Consistency Probe checks if a neuron is persistently biased or just reacting to a transient prompt. This prevents the system from over-suppressing neurons that are useful for general knowledge.
- Dynamic Neuron Masking: Instead of deleting neurons, the framework applies a gating coefficient. This acts like a dimmer switch, suppressing high-bias neurons during generation while preserving the model's overall coherence and fluency.
Experimental Setup
The framework was evaluated on three distinct benchmarks:
- Multilingual Political Compass Test (PCT): 62 ideological statements translated into five low-resource languages (Urdu, Punjabi, Sindhi, Pashto, Balochi) plus English.
- BBQ (Bias Benchmark for QA): A standard benchmark for social bias in single-turn reasoning.
- FairMT-Bench: A dataset of 10,000 conversations specifically designed to test fairness in multi-turn dialogues, covering categories like jailbreak tips and negative feedback.
Key Results
The DNS framework demonstrated significant improvements in fairness without sacrificing model intelligence. On the Pashto PCT, the Mistral-7B model's bias score dropped from 75.8% to 31.0%.
Crucially, DNS outperformed baselines like prompt engineering and logit filtering while maintaining higher scores in knowledge retention and answer relevancy. Ablation studies showed that while static pruning reduced bias, it severely harmed the model's fluency. In contrast, the dynamic approach kept the model's utility intact with a minimal latency overhead of only 1.3 ms per turn.
Discussion and Conclusion
This research confirms that neurons are multifunctional; the same neuron that amplifies biased content in one turn might encode legitimate factual information in another. By treating bias as a dynamic state that accumulates in hidden layers—particularly the deeper layers (60-100% of depth)—DNS provides a reversible and efficient mitigation strategy.
Future work will focus on extending this evaluation to cultural values and healthcare domains, as well as optimizing the initial attribution step to scale for massive, high-traffic deployments.
Summary updated