Behavioral Calibration for Context-Adaptive Debiasing in Large Language Models

Authors:

Abstract
Large Language Models (LLMs) frequently mirror and amplify societal stereotypes present in their training data. While existing debiasing techniques, ranging from fine-tuning to prompt engineering, offer localized improvements, their effectiveness can vary substantially across different input contexts. In this paper, we observe that stereotype preferences change with linguistic framing, leading to a phenomenon we term Debiasing Collapse, where interventions effective under one context become less effective under another. To address this issue, we propose BeCaLM (Behavioral Calibration for LLMs), a framework for context-adaptive debiasing based on behavioral calibration. BeCaLM performs lightweight test-time parameter calibration guided by latent behavioral statistics, enabling localized corrections that respond to context-dependent model behavior. Specifically, it combines running feature normalization with activation-dependent correction targets and derives weight updates through a regularized closed-form solution, avoiding iterative gradient optimization. This progressive mechanism allows the model to adapt its calibration to behavioral differences observed across input contexts while maintaining computationally tractable updates. Empirical results across multiple models and benchmarks show that BeCaLM consistently moves aggregate stereotype preferences closer to neutrality, with varying effects on language modeling and downstream task performance. Further experiments demonstrate its effectiveness across diverse linguistic contexts and characterize the trade-off between debiasing performance and model utility. Code and data are publicly available at https://github.com/zzidlezz/BeCaLM-PR. This paper contains examples of societal stereotypes for analysis purposes.

This publication has 16 references indexed in Scilit: