arXiv:2610.22942v1 Announce Type: cross Abstract: 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.
Aligning Language Models Towards Counterfactual Invariance
A new arXiv paper (2610.22942v1) reports that standard alignment recipes such as reinforcement learning raise overall response quality while widening differences in response quality across demographic groups, amplifying counterfactual bias. To counter this, the authors develop a policy gradient technique using a group-level reward function applied to matched pairs of counterfactual prompts, and build a dataset of controlled counterfactual prompt pairs with an evaluation that separately measures cases where demographic information is causally relevant. The authors report the method reduces counterfactual differences while preserving overall response quality across several fairness benchmarks, and that models still adapt when sensitive information is relevant.
Run your AI side-project on zahid.host
EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.