Skip to content

Rank Graduation metrics for algorithmic fairnessA Rank Graduation metric for Algorithmic fairness

Paper Tracker· arXiv:2609.39025· Dalia Atif, Paolo Giudici·Indexed by this site · 2026-10-04· Originally publishedAlignment

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

Atif and Giudici propose RGF; in the 90:10 simulation the descriptive fairness comparison reverses, and all four models on HMDA reject the null hypothesis.

Questions
Fairness in algorithmic decisions such as credit is often at the group level and depends on the classification threshold, so it does not show where errors fall across individuals or which features they are associated with. The authors argue that regulatory settings require auditable simultaneous examination of accuracy, fairness, and interpretability.
Methods
Protected attributes do not enter training. Group cumulative curves are constructed with uniform completion ordered by merged errors, defining RGF and AURGF; a centered Cramer–von Mises permutation test corrects for group proportions; then features are removed and the model re-estimated to observe changes in fairness scores and tests.
Experiments and results
Under simulated 90:10 imbalance, the unfair case actually has higher RGF, and the permutation test rejects the null only in that case. On HMDA, all four models have p = 0.0005; after balancing the sample the ordering changes, but the null is still rejected.
Limitations and future work
The paper has no dedicated limitations section. The conclusion says future work could extend to admissions, job applicant ranking, medical diagnosis, cyberattack detection, and judicial decision-making. Experiments use four classifiers, n=5000 simulations, and the 2017 New York HMDA data, including 90.63%/9.37% imbalance and undersampling to balance.
Experimental setupLogistic regression、Random forest et al. · simulated binary classification (n=5,000)、HMDA 2017 New York State mortgage applications · RGF、RGD et al.
Evaluated models
Logistic regressionRandom forestGradient boostingMultilayer perceptron (MLP)
Benchmarks
simulated binary classification (n=5,000)HMDA 2017 New York State mortgage applications
Metrics
RGFRGDAURGFcentered Cramér–von Mises statisticpermutation p-valueROC-AUCPR-AUCMAEFCrSPDDIEODFPR differencePPD
AI summaryThe paper proposes a rank-based fairness evaluation framework that links fairness evaluation to predictive accuracy and interpretability through the distribution of model prediction errors, including Rank Graduation Fairness (RGF), its integral metric AURGF, a centered Cramer–von Mises permutation test, and a feature removal procedure for fairness explanation. Evaluated on logistic regression, random forest, gradient boosting, and multilayer perceptron, simulation studies show that protected group imbalance can reverse descriptive fairness comparisons, while the proposed inference procedure correctly distinguishes fair from unfair mechanisms. Applied to HMDA mortgage data, model rankings differ from classical fairness criteria, the fairness null hypothesis is rejected for all four models, and tree models give the best combination of predictive accuracy and rank fairness.

The paper proposes a rank-based fairness evaluation framework that links fairness evaluation to predictive accuracy and interpretability through the distribution of model prediction errors, including Rank Graduation Fairness (RGF), its integral metric AURGF, a centered Cramer–von Mises permutation test, and a feature removal procedure for fairness explanation. Evaluated on logistic regression, random forest, gradient boosting, and multilayer perceptron, simulation studies show that protected group imbalance can reverse descriptive fairness comparisons, while the proposed inference procedure correctly distinguishes fair from unfair mechanisms. Applied to HMDA mortgage data, model rankings differ from classical fairness criteria, the fairness null hypothesis is rejected for all four models, and tree models give the best combination of predictive accuracy and rank fairness.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Group parity depends on the threshold; this paper instead evaluates fairness using the ranked distribution of prediction errors.

    Group parity first turns probability scores into approval or denial, tying them to a particular threshold, and it does not show where the error burden falls across individuals or which variables it is associated with.

    • Scenario: The authors say scores in credit, admissions, and job candidate ranking affect opportunities, pricing, and processes; credit outputs also undergo institutional and regulatory review, so predictive accuracy alone is not enough.
    • Existing metrics: The authors summarize independence, separation, sufficiency following Kozodoi et al. (2022). These metrics mostly compare groups after a classification threshold (Garg et al., 2020). The authors say the object of diagnosis is therefore the model plus the decision rule; when the threshold changes, the fairness conclusion can change, and the severity of probability miscalibration is lost.
    • Evaluation target: The authors ask not only whether groups receive similar decisions, but whether the burden of prediction error is comparable across groups. Probability scores are used for risk, ranking, pricing, and internal monitoring before the final denial decision.
    • Indirect disparity: The authors say loan features, income, collateral, and neighborhood indicators may carry information related to race or ethnicity; group differences can still appear without training on protected attributes.
    • What this paper proposes: Rank Graduation Fairness (RGF) and its integral AURGF, a centered Cramer–von Mises permutation test, and fairness interpretability through feature removal. The evaluation uses observed outcomes, scores, and group membership; the authors say they make no counterfactual discrimination claims (Castelnovo et al., 2022).
  2. What related research exists?

    The authors position this paper as addressing the fairness metric not yet formalized in SAFE AI.

    The authors position this paper at the intersection of SAFE AI ranking metrics, prediction explanation, and credit fairness auditing, using error ranking to make fairness a metric comparable to accuracy.

    Credit scoring fairness

    • Bono et al. (2021): Compared logistic scorecards and ensemble models on large UK credit data. The paper reports their results: machine learning improves predictive accuracy without systematically worsening fairness for protected and sensitive subgroups; subgroup differences do not necessarily come directly from model complexity, but may also reflect data structure and risk prediction mechanisms.
    • Kozodoi et al. (2022): Evaluated fairness criteria and mitigation strategies in profit-oriented credit models. The paper reports that this work views separation as particularly relevant to credit because the costs of false approvals and false rejections are asymmetric; mitigation is framed as a decision problem constrained by profitability and regulatory acceptability.
    • Hurlin et al. (2026): Proposed statistical tests for fairness hypotheses and used Fairness Partial Dependence Plots to identify variables associated with rejecting the fairness hypothesis. The paper reports: removing variables and re-estimating does not necessarily restore fairness, and related variables can substitute for removed features; that work distinguishes reestimation from feature neutralization.

    Fairness explanation

    • Agarwal et al. (2023): Used HMDA with Global Shapley Values and Shapley-Lorenz to examine whether lending models rely on applicant race when predicting denial. The paper reports their contribution as using XAI to support ethical model selection, finding Random Forest fairer than logistic regression.
    • Babaei et al. (2025a): The paper reports that Shapley-based aggregate diagnostics can mask conditional unfairness; race has limited impact in the full sample but greater impact in large loans, which the paper calls Simpson's paradox. This is not fully consistent with Agarwal et al. (2023) on HMDA: both find unfairness for high loan amounts, and Random Forest becomes fairer at the aggregate level. The paper says this makes it necessary to clarify which individuals and features the unfairness appears on.

    Prediction explanation tools

    • Shapley, local surrogates, and counterfactuals: Lundberg and Lee (2017), Ribeiro et al. (2016), Wachter et al. (2017), and feature removal in Giudici and Kolesnikov (2026), are used to identify variables driving predictions. The authors say these tools themselves do not answer which variables are associated with the emergence of unfairness or which individuals are most affected.

    SAFE AI ranking metrics

    • Giudici and Raffinetti (2023): Argue that financial AI should use statistical metrics such as sustainability, accuracy, fairness, and interpretability to assess trustworthiness, rather than relying only on regulatory principles.
    • Giudici and Raffinetti (2025): Proposed Rank Graduation Accuracy (RGA), which generalizes AUROC to ordinal and continuous responses based on agreement between predicted and observed ranks.
    • Giudici and Kolesnikov (2026): Proposed AURGA, AURGR, AURGE, and aggregated them into a compliance score. The paper says fairness is still less formalized within the rank-graduation framework.

    Baselines and data

    • Comparison metrics and models: Section 4.4 computes SPD, DI, EOD, FPR difference, PPD on the original imbalanced HMDA. The compared models are logistic regression, random forest, gradient boosting, multilayer perceptron. Data are controlled simulations and HMDA.

    The authors say existing SAFE AI metrics already cover accuracy, robustness, and interpretability; what this paper adds is fairness: looking at where prediction errors concentrate across protected groups and whether available features can explain that concentration. The evaluation is observational and makes no counterfactual discrimination claims.

  3. How does the paper address this problem?

    RGF compares group cumulative error curves and uses centered permutation tests and feature removal for inference and interpretation.

    Rank Graduation Fairness (RGF) defines fairness as: when sorted by merged prediction error, the cumulative error curves of protected groups do not systematically separate; it then applies permutation tests, AURGF, and feature removal.

    Setting and Error Burden

    • Samples: The evaluation sample is D={(x_i, y_i, g_i)}. x_i are covariates, y_i is a 0/1 outcome, and g_i is the protected group. In credit applications, y_i=1 means loan denial, 0 means approval. g is not used in training, only in auditing.
    • Scores and burden: The classifier gives p̂_i=P(Y_i=1|x_i). The burden is z_i=ℓ(y_i, p̂_i), where ℓ is a non-negative loss. The framework allows absolute error and squared error; the experiments use absolute error |y_i−p̂_i|. The larger z is, the more severe the probability misestimation.
    • Scope: The authors state that only observed outcomes, scores, and group membership are used, with no counterfactual claims about discrimination. When there are more than two groups, the metrics and tests are averaged over unordered pairs.

    Cumulative Curves and RGF

    • Sorting and ties: Observations are sorted by error burden from smallest to largest. Ties are treated as tie blocks, and within a block the burden is evenly distributed across observations before drawing group curves, so that the metric does not change with tie order.
    • Curves: t_k=k/n. The global curve L_z uses the first k errors divided by the total error; the dual curve accumulates backward from the largest error. The raw curve for group g accumulates only errors belonging to g, still divided by the total error of the full sample, and ends at the group share s_g rather than 1.
    • Uniform completion: The 1−s_g is spread uniformly over the rank grid, so that each group curve goes from 0 to 1. The authors state that errors not attributed to the group carry no rank information, and uniform allocation is a neutral baseline that avoids treating group share differences as ranking differences.
    • Score: RGFgh=1−∑k|Ẽg(tk)−Ẽh(tk)|/∑k|Lcz(tk)−Lz(tk)|. The numerator is the absolute distance between the two completed curves, and the denominator is the Gini-type distance between the global error curve and its dual. The authors state that when the numerator does not exceed the denominator, RGF is between 0 and 1; higher values mean the cumulative burdens of the two groups are more similar. When |G|>2, the RGD is averaged over all unordered pairs, and RGF=1−RGD.

    Centered Permutation Test

    • Centering: μgh(tk)=(πg−πh)[Lz(tk)−tk], where π_g=n_g/n. It is the expected difference between the two completed curves under exchangeability and given the sorted errors. When the proportions are equal, this difference is 0; when unbalanced and L_z(t_k)≠t_k, it can be nonzero. The test subtracts μ_gh from the curve difference.
    • Statistic: The sum of squared centered differences over all rank points is the Cramér–von Mises statistic. Since the two curves come from the same sorting, the authors state that the usual CvM reference distribution (Curry et al., 2019) is not appropriate.
    • Permutation: Group sample sizes are kept fixed, and protected labels are permuted. p=(1+number of times the observed statistic is met or exceeded)/(B+1) (Phipson and Smyth, 2016). For multiple groups, the average of pairwise centered statistics is used. Appendix A gives the exact randomization distribution; the Monte Carlo p cannot be 0, and equal statistics are counted as equally extreme, which the authors state is therefore conservative, and they write that under finite samples Pr(p≤α)≤α.

    AURGF

    • Local recomputation: For q∈(0,1], only the proportion q of observations with the largest error burden is kept, and RGF(q) is recomputed within that subset using the same completed curves. Figure 2 is a conceptual diagram, with the horizontal axis as the top-burden fraction q, the vertical axis as RGF(q), and labels for High, Moderate, Low fairness, RGF(1), and AURGF.
    • Area: AURGF is the integral of RGF(q) from qmin to 1, divided by 1−qmin; empirically it uses the trapezoidal rule. qmin is the smallest retained fraction at which every audited group appears and the minimum group size is met. The paper does not give a numerical value for that minimum group size.
    • Reading: The authors state that a high AURGF means the groups' predictive reliability remains comparable across burden levels; a lower value means fairness worsens in some regions of the distribution, especially at the largest errors.

    Feature Removal

    • Steps: The full model is trained with all permissible features, giving RGF_full and the permutation p. For each feature X_r, it is removed and the model is re-estimated, and RGF and p are recomputed with the new errors.
    • Contribution: ΔRGF_r=RGF_{−X_r}−RGF_full. A positive value means the fairness score increases after removal. For positive changes, FCr is divided by 1−RGF_full; for negative changes, by RGF_full, giving a range of −1 to 1. The authors state that positive values are associated with amplifying group differences, negative values may mitigate differences, and values near 0 indicate limited impact; no causal interpretation is made.
    • Reading with the test: If fairness increases after removal and the permutation test no longer rejects, the authors state that the reduced model has weaker evidence of group error concentration; if fairness decreases or still rejects, removal did not eliminate the observed difference. The number of permutations in the experiments is given in Question 4.
  4. What experiments did the paper conduct?

    In the simulation, descriptive RGF reverses under 90:10, and on HMDA all four models reject the fairness null.

    Experimental setup

    • Models: logistic regression, random forest, gradient boosting, multilayer perceptron. Tuned separately on imbalanced HMDA and undersampled balanced samples; the authors say the balanced configuration is not transferred from the full-sample model. Specific hyperparameters are in Section 4.2 and 4.3. The MLP on the imbalanced sample is single hidden layer 128, ReLU; on the balanced sample it is 128-64-32, tanh.
    • Simulation: n=5,000, R_i~Bernoulli(0.10), independent of covariates and not entering the outcome equation. Five continuous and three categorical covariates are mutually independent, identically distributed across the two groups. The simulation section defines the binary response as whether a loan request is accepted, with identical conditional processes in both groups; the methods section defines y=1 in a credit application as denial. 70%/30% stratified jointly by group and outcome. The fair scenario retains the original probabilities; the unfair scenario adds independent N(0, 2.20^2) noise to the logit only for the minority group, leaving the majority group predictions unchanged. The burden is absolute probability error.
    • HMDA: 446,902 applications in New York State in 2017. applicant race 1 is binary, majority 90.63%, minority 9.37%. The target action taken indicates whether the application was denied, about 18.37% denied. 5 categorical and 8 continuous covariates; race does not enter the model. 70%–30% stratified jointly by action taken and applicant race 1. Continuous variables standardized, categorical variables one-hot encoded.
    • Balanced setting: Majority group undersampled without replacement to the same size as the minority group, fixed seed. After that, negative class 75.83%, positive class 24.17%; denial rate changes from 18.37% to 24.17%. The authors say the outcome variable was not directly resampled; the prevalence change comes from the association between group and target.
    • Metrics and repetitions: RGD, RGF, AURGF, centered CvM-T, permutation p. The 95% interval for RGF comes from 2,000 group-stratified bootstrap resamples; p comes from 2,000 label permutations at the holdout group size. Prediction metrics are ROC-AUC, PR-AUC; the simulation additionally reports group MAE. Classical metrics are SPD, DI, EOD, FPR difference, PPD. The paper does not state the classification threshold for Table 6.
    • Explanation experiment: On the imbalanced sample, features are removed one at a time and the model re-estimated. In Table 3 and Table 4, only the 5 features with the largest |FCr| are listed for each model.

    Main results

    According to Table 2, original imbalanced HMDA, burden is absolute probability error.

    Swipe horizontally to read the table

    ModelROC-AUCPR-AUCRGFAURGFp
    logistic regression0.67940.31980.66300.52230.0005
    random forest0.73480.42130.67050.72160.0005
    gradient boosting0.73640.42320.65730.54540.0005
    MLP0.73030.41080.65590.54880.0005
    • Authors' interpretation: The authors say gradient boosting and random forest have stronger predictive performance than the other two models; random forest has the lowest centered CvM-T at 19.4222, but this should not be taken to mean it is fair, because all four models reject the null hypothesis at the 5% level.
    • Comparison with the abstract: The abstract says tree models, not logistic regression, give the strongest combination of accuracy and rank-based fairness. In Table 2, the highest AURGF is random forest; gradient boosting's AURGF is lower than MLP's.
    • Comparison with existing HMDA studies: The authors say the results are consistent with Babaei et al. (2025a) and differ from Agarwal et al. (2023); here the null rejection comes from permutation inference, not just descriptive scores. The authors say that because of the imbalanced group proportions, descriptive RGF and AURGF should be read together with the permutation test.

    Descriptive reversal in the simulation

    • Comparison: On the same test sample, the fair scenario has no group intervention, and the unfair scenario only adds variation to minority group predictions. In Table 1, RGF is higher in the unfair scenario for all four models: logistic regression 0.7175 versus 0.5862 in the fair scenario, random forest 0.6977 versus 0.5849, gradient boosting 0.6846 versus 0.5788, MLP 0.7996 versus 0.6049. AURGF is also higher in the unfair scenario.
    • Tests: In the fair scenario, p is 0.6952, 0.6177, 0.5287, 0.7946, none rejected at 5%. In the unfair scenario, p is 0.0009, 0.0005, 0.0070, 0.0005, all rejected. In the unfair scenario, minority group MAE is 0.110005, 0.112069, 0.096404, 0.369214; majority group MAE is the same as in the fair scenario.
    • Authors' interpretation: The authors say the increase in RGF cannot be interpreted as the perturbation improving fairness; rather, the descriptive score is sensitive to the 90:10 proportion. After the centered CvM removes the curve separation caused by the proportion under exchangeability, the authors say the two mechanisms can be distinguished. The authors say classical group fairness metrics are also sensitive to group proportions (Brzezinski et al., 2024).

    Balanced sample and classical metrics

    • After undersampling: In Table 5, gradient boosting has ROC-AUC 0.7327, PR-AUC 0.4903, RGF 0.8256, AURGF 0.6790, all highest among the four models. Random forest has RGF 0.7877 and AURGF 0.5492. The p for all four models is still 0.0005. The lowest centered CvM-T is still random forest (28.0435), not gradient boosting (65.3432).
    • Authors' interpretation: The authors say approvals are more frequent in the majority group; undersampling lowers the approval share, changing the denial rate from 18.37% to 24.17%, which makes RGF and AURGF easier to interpret; this is consistent with the simulation result that imbalance distorts descriptive metrics. The permutation test still rejects the null hypothesis.
    • Classical metrics: In Table 6 on the original imbalanced sample, logistic regression has the smallest SPD, EOD, FPR difference, PPD at 0.0150, 0.0203, 0.0118, 0.0093, but its PR-AUC is also the lowest (Table 2). Random forest has the lowest DI at 1.6852 and SPD 0.2071. The authors say these signals conflict and cannot support a conclusive fairness evaluation of HMDA. The authors say the permutation test rejects the null hypothesis for all four classifiers, so the unfairness here does not depend on the model considered.

    Feature removal

    • loan purpose: |FCr| is largest and positive for all four models. ΔRGF for logistic regression, random forest, gradient boosting, MLP is 0.0268, 0.0834, 0.0127, 0.0172, and FCr is 0.0796, 0.2530, 0.0371, 0.0499 (Table 3). The reduced models still have p = 0.0005.
    • Accuracy cost: In Table 4, removing loan purpose gives ΔROC-AUC of −0.0757, −0.0538, −0.0513, −0.0555 and ΔPR-AUC of −0.0560, −0.0458, −0.0410, −0.0472. The authors say this variable gives the largest fairness gain but also has a high removal cost.
    • Other features: Effects are smaller and vary by model. For logistic regression, removing co applicant sex gives ΔRGF 0.0012 and ΔROC-AUC −0.0033; the authors say its removal cost is negligible. Removing minority population makes FCr negative for the first three models (−0.0044, −0.0227, −0.0015) and positive for MLP (0.0061). The authors say a descriptive fairness increase cannot be taken as evidence that the disparity has been eliminated.

    Other ablations and analyses

    • The unfair-scenario AURGF labeled in Figure 3 is the same as in Table 1. In the gradient boosting panel text, p=0.007 at q=0.1, 0.372 at q=0.2, 0.144 at q=0.3, p≤0.021 from q=0.4 onward, and 0.007 at q=1.0. The authors say its significance only appears after retaining a larger proportion.
    • The authors say some RGF curves for random forest jump because tie blocks with identical absolute errors are retained as whole blocks; this does not change the metric definition (Section 4.1).
    • Figure 4: The authors say RGF for all four models is lowest at the most severe errors and rises as less extreme observations are included. The labeled AURGF values are the same as in Table 2; random forest is labeled p=0.005 at q=0.1. The two-column text is interleaved, and the remaining quantile points are not transcribed point by point.
    • qmin: In Table 2, logistic regression is 0.0200 and the others 0.0100; in Table 5, all four models are 0.0101. Appendix A states that the minimum Monte Carlo permutation p is 1/(B+1), with B=2,000 in the experiments.
  5. What are some points that can be further explored?

    The authors only state extension to decision scenarios beyond credit and do not include a dedicated limitations section.

    Limitations and future directions noted by the authors

    The paper has no dedicated Limitations section. In Section 5, the only explicitly stated future work is cross-domain application.

    • Other decision scenarios (Section 5): The authors say the method could also be used for admissions, job candidate ranking, medical diagnosis, cyberattack detection, and judicial decisions, and future work could extend the application to these areas.

    Experimental coverage

    • The tested models are logistic regression, random forest, gradient boosting, multilayer perceptron, 4 in total; tuned separately on imbalanced and balanced HMDA (Section 4.2, 4.3).
    • Simulation n=5,000, group Bernoulli(0.10), with fair and unfair scenarios; RGF intervals and p-values each use 2,000 resamples (Section 4.1, Table 1).
    • HMDA is 446,902 applications in New York State in 2017, applicant race 1 binary (90.63%/9.37%), action taken about 18.37% denied; there is also a setting with majority undersampled to equal size (Section 4.2, 4.3, Table 5).
    • The audited burden is absolute probability error. Feature removal is done on the imbalanced sample, with the 5 features with the largest |FCr| reported per model (Table 3). Classical metric comparisons are on the original imbalanced sample (Table 6); the paper does not state the classification threshold for these metrics.
    • The methods section writes multi-group pairwise comparisons and squared error, while the experiments report binary groups and absolute error. The paper does not report the number of model training repetitions. The number of permutations is B=2,000, and Appendix A gives the minimum p as 1/(B+1).
  6. Summarize the main content of the paper

    Using error ranking, permutation tests, and feature removal to evaluate credit fairness, all four models on HMDA reject the null hypothesis.

    Using the ranked distribution of prediction errors, permutation tests, and feature removal, evaluate the fairness of credit models across protected groups.

    • Problem: Group parity depends on the threshold and does not show which individuals have heavier errors or which features are associated with the disparity. Protected attributes do not enter training and are used only for post-hoc auditing; the authors say the evaluation is observational.
    • Method: RGF compares group cumulative error curves after uniform completion; AURGF integrates over the proportion of largest errors; a centered Cramer–von Mises permutation test removes the expected separation caused by group proportions alone; removing features and re-estimating gives FCr.
    • Simulation: n=5,000, expected proportion 90:10. RGF is higher in the unfair scenario than in the fair scenario for all four models, for example logistic regression 0.7175 versus 0.5862 (Table 1). The permutation test does not reject in the fair scenario and rejects in the unfair scenario. The authors say descriptive scores are affected by group proportions, and the inference procedure can separate the two mechanisms.
    • HMDA: 446,902 applications in New York State in 2017, race proportion 90.63%/9.37%. In Table 2, gradient boosting has ROC-AUC 0.7364, random forest has AURGF 0.7216, and p is 0.0005 for all four models; gradient boosting's AURGF 0.5454 is lower than MLP's 0.5488. After undersampling to balance, gradient boosting has RGF 0.8256 and AURGF 0.6790 (Table 5), with p still 0.0005.
    • Interpretation and authors' conclusions: Removing loan purpose gives the largest fairness gain, with random forest FCr 0.2530, but p is still 0.0005 and ΔROC-AUC is −0.0538 (Table 3, Table 4). The authors say the unfairness is not specific to any one algorithm or any one predictor variable, but is related to group differences embedded in the features of the loan data; descriptive improvements cannot replace inference. The authors also say the method can be extended to other algorithmic decisions, and future work could pursue these applications.
Read originalarxiv.org