This paper, titled "Fair Regression under Sample Selection Bias," addresses a critical but often overlooked reality in machine learning: our training data is rarely a perfect reflection of the world. When data is missing not-at-random—for example, when we only have performance data for students who were already admitted to a university—standard "fair" models can fail.
TL;DR
The authors propose FairLR*, a framework that achieves fairness in regression models even when the training data suffers from sample selection bias. By integrating the classic Heckman model for bias correction with Lagrange duality for fairness constraints, they ensure that models remain accurate and equitable when applied to the broader population.
What Problem Does This Paper Address?
Most research in fair machine learning assumes that training and testing data come from the same distribution (the i.i.d. assumption). However, in the real world, we often encounter sample selection bias.
Imagine a model designed to predict college GPA. The training data only contains students who were actually admitted. If the admission process itself was biased or filtered out certain groups, the "labeled" data we have is a skewed subset of all applicants. A model trained only on this subset will likely be biased when used to evaluate future applicants. The authors tackle the challenge of learning a fair regression function $f(x)$ when the dependent variable $Y$ is missing for a significant portion of the training set due to a hidden selection process.
Methods
The authors combine two powerful statistical tools to create their FairLR* framework:
- The Heckman Model (Bias Correction): This is a two-step econometric approach.
- Step 1: Use a probit model to predict the probability of a sample being "selected" (e.g., admitted to college). From this, they derive the Inverse Mills Ratio (IMR).
- Step 2: The IMR is added as an additional explanatory variable in the main regression. This mathematically "corrects" the bias by accounting for the non-random nature of the missing data.
- Lagrange Duality (Fairness Constraints): Instead of just adding a simple penalty term to the loss function, the authors treat fairness as formal constraints (e.g., the Mean Difference between groups must be zero). They use Lagrange duality to transform this constrained optimization problem into a dual convex problem that is easier to solve.
- Closed-Form Solutions: A major contribution is the derivation of explicit, closed-form mathematical formulas for two popular fairness notions: Mean Difference (MD) and Mean Squared Error Difference (MSED). This allows practitioners to find the optimal fair parameters without needing expensive iterative optimization.
Datasets
The framework was evaluated on three widely used real-world datasets, modified to simulate selection bias:
- CRIME: Predicting crime rates in US communities (Sensitive attribute: African American Population Ratio).
- LAW: Predicting law school student GPAs (Sensitive attribute: Race).
- COMPAS: Predicting recidivism risk scores (Sensitive attribute: Race).
To create the selection bias, the authors filtered the "observed" portion of the data ($D_s$) based on specific features, such as poverty levels or birth years, leaving the rest as "unobserved" ($D_u$).
Key Insights and Ideas
- Fairness on Training $\neq$ Fairness on Population: The authors demonstrate that a model can appear perfectly fair on a biased training set but exhibit significant unfairness on the general population. Bias correction is not just about accuracy; it is a prerequisite for true fairness.
- The IMR as a "Bridge": The Inverse Mills Ratio acts as a mathematical bridge that carries information from the unlabeled data into the regression model, allowing the model to "see" the selection mechanism that caused the bias.
- Strong Duality for Pearson Correlation: The paper provides a theoretical proof that strong duality holds for Pearson correlation constraints under certain conditions (the Slater condition), ensuring that the dual solution is indeed the global optimum.
Key Results
- Superior Trade-offs: In all experiments, FairLR* achieved a better trade-off between utility (low Mean Squared Error) and fairness compared to standard Linear Regression and "FairLR" (fairness without bias correction).
- Stability: FairLR* remained stable even as the "biased ratio" (the proportion of missing data) increased. In contrast, models without Heckman correction saw their fairness metrics degrade rapidly as the bias became more severe.
- Quantitative Impact: On the COMPAS dataset, using the MSED metric, FairLR reduced unfairness to 0.0162, whereas the fair model without bias correction remained at 0.0612* on the testing data.
Limitations and Future Work
- Linearity Assumptions: The current framework and the proof for Pearson correlation rely on linear relationships. The authors suggest extending this to non-linear cases, such as kernel regression, in the future.
- Density-Based Metrics: While the paper handles point-estimate metrics (MD, MSED) well, it does not yet provide closed-form solutions for more complex density-based metrics like Statistical Parity (SP) or Bounded Group Loss (BGL).
- Multiple Attributes: The current study focuses on a single sensitive attribute. Real-world fairness often involves intersecting identities (e.g., race and gender), which adds significant complexity to the optimization.
Summary updated