Individual fairness asks that similar people get similar decisions. "Similar" is defined by a similarity metric, a distance function that a domain expert or a panel of human judges chooses to say which differences between applicants should matter. Today there are two ways to check this property, and neither fits deployment well. Offline formal verifiers try to prove the property for every pair of possible inputs at once. They are slow, they often fail to give an answer, and near the decision boundary the property is expected to fail anyway. Runtime monitors instead compare each new decision against past decisions. They are fast, but they only catch unfairness between people who happen to have both shown up, and the fastest one works only for the simplest box-shaped distance.
We propose a third option: issue a certificate with every decision. When an applicant arrives, the system proves within a fixed time budget that no possible individual within distance $\epsilon$ of them, under the specified metric, would receive a different decision. If it cannot prove this, it either produces a concrete similar-but-differently-treated individual as evidence or reports that it does not know. In both of those cases the decision is routed to a fallback such as human review. Because the check concerns one input's neighborhood, the cost is that of a single-input robustness query, not a two-input relational one. Because a standard bound-propagation verifier produces a linear bound in the input, any metric whose "dual norm" can be computed cheaply can be handled. This covers Mahalanobis distances learned from human comparisons and weighted $L_1$ metrics, not only $L_\infty$.
Core Claim
Per-decision certification under general metrics can run at a latency suited to deployment on tabular fairness benchmarks. It catches strictly more real violations than history-based monitoring. It certifies far more decisions than a global-Lipschitz bound, and does so orders of magnitude faster than randomized smoothing. A cache of previously certified neighborhoods, reusing past certificates through the triangle inequality, cuts the per-decision cost on realistic streams. What is new is the combination. The check is local and runtime, not global and offline. It is sound for arbitrary norm-induced metrics. It returns a three-way answer (certified, violated with a witness, unknown), and that answer drives an active shield instead of a passive alarm.
Research Program
The per-decision check. Take a ReLU classifier $f$ that outputs a score margin $m(x)$, positive for one decision and negative for the other. Take a metric $d(x,x') = \|A(x - x')\|$ for an invertible matrix $A$, where $A$ is a whitening matrix for Mahalanobis distance or diagonal for a weighted norm. A backward bound-propagation pass in the style of CROWN, from the bound-propagation line described in Dynamic Back-Substitution in Bound-Propagation-Based Neural Network Verification, produces a linear lower bound $m(x') \ge c^\top x' + b$ valid on the ball. The worst case over the ball then has a closed form:
$$\min_{d(x,x')\le\epsilon} \left(c^\top x' + b\right) = c^\top x + b - \epsilon\,\|A^{-\top} c\|_*,$$
where $\|\cdot\|_*$ is the dual of the norm defining $d$ (for example $L_2$ for Mahalanobis, and $L_\infty$ for weighted $L_1$).
Intermediate-layer bounds use the same identity, so the whole pass stays sound for the chosen metric. If the resulting bound has the same sign as $m(x)$, the decision is certified. Otherwise we run a projected-gradient search inside the metric ball for a witness $x'$ with the opposite decision. If none is found within budget, we spend the remaining time on a small branch-and-bound over unstable neurons. We prune stable neurons as dynamic back-substitution does, which is exactly the setting that paper optimized.
Sensitive attributes are categorical in Adult and COMPAS. Following the sensitive-set view of SenSeI: Sensitive Set Invariance for Enforcing Individual Fairness, we handle them by running the check once per value of the sensitive attribute, with a continuous ball over the remaining features.
The certificate cache. Suppose a past input $x_0$ was certified up to its largest certified radius $r^*(x_0)$, found by bisection on $\epsilon$ during idle time. Then a new input $x$ inherits a certificate without any network evaluation whenever
$$d(x, x_0) + \epsilon \le r^*(x_0),$$
because the $\epsilon$-ball around $x$ then lies inside a region where the decision is provably constant. Under a Mahalanobis metric, whitening by $A$ turns the lookup into an ordinary Euclidean nearest-neighbor query. This connects to the fixed-radius nearest-neighbor indexing in Monitoring Robustness and Individual Fairness, whose fast structures are tied to $L_\infty$. We sidestep that restriction because the cache only needs approximate nearest-neighbor candidates; the containment test itself is exact.
Where the metric comes from. We evaluate three metric families that the literature treats as realistic. The first is the minimal weighted $L_1$ metric induced by a linear model, from Individual Fairness Revisited: Transferring Techniques from Adversarial Robustness. The second is a Mahalanobis metric learned from pairwise human similarity judgments, as in An Empirical Study on Learning Fairness Metrics for COMPAS Data with Human Supervision. The third is plain $L_\infty$, for a head-to-head with Clemont.
Since metric misspecification propagates into every guarantee, as Individually Fair Gradient Boosting and Post-processing for Individual Fairness both warn, we also certify against a finite set of plausible metrics, for example bootstrap refits of the learned Mahalanobis matrix. The guarantee holds if the worst dual-norm term over the set clears the margin. We report how much certification rate is lost for that robustness.
The shield. Violated and unknown decisions are deferred to a fallback. This turns the observational monitoring of Clemont into enforcement. Unlike the shields in Algorithmic Fairness: A Runtime Perspective, which act on a one-dimensional group statistic, ours acts on each individual decision. We do not claim more than this. The certificate covers the current decision against the current model and metric. It says nothing about future drift, consistent with the impossibility result in that paper. The boundary tension raised by Clemont and GLIF also stands: applicants near the true decision boundary will often be uncertifiable. We treat the deferral rate as a primary outcome, not a nuisance.
Baselines
The naive reference point is a global-Lipschitz certificate. We compute one upper bound $L$ on the network's Lipschitz constant under $d$, in the spirit of the fixed-constant assumption in ModelGuard: Runtime Validation of Lipschitz-continuous Models, and certify $x$ whenever $|m(x)| > L\epsilon$. It is essentially free at runtime. Beating it means certifying substantially more decisions at the same soundness.
The strongest runtime competitor is Clemont from Monitoring Robustness and Individual Fairness. It flags a decision when a previously seen input within $\epsilon$ received a different output. We run it on identical streams, models, and $L_\infty$ metric, on the same hardware, using the released system if available. The file reports no scalar for it on German Credit, Adult, or COMPAS (no reported result found on Lacuna for Clemont's tabular individual fairness detection rate or latency). Its strength is detection latency. Beating it means higher recall of ground-truth violations at comparable per-decision latency, while also certifying the non-violating decisions, which Clemont never does.
The strongest certification competitor is randomized smoothing for individual fairness from Individual Fairness Revisited: Transferring Techniques from Adversarial Robustness. It reports smoothed accuracy within 1.5% of unsmoothed models on Adult, COMPAS, and SSL and 96.6% on Seizure, using $n=10^5$ Monte Carlo passes per prediction. The file reports no certified-fraction figure for it. We run it on the same base networks under the same weighted $L_1$ metric. We give it its published sample count and also a sample count matched to our wall-clock budget. Beating it means a higher certified fraction at matched latency, or equal certified fraction at a fraction of the latency, with a deterministic rather than probabilistic certificate.
The offline relational verifier SABRE from Branch and Bound for Relational Verification of Neural Networks reports solving 67 ACAS Xu instances that RaVeN could not, versus 12 for individual-neuron splitting. We run it once per model to attempt a global certificate under $L_\infty$, with a matched total compute budget. This shows how much of the operational stream a global approach can cover.
Two ablations isolate the key ingredients. The first removes the cache, measuring how much latency the triangle-inequality reuse buys. The second replaces the metric-aware dual-norm bound with an axis-aligned bounding box around the metric ball, measuring how much certification rate comes from respecting the metric's shape rather than boxing it.
Why not just…?
Why not just extend Clemont's history check to Mahalanobis distance? Whitening would make that easy, but it would not fix the deeper problem. A history check only detects unfairness between two people who both appeared. A rejected applicant whose near-twin has not yet applied is unprotected. Our ground-truth experiment counts exactly these unobserved-pair violations. If they turn out to be rare on realistic streams, the case for per-decision certification weakens, and we would report that.
Why not just run an adversarial search per decision and flag what it finds? This is the real threat. A strong gradient search may find nearly every true violation at low cost, leaving certification to add only the label "certified" to the rest. We measure it directly. Using exact mixed-integer ground truth, in the formulation of Evaluating Robustness of Neural Networks with Mixed Integer Programming extended with a convex quadratic constraint for Mahalanobis balls, we compute attack-only recall. If attack recall is near perfect, our contribution reduces to sound certification of the remaining decisions. Regulators asking for proof rather than absence of evidence still need that, but it is a narrower claim.
Why not just use randomized smoothing, which already gives per-input fairness certificates? It does, and it is the closest competitor. The file documents its $10^5$-pass inference cost. It also notes that the Laplace noise needed for $L_1$ metrics samples unrealistic inputs, which pushes practitioners to Gaussian noise and weakens the guarantee. Smoothing also changes the deployed model, while our check certifies the model as deployed. The matched-latency comparison settles which certifies more.
Why not just verify global individual fairness once, offline? Global fairness is generally false near the decision boundary, and relational verifiers remain incomplete and costly beyond small models. The SABRE baseline run quantifies how much of the real input stream a global certificate covers.
Proposed Experiments
We train small and medium ReLU multilayer perceptrons on Adult, COMPAS, German Credit, and SSL. We also train a wider network on the EEG Seizure task to stress input dimension. Each is trained both normally and with SenSeI-style fair training.
Test sets are replayed as streams. We add a reordered stream with shifted feature distributions, to test the cache under drift. We also add a HIGGS stream with a synthetic Mahalanobis metric, purely as a latency and cache-size stress test at 10.5 million events.
For every decision we record certified, violated, or unknown, along with the latency. On the tabular models we also record exact ground truth from the mixed-integer solver.
The decisive checks are four. First, soundness: zero certified decisions that have a ground-truth violation. Second, violation recall against Clemont, broken down into observed-pair and unobserved-pair violations. Third, certified fraction against the global-Lipschitz bound and against latency-matched smoothing. Fourth, the deferral rate: the fraction marked unknown or violated, as a function of $\epsilon$ and of distance to the decision boundary.
A secondary study compares certification rates under $L_\infty$, the minimal weighted $L_1$, a single learned Mahalanobis metric, and the bootstrap set of Mahalanobis metrics. It asks how much the choice of metric, as opposed to the model, determines who receives a fairness certificate. If deferral rates turn out to depend more on the metric than on fair training, that is itself a finding about where the ethical burden of individual fairness actually sits.
References
- Dynamic Back-Substitution in Bound-Propagation-Based Neural Network Verification
- SenSeI: Sensitive Set Invariance for Enforcing Individual Fairness
- Monitoring Robustness and Individual Fairness
- Individual Fairness Revisited: Transferring Techniques from Adversarial Robustness
- An Empirical Study on Learning Fairness Metrics for COMPAS Data with Human Supervision
- Individually Fair Gradient Boosting
- Post-processing for Individual Fairness
- Algorithmic Fairness: A Runtime Perspective
- ModelGuard: Runtime Validation of Lipschitz-continuous Models
- Branch and Bound for Relational Verification of Neural Networks
- Evaluating Robustness of Neural Networks with Mixed Integer Programming