Work

A fairness-aware TabTransformer framework for credit scoring with high-cardinality regional bias

Year: 2026
Type: article
Abstract: This study examines whether fairness constraints must come at the expense of performance in credit risk models. We introduce a deep learning framework rooted in the TabTransformer architecture, integrating a Normalized Covariance Penalty into the loss function to mitigate regional bias over a high-cardinality sensitive attribute, the 27 Brazilian states. A real-world mortgage dataset of 1,529,211 contracts, under a strict unawareness-at-inference protocol and calibrated using Platt scaling, is benchmarked against industry standards and against fairness-aware alternatives from the pre-, in-, and post-processing families. The fairness-constrained model achieved an AUC of 0.751, above its unconstrained counterpart (0.745; DeLong p < 0.001) and Random Forest (0.735), while reducing the maximum True Positive Rate (TPR) gap across states to 0.445, against 0.499 for XGBoost, and reaching the lowest Demographic Parity difference among all evaluated models. XGBoost retains a statistically significant advantage in raw discrimination (ΔAUC = 0.013 ); among models that keep inference blind to the regional attribute, however, the proposed framework offers the most favorable fairness–performance profile and dominates the equity-constrained region of the empirical Pareto frontier. A decomposition across the 27 states shows that the penalty compresses the regional TPR distribution in both directions, raising the mean TPR of the three worst-served states, and a leakage audit confirms a measurable reduction in the regional information carried by the scores. Sensitivity analyses over the penalty weight and training seeds, module ablations, and replications on public credit datasets support the robustness of these findings.
Language: English
Open Access status: hybrid
Estimated APC paid: $3,500
Award: G22113365
OpenAlex ID: W7130351920
FWCI:
Cites: 34
Cited by:
Related to: 10