Aligning as Debiasing: Causality-Aware Alignment via Reinforcement Learning with Interventional Feedback

Yu Xia, Tong Yu, Zhankui He, Handong Zhao, Julian J. McAuley, Shuai Li

Abstract

Large Language Models (LLMs) often inherit biases and toxicity from their pretraining data through spurious semantic correlations. We present Causality-Aware Alignment (CAA), a reinforcement learning framework that treats alignment as a causal debiasing problem. By modeling the generation process with a Structural Causal Model (SCM), CAA utilizes a reward model as an instrumental variable to provide "interventional feedback." This feedback allows for sample weighting in Proximal Policy Optimization (PPO), effectively isolating and mitigating causal confounders. Experimental results across multiple datasets demonstrate that CAA achieves superior debiasing and faster convergence than standard RLHF methods while maintaining high text quality.

The Challenge: Spurious Correlations as Confounders

A significant hurdle in deploying LLMs is their tendency to generate toxic or biased content, even when prompted with benign text. This behavior often stems from "spurious semantic correlations" learned during pretraining. For instance, if phrases indicating high certainty (e.g., "I'm 99 percent sure") frequently co-occur with negative or toxic descriptors in the training corpus, the model learns a causal link that shouldn't exist.

Spurious correlations in pretraining data act as confounders, leading to biased LLM outputs.

In causal terms, the pretraining data ($U$) and the input prompt ($X$) act as confounders. They influence both the model's internal state ($L$) and the final output ($Y$), creating "backdoor paths" that trick the model into producing biased results. Standard Reinforcement Learning from Human Feedback (RLHF) typically optimizes for immediate rewards without addressing these underlying causal structures.

Methodology: Causality-Aware Alignment (CAA)

To address these backdoor paths, the authors propose Causality-Aware Alignment (CAA). This approach formalizes the text generation process using a Structural Causal Model (SCM) and introduces a mechanism to perform causal interventions during the alignment phase.

Causal modeling of LLM alignment and the proposed Causality-Aware Alignment (CAA) framework.

1. The Reward Model as an Instrumental Variable

CAA treats the reward model ($R$) as an instrumental variable. In causal inference, an instrumental variable affects the outcome ($Y$) only through its influence on the treatment variable (the LLM, $L$), thereby bypassing the influence of confounders ($U$ and $X$).

2. Interventional Feedback and Sample Weighting

Instead of using absolute reward scores, CAA calculates "interventional feedback"—the difference in reward ($\Delta$ reward) between the initial unaligned model and the current RL-tuned model. This difference signifies how much the RL intervention has successfully shifted the model away from biased outputs.

This $\Delta$ reward is then used as a sample weight within the PPO loss function. Samples where the intervention has a high impact (large $\Delta$ reward) are weighted more heavily, forcing the model to prioritize learning from examples where it successfully overcame learned biases.

Experimental Evaluation

The authors evaluated CAA on text continuation (using IMDB and RealToxicityPrompts) and text summarization (using CNN/DailyMail and XSum).

Key Results

  • Enhanced Debiasing: CAA consistently outperformed standard PPO. On the RealToxicityPrompts dataset, CAA achieved a toxicity reward of 0.049, significantly lower than PPO's 0.083.
  • Generalization: The improvements held true even when evaluated by independent, "held-out" classifier models, suggesting the model isn't just "reward hacking" the specific training reward model.
  • Efficiency: CAA demonstrated faster convergence, reaching target alignment levels with fewer fine-tuning steps than standard PPO.
  • Quality Preservation: Metrics for fluency (Perplexity) and diversity (Distinct-1/2) remained competitive, ensuring that debiasing does not come at the cost of linguistic capability.

Discussion and Future Directions

The success of CAA highlights the power of framing alignment as a causal problem. By focusing on the change in reward, the system identifies prompts that are particularly prone to triggering hidden biases.

However, the method's efficacy depends on the quality of the reward model. If the reward model itself contains biases inherited from human feedback or its own training data, the "instrumental variable" assumption is weakened. Future research will likely focus on developing more robust, "causally pure" reward models to further enhance the precision of interventional feedback.

Summary updated

BibTeX
@inproceedings{xia2024aligning,
  author = {Yu Xia and Tong Yu and Zhankui He and Handong Zhao and Julian J. McAuley and Shuai Li},
  title = {{Aligning as Debiasing: Causality-Aware Alignment via Reinforcement Learning with Interventional Feedback}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.262},
}
Figure