Abstract: This paper presents a post-processing algorithm for training fair neural network regression models that satisfy statistical parity, utilizing an explainable singular value decomposition (SVD) of the weight matrix. We propose a linear transformation of the weight matrix, whereby the singular values derived from the SVD of the transformed matrix directly correspond to the differences in the first and second moments of the output distributions across two groups. Consequently, we can convert the fairness constraints into constraints on the singular values. We analytically solve the problem of finding the optimal weights under these constraints. Experimental validation on various datasets demonstrates that our method achieves a similar or superior fairness-accuracy trade-off compared to the baselines without using the sensitive attribute at the inference time.
Introduction
Researchers from The Ohio State University have developed ESVDFair, a post-processing algorithm that makes regression models fairer by surgically adjusting the weights of a pre-trained neural network. By linking the Singular Value Decomposition (SVD) of weight matrices to the statistical moments of a model's output, the method achieves state-of-the-art fairness without requiring sensitive attributes (like race or gender) during inference.
Machine learning models often inherit or amplify biases present in training data, leading to "unfair" outcomes for protected groups. In regression tasks—where a model predicts a continuous value like a credit score or a risk level—achieving statistical parity (ensuring the output distribution is the same regardless of a sensitive attribute) is particularly challenging.
Existing solutions usually fall into three camps:
- Pre-processing: Cleaning the data (often loses signal).
- In-processing: Training from scratch with fairness constraints (computationally expensive).
- Post-processing: Tweaking the model's outputs.
A major flaw in current post-processing is that most methods require the "sensitive attribute" to be available at the moment of prediction (inference). In the real world, access to race or gender might be restricted by privacy laws. ESVDFair solves this by modifying the model's internal weights once, creating a "fair-by-design" model that can be deployed anywhere.
Methodology: Explainable SVD
The core innovation is the Explainable SVD. The authors prove a mathematical link between the weights of a neural network layer and the first two moments (mean and covariance) of the output distribution.
- The Transformation: They propose a linear transformation of the weight matrix ($W$). They show that the singular values of this transformed matrix directly correspond to the disparities in how the model treats different groups.
- Optimization: They formulate a convex optimization problem: find a new weight matrix ($W'$) that is as close as possible to the original (to preserve accuracy) but constrains the singular values associated with group disparity.
- Closed-Form Solution: Unlike many fairness methods that require complex iterative solvers, the authors derived a closed-form solution for the first-moment constraint, making the algorithm highly efficient.
- The ESVDFair Algorithm: The process involves adjusting the second-to-last layer of a pre-trained network to equalize group moments and then using an Ordinary Least Squares (OLS) adjustment on the final layer to recover any lost accuracy.
Experimental Setup
The authors evaluated their method on two standard fairness benchmarks:
- Law School Success Dataset: Predicting a student's undergraduate GPA while treating race as the sensitive attribute.
- COMPAS Dataset: Predicting recidivism risk scores, with race (African American vs. others) as the sensitive attribute.
Key Results and Insights
Instead of looking at the data or the final prediction, this paper looks at the geometry of the weight matrix. If the singular values represent "unfairness," then shrinking those specific values "mutes" the bias. This allows for Attribute Unawareness at Inference. Because the bias is removed from the weights themselves, the model "forgets" how to be biased, even when it isn't told which group a specific data point belongs to.
On the COMPAS dataset, ESVDFair significantly outperformed state-of-the-art baselines. It achieved a lower Mean Squared Error (MSE) and a lower Kolmogorov-Smirnov (KS) distance (a measure of unfairness) simultaneously. As shown in the density curves above, ESVDFair effectively "overlaps" the output distributions of different demographic groups, whereas the original model showed distinct, biased peaks.
Conclusion and Future Work
While effective, some theoretical guarantees assume input features follow a multivariate normal distribution. Furthermore, the current work focuses on the first and second moments (mean and covariance). While often sufficient, extremely complex biases might reside in higher-order moments. Future work may involve identifying which specific layers contribute most to unfairness.
Summary updated