Abstract
Large Language Models (LLMs) often inherit biases from their pre-training data, leading to unfair or incorrect outputs. This paper introduces Causal-Guided Active Learning (CAL), a framework that leverages causal invariance and active learning to automatically identify and mitigate these biases. By identifying "counter-instance pairs" where model representations fail to capture semantic differences, CAL induces explainable bias patterns. These patterns are then suppressed using cost-effective In-Context Learning (ICL), improving model performance and safety across diverse tasks without the need for expensive fine-tuning.
Introduction
LLMs are primarily passive learners, mirroring correlations found in massive, often biased, web-scale corpora. These biases range from human stereotypes to annotation artifacts, such as position bias in multiple-choice questions. Existing debiasing methods typically rely on manual rule-writing, which is unscalable, or fine-tuning, which is computationally heavy and risks degrading general reasoning capabilities. CAL addresses this gap by providing an automated, general-purpose mechanism for bias detection and suppression.
The CAL Framework
The CAL framework operates through a three-stage pipeline designed to disentangle semantic causal relationships from spurious correlations.
1. Causal Invariance-Based Identification
The core premise is that semantic relationships are causal and invariant across contexts, whereas biases are correlative. CAL identifies "Counter Instance Pairs"—samples where the model's internal hidden states are nearly identical, yet the ground truth labels differ. This discrepancy indicates that the model is relying on non-semantic features rather than the underlying causal structure of the task.
2. Informative Instance Selection
Using active learning, the framework selects the most valuable biased samples for analysis. It prioritizes Influential samples (those that significantly mislead the model) and Typical samples (those representing consistent, easily summarizable bias patterns).
3. Bias Pattern Induction and Suppression
The selected samples are clustered, and a high-capacity model (e.g., GPT-4) summarizes the commonalities into human-readable bias patterns. These patterns are then used for debiasing via In-Context Learning (ICL). In zero-shot scenarios, the prompt is augmented with instructions to ignore specific biases (e.g., "Note that verbosity is not related to quality"). In few-shot scenarios, "counterfactual examples" are provided to demonstrate correct reasoning in the presence of bias.
Experimental Evaluation
The authors evaluated CAL across three distinct categories of bias using specialized datasets:
- Generative Biases: Position, verbosity, and formatting biases were tested using Chatbot and MT-Bench.
- Task-Specific Biases: Lexical overlap and subsequence biases were evaluated using MNLI and HANS.
- Stereotype Biases: Nine types of social stereotypes (e.g., gender, race) were assessed using BBQ and UNQOVER.
Key Results
- Performance Gains: On the HANS dataset, CAL improved Llama-2-13B’s accuracy from 52.9% to 59.3%.
- Safety Improvements: On the UNQOVER benchmark, accuracy rose from 23.4% to 60.3%, indicating a significant reduction in stereotypical outputs.
- Cross-Model Transfer: Bias patterns induced from one model (e.g., Llama-2) proved effective in debiasing others (e.g., GPT-4), suggesting shared underlying biases across different LLMs.
Discussion and Future Work
CAL demonstrates that LLMs can autonomously detect and describe their own biases. By using ICL for suppression, the framework avoids the "over-optimization" risks associated with fine-tuning. However, the method currently requires access to internal model states and gold-standard labels for the active learning phase, limiting its use on black-box proprietary models. Future research aims to develop fully unsupervised bias identification techniques that do not rely on labeled data.
Summary updated