potentialpaper

Uncovering Neuronal Mechanisms of Intrinsic Self-Debiasing in Large Language Models via Contrastive Learning

Jingshen Zhang, Bo Wang, Dongming Zhao, Ruifang He, Yuexian Hou, Yuzifei

ICLR 2026 submission

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. With the advancement of alignment techniques, large language models (LLMs) have demonstrated the intrinsic self-debiasing capability against stereotypes. However, our understanding of the underlying mechanism remains limited, which significantly hinders the development of trustworthy AI. In the field of LLM safety, prior studies have shown that defense against explicitly harmful queries is governed by a sparse set of critical neurons. These neurons typically exhibit a strong activation response when processing malicious inputs—a phenomenon known as explicit induction\textit{explicit induction}. Nevertheless, this paradigm fails to capture implicit hazards, particularly stereotypical biases, which operate via implicit association\textit{implicit association}: shifts in neuronal response patterns across different social contexts, not mere activation strength. Based on this insight, we propose COCO\textbf{\textit{COCO}}, a contrastive learning-based\textit{contrastive learning-based} method focusing on identifying self-debiasing neurons possessing \textit{intra-\underline{co}nsistencyandinter−nsistency and inter-\underline{co}ntrast} (termed COCO Neurons\textbf{\textit{COCO Neurons}}). Our findings reveal that these COCO neurons account for approximately 1% of the total neurons and are primarily located in the Query and Value weight matrices of the deeper network layers. To effectively leverage COCO neurons, we draw inspiration from Neurodynamics and abstract the intrinsic self-debiasing capability within LLMs into two distinct systems: linear debiasing system and nonlinear debiasing system, for which we design tailored neuron enhancement editing strategies, LE-COCO\textbf{\textit{LE-COCO}} and NE-COCO\textbf{\textit{NE-COCO}}. Experimental results across six social categories demonstrate that the success rate of Llama3-8B in resisting stereotypical biases increases to nearly 90% after linear enhancement, with a maximum gain of over 50%. Meanwhile, Mistral-7B with nonlinear enhancement achieves an average gain of 10% in its success rate of resisting stereotypical biases, with a maximum gain of 23%. Furthermore, generalization experiments reveal that the enhanced models exhibit not only stronger robustness against jailbreak attacks but also measurable improvements on factual and reasoning benchmarks.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…