An Efficient Geometric Characterization of Robust Fair Learning

Sushant Agarwal, Amit Deshpande, Rajmohan Rajaraman, Ravi SundaramNeurIPS 2026

TL;DR

Enforcing strict mathematical fairness on a machine learning model can create a surprising vulnerability: an infinitesimal, malicious nudge to the underlying data distribution can cause the accuracy of your optimal fair classifier to plummet. By viewing classification through high-dimensional geometry, this paper pinpoints the exact geometric quirk causing this fragility, offers a fast way to audit your model family before deployment, and reveals a remarkably simple, universal fix.

What Problem Does This Paper Address?

Imagine deploying a hate speech detector. You want it to be fair (so it doesn't disproportionately flag innocent African American English as toxic) and robust (so bad actors slightly tweaking their phrasing to bypass guardrails don't tank its accuracy).

Weirdly, fairness and robustness can fight each other. If you just optimize for raw accuracy without fairness constraints, your optimal classifier degrades gracefully under tiny distribution shifts. Add exact fairness constraints, however, and that stability can vanish. Previous research showed that if you optimize over every possible randomized model in the universe, you get stability back.

In practice, though, we don't optimize over the whole universe—we use restricted hypothesis classes ($\mathcal{H}$), like boosted ensembles of decision stumps or shallow trees. The authors ask two pressing questions: Given a practical hypothesis class $\mathcal{H}$, will its optimal fair classifier survive malicious distribution shifts ("fair-robustness," formally defined here as local Lipschitz continuity of accuracy)? And can we test for this property without running an exponentially long computation?

Methods

Instead of wrestling with dense algebra tailored to a single metric, the authors translate the entire problem into clean, intuitive convex geometry.

Over a finite domain of $n$ data points, any deterministic classifier is just a corner (vertex) of an $n$-dimensional hypercube $\{0,1\}^n$. A randomized ensemble of base learners—like what you get from boosting—forms a convex polytope $\mathcal{H}$ sitting inside that solid hypercube. (To avoid trivial edge cases, $\mathcal{H}$ is assumed to include the all-zeros $\vec{0}$ and all-ones $\vec{1}$ constant classifiers).

Geometric view of fair classification: finding the optimal fair model means slicing the polytope H with a fairness hyperplane F_p and maximizing accuracy along direction A_p.

Here is how the geometry clicks together:

  • Fairness is a slice: Standard linear fairness metrics (Demographic Parity, Equal Opportunity, Predictive Equality) act as a hyperplane $\mathcal{F}_p$ slicing right through the polytope $\mathcal{H}$.
  • Optimization is a Linear Program (LP): When loss is linear (like 0/1 or weighted loss), finding the most accurate fair classifier simply means sliding as far as possible along an accuracy vector $A_p$ within the feasible slice $\mathcal{H} \cap \mathcal{F}_p$.

Using parametric linear programming, the authors analyze how that feasible slice behaves as an adversary slightly perturbs the data distribution $p$. To build an efficient robustness audit, they bypass enumerating all faces of $\mathcal{H}$ (which blows up exponentially) and instead formulate a clever LP that checks vertices directly.

Datasets

Not discussed in the paper. (This is a purely theoretical work.)

Key Insights and Ideas

  • Instability is just "face alignment": Why would accuracy suddenly jump or crash? Imagine tilting a flat plane ($\mathcal{F}_p$) against the outside face of a cut diamond ($\mathcal{H}$). If the fairness plane lies perfectly flat against a face of $\mathcal{H}$ (beyond the main diagonal $\vec{0}\vec{1}$), an adversarial nudge of $\epsilon$ to the data tilts the plane. Suddenly, the entire face slips out of the feasible region! The optimal classifier snaps to a distant vertex, causing a massive drop in accuracy.
  • The "forbidden" zone is universal: Whether you care about Demographic Parity, Equal Opportunity, or any other factorizable linear fairness metric, the set of "forbidden" normal vectors ($\Theta$) that cause face-alignment is identical. Fair-robustness isn't a quirk of your chosen fairness metric—it is an intrinsic geometric property of your hypothesis class $\mathcal{H}$.
  • Approximate fairness heals everything: If you relax exact fairness ($= 0$) to $\delta$-approximate fairness ($\le \delta$, for any tiny $\delta > 0$), your razor-thin $(n-1)$-dimensional fairness hyperplane puffs out into a full $n$-dimensional "slab." Because a thick slab has an interior, it can never delicately align with and slip off a boundary face in the way a flat plane does. Instability vanishes completely.

Key Results

  • Complete Geometric Characterization (Theorem 1): A convex polytope $\mathcal{H}$ is fair-robust under $\epsilon$ total-variation shifts if and only if no face strictly containing the $\vec{0}\vec{1}$ diagonal has a normal cone intersecting the forbidden set $\Theta$. When alignment happens, an $\epsilon$ shift can trigger a constant $\Omega(1)$ drop in accuracy.
  • Polynomial-Time Audit (Theorem 2): Rather than checking exponentially many faces, the authors' LP test solves $2(|\mathcal{V}(\mathcal{H})| - 2)$ linear programs, each with $n$ variables and $n + |\mathcal{V}(\mathcal{H})|$ constraints. For an ensemble of $T$ base classifiers, auditing takes $\text{poly}(n, T)$ time.
  • Universal Fix via Relaxation (Theorem 3): For any $\delta > 0$, every admissible convex-polytope hypothesis class becomes locally Lipschitz continuous (robust) under $\delta$-approximate fairness.

Limitations and Future Work

  • Polytope & Finite-Domain Assumptions: The theory operates at the population level (infinite data limit) over a finite domain of size $n$, and assumes $\mathcal{H}$ is a convex polytope containing constant classifiers. Extending this to finite-sample guarantees, continuous domains, multiclass setups, and non-linear metrics (like calibration) remains open.
  • Worst-Case Vertex Scaling: While $\text{poly}(n, |\mathcal{V}(\mathcal{H})|)$ is fast when $|\mathcal{V}(\mathcal{H})|$ is small (like a boosting ensemble of $T$ trees or low VC-dimension classes), $|\mathcal{V}(\mathcal{H})|$ can still be exponential in $n$ in the worst case.
  • Local vs. Quantitative Bounds: The paper proves local Lipschitz continuity (global is impossible near the simplex boundaries where group probabilities approach zero), leaving exact quantitative Lipschitz constants and empirical benchmark validations for future work.

Summary updated

Abstract

Previous work has shown that the optimal classifier from a hypothesis class subject to exact fairness constraints may not be *robust*; that is, its accuracy can change drastically under small shifts to the underlying data distribution. We ask the following questions: Given a hypothesis class $\mathcal{H}$, is the accuracy of the optimal fair classifier from $\mathcal{H}$ robust to malicious distribution shifts? And is this property efficiently testable? We consider $\mathcal{H}$ that can be represented by a convex polytope — the natural setting for randomized ensembles of deterministic classifiers, including those produced by boosting. We provide a complete geometric characterization of when $\mathcal{H}$ is robust, and an efficient linear programming test to audit the robustness of a given $\mathcal{H}$. Surprisingly, we demonstrate that if we relax exact fairness constraints and only require approximate fairness, every such $\mathcal{H}$ is robust. Our results hold for a broad class of linear fairness criteria (e.g., demographic parity, equal opportunity, predictive equality) and linear loss functions (e.g., 0/1 loss, weighted loss).
BibTeX
@inproceedings{agarwal2026efficient,
  author = {Sushant Agarwal and Amit Deshpande and Rajmohan Rajaraman and Ravi Sundaram},
  title = {{An Efficient Geometric Characterization of Robust Fair Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bi33LQMlVp},
}
Figure