Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language understanding and generation. However, their performance is often bolstered by "shortcuts" or dataset biases—spurious correlations present in training data—rather than genuine logical reasoning. For instance, a model might exhibit position bias (favoring the first option in a multiple-choice list) or verbosity bias (equating response length with quality).
Existing debiasing strategies typically involve manual rule-writing (which is labor-intensive and misses latent biases) or fine-tuning (which is computationally expensive and risks catastrophic forgetting). This paper introduces Causal-Guided Active Learning (CAL), a framework designed to automatically identify and suppress these biases using causal principles and in-context learning, without requiring manual labeling or model weight updates.
The CAL Framework
The CAL framework operates through a three-stage pipeline designed to make the LLM its own "pathologist."
1. Identifying Biased Instances via Causal Invariance
The core of CAL lies in the principle of Causal Invariance. While the semantic meaning of a sentence is invariant across contexts, bias is often correlative and varies. The framework identifies "Counter-Example Pairs": instances where the model's internal hidden states are nearly identical, yet the ground truth labels differ. If the model produces the same incorrect prediction for both, it indicates a reliance on a biased feature rather than semantic content.
2. Active Learning and Pattern Induction
To scale this discovery, CAL employs Active Learning to select the most informative biased samples based on two criteria:
- Influential Criteria: Samples where the bias significantly leads the model to an incorrect output.
- Typical Criteria: Samples representing recurring error patterns.
These selected samples are clustered using DBSCAN. A high-capacity "summarizer" LLM (e.g., GPT-4) then analyzes these clusters to describe the underlying bias pattern (e.g., "The model is swayed by a confident tone").
3. ICL-based Bias Suppression
Once biases are identified and named, they are suppressed using In-Context Learning (ICL). In a Zero-shot setting, the model is explicitly instructed to ignore the identified bias (e.g., "Note that verbosity is not related to response quality"). In a Few-shot setting, "counterfactual examples" are provided in the prompt to implicitly guide the model away from biased shortcuts.
Experimental Evaluation
The authors evaluated CAL across several benchmarks, focusing on general reasoning (MNLI, HANS, Chatbot, MT-Bench) and social safety (BBQ, UNQOVER).
Key Results
- Reasoning Improvements: On the HANS dataset, which is specifically designed to exploit lexical overlap biases, CAL improved Llama-2-13B’s accuracy from 52.9% to 59.3%.
- Stereotype Reduction: The framework showed dramatic results in safety benchmarks. On the UNQOVER benchmark, Llama-2's accuracy jumped from 23.4% to 60.3%, indicating a significant reduction in stereotypical associations.
- Discovery of Novel Biases: Beyond known biases like position and verbosity, CAL successfully identified task-specific biases, such as the model being influenced by "speculative language" (e.g., "perhaps," "possibly") in hypothesis evaluation.
Discussion and Insights
CAL demonstrates that an LLM’s internal representations contain the "fingerprints" of its biases. By leveraging these hidden states, researchers can achieve a form of "logical disentanglement" where semantics and bias are separated without complex mathematical loss functions. Furthermore, the results suggest that precisely targeted prompting can be as effective as re-training for debiasing, provided the bias is accurately identified.
Limitations
Despite its success, CAL requires access to the model's hidden states, making it currently inapplicable to closed-source models accessed solely via API (like GPT-4). Additionally, the system's efficacy is tied to the clustering quality and the summarizer LLM's ability to accurately name the induced patterns. Future work will explore applying these causal principles to proprietary models and open-ended generative tasks.
Summary updated