AI RESEARCH

CausalDetox: Causal Head Selection and Intervention for Language Model Detoxification

arXiv CS.AI

ArXi:2604.14602v1 Announce Type: cross Large language models (LLMs) frequently generate toxic content, posing significant risks for safe deployment. Current mitigation strategies often degrade generation quality or require costly human annotation. We propose CAUSALDETOX, a framework that identifies and intervenes on the specific attention heads causally responsible for toxic generation. Using the Probability of Necessity and Sufficiency (PNS), we isolate a minimal set of heads that are necessary and sufficient for toxicity.