mlsanityData to 24 Nov 2026

Aligning Language Models Towards Counterfactual Invariance

arXiv 2610.22942 ↗Submitted 16 Oct 2026cs.CL cs.AI cs.LGcited by 0

On the map: LLM alignment / RLHF / preference optimisation → Human values and AI feedback alignment also fits: LLM preference optimization methods

Abstract (arXiv)

Small variations in prompt characteristics can meaningfully alter the semantics, tone, and contextual assumptions of large language model outputs. Such characteristics can involve group variables such as demographics or other sensitive latent attributes. Sensitivity to such input variables is undesirable when demographic information is causally irrelevant to the task, but might still be relevant for generation of semantically coherent responses. This makes the task of enforcing counterfactual invariance while preserving model utility difficult. To study this problem, we first show that standard model alignment recipes (such as reinforcement learning) increase differences in response quality across demographics, while improving overall response quality, ultimately amplifying what is known as counterfactual bias. To address this, we develop a policy gradient technique involving a group-level reward function that operates on matched pairs of counterfactual prompts. For completeness, we build a dataset of controlled counterfactual prompt pairs and design an evaluation that separately measures cases where demographic information is causally relevant to the answer. Finally, we validate our findings on several fairness benchmarks. We demonstrate that our methods reduce counterfactual differences while preserving overall response quality and that the models continue to adapt appropriately when such sensitive information is relevant.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Human values and AI feedback alignment, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 34 of its 47 references that are in the map. Submitted 16 Oct 2026.

Builds on

34 of 47 references.

Closest ancestors · 2

Same direction, newest first

  1. 2026Mitigating LLM biases toward spurious social contexts using direct preference optimization2 Apr
  2. 2024BiasDPO: Mitigating Bias in Language Models through Direct Preference Optimization18 Jul

Other references · 32

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
  2. 2025Qwen3 Technical Reportcited by 9,994
  3. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,903
  4. 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
  5. 2023Towards Understanding Sycophancy in Language Modelscited by 1,172
  6. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 937
  7. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 916
  8. 2017Counterfactual Fairnesscited by 828
  9. 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 751
  10. 2026Kimi K2.5: Visual Agentic Intelligencecited by 574
  11. 2025HealthBench: Evaluating Large Language Models Towards Improved Human Healthcited by 511
  12. 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 427
20 more
  1. 2024HelpSteer2: Open-source dataset for training top-performing reward modelscited by 258
  2. 2025Skywork-Reward-V2: Scaling Preference Data Curation via Human-AI Synergycited by 237
  3. 2024Political Compass or Spinning Arrow? Towards More Meaningful Evaluations for Values and Opinions in Large Language Modelscited by 175
  4. 2018Counterfactual Fairness in Text Classification through Robustnesscited by 157
  5. 2023Evaluating and Mitigating Discrimination in Language Model Decisionscited by 144
  6. 2024Bias-Augmented Consistency Training Reduces Biased Reasoning in Chain-of-Thoughtcited by 46
  7. 2024Bias in Language Models: Beyond Trick Tests and Toward RUTEd Evaluationcited by 45
  8. 2025Beyond Reward Hacking: Causal Rewards for Large Language Model Alignmentcited by 45
  9. 2025Fairness through Difference Awareness: Measuring Desired Group Discrimination in LLMscited by 24
  10. 2024First-Person Fairness in Chatbotscited by 22
  11. 2024LLM Targeted Underperformance Disproportionately Impacts Vulnerable Userscited by 21
  12. 2025Consistency Training Helps Stop Sycophancy and Jailbreakscited by 20
  13. 2025Detecting Prefix Bias in LLM-based Reward Modelscited by 12
  14. 2024Certifying Counterfactual Bias in LLMscited by 11
  15. 2024Aligning (Medical) LLMs for (Counterfactual) Fairnesscited by 9
  16. 2024FairPair: A Robust Evaluation of Biases in Language Models through Paired Perturbationscited by 5
  17. 2026Fairness Aware Reward Optimizationcited by 2
  18. 2026BiasGRPO: Stabilizing Bias Mitigation in High-Variance Reward Landscapes via Group-Relative Policy Optimizationcited by 2
  19. 2026Inverse RL Helps Align AI by Imitating Humanscited by 2
  20. 2026MaD-RL: Matching Distributions for Calibrating LLMs with Reinforcement Learningcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Aligning Large Language Models with Counterfactual DPO
  2. 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Study
  3. 2025Aligning to What? Limits to RLHF Based Alignment
  4. 2026Alignment Tampering: How Reinforcement Learning from Human Feedback Is Exploited to Optimize Misaligned Biases
  5. 2025DoubleGen: Debiased Generative Modeling of Counterfactuals
  6. 2025Cultural Alignment in Large Language Models Using Soft Prompt Tuning
  7. 2025Compositional Bias Control in Large Language Models: Preference Learning Fails, Supervision Succeeds
  8. 2025Alignment is Localized: A Causal Probe into Preference Layers