Manuscript Offprint
arXiv:2610.36649When Is a Cheap Fairness Edit Safe? Screening Post-Hoc Edits in Two-Sided Matching Markets
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Two-sided matching systems, such as admissions pipelines, allocate opportunities jointly. Reducing a protected attribute's influence usually requires encoder retraining. We study a closed-form linear projector that does this at inference time. For markets that stay vertically ordered before and after the edit, we bound the mean welfare change by the edit-induced appeal shift and an explicit remainder. A probabilistic refinement replaces worst-case constants with a data-dependent deviation term. A pre-deployment screen combines a verticality test with a welfare sweep and returns PASS, KILL, or OUT-OF-SCOPE. An exact tier requires every opportunity to rank applicants by appeal, and a graded tier admits near-vertical markets. On 30 held-out synthetic markets, the screen agrees with every pre-specified regime verdict, with no observed false PASS. On 60 exactly vertical markets, no bound is violated, and the probabilistic bound is informative in 69% to 87% of configurations. On 2700 configurations from three realistic markets, which do not reach the exact tier, no plug-in bound expression is violated. A closed-form factorization stays within graded scope in 90% to 100% of instances, whereas two-tower and graph neural network encoders fall outside it in every instance. Architecture choice thus appears to affect whether a post-hoc edit is admissible.
Keywords: Fairness in recommendation, Two-sided matching, Post-hoc intervention, Concept erasure, Welfare bound, Model selection
1. Introduction
Many machine learning systems make one-sided decisions, such as approving a loan or selecting an item to display. Two-sided matching systems instead allocate opportunities jointly across two populations. Examples include school and university admissions, residency matching, ride-sharing platforms, and freelance marketplaces. School choice and residency matching commonly use deferred acceptance. Under deferred acceptance, an agent's outcome depends on the scores of all other agents. Raising one applicant's score can trigger a chain of reassignments that displaces other applicants from their matches [1]. A small score change can therefore produce a large and discontinuous change in the final matching. Standard smoothness arguments do not directly apply to the effect of a model adjustment on such a mechanism.
Consider a platform that scores applicants with a deployed model and allocates them through such a mechanism. Automated systems that decide access or admission to education are classified as high-risk under the European Union's Artificial Intelligence Act [2]. In such settings, a regulator or an internal policy team may require a protected attribute, such as race or gender, to exert less influence on the matching. These requirements also change over time. In 2023, for example, the Supreme Court of the United States held that race-conscious admissions programs at two universities violated the Equal Protection Clause [3]. The platform could retrain the model after each change, but retraining is costly. Deep recommendation models are among the most compute-intensive training workloads in large production data centers [4], and graph-based recommenders at web scale are trained on multi-GPU hardware over graphs with billions of nodes [5]. Repeated retraining may therefore be impractical, which motivates the following research question.
Corresponding author.
Email addresses: tiken.m@dibru.ac.in (Moirangthem Tiken Singh), rkp@dibru.ac.in (Rabinder Kumar Prasad)
Research question. Can the dependence of a deployed matching system on a protected attribute be reduced after deployment, without retraining, while providing a provable bound on the loss in match quality and a pre-deployment check that reports whether the bound applies?
We address this question without differentiating the matching mechanism. We treat the mechanism as a black box, run it before and after a closed-form edit of the encoder output, and bound the resulting change in mean welfare. Because deferred acceptance is discontinuous in the scores, a bound of this kind requires structural assumptions on the market. The central problem is therefore to identify a market structure under which the edit has a bounded welfare cost, and to check that structure before deployment.
- For markets in which both sides share a ranking criterion before and after the edit, we prove a bound on the change in match quality that neither smooths nor approximates the matching mechanism. To our knowledge, this is the first such guarantee for a post-hoc edit in two-sided matching. An explicit form of the bound depends on quantities that can be estimated before deployment from the representations and a labeled validation set: the overlap between the removed information and agent merit, the alignment of the removed information with the ranking criterion, and the dispersion of merit among agents with equal appeal.
• We derive a probabilistic refinement that replaces worst-case quantities with a data-dependent deviation term at a specified failure probability.
• We combine the scope condition of the guarantees with an empirical welfare sweep in a pre-deployment screen that returns Pass, KILL, or OUT-OF-SCOPE according to predefined scope, gap-closure, and surplus-retention criteria.
• We evaluate, on controlled and realistic markets, how the encoder architecture affects the scope conditions and the deployment verdicts.
Section 2 positions the work in the literature. Section 3.1 formulates the problem and the intervention, and Section 3.2 develops the theoretical analysis. Section 3.3 presents the screening rule, and Section 4 reports the experiments. Section 5 interprets the findings and states the scope of the results, and Section 6 concludes.
2. Related work
Four lines of work address parts of the deployment problem considered here: concept erasure, post-processing fairness, in-processing fair ranking and recommendation, and fair matching mechanisms. Table 1 compares them on four properties of a deployable intervention: operation after training, retargeting to a new fairness objective without retraining, closed-form construction, and a bound on welfare cost. Classical two-sided matching theory, reviewed last, supplies the mechanism analysis rather than a competing intervention.
Concept erasure: Early methods removed a target attribute from static word embeddings by projecting out an estimated bias direction [6]. Later work introduced iterative nullspace projection [7], adversarial linear erasure [8], and closed-form projectors such as LEACE [9]. These methods prevent a linear classifier from recovering a concept from the representation. They operate post hoc and can be retargeted, and some admit closed-form solutions. Their guarantees concern the linear predictability of the attribute and the distortion of the representation. They do not bound the allocation that a discontinuous mechanism computes from all scores jointly.
The projector analyzed here has the same structure as LEACE for a binary attribute. It removes the group mean-difference direction in whitened coordinates and maps the result back. It differs in whitening the pooled representations of both market sides and in allowing partial erasure. The contribution of this work is therefore not the projector itself but the analysis of its effect on the resulting allocation.
Post-processing fairness: Post-processing methods adjust decisions or scores after training. Examples include equalized-odds post-processing [10], its calibrated variant [11], and reject-option classification [12]. Fair ranking methods such as FA*IR [13] and exposure-constrained rankings [14] similarly re-rank a given scored list. Like concept erasure, these methods are post hoc and can be reapplied to new targets. Their guarantees, however, concern individual predictions, aggregate classifier performance, or a single ranked list. Deferred acceptance processes all adjusted scores simultaneously, so a guarantee for independent decisions does not transfer to the induced matching.
Table 1: Properties of representative approaches. The welfare guarantee of this work is conditional on vertical-market assumptions.
| Method | Post-hoc | Retargetable | Closed-form | Welfare Bound |
|---|---|---|---|---|
| Concept erasure | Yes | Yes | Partial | No |
| Post-processing fairness | Yes | Yes | Partial | No |
| In-processing fair ranking/recommendation | No | No | No | No |
| Fair matching mechanisms | N/A | N/A | N/A | No (mechanism only) |
| This work | Yes | Yes | Yes | Yes (conditional) |
Representation neutralization [15] is the closest method in this group. It keeps the encoder fixed and retrains only the classification head on neutralized representations, so it also avoids retraining the encoder. It differs from the edit studied here in two respects. It retrains the head for each fairness target, and it addresses individual classification rather than a jointly computed allocation.
In-processing fair ranking and recommendation: In-processing methods build fairness into the training objective. Early approaches learned representations that retained predictive information while obscuring group membership [16]. Later work added fairness regularizers to collaborative filtering [17], decomposed embeddings into bias-aware and bias-free components for news recommendation [18], and learned exposure-fair ranking policies [19]. These methods retrain the model when the fairness criterion changes. Filter-based methods [20] keep the base encoder fixed but train a separate filter for each fairness target. Neither class is retargetable without training, and neither provides a closed-form inference-time edit. When the protected attribute correlates with match quality, these methods also fix the accuracy-fairness tradeoff during training rather than measure it at inference time.
Fair matching mechanisms: Fair matching methods change the allocation mechanism itself, through quotas, capacity constraints, or fair stable-matching procedures [21, 22, 23]. They impose distributional constraints on group representation directly. This work instead keeps the deployed mechanism fixed and edits only its inputs. The first three properties in Table 1 describe edits to the inputs of a fixed mechanism, so they are marked not applicable for these methods. The two approaches are complementary, and a platform could use both.
Two-sided matching theory: The mechanism analysis builds on classical results on stability and deferred acceptance [24], their application to school choice [25], and the broader market design literature [26]. Stable assortative matching under vertical preferences is central to the theoretical framework. Recent work learns matching mechanisms that trade off stability and strategy-proofness [27], whereas the mechanism here is given. To our knowledge, prior work has not connected assortative matching theory to post-hoc edits of trained representations or to welfare guarantees for such edits.
Among the methods reviewed here, none combines post-hoc operation, retargetability, closed-form construction, and a welfare bound for the induced matching. The present framework provides all four properties for markets that satisfy explicit structural assumptions.
3. Methodology
3.1. Problem formulation
3.1.1. Two-sided matching systems
A two-sided matching system contains two populations. Side contains applicants, such as users, students, or job seekers, while side contains opportunities, such as items, schools, or positions. A trained encoder maps each agent to a representation, where , , and . A scorer assigns each pair the compatibility score . In the preference model studied here, side ranks applicants by this score, while side ranks opportunities by their fixed quality . An allocation mechanism maps the two sides' rankings to a matching . Throughout this paper, is deferred acceptance. Side carries a protected attribute that may affect the scores and, consequently, the allocation.
Only the ranking by side depends on the edit. The qualities of side are therefore fixed primitives, and the analysis of Section 3.2 attributes any welfare change to the movement of applicants along the quality ladder.
Throughout, the market is balanced, one to one, and complete: , every agent ranks every agent on the other side, and no agent is left unmatched. Ties in the edited scores are broken by agent index, which fixes the matching uniquely when a projection creates exact ties.
3.1.2. Design requirements
A post-hoc intervention on a deployed matcher should meet four deployment-oriented requirements, stated in Definition 1.
Definition 1 (Post-hoc fairness control with bounded cost). An intervention on a trained matcher satisfies:
(D1) It acts at inference time on the fixed encoder, without gradient updates to it.
(D2) It is adjustable across fairness targets by changing few parameters, without retraining.
(D3) It admits a closed form, recomputable cheaply when the attribute or population changes.
(D4) It carries a bound on the match quality forfeited as a function of the intervention’s strength.
Requirements D1–D3 distinguish post-hoc interventions from in-processing approaches. In-processing methods generally retrain the encoder when the protected attribute or fairness objective changes, which violates D1 and D2. They also provide no closed-form update for inexpensive recomputation, which violates D3. The projector introduced next satisfies D1–D3 by construction (Section 3.1.4). D4 instead requires a bound on the match quality forfeited as a function of edit strength. Construction alone cannot provide this bound because deferred acceptance is discontinuous in the scores. Without additional structure, a small input perturbation need not produce a small change in the matching. Establishing D4 is therefore the main theoretical problem. Section 3.2 establishes it for markets with a shared ranking criterion.
3.1.3. Post-hoc fairness intervention
The deployed encoder already serves allocations, and the fairness requirement may change faster than the encoder can be retrained. To meet D1–D3, the intervention acts on the inference pipeline. It inserts one linear transformation between the encoder and the scorer without modifying either component. Let W be the whitening map for the pooled representations, and let be the between-group mean-difference direction for the whitened side- representations. The transformation attenuates in whitened coordinates and maps the result back to the original coordinates. The operator applied to side is
with recovering the original system and removing the direction entirely. Scoring proceeds in the original coordinates the deployed scorer uses, , and the mechanism produces .
The analysis in Section 3.2 concerns this operator and uses two of its properties. The inverse whitening map is part of the edit, so scoring remains in the geometry of the deployed scorer. The edit acts only on side A, and side-B qualities remain fixed primitives.
3.1.4. Construction of the projector
Algorithm 1 states the procedure that a deployment runs. It first whitens the pooled representations of both sides. It then estimates the protected direction from the whitened group means. It erases that direction at strength . It finally maps the result back through the inverse whitening transform, which Remark 1 shows is required for the edit to be the identity at .
Algorithm 1 One-sided erasure, the edit analyzed in Theorems 1 and 2.
Require: representations , , labels , strength
Ensure: edited side- representations ; side unchanged
1: row-stack of
2: , independent of and
3:
4: floor the eigenvalues at singular-covariance policy
5: ;
6: for all
7:
8: if or a group is empty then
9: return no estimable direction; edit is the identity
10: end if
11:
12: for each do
13:
14: end for
15: for all map back; see Remark 1
16: return , with for all
The construction satisfies the first three requirements of Definition 1. The projector acts on the output of the fixed encoder at inference time and performs no gradient update, thereby satisfying D1. At , the identity property establishes that the edit family contains the deployed system.
Remark 1 ( is exactly the identity). At , line 13 leaves . Line 15 then computes exactly, because uses the same eigenvectors and the reciprocal eigenvalues. Algorithm 1 therefore returns the original representations unchanged at . The inverse map in line 15 is necessary because whitening rescales every dimension to unit variance. Returning would change the representation even at zero attenuation, whereas mapping through reproduces the deployed system exactly.
The complexity of Algorithm 1 establishes D3. Line 2 costs , and line 3 costs independently of . The dense transformations in lines 6 and 15 cost , while each remaining line costs . The total cost is therefore , compared with for one call to . When , the matching mechanism asymptotically dominates the projector.
Retargeting to a new attribute establishes D2. The whitening transforms W and in Algorithm 1 depend only on the representations, not on z, and can therefore be cached. Given new labels and cached representations , retargeting recomputes only the direction, with , and reapplies lines 12–15 of Algorithm 1 with replacing . The cost is per target when the rank-one update is applied algebraically and when each representation is multiplied by a dense . Retargeting requires group labels for the new attribute.
Both the initial construction and retargeting produce a rank-one edit along the direction . The guarantees of Section 3.2 are proved for this rank-one edit.
3.1.5. Theoretical scope
Because deferred acceptance is discontinuous in the scores (Section 3.1.2), the welfare analysis assumes a vertically ordered market in which both sides rank agents by a shared criterion. Under this structure, the stable matching is assortative, and the effect of the edit can be expressed as rank displacement. Markets with substantially idiosyncratic preferences fall outside this theoretical scope.
3.2. Theoretical analysis
3.2.1. Assortative markets
Let be a unit desirability direction and let . Applicant has appeal , and opportunity has quality . The true utility of a match is , where the true merit may differ from the observed appeal because of bias. The welfare of a matching is .
The following four assumptions define the vertically ordered markets considered in our analysis and provide the regularity conditions needed for the welfare bounds. The first imposes a shared ranking criterion. The remaining assumptions constrain the appeal distribution, the quality distribution, and the utility function.
Assumption 1 (Vertical market, V). Every ranks by descending ; every ranks by descending ; both orderings are strict.
Assumption 2 (Bounded appeal density, D1'). There exists such that for every , the number of agents with is at most .
Assumption 3 (Bounded quality spread, D2'). There exists such that for all ranks , where is the -th largest quality.
Assumption 4 (Lipschitz utility, L). There exists such that for every .
For the post-edit market, Assumption 1 is read with the post-edit appeal defined below in place of . Assumption 1 requires both sides to agree on a common ranking criterion. It fails where preferences are idiosyncratic. In residency matching, for example, programs and candidates rank each other by criteria that do not reduce to a shared scalar. Section 5.4 returns to this case.
Lemma 1 (Assortativity). Under Assumption 1, the unique stable matching pairs the rank-r agent of A with the rank-r agent of B, for every r.
Applying to side changes applicant appeal. Let denote applicant 's post-edit appeal. Let and denote the rank of in descending order of and , respectively. We write and for the stable matchings before and after the edit. Because and are symmetric, the appeal shift for applicant is
The coefficient measures the alignment of the erased direction with the desirability direction in the original coordinates. It is not bounded by one, because can stretch the erased direction. Theorem 1 uses only through the quantile of its magnitude, whereas Proposition 1 depends on the coefficient explicitly. For , let be the quantile of , and let be the set of outliers, so that .
Lemma 2 (Local displacement). For every non-outlier , .
3.2.2. Bounded welfare guarantee
Lemma 2 bounds the rank displacement of each non-outlying agent. Theorem 1 treats outliers separately using the full quality range. The remaining assumptions convert local rank displacement into bounded changes in partner quality and, consequently, bounded changes in welfare.
Theorem 1 (Bounded-stakes welfare guarantee). Suppose Assumption 1 holds for both the pre-edit and the post-edit market at the specified . Under Assumptions 2–4, for every ,
(3)
The left-hand side is the change in mean matched utility because W includes the factor 1/n. The bound neither linearizes nor relaxes M. It compares the exact outputs obtained by running the mechanism once before and once after the edit. The proof combines local rank displacement (Lemma 2) with bounded quality spread (Assumption 3).
Theorem 1 establishes requirement D4 of Definition 1 for vertical markets. In Equation (2), the quantities , , and do not depend on , so every is proportional to . The quantile therefore satisfies , and the bound becomes , an explicit function of the edit strength. The guarantee holds at each for which Assumption 1 holds before and after the edit, which is the condition that the exact tier of the screening rule checks (Section 3.3). The remainder does not vanish at , where the welfare change is zero, so the bound is conservative for small edits.
The constants , , and are population quantities. We estimate each with the sample analogue required by its assumption. Specifically, is the largest adjacent-rank quality gap multiplied by , and is the largest per-agent utility-quality slope because Assumption 4 requires a supremum. We compute over all appeal windows. For each count , the narrowest window containing agents determines the lower limit . Taking the largest such limit ensures that the sample estimate satisfies Assumption 2 by construction.
3.2.3. A probabilistic refinement
The constant depends on . Assumption 3 requires to bound every adjacent-rank gap. In a finite sample, the largest gap therefore determines , even if the realized displacement pattern places little or no weight on that gap. The following refinement replaces this worst-case quantity with the average gap under one additional assumption and a failure probability .
Let the sorted quality gaps be and let the range be . The gaps telescope exactly, so their mean is . Define the total realized displacement , computed directly from the two rank assignments.
Assumption 5 (Exchangeable gaps, EXCH). Conditional on the vector of crossing multiplicities , where counts the agents whose rank path covers gap position , the gap vector is exchangeable: its law is invariant under relabeling of the gap positions.
By construction . The assumption constrains only the labeling of gap positions relative to the displacement pattern, and the proof of Theorem 2 uses no further property of the gaps. Spacings of sorted independent Gaussian draws are not exchangeable, because their distribution depends on rank position. Interior spacings of sorted independent uniform draws are exchangeable marginally. If the crossing multiplicities are independent of the quality vector, that exchangeability also holds conditional on m. The independence required concerns all representations that enter the pooled whitening map, including those of side B.
Theorem 2 (Probabilistic bounded-stakes guarantee). Suppose Assumption 1 holds for both the pre-edit and the post-edit market at the specified . Under Assumptions 4 and 5, let , put , , , and
Then for every , with probability at least ,
If , the bound holds with probability one.
For n = 2 there is a single gap, and the bound holds deterministically without the deviation term. Theorem 2 replaces an outlier-dominated constant with a deviation term at the cost of a nonzero failure probability. It does not use Assumptions 2 and 3 because is the realized quality range. Both and are computed from the pre-edit and post-edit rank assignments and the quality vector. Thus, the bound contains no fitted constant other than .
3.2.4. The role of representation entanglement
Theorems 1 and 2 bound the welfare change through rank displacement, but they do not identify which properties of the representations make an edit costly. A complementary diagnostic is the overlap between the erased direction and true merit, which can be measured before deployment.
All directions in this subsection live in whitened coordinates, since does. Let for a unit merit direction in those coordinates and a scale , with oriented so that . Define entanglement , and decompose with a unit vector orthogonal to .
Lemma 3 (Merit-neutral reorderings preserve welfare). If , exchanging 's partners leaves welfare unchanged.
Erasing changes appeal by . Only the component that reorders agents across merit levels can affect welfare. Even a shift orthogonal to can reorder agents with different merits when merit varies among agents with similar appeal. Entanglement alone therefore does not determine the welfare-relevant perturbation. It can be estimated from trained representations and a labeled validation set before editing, so it serves as a pre-deployment diagnostic. Conditional cost bounds additionally require the appeal alignment, representation spread, and merit regularity introduced below.
3.2.5. An explicit residual bound
Three further assumptions give an explicit inequality in terms of the quantities of Section 3.2.4. The first is the quantitative form of Lemma 3.
Assumption 6 (Bounded exchange cost, ). There exists such that for all .
Assumption 7 (Bounded representations, ). for every .
Assumption 8 (Merit regularity, ). There exist and such that for all .
Setting in Assumption 6 yields zero and recovers the merit-neutrality result of Lemma 3. The constant controls how quickly merit changes with observed appeal, while bounds merit dispersion among agents with equal appeal. Both can be estimated from a labeled validation set. Assumption 7 ensures that the spreads and , and hence , are finite. The constant does not appear in (7) because the bound is expressed through .
Write for the coefficient of Equation (2), put and , with as above, and define the shift scale
Every quantity in (6) is computable from the representations, the labels, and , without running the mechanism.
Proposition 1 (Explicit residual bound). Suppose Assumption 1 holds for both the pre-edit and the post-edit market at the specified . Under Assumptions 2, 3, and 6–8,
The proof decomposes the rank permutation into adjacent transpositions, bounds the merit gap of each transposed pair by , and bounds their number by Assumption 2. It is given in the supplementary material.
Expanding the right-hand side of (7) gives
Proposition 1 clarifies the role of ent in three cases. First, when , the bound contains the quadratic term plus the linear term , which vanishes as grows. The quadratic order occurs because a larger edit displaces more pairs and moves each pair across a larger merit gap. Second, when , the bound includes the term , which is linear in , and the term , which does not vanish as in this upper bound. This constant reflects the counting bound rather than a positive welfare cost in a fixed finite market. Strict appeal order gives a minimum separation , and no ranks change when . The actual welfare change is then zero.
The proof, provided in the supplementary material, conditions on the crossing vector and the unordered multiset of gaps. Chebyshev's inequality then uses the exact conditional mean and variance of a linear permutation statistic. The proof requires no boundedness or independence beyond Assumption 5
Third, entanglement enters only through , together with the appeal alignment and the spreads and . If , then and no reordering occurs, regardless of ent. If , then , and ent governs the bound.
3.3. The deployment screening rule
The theory provides a formal scope condition and a measurable cost diagnostic. Verticality is required by Theorem 1, while Proposition 1 identifies the shift scale . This scale combines entanglement, the alignment of the erased direction with appeal, and representation spread. The screening rule combines a scope test with an empirical sweep to produce an operational verdict before deployment.
Definition 2 (Pre-deployment screening rule). Given a market, a target attribute, and a set of tested edit strengths that includes , the screening rule proceeds in four steps.
(S1) Exact scope. The -discordance is the fraction of applicant pairs for which fails for some . It is computed before the edit and, with in place of , at every tested . exactly when Assumption 1 holds with strict orders before and after the edit. At each with , the market lies in the exact tier, where Theorems 1 and 2 apply.
(S2) Graded scope. The discordance P2 is the fraction of applicant pairs for which the sign of is not the same for every opportunity b. It is computed at every tested . is necessary for Assumption 1 but not sufficient, since every opportunity could agree on an order other than descending . The rule returns OUT-OF-SCOPE if the maximum of P2 over the tested exceeds a calibrated threshold . Otherwise the market lies in the graded tier. A market in the exact tier at every tested has throughout and is therefore admitted.
(S3) Fairness and welfare sweep. For each tested , the rule computes the fraction of the group gap closed and the fraction of assortative surplus retained, defined in Equations (9)–(11) below.
(S4) Verdict. For an admitted market, the rule returns Pass if some tested closes at least a target fraction of the gap while retaining at least a target fraction of surplus, and reports the smallest such . It returns KILL if no tested meets both targets: either every gap-closing edit drops surplus below , or no tested edit closes of the gap. Under KILL, it reports the smallest tested that closes of the gap, if one exists. A zero initial group gap leaves the gap-closure ratio undefined, and a nonpositive initial surplus leaves the retention target undefined or uninterpretable. Either condition gives KILL, including when both occur together.
The entanglement ent of Section 3.2.4 is reported with the verdict as an explanatory diagnostic and does not enter it.
The sweep uses three quantities. Let be the matching at edit strength , let q be the partner-quality vector, and let z be the protected attribute of side A. The group gap, the welfare, and the assortative surplus are
where is the mean of , which is the expected welfare of a uniformly random matching. The sweep reports the fraction of the gap closed, , and the fraction of surplus retained, .
Computing the gap requires only the realized matching, the partner-quality vector, and the group labels. Computing welfare and surplus also requires an estimate of the true utility U. A deployment must estimate both U and q, because q is derived from U.
Decision thresholds are selected on calibration data that are independent of the evaluation data and are held fixed during evaluation. Within the exact tier, the guarantees of Theorems 1 and 2 apply under their remaining assumptions. Within the graded tier, a Pass verdict is supported by the empirical sweep and the graded scope criterion, not by those theorems.
Remark 2 (Discordance and the rank-one share). The fraction of score-matrix variance explained by the leading singular direction, which equals 1 when the score matrix is rank one, does not test Assumption 1. For a bilinear score the matrix is rank one whatever the signs of and q, and a negative entry of q reverses the ranking that the corresponding agent induces over the other side. A market in which some agents prefer the worst partners therefore attains a leading-singular-value share of 1 while violating Assumption 1 for those agents. Discordance counts a pair unless every agent on the other side orders it the same way, so the same configuration scores near 1.
The appeal and quality scales must therefore be oriented consistently. A monotone positive shift preserves the rankings and priority orders that define the market. A standardized score that assigns negative merit leaves a rank-one score matrix intact while violating Assumption 1.
4. Experimental evaluation
4.1. Setup
Synthetic markets: The controlled evaluation uses nominally vertical two-sided markets with representation dimension . Side- appeal correlates with the protected attribute at strength , which represents merit correlation. It also contains a component at strength whose sign is set by the protected attribute and which does not enter true utility. This component represents spurious bias. Side- quality is drawn independently and uniformly from a positive range. Each side- representation scales with the quality of its opportunity and also loads on the bias direction, allowing to affect the scores. Because the pooled whitening map then depends on quality, the crossing multiplicities need not be independent of the gaps, and Assumption 5 is not established on these markets. True utility is supermodular in appeal and quality, so assortative sorting maximizes welfare. For the non-vertical negative control, we replace the shared-direction structure with independent, unstructured representations on both sides. In every experiment, the desirability direction is the normalized mean of the side- representations.
Synthetic regimes: Three synthetic regimes are used throughout. The low-merit, high-bias regime (LM-HB) sets and . The high-merit, low-bias regime (HM-LB) sets and . The non-vertical regime (NV) is the negative control. Each regime has a reference verdict determined by its generating parameters: PASS for LM-HB, KILL for HM-LB, and OUT-OF-SCOPE for NV.
The exact-scope evaluation uses the same generator with two changes. Representation noise is set to zero, and the side-B scale factors are drawn independently of the qualities. Every side-B representation is then a positive multiple of one vector , so and every opportunity ranks applicants by , which is the descending order, before and after the one-sided edit. True utility is with , so in the native coordinates Assumption 4 holds with and Assumption 6 with . Assumptions 2, 3 and 8 concern the agents of the market, so , and are computed exactly on each instance, with the maximum over all applicant pairs for the fitted .
Realistic datasets: The realistic evaluation uses three markets. The first two are semi-synthetic: they take real applicant records and generate the side-B quality ladder and the utility matrix. The third uses observed ratings on both sides. The first two are score-priority markets, in which a single merit score sets priority. The first is a law-school-admissions-style market using LSAT score and self-reported race, following the LSAC National Longitudinal Bar Passage Study [28]. The second is a national-exam-style market that combines four subject scores and an essay score into one merit score, with self-reported race or color as the protected attribute, following Brazil's ENEM microdata [29]. In both markets the quality of side B is a generated monotone ladder, and true utility is the outer product of the merit score and quality. Every encoder observes a noise-injected interaction proxy built from this utility, as specified below. The third market is a sparse mutual-ratings market built from the Speed Dating experiment data [30]. Each record is a directional (rater, rated, rating) triple, with the overall liking score as the rating. Gender defines the two sides: side A holds the 274 women and side B the 277 men. The protected attribute is the self-reported race of side A, binarized as the majority category versus all others. True utility is the mean of both directions' ratings where both exist, and the available rating otherwise. Across instances, a mean of 94.7% of directional ratings are missing. Missing ratings are imputed by row- and column-bias correction, and a small jitter breaks discrete-rating collisions. The ratings-market qualities are data-derived, so Assumption 5 is not guaranteed on that market. Each seed defines one instance. For the two score-priority markets, each instance draws a fresh subsample of 400 applicants. For the ratings market, each instance uses all 274 women and draws 274 of the 277 men. The subsample, the interaction-proxy noise, and the encoder initialization all change with the seed.
Encoder architectures: We encode each market's raw interaction data using three architectures, all with embedding dimension . A0 applies a deterministic rank-d SVD to the observed interaction matrix. It obtains and from the top-d singular vectors scaled by the square roots of their singular values. Its diagnostics vary across instances only because of subsampling and interaction noise. A1 is a two-tower network with separate embedding tables for the two sides. Each table is passed through a two-layer MLP (linear, ReLU, linear), and the network is trained with pairwise BPR loss against sampled negative pairs [31]. A2 is a bipartite GNN based on LightGCN [32]. It propagates the same embedding tables for two layers over a degree-normalized bipartite graph, averages the layer outputs, and uses the BPR procedure of A1. Thus, A1 and A2 differ only in the function that maps the embedding tables to and . Both also vary across instances because of SGD stochasticity and subsampling.
Interaction proxy and BPR pair sampling: For the score-priority markets, Law School and ENEM, applicant scores are standardized, , and shifted to a positive range as Remark 2 requires. The quality ladder of side is sorted descending from with i.i.d. True utility is the noiseless outer product . The interaction proxy observed by every encoder, A0, A1, and A2 alike, is
For the ratings market, R is the imputed rating matrix defined above.
A1 and A2 use the same BPR pair-sampling procedure on [31]. Before training, we compute the fixed threshold median( ) and define the positive set . During each of 200 training epochs, we pair every positive example with one negative sampled uniformly from the complement of that agent's positive set. We resample these negatives in every epoch:
optimized by Adam [33] with learning rate . Here is the score function of Section 3.1.1 with and taken as the identity, since are already the final post-tower representations.
Statistical procedures: All confidence intervals use a 95% level. The independent market or seed is the sampling unit; configurations from the same market are not treated as independent, and encoders fitted to the same market instance form one cluster. Bootstrap intervals are bias-corrected and accelerated (BCa) using 2000 resamples of this unit. We report the upper endpoints of two-sided exact Clopper–Pearson intervals for violation rates and two-sided Wilson score intervals for false-PASS rates. Paired comparisons use the two-sided Wilcoxon signed-rank test with the exact null distribution over 10 seeds. The associated matched-pairs rank-biserial correlation ranges from -1 to 1; ±1 indicates that every seed has a difference with the same sign. The synthetic intervals concern independent market draws from the stated generator. Realistic-data intervals concern independently randomized runs conditional on each fixed source dataset.
Every evaluation of Theorem 1 uses the outlier fraction , and every evaluation of Theorem 2 uses the failure probability . For a configuration i with realized welfare change and bound , tightness is . Reported mean tightness is the mean of these configuration-level ratios over configurations with . Configurations with are reported separately and excluded from the tightness average. Let denote the set of complete one-to-one matchings. We define the full feasible welfare range of an instance as
Both extrema are computed exactly by solving the maximum-weight and minimum-weight assignment problems on U. A bound is informative when for that instance.
Estimation coordinates: On the exactly vertical markets, the constants are computed in the native coordinates . On the nominally vertical synthetic markets and the realistic markets, they are estimated in fixed merit and quality coordinates. The merit coordinate of applicant is . The quality coordinate is the leading right singular vector of , where is the mean entry of , with unit norm and with the sign that makes its inner product with the column means of nonnegative. , and use ; , and use . When for a positive merit vector , as in the score-priority markets, the individual constants depend on this choice of coordinates. The products , , , and do not. The right-hand sides of Theorems 1 and 2 and Proposition 1 therefore coincide with those computed in the native coordinates .
4.2. Screening accuracy on synthetic markets
All thresholds are selected on a calibration grid and are held fixed during evaluation. The grid crosses five merit-correlation levels, five bias levels, and five seeds, giving 125 markets that are independent of the evaluation markets. The gap target is . The surplus-retention threshold is selected against a reference criterion: a calibration market receives a reference PASS label when some tested closes at least half of the gap while retaining at least 75% of surplus, and a reference KILL label otherwise. The criterion labels 118 calibration markets PASS and 7 KILL, and attains the highest balanced accuracy against these labels, 0.840. For the discordance threshold, the calibration records, for each candidate value, the fraction of nominally vertical grid markets admitted and the fraction of non-vertical controls excluded. The threshold
Table 2: Screening-rule verdicts against the reference verdict of each synthetic regime, with agents per side and 10 held-out seeds per regime (30 markets).
| Regime (reference) | Screening-rule verdict | ||
|---|---|---|---|
| PASS | KILL | OUT | |
| LM-HB (PASS) | 10 | 0 | 0 |
| HM-LB (KILL) | 0 | 10 | 0 |
| NV (OUT) | 0 | 0 | 10 |
is the lowest candidate value that attains the best balanced accuracy. Discordance runs from 0.177 to 0.501 on the grid markets and equals 1.000 on every control, so attains balanced accuracy 1.000. No grid market attains the exact tier. The same grid yields a reference entanglement level . It is used only to interpret verdicts against Proposition 1 and does not enter the verdict rule.
With these thresholds, the screening verdict agreed with the reference verdict for all 30 held-out test markets, with 10 seeds for each of the LM-HB, HM-LB, and NV regimes. Table 2 gives the confusion matrix. The observed accuracy was 1.00, and the observed false-PASS rate among the 20 markets whose reference verdict is not PASS was 0/20, with a two-sided Wilson upper confidence bound of 0.161. No NV market received a PASS verdict.
As a sensitivity check, the confusion matrix in Table 2 is unchanged at each of sixteen candidate values of .
4.3. Evaluation within the exact scope
Each regime contains 30 markets at with ten non-zero edit strengths, . On every market and at every tested , before and after the edit, the orders of , , and are strict, the stable matchings before and after the edit are assortative, is positive and of rank one, and . The qualities and the side- scale factors are drawn independently. The pooled whitening map and the crossing multiplicities therefore do not depend on quality, and Assumption 5 holds by the sufficient condition proved in the supplementary material. Table 3 compares the realized welfare change with the three right-hand sides.
No bound was violated on any of the 60 markets, and the exact upper bound on the per-market violation rate is 0.116 in each regime. The mean realized welfare change is 0.066 in the LM-HB regime and 0.014 in the HM-LB regime. Within the exact scope the probabilistic bound is below the feasible welfare range in of LM-HB and of HM-LB configurations. The deterministic bound and the explicit residual bound are above the feasible welfare range in every configuration.
Table 3: Welfare change against the three bounds on exactly vertical markets (, 30 markets per regime, 10 values of ). Informative is the share of configurations whose right-hand side is below the full feasible welfare range in Equation (14). Violations are counted per market.
| Regime | Bound | Mean RHS | Tightness | Informative | Violations |
|---|---|---|---|---|---|
| LM-HB | Theorem 1 | 0.00 | 0/30 | ||
| LM-HB | Theorem 2 | 0.87 | 0.69 | 0/30 | |
| LM-HB | Proposition 1 | 0.00 | 0/30 | ||
| HM-LB | Theorem 1 | 0.00 | 0/30 | ||
| HM-LB | Theorem 2 | 0.38 | 0.87 | 0/30 | |
| HM-LB | Proposition 1 | 0.00 | 0/30 |
Table 4: Mean right-hand side and mean tightness ratio of the worst-case and probabilistic bounds in the three synthetic regimes ( agents per side, 30 seeds, 11 values of ). Worst-case tightness uses all 330 configurations. Probabilistic tightness uses the 300 configurations with , because the probabilistic right-hand side is zero at . NV denotes the non-vertical regime.
| Regime | Worst-Case | Probabilistic | ||
|---|---|---|---|---|
| Mean RHS | Tightness | Mean RHS | Tightness | |
| LM-HB | 1.79 | |||
| HM-LB | 1.86 | |||
| NV | ||||
The smallest margin of over is 0.007. In the 18 configurations where no applicant changes rank, the realized welfare change and the right-hand side of Theorem 2 are both zero, while the right-hand sides of Theorem 1 and Proposition 1 remain positive. Over the remaining configurations, the right-hand side of Theorem 2 exceeds the realized change by at least of its value.
4.4. Stress tests outside the exact scope
Each regime contains 330 configurations from 30 seeds and 11 values of , with agents per side. The independent unit is the market, which is counted as a violation if any tested violates the expression. The nominally vertical markets do not reach the exact tier. Their results therefore characterize the plug-in bound expressions outside the full assumptions of the theorems. The non-vertical regime provides a further stress test outside Assumption 1. Neither plug-in expression is violated in any of the 30 markets in each regime. The exact upper bound on the per-market violation rate is 0.116. Table 4 reports the mean right-hand side and mean tightness ratio for both expressions.
The worst-case right-hand side exceeds the full feasible welfare range in every configuration across all
Table 5: Constants of Proposition 1 in the three synthetic regimes, as means over 30 seeds. is the exchange-cost constant of Assumption 6, and are the merit-regularity constants of Assumption 8, is the appeal alignment of the erased direction, and is the shift scale of Equation (6) averaged over the sweep. All are plug-in estimates, with merit and quality measured in the coordinates stated in Section 4.1. NV denotes the non-vertical regime.
| Regime | c | ent | ||||
|---|---|---|---|---|---|---|
| LM-HB | 4.90 | 0.21 | 6.11 | 1.35 | 0.02 | 4.71 |
| HM-LB | 5.95 | 2.12 | 1.59 | 0.69 | 0.63 | 2.92 |
| NV | 0.51 | 0.46 | 0.17 | 0.17 | 0.62 |
three regimes. The probabilistic refinement improves mean tightness by four to five orders of magnitude. Under the criterion of Equation (14), the probabilistic bound is non-informative in 61.5% of LM-HB configurations, 53.9% of HM-LB configurations, and 90.9% of NV configurations. It therefore provides numerical information for 38.5% of the LM-HB and 46.1% of the HM-LB configurations, compared with 68.7% and 87.3% within the exact scope (Section 4.3). Mean right-hand side and tightness separate the NV regime from the two nominally vertical regimes but not LM-HB from HM-LB. The probabilistic mean right-hand side is 1.79 for LM-HB and 1.86 for HM-LB, compared with for NV, and the corresponding tightness ratios are , , and .
The expression of Proposition 1 was evaluated on the same configurations. No violation was observed, and the shift scale of Equation (6) dominated the realized appeal shift at every in every instance. Its mean right-hand side is for LM-HB, for HM-LB, and for NV, which places it beside the worst-case bound and four to six orders of magnitude above the probabilistic one (4.6, 6.1, and 5.2 orders in the LM-HB, HM-LB, and NV regimes). The probabilistic expression has the smallest mean right-hand side in each evaluated regime.
Table 5 reports the constants of Proposition 1. Two quantities separate the LM-HB and HM-LB regimes. The merit-appeal coupling is ten times larger in HM-LB than in LM-HB, and entanglement is larger in HM-LB as well. The exchange-cost constant rises by six orders of magnitude in the non-vertical control, while the geometric quantities , and remain of the same order as in the vertical regimes.
4.5. Entanglement, assortativity, and alignment
Proposition 1 identifies as the shift scale that governs the effective tightness of the bound. This scale combines entanglement, appeal alignment, and repre- sentation spread. Three analyses isolate these components: the association between entanglement and welfare loss, the agreement between assortative prediction and deferred acceptance, and the welfare effect of aligned versus unaligned perturbations of equal magnitude.
Table 6: Relationship between entanglement and welfare loss over the grid.
| Statistic | Value |
|---|---|
| Spearman | 0.779 |
| p-value | |
| Grid samples (n) | 245 |
| Positive-loss samples | 102 |
| Log-log slope | 0.79 |
| 95% CI (slope) | [0.64, 1.07] |
At full erasure, we define welfare loss as . Entanglement is positively associated with this loss, with Spearman ( , n=245 across a grid over ; Table 6). Among the 102 markets with positive loss, the log-log slope is 0.79, with a 95% confidence interval of [0.64, 1.07]. The slope is taken with respect to entanglement rather than the shift scale of Proposition 1, so it does not identify the order of the bound in .
Across a mix of nominally vertical and non-vertical regimes, the assortative prediction and exact deferred acceptance assigned the same partner in 26.8% of cases (Table 7). Kendall's on partner-quality rank was 0.76. Kendall's tracked the discordance P2 of Definition 2, at Spearman between and one minus discordance (), whereas the correlation of with the rank-one share of Remark 2 was 0.46 (). The assortative approximation degrades as discordance rises, and discordance predicts that degradation more closely than the rank-one share does.
Table 7: Assortative-prediction agreement with exact deferred acceptance, across mixed nominally vertical and non-vertical regimes.
| Statistic | Value |
|---|---|
| Exact partner-match rate | 26.8% CI [21.4, 31.4]% |
| Kendall's (partner-quality rank) | 0.76 CI [0.62, 0.87] |
| vs. 1-discordance, Spearman | |
| vs. rank-one share, Spearman |
The structural ablation compares coherent rank-one erasure with incoherent random perturbation of matched magnitude, and one-sided with two-sided erasure. The two-sided variant, Algorithm 2, applies the same estimated direction to both market sides and is not covered by Theorem 1 or Theorem 2.
Algorithm 2 Two-sided variant used in the structural ablation.
1: run Algorithm 1 lines 1–11 to obtain W, and 2: for each and each do 3: 4: end for 5: return
For perturbations of equal magnitude and side coverage, coherent rank-one erasure causes more welfare disruption than incoherent random perturbation. The random-to-structured cost ratio is 0.19, with and rank-biserial correlation -1.0 (Table 8). This result indicates that alignment with merit, rather than edit magnitude alone, contributes to cost. One-sided erasure edits side only, as in Algorithm 1, or side only; two-sided erasure is Algorithm 2. At , two-sided erasure leaves a smaller residual gap than either one-sided variant, and its gap curve has a smaller area over the full sweep (, effect size 1.0 for both tests).
Table 8: Structural ablations: coherent vs. incoherent erasure, and one- vs. two-sided erasure at ( seeds, Wilcoxon signed-rank, exact, paired). One-sided and one-sided edit only side or only side ; two-sided erasure is Algorithm 2.
| Comparison | Value | Test statistic |
|---|---|---|
| Random / structured cost ratio | 0.19CI [0.17, 0.21] | , rank-biserial -1.0 |
| Residual gap: one-sided A | 0.116 | |
| Residual gap: one-sided B | 0.104 | , effect 1.0 (A vs. both) |
| Residual gap: two-sided | 0.070 | |
| Gap AUC: one-sided A | 0.098 | |
| Gap AUC: one-sided B | 0.086 | , effect 1.0 |
| Gap AUC: two-sided | 0.064 |
4.6. Attribute leakage, retargeting, and computational cost
At the PASS operating point, two probes predict the protected attribute from the edited side- representations at the selected by the screen: a logistic regression and a multilayer perceptron with one hidden layer of 32 units, each scored by three-fold cross-validated AUROC. Across 15 seeds, the linear probe attains an AUROC of 1.000 and the nonlinear probe attains 0.982. The nonlinear minus linear difference is -0.018, with a confidence interval of . These probe results show that a PASS verdict concerns the empirical gap-closure and surplus-retention thresholds, not protected-attribute unpredictability.
Retargeting under partial labels degraded the estimated direction monotonically, with cosine distance 0 at full labels, 0.030 at 50%, 0.203 at 10%, and 0.553 at 1%.
The full edit of Algorithm 1, including whitening, direction estimation, erasure, and the map back, took 0.79 ms for n=200, 1.25 ms for n=500, and 1.82 ms for n=1000, against 19 ms, 128 ms, and 531 ms for one call of deferred acceptance, as medians of five runs. The projector was therefore not the bottleneck at the evaluated scales. A rank- variant repeats the direction-estimation step of Algorithm 1 against the residual after removing each previously estimated direction. Replacing the rank-one edit with rank-2 and rank-4 variants left the verdict unchanged on all 10 LM-HB and all 10 HM-LB markets at n = 200.
4.7. Realistic datasets
Each of the three markets is encoded with A0, A1, and A2, yielding 30 instances 3 architectures 3 datasets = 270 instances. Each instance is tested at ten nonzero values of . Neither the probabilistic nor the worst-case expression is violated in any of the 30 runs per dataset, where a run comprises one subsample and the three encoders fitted to it. The exact upper bound on the per-run violation probability is 0.116, conditional on each fixed source dataset. No real-data cell reaches the exact tier, so these results characterize the plug-in expressions outside the full assumptions of the theorems rather than verify the guarantees in their exact scope.
Table 9 and Figures 1–3 show that the scope verdict depends on the encoder even when the data are fixed. For the deterministic factorization A0, mean discordance ranges from 0.27 to 0.47, and 90% to 100% of instances remain within graded scope in all three markets. For both trained encoders, mean discordance ranges from 0.99 to 1.00, and every instance is out of scope. Thus, under the two trained encoders, side-B rankings do not exhibit the agreement required by Assumption 1, for either applicant records or observed ratings. Discordance remains above zero even under A0, so every admitted real-data cell satisfies only the graded tier.
Discordance and the rank-one share of Remark 2 disagree in both directions. Under A1 both score markets have a leading-singular-value share of 0.99 with discordance 0.99: the score matrix is almost exactly rank one, yet essentially no pair of applicants is ranked unanimously, which is the sign configuration of Remark 2. The ratings market under A0 is the opposite case, with a share of 0.10 and discordance 0.47, so a rank-one reading would exclude the market that the screen admits most clearly.
Within a cell, discordance under A0 ranges from 0.29 to 0.59 on the law-school market across instances that differ only in subsample and interaction noise, which moves that cell out of scope in 10% of instances, while ENEM A0 stays in scope throughout. Under A1 and A2, SGD variation moves entanglement across most of its range, as Figure 1 shows, without moving the scope verdict.
Among in-scope cells, PASS rates are not monotonic in entanglement. A0 passes every ratings instance at ent = 0.34 and 70% of ENEM instances at ent = 0.96. In contrast, no law-school instance passes, although 90% of that cell is in scope. Passing instances use partial edits, with mean selected values of 0.56 for ENEM and 0.73 for the ratings market. Section 5.3 interprets this pattern using Proposition 1.
On the real markets the merit-appeal coupling tracks entanglement across the nine cells, from 2.00 at ent = 0.96 down to 0.06 at ent = 0.08, and no violation of the expression of Proposition 1 was observed in any of the 2700 configurations. Its right-hand side lies between and , driven by , which is 7.33 on the law-school market, 7.37 on the national-exam market, and on the ratings market, as means over instances. These values use the estimation coordinates of Section 4.1.

Figure 1: Encoder-dependence of the screening rule's entanglement diagnostic, over 30 instances per cell. Bar heights are means, and whiskers give the observed minimum and maximum across instances. The reference line is . A0's entanglement on the score-priority datasets is near 1, while the trained encoders spread across nearly the full range on identical data.

Figure 2: Encoder-dependence of the discordance statistic P2, over 30 instances per cell. Bar heights are means, and whiskers give the observed minimum and maximum across instances. Lower values indicate closer agreement among side-B rankings. The dashed line is the calibrated screen threshold , and the shaded band above it is the excluded region. No cell attains the exact tier, which requires a discordance of zero.

Figure 3: Encoder-dependence of the mean right-hand side of the probabilistic bound, log scale, over 30 instances per cell. Bar heights are means over instances. Solid red hatching marks cells that are out of scope in most instances, and dotted red hatching marks cells that are out of scope in some instances.
Figure 3 plots the mean probabilistic RHS and marks the cells whose majority verdict is OUT-OF-SCOPE. Magnitude does not identify those cells. On the ratings market the in-scope A0 cell gives a mean RHS of and the out-of-scope A1 cell gives . On the score-priority markets the bound spans 0.81 to 2.04 across cells that are variously in and out of scope, five orders of magnitude below the ratings cells. Magnitude tracks the market rather than the scope verdict.
Table 9: Summary over three realistic markets and three architectures, 30 instances per cell. Each instance draws its own subsample, interaction noise, and encoder initialization. Ent. and Mean RHS are means over instances. P2 is the discordance of Definition 2, with its observed minimum and maximum across instances, and the next column is the leading-singular-value share of Remark 2. Lower discordance indicates closer agreement among side- rankings, and the graded screen admits an instance at P2 0.55. PASS and OUT are the fractions of instances receiving those verdicts; the remainder are KILL. Mean RHS is the probabilistic right-hand side, and the next column is the right-hand side of Proposition 1 on the same instances. Viol. counts violations of the probabilistic bound over the ten non-zero values of in each instance.
| Dataset | Arch. | Ent. | P2, discordance (range) | Rank-1 share | PASS | OUT | Mean RHS | Prop. 1 RHS | Viol. |
|---|---|---|---|---|---|---|---|---|---|
| Law School | A0 | 0.98 | 0.42 [0.29, 0.59] | 0.99 | 0.00 | 0.10 | 1.05 | 0/300 | |
| Law School | A1 | 0.08 | 0.99 [0.94, 1.00] | 0.99 | 0.00 | 1.00 | 2.04 | 0/300 | |
| Law School | A2 | 0.63 | 1.00 [1.00, 1.00] | 0.87 | 0.00 | 1.00 | 1.71 | 0/300 | |
| ENEM | A0 | 0.96 | 0.27 [0.16, 0.41] | 0.99 | 0.70 | 0.00 | 0.95 | 0/300 | |
| ENEM | A1 | 0.07 | 1.00 [0.93, 1.00] | 0.99 | 0.00 | 1.00 | 1.06 | 0/300 | |
| ENEM | A2 | 0.43 | 1.00 [1.00, 1.00] | 0.82 | 0.00 | 1.00 | 0.81 | 0/300 | |
| Ratings | A0 | 0.34 | 0.47 [0.46, 0.48] | 0.10 | 1.00 | 0.00 | 0/300 | ||
| Ratings | A1 | 0.04 | 0.99 [0.82, 1.00] | 0.75 | 0.00 | 1.00 | 0/300 | ||
| Ratings | A2 | 0.43 | 1.00 [1.00, 1.00] | 0.67 | 0.00 | 1.00 | 0/300 |
4.8. Comparison to prior post-hoc interventions
We compare the proposed method with iterative nullspace projection [7] and three simplified reimplementations of prior approaches. The RLACE-style baseline alternates a linear adversary with an exponential-moving-average update of the erased direction rather than using the constrained minimax solver in [8]. Group score standardization rescales each group's appeal scores to the pooled mean and standard deviation, following the general post-processing principle of [10], without outcome labels. The reject-option-style baseline moves disadvantaged-group scores within a band around the pooled median halfway toward the advantaged-group mean, following [12]. All four baselines operate at inference time on a fixed encoder and use the same market, mechanism, and metrics. Tables 10 and 11 report the fraction of the group gap closed and the welfare retained relative to the uncorrected system. For the proposed method, the screening rule selects both and the verdict. We evaluate the LM-HB and HM-LB regimes of Section 4.1, each with agents per side and 30 seeds. Because the proposed method is a screening and selection procedure, it applies the smallest tested edit that meets both targets under a PASS verdict, or the gap target alone under a KILL verdict. Each baseline is evaluated at its standard full-correction operating point. The comparison therefore assesses the procedures as deployed, not interventions of equal strength.
In the LM-HB regime, the screening rule returns PASS for all 30 seeds and selects a mean of 0.89. At the selected edit, the proposed method closes of the gap and retains of welfare, corresponding to a increase relative to the uncorrected matching.
Table 10: Comparison with post-hoc baselines on the LM-HB market ( , , n = 400, 30 seeds), relative to the uncorrected system. Values are means over seeds. Welfare retention above 100% means that welfare improved relative to the uncorrected matching. RLACE-style, group score standardization, and reject-option-style are simplified reimplementations.
| Method | Gap (%) | Welfare (%) | Verdict | Retrain |
|---|---|---|---|---|
| Ours (with verdict) | 61.1 | 102.4 | Yes | No |
| INLP [7] | 69.9 | 102.5 | No | No |
| RLACE-style [8] | 36.5 | 101.7 | No | No |
| Group score standardization [10] | 97.0 | 101.2 | No | No |
| Reject-option-style [12] | 5.5 | 98.2 | No | No |
Group score standardization closes 97.0% of the gap, and iterative nullspace projection closes 69.9%, both with comparable welfare retention. The RLACE-style and reject-option-style baselines close 36.5% and 5.5%, respectively.
In the HM-LB regime, the protected direction is strongly entangled with true merit at . The screen returns KILL for 8 seeds and OUT-OF-SCOPE for 22. The scope verdict in this regime depends on market size. With the generator and thresholds fixed, the discordance used by the screen, the maximum over the tested , has mean 0.32 at , 0.44 at , 0.55 at , and 0.60 at , and the share of seeds above is 0.00, 0.03, 0.47, and 0.73. Pre-dict discordance stays between 0.11 and 0.15 at every size, so the exclusions arise in the edited markets. The ten HM-LB markets of Table 2 at all lie below the threshold. In the LM-HB regime, the same quantity stays between 0.22 and 0.27, and every seed receives PASS at every size.
For the 8 seeds receiving KILL, no tested both closes of the gap and retains of the surplus.
Table 11: Comparison with post-hoc baselines on the HM-LB market ( , , n = 400, 30 seeds), relative to the uncorrected system. The row for the proposed method averages the 8 seeds returning KILL; baseline rows average all 30 seeds. RLACE-style, group score standardization, and reject-option-style are simplified reimplementations.
| Method | Gap (%) | Welfare (%) | Verdict | Retrain |
|---|---|---|---|---|
| Ours (with verdict) | 85.6 | 95.0 | Yes | No |
| INLP [7] | 6.3 | 100.1 | No | No |
| RLACE-style [8] | 47.1 | 87.8 | No | No |
| Group score standardization [10] | 98.0 | 96.9 | No | No |
| Reject-option-style [12] | 25.3 | 99.0 | No | No |
At the smallest that meets the gap target, whose mean is 0.95, the method closes 85.6% of the gap and retains 95.0% of welfare. INLP closes 6.3% of the gap with 100.1% welfare retention. The RLACE-style baseline closes 47.1% with 87.8% welfare retention, group score standardization closes 98.0% with 96.9% retention, and the reject-option-style baseline closes 25.3%.
On the same 30 LM-HB seeds, group score standardization closes more of the gap than the proposed edit at comparable welfare retention. In the HM-LB regime, the proposed edit is averaged over the eight seeds receiving KILL, while baseline averages cover all 30 seeds; those means do not establish a paired method comparison. The property that distinguishes the proposed method is the pre-deployment verdict. It returned PASS on all 30 LM-HB seeds and on none of the HM-LB seeds. None of the evaluated baselines reports a verdict or a welfare-cost bound for its edit.
4.9. Synthesis
The empirical results support three findings. First, the screen agrees with the reference verdicts of the prespecified synthetic regimes. Second, the probabilistic expression has the smallest mean right-hand side among the three evaluated bounds in every regime. Third, the realistic-data scope verdict depends on both the encoder and the market. The trained encoders yield near-maximal discordance, whereas the closed-form factorization retains lower discordance and usually remains within graded scope. Tables 4, 9, and 12 provide the corresponding quantitative evidence.
5. Discussion
5.1. Interpretation of the welfare bounds
The two welfare guarantees serve distinct roles. Theorem 1 is deterministic under its stated assumptions. Theorem 2 replaces the outlier-dominated constant with a deviation term and a nonzero failure probability under the exchangeability assumption, which can yield a tighter finite-sample bound.
At the evaluated scales, the plug-in constants place the deterministic right-hand side above the feasible welfare range. The probabilistic refinement is numerically informative for 68.7% to 87.3% of the configurations within the exact scope (Section 4.3) and for 38.5% to 46.1% of the nominally vertical configurations (Section 4.4).
Bound magnitude is interpretable only jointly with the scope verdict. On the synthetic markets, mean right-hand side and mean tightness distinguish the NV regime from the two nominally vertical regimes, even where the binary informative criterion does not. On the realistic markets, magnitude tracks the market rather than the scope verdict (Section 4.7). A bound computed outside Assumption 1 carries no guarantee, whether it is large or small. Scope is therefore reported as a separate field, and magnitude serves as a continuous severity indicator only within scope.
5.2. Screen availability as a model-selection criterion
The three encoders represent common classes of production systems. A0 represents classical matrix-factorization recommenders and score-priority allocation systems, such as admissions based on standardized tests. A1 represents two-tower retrieval architectures that combine user and item towers at serving time. A2 represents graph-based recommenders that propagate information over an interaction graph. The closed-form factorization remains within graded scope for 90% to 100% of instances across the three markets, while both trained encoders are out of scope in every instance, despite using the same data, attribute, and target. These results suggest that a fairness audit may not transfer across architectures. Applying the screen to candidate representations before architecture selection would indicate whether the edit is admissible under the chosen empirical thresholds. This result can then be considered with predictive performance and latency.
5.3. Entanglement as a diagnostic rather than a gate
For the in-scope real-data cells, PASS rates are not monotonic in entanglement (Section 4.7). Proposition 1 bounds the welfare change at each edit strength , while Section 4.5 evaluates full erasure. The screen selects the smallest tested edit meeting both gap-closure and surplus-retention targets. Passing instances use partial edits that retain most of the assortative surplus. High entanglement therefore indicates that full erasure may
Table 12: Principal empirical claims and their quantitative evidence.
| Claim | Test / Metric | Key Evidence |
|---|---|---|
| Screening accuracy on labeled markets | Wilson 95% CI | 0/20 false PASS among markets with a non-PASS reference verdict; 30/30 verdicts agree with the reference regime verdict; upper 95% bound = 0.161 |
| Scope test detects sign failures | Discordance vs. rank-one share | Rank-one share 0.99 with discordance 0.99 (Law School and ENEM under A1); share 0.10 with discordance 0.47 (Ratings under A0) |
| Entanglement is associated with welfare loss | Spearman, bootstrap | ; log-log slope 0.79 (95% CI [0.64, 1.07]) |
| Residual-bound expression (Prop. 1) | Violation count; dominance check | No observed violation in 990 synthetic configurations across three regimes and 2700 real-data configurations; dominated the realized shift in every instance |
| No bound violation within the exact scope | Violation count | 0/60 exactly vertical markets violate any evaluated bound; probabilistic bound informative in 68.7% (LM-HB) and 87.3% (HM-LB) of configurations |
| Assortativity tracks discordance | Kendall , Spearman | (95% CI [0.62, 0.87]); with 1-discordance, |
| Aligned erasure costs more than random perturbation | Wilcoxon signed-rank | Cost ratio 0.19 (95% CI [0.17, 0.21]); ; rank-biserial = -1.0 |
| Two-sided erasure closes the gap faster | Wilcoxon; AUC | Residual gap 0.070 vs. 0.116/0.104; ; effect size = 1.0 |
| A PASS verdict does not imply attribute unpredictability | AUROC; bootstrap | Linear AUROC 1.000; nonlinear AUROC 0.982; difference -0.018 (95% CI [-0.048, -0.002]) |
| Retargeting is label-gated | Trend analysis | Cosine distance increased monotonically from 0 to 0.553 as label availability decreased |
| Projector is not the bottleneck | Wall-clock timing | Projector: 0.8–1.8 ms; matching: 19–531 ms at the evaluated sizes |
be costly, but it does not imply that every gap-closing partial edit is costly.
Proposition 1 also shows that entanglement alone does not determine the cost of an edit. The measurable shift scale in Equation (6) depends on and the perpendicular spread , in addition to ent. Unless representation spread is concentrated along the merit direction, entanglement alone does not determine the bound. The surplus sweep instead measures the realized cost of each candidate edit, and the verdict uses this measurement. For deployments that require full erasure rather than a target-driven partial edit, entanglement remains a directly relevant diagnostic.
5.4. Scope and limitations
The guarantees are market-design results based on order statistics, ranks, and a Lipschitz utility function. They are independent of the training loss, optimization procedure, and encoder construction. Their scope is limited to inference-time sensitivity: they neither smooth nor provide a surrogate gradient for end-to-end training through the mechanism. The locality argument in Lemma 2 applies to the rank-one perturbation in Equation (2) and does not directly cover an unconstrained multidirectional edit such as fine-tuning.
The exact guarantees require a vertical market with a common ranking criterion before and after editing. Substantially idiosyncratic preferences, as in residency matching and freelance platforms, violate this structure. The analysis also assumes a balanced, one-to-one, complete market; capacities, unmatched agents, and incomplete preference lists are outside its scope. The graded tier admits near-vertical markets through a calibrated discordance threshold but has no corresponding theorem. In that tier, the screening verdict is supported by the empirical surplus-retention sweep, which re-solves the mechanism exactly.
The intervention removes one linear mean-difference direction and does not eliminate nonlinear protected-attribute information or information distributed across several directions. The screening rule also requires estimates of utility and partner quality to evaluate surplus. Numerical use of the deterministic guarantee requires valid upper estimates of the population constants , , and . The probabilistic refinement additionally requires exchangeability of quality-gap positions relative to the displacement pattern, which may fail for data-derived quality ladders.
Within this scope, Theorems 1 and 2 bound the welfare effect of editing the output of a trained encoder, and Proposition 1 identifies the measurable quantities that control the cost. The screening rule connects these analytical conditions to the exact output of the allocation mechanism and separates exact-tier guarantees from graded empirical decisions.
6. Conclusion and future work
We studied whether an inference-time edit can attenuate the influence of a protected attribute on learned two-sided matching without retraining and with a cost that can be checked before deployment. For markets that remain vertically ordered before and after the edit, the welfare change caused by a closed-form projector is bounded by the edit-induced appeal shift and an explicit finite-sample and outlier remainder (Theorem 1). Under an additional exchangeability assumption, a probabilistic refinement improves finite-sample tightness by several orders of magnitude (Theorem 2). These results underlie a three-outcome screening rule. On 30 controlled synthetic markets, the screen agrees with every pre-specified regime verdict, with no observed false PASS. On exactly vertical synthetic markets, no evaluated bound is violated, and the probabilistic bound is informative in 69% to 87% of configurations. Across 270 instances from three realistic markets, the closed-form factorization remains within graded scope in at least 90% of instances, whereas both trained encoders are out of scope in every instance. The realistic markets do not reach the exact tier, so their evaluations are stress tests. On such markets the screen supports model-selection and retraining audits under the graded criterion.
Future work should first tighten the constants or develop high-probability surrogates for the supremum estimates in Proposition 1. A second direction is to generalize Theorems 1 and 2 beyond rank-one edits and derive an analytical guarantee for the rank- variant. A third direction is to identify weaker structural assumptions that support closed-form bounds in markets with idiosyncratic preferences, such as residency matching. Finally, the observed dependence on encoder architecture motivates training objectives that preserve a common ranking by construction. Such objectives could make screen compatibility a model-design constraint rather than only a post-training diagnostic.
Declaration of competing interest
The author declares no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Data availability
The law-school market is built from the LSAC National Longitudinal Bar Passage Study [28], which is available from the Law School Admission Council under its own access conditions. The national-exam market is built from the public ENEM microdata [29]. The ratings market is built from the public Speed Dating experiment data [30]. No new data were collected for this study. Every market used here can be reproduced from the cited sources and the seed values recorded in the configuration files. These files will be made publicly available upon publication.
Code availability
The implementation, the configuration files, and the raw result files supporting all reported values will be made publicly available in an archival repository upon publication.
Declaration of generative AI and AI-assisted technologies in the writing process
During the preparation of this work, the author used Grammarly and Paperpal to improve language clarity and readability. After using these tools, the authors reviewed and edited the content as needed and takes full responsibility for the content of the published article.
References
[1] A. E. Roth, Deferred acceptance algorithms: history, theory, practice, and open questions, International Journal of Game Theory 36 (3-4) (2008) 537–569. doi:10.1007/s00182-008-0117-6.
[2] European Parliament and Council of the European Union, Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence (Artificial Intelligence Act), Official Journal of the European Union, L 2024/1689, 12 July 2024. http://data.europa.eu/eli/reg/2024/1689/oj (2024).
[3] Students for Fair Admissions, Inc. v. President and Fellows of Harvard College, 600 U.S. 181, Supreme Court of the United States, decided June 29, 2023 (2023).
URL https://www.supremecourt.gov/opinions/22pdf/20-1199_hgdj.pdf
[4] B. Acun, M. Murphy, X. Wang, J. Nie, C.-J. Wu, K. Hazelwood, Understanding Training Efficiency of Deep Learning Recommendation
Models at Scale, in: 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA), IEEE Computer Society, Los Alamitos, CA, USA, 2021, pp. 802–814. doi:10.1109/HPCA51647.2021.00072. URL https://doi.ieeecomputersociety.org/10.1109/HPCA51647.2021.00072
[5] R. Ying, R. He, K. Chen, P. Eksombatchai, W. L. Hamilton, J. Leskovec, Graph convolutional neural networks for web-scale recommender systems, in: Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '18, Association for Computing Machinery, New York, NY, USA, 2018, p. 974–983. doi:10.1145/3219819.3219890. URL https://doi.org/10.1145/3219819.3219890
[6] T. Bolukbasi, K.-W. Chang, J. Zou, V. Saligrama, A. Kalai, Man is to computer programmer as woman is to homemaker? debiasing word embeddings, in: Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS'16, Curran Associates Inc., Red Hook, NY, USA, 2016, p. 4356–4364.
[7] S. Ravfogel, Y. Elazar, H. Gonen, M. Twiton, Y. Goldberg, Null it out: Guarding protected attributes by iterative nullspace projection, in: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL), 2020, pp. 7237–7256. doi:10.18653/v1/2020.acl-main.647.
[8] S. Ravfogel, M. Twiton, Y. Goldberg, R. Cotterell, Linear adversarial concept erasure, in: Proceedings of the 39th International Conference on Machine Learning (ICML), Vol. 162, 2022, pp. 18400–18421.
[9] N. Belrose, D. Schneider-Joseph, S. Ravfogel, R. Cotterell, E. Raff, S. Biderman, LEACE: Perfect linear concept erasure in closed form, in: Advances in Neural Information Processing Systems 36 (NeurIPS 2023), New Orleans, LA, USA, 2023.
[10] M. Hardt, E. Price, N. Srebro, Equality of opportunity in supervised learning, in: Advances in Neural Information Processing Systems 29 (NeurIPS 2016), 2016, pp. 3323–3331.
[11] G. Pleiss, M. Raghavan, F. Wu, J. Kleinberg, K. Q. Weinberger, On fairness and calibration, in: Proceedings of the 31st International Conference on
Neural Information Processing Systems, NIPS'17, Curran Associates Inc., Red Hook, NY, USA, 2017, p. 5684–5693.
[12] F. Kamiran, A. Karim, X. Zhang, Decision theory for discrimination-aware classification, in: 2012 IEEE 12th International Conference on Data Mining (ICDM), 2012, pp. 924–929. doi:10.1109/ICDM.2012.45.
[13] M. Zehlike, F. Bonchi, C. Castillo, S. Hajian, M. Megahed, R. Baeza-Yates, FA*IR: A fair top-k ranking algorithm, in: Proceedings of the 2017 ACM on Conference on Information and Knowledge Management (CIKM '17), 2017, pp. 1569–1578. doi:10.1145/3132847.3132938.
[14] A. Singh, T. Joachims, Fairness of exposure in rankings, in: Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '18, Association for Computing Machinery, New York, NY, USA, 2018, p. 2219–2228. doi:10.1145/3219819.3220088. URL https://doi.org/10.1145/3219819.3220088
[15] M. Du, S. Mukherjee, G. Wang, R. Tang, A. H. Awadallah, X. Hu, Fairness via representation neutralization (2021). arXiv:2106.12674. URL https://arxiv.org/abs/2106.12674
[16] R. Zemel, Y. Wu, K. Swersky, T. Pitassi, C. Dwork, Learning fair representations, in: S. Dasgupta, D. McAllester (Eds.), Proceedings of the 30th International Conference on Machine Learning, Vol. 28 of Proceedings of Machine Learning Research, PMLR, Atlanta, Georgia, USA, 2013, pp. 325–333. URL https://proceedings.mlr.press/v28/zemel13.html
[17] S. Yao, B. Huang, Beyond parity: fairness objectives for collaborative filtering, in: Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, Curran Associates Inc., Red Hook, NY, USA, 2017, p. 2925–2934.
[18] C. Wu, F. Wu, X. Wang, Y. Huang, X. Xie, Fairness-aware news recommendation with decomposed adversarial learning, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35, 2021, pp. 4462–4469.
[19] A. Singh, T. Joachims, Policy learning for fairness in ranking, Curran Associates Inc., Red Hook, NY, USA, 2019.
[20] L. Wu, L. Chen, P. Shao, R. Hong, X. Wang, M. Wang, Learning fair representations for recommendation: A graph-based perspective, in: Proceedings of the Web Conference 2021 (WWW '21), 2021, pp. 2198–2208. doi:10.1145/3442381.3450015.
[21] Y. Kamada, F. Kojima, Efficient matching under distributional constraints: Theory and applications, American Economic Review 105 (1) (2015) 67–99. doi:10.1257/aer.20101552. URL https://www.aeaweb.org/articles?id=10.1257/aer.20101552
[22] F. Kojima, School choice: Impossibilities for affirmative action, Games and Economic Behavior 75 (2) (2012) 685–693. doi:10.1016/j.geb.2012.03.003. URL https://www.sciencedirect.com/science/article/pii/S0899825612000437
[23] I. E. Hafalir, M. B. Yenmez, M. A. Yildirim, Effective affirmative action in school choice, Theoretical Economics 8 (2) (2013) 325–363. arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.3982/TE1135, doi:10.3982/TE1135. URL https://onlinelibrary.wiley.com/doi/abs/10.3982/TE1135
[24] D. Gale, L. S. Shapley, College admissions and the stability of marriage, American Mathematical Monthly 69 (1) (1962) 9–15. doi:10.2307/2312726.
[25] A. Abdulkadiroğlu, T. Sönmez, School choice: A mechanism design approach, American Economic Review 93 (3) (2003) 729–747. doi:10.1257/000282803322157061. URL https://www.aeaweb.org/articles?id=10.1257/000282803322157061
[26] A. E. Roth, M. A. O. Sotomayor, Two-Sided Matching: A Study in Game-Theoretic Modeling and Analysis, Econometric Society Monographs, Cambridge University Press, Cambridge, UK, 1990.
[27] S. S. Ravindranath, Z. Feng, S. Li, J. Ma, S. D. Kominers, D. C. Parkes, Deep learning for two-sided matching (2023). arXiv:2107.03427. URL https://arxiv.org/abs/2107.03427
[28] L. F. Wightman, LSAC national longitudinal bar passage study, LSAC Research Report Series, Law School Admission Council (1998).
[29] Instituto Nacional de Estudos e Pesquisas Educacionais Anísio Teixeira (INEP), Microdados do exame nacional do ensino médio (ENEM), Ministério da Educação, Brasília (2023). URL https://www.gov.br/inep/pt-br/acoes-a-informacao/dados-abertos/microdados
[30] R. Fisman, S. S. Iyengar, E. Kamenica, I. Simonson, Gender differences in mate selection: Evidence from a speed dating experiment, The Quarterly Journal of Economics 121 (2) (2006) 673–697. doi:10.1162/qjec.2006.121.2.673.
[31] S. Rendle, C. Freudenthaler, Z. Gantner, L. Schmidt-Thieme, BPR: Bayesian personalized ranking from implicit feedback, in: Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence (UAI '09), 2009, pp. 452–461.
[32] X. He, K. Deng, X. Wang, Y. Li, Y. Zhang, M. Wang, LightGCN: Simplifying and powering graph convolution network for recommendation, in: Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR '20), 2020, pp. 639–648. doi:10.1145/3397271.3401063.
[33] D. P. Kingma, J. Ba, Adam: A method for stochastic optimization, in: 3rd International Conference on Learning Representations (ICLR), 2015.