NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimizing Language Models for Human Preferences is a Causal Inference Problem

Victoria Lin, Eli Ben-Michael, Louis-Philippe Morency

TL;DR

Aligning Large Language Models (LLMs) with human preferences is typically treated as a pattern-matching task, but this paper argues it is fundamentally a causal inference problem. By introducing Causal Preference Optimization (CPO) and its Doubly Robust (DR-CPO) extension, the authors provide a framework to learn from "direct outcome" datasets (like Reddit upvotes or star ratings) while remaining unbiased by the hidden confounding factors that often plague real-world data.

What Problem Does This Paper Address?

Most current alignment techniques, like RLHF (Reinforcement Learning from Human Feedback) or DPO (Direct Preference Optimization), rely on paired completion data—where a human chooses between two different model outputs. However, paired data is scarce. In contrast, "direct outcome" data—a single text snippet paired with a numerical score (e.g., a 5-star review)—is ubiquitous.

The challenge with direct outcome data is confounding. For example, if you train a model on Reddit data to maximize upvotes, it might learn that toxic comments get high scores in certain toxic subreddits. A standard model would mistakenly learn that toxicity causes preference. The authors argue that to truly align a model, we must identify the causal relationship: what specific attributes of the text actually cause a human to prefer it, regardless of external factors like who is reading it or where it was posted.

Methods

The authors propose two primary methods to solve this causal optimization problem:

  1. Causal Preference Optimization (CPO): This method uses Inverse Probability Weighting (IPW). It treats the training data as a randomized experiment. By weighting the observed outcomes by the ratio of the model's text distribution to the original data's distribution, CPO creates an unbiased estimate of how well the model is performing, effectively "correcting" for the way the original data was collected.
  2. Doubly Robust CPO (DR-CPO): This extends CPO by adding an outcome model (a predictor of the score). It is "doubly robust" because the final estimate remains unbiased if either the probability weighting or the outcome model is correctly specified. This significantly reduces the variance of the training signal, making the optimization more stable and efficient.

Unlike standard RLHF, which requires a complex loop of generating new text and scoring it, (DR-)CPO can be applied more directly to existing datasets, similar to the efficiency gains seen with DPO.

Datasets

The researchers evaluated their methods on three distinct types of direct outcome data:

  • Hate Speech: A binary dataset from Reddit and Gab where the goal is to generate text that is less likely to be perceived as hateful.
  • Hong Kong: A scalar dataset (scores 0-100) based on a randomized experiment regarding political protest support. This represents a complex, noisy, and topically narrow task.
  • Confounded Dataset: A synthetic version of the Hong Kong dataset where outcomes were intentionally flipped to simulate extreme confounding (e.g., "haters" brigading a post). This was used to test the robustness of the methods against misleading data.

Key Insights and Ideas

  • Alignment is Intervention: The authors frame LLM fine-tuning as an "intervention" on the model's text distribution. The goal is to find the intervention that causes the best average human response.
  • Crowdsourcing as a Natural Experiment: They point out that many crowdsourced datasets are effectively randomized experiments because annotators are randomly assigned to texts, which simplifies the causal math.
  • Bias Correction via Weighting: The core "aha moment" is that the IPW term in DR-CPO acts as a built-in bias corrector. Even if your reward model is trained on "dirty" confounded data, the weighting term helps steer the model back toward the true causal relationship.

Key Results

The authors found that CPO-based methods consistently outperformed standard Supervised Fine-Tuning (FT) and Offline RLHF (OO-RLHF) baselines.

  • Win Rates: As shown in Figure 1, DR-CPO achieved statistically significant win rates (over 0.5) against baselines on the Hate Speech task. On the Hong Kong task, the simpler CPO actually performed best, likely because the outcome model for that specific task was difficult to learn accurately.
Figure 1: CPO and DR-CPO win rates against OO-RLHF, FT, and one another other. A win rate exceeding 0.5 indicates that the named method outperforms the competing method with respect to the target outcome. The error bars correspond to 95% confidence intervals, and asterisks (*) mean that the win rate difference between the two methods is statistically significant at the 95% confidence level.
  • Robustness to Confounding: The most striking result came from the "Confounded" experiment. While the performance of standard OO-RLHF degraded significantly when trained on misleading data, DR-CPO remained robust, successfully ignoring the induced bias to maintain high performance.
  • Reward Maximization: Table 2 shows that DR-CPO and CPO generally achieved the highest expected rewards across the tested objectives, confirming they are effectively optimizing for the target outcomes.
Table 2: (Stabilized) expected reward under the DR-CPO, CPO, and OO-RLHF objectives.

Limitations and Future Work

  • LoRA Constraints: The study used Low-Rank Adaptation (LoRA) for efficiency. The authors note that full-parameter fine-tuning might yield even larger performance gains.
  • Outcome Model Noise: In cases where the outcome is extremely complex (like the Hong Kong dataset), the outcome model can introduce noise. Finding better ways to regularize these models is a suggested path forward.
  • Extension to Paired Data: While this paper focused on direct outcomes, the authors suggest that the doubly robust framework could be adapted to standard paired preference data to improve the stability of methods like DPO.

Summary updated

BibTeX
@inproceedings{lin2024optimizing,
  author = {Victoria Lin and Eli Ben-Michael and Louis-Philippe Morency},
  title = {{Optimizing Language Models for Human Preferences is a Causal Inference Problem}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=VmI8qE0UK6},
}
Figure