Fairness Invariants: A Relational Approach to Explaining and Mitigating Fairness Bugs
Ranit Debnath Akash, Ashish Kumar -, Gang Tan, Saeid Tizpaz-Niari
University of Illinois Chicago · Pennsylvania State University
Key points
From the paper's conclusion- We introduce a bidirectional relational explanation framework that learns over paired examples ( x , x ′) to identify regions of the input space where fairness is violated.
Abstract
Data-driven software systems are increasingly deployed in high-stakes socio-economic domains, from criminal justice to financial lending. However, these systems often exhibit individual discrimination—unjustified disparities in which a program yields different outcomes for similar individuals who differ only in their protected attributes (e.g., race, gender, age). While existing research has focused on detecting and quantifying these bugs, there remains a critical lack of principled mechanisms to explain and localize individual fairness bugs. Current explanation techniques are largely designed for single-input decisions rather than the relational nature of discrimination, which inherently involves a comparison between an original and a counterfactual pair. We present Remi, a framework for the automated localization, explanation, and mitigation of individual discrimination. Inspired by loop-invariant synthesis in formal methods, we treat counterfactual fairness as a relational invariant discovery problem. We introduce a bidirectional relational explanation framework that learns over paired examples ( x , x ′) to identify regions of the input space where fairness is violated. Unlike traditional one-way implication pairs used in invariant inference, our approach enforces bidirectional constraints: requiring identical outcomes for both original and counterfactual samples. Remiutilizes three data-alignment techniques to infer interpretable rule-based models that act as ”fairness invariants.” These rules serve as guardrails to selectively block or relabel unfair predictions without requiring model retraining. Our evaluation on symbolic and neural network programs demonstrates that Remilocalizes ground-truth fairness bugs in over 83% of cases, significantly outperforming state-of-the-art baselines and reducing discriminatory decisions in black-box models by up to 94%.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Individual and group fairness assessments via counterfactual explanationsAI and Ethics · 2026
- Causally Fair Generation with Large Language ModelsarXiv · 2026
- FairITR: Fairness-Aware Learning of Multicategory Individualized Treatment RulesarXiv · 2026
- Individual Fairness via Local Predictive ConsistencyarXiv · 2026
- Causal Explanations for Disparate Trends: Where and Why?Proceedings of the ACM on Management of Data · 2026
- Fairness in Explainable AI Narratives: Decomposing Social Disparities in LLM-Generated ExplanationsarXiv · 2026