Abstract
In the financial sector, the adoption of advanced machine learning (ML) models for credit scoring has been hindered by the "black-box" nature of these algorithms. Regulatory frameworks like the Basel Accords and GDPR mandate transparency and interpretability, which traditional models like Logistic Regression provide at the cost of predictive accuracy. This paper explores the application of Explainable Artificial Intelligence (XAI) methods to bridge this performance-transparency gap. Utilizing a massive dataset from the Polish Credit Bureau (BIK), the study demonstrates that Gradient Boosting Machines (GBM) can outperform traditional methods while remaining fully interpretable through model-agnostic XAI tools. The findings suggest that XAI not only satisfies regulatory requirements but also provides actionable insights for both lenders and borrowers.
Introduction
Credit scoring is a fundamental process in the banking industry, used to predict the probability of default for potential borrowers. For decades, the industry has relied on "glass-box" models—primarily Logistic Regression—because their decision-making processes are easily explained to regulators and customers. However, the rise of ensemble machine learning techniques, such as Random Forests and Gradient Boosting, has introduced a dilemma: while these models offer significantly higher predictive accuracy, their internal logic is often too complex for human interpretation.
This lack of transparency creates a significant barrier to adoption in highly regulated environments. This research addresses the "performance-transparency trade-off" by applying a suite of XAI techniques to modern ML models, proving that high-performance algorithms can be made sufficiently transparent for real-world financial applications.
Methodology
Models Evaluated
The researchers conducted a comparative analysis between traditional statistical methods and modern ensemble algorithms:
- Traditional Models: Logistic Regression and Logistic Regression with Weight of Evidence (WOE) transformations.
- Modern ML Models: Random Forest (RF), Gradient Boosting Machines (GBM), and Extreme Gradient Boosting (XGBoost).
XAI Framework
To interpret the complex models, the study employed four specific model-agnostic XAI tools:
- Permutation Feature Importance (PFI): Used to rank variables based on their contribution to the model's overall predictive accuracy.
- Partial Dependence Plots (PDP): Visualized the global relationship between specific variables (e.g., income levels) and the probability of default.
- Ceteris Paribus (CP) Plots: Facilitated "what-if" analyses by showing how a change in a single variable would affect an individual borrower's score.
- Break Down (BD) Plots: Decomposed individual predictions to show the specific contribution of each input variable to the final score.
Data and Preprocessing
The study utilized a high-quality dataset from the Polish Credit Bureau (BIK), consisting of over 5 million observations and 1,729 initial variables. The data spanned from October 2017 to May 2019, covering a significant portion of the online lending market in Poland. Through XGBoost-based preselection, the feature set was narrowed to the 63 most predictive variables. The data was partitioned into training, test, out-of-sample, and out-of-time sets to rigorously evaluate model stability.
Results and Key Insights
Predictive Performance and Stability
The evaluation revealed a clear distinction between raw accuracy and practical stability:
- Random Forest: Achieved the highest Gini coefficient on the test set (0.76). However, it exhibited significant performance degradation (a 10% drop) when applied to out-of-time data.
- Gradient Boosting (GBM): Emerged as the most robust model. While its Gini coefficient was lower at 0.68, it maintained exceptional stability, losing only 1% of its performance on out-of-time data.
- Classical Benchmark: The best traditional model (Logistic Regression with WOE) scored 0.65.
The 3-percentage-point improvement offered by GBM over traditional methods represents a substantial financial gain in large-scale lending environments, provided the model remains stable over time.
The Role of XAI in Validation
XAI tools served as a critical validation layer. By visualizing the logic of the GBM and Random Forest models, the researchers confirmed that these algorithms often "learned" the same fundamental economic principles as classical models—such as the inverse relationship between certain financial health indicators and default risk. This alignment builds institutional trust that the ML models are capturing genuine economic signals rather than noise.
Discussion and Conclusion
The integration of XAI into the credit scoring workflow allows banks to move beyond the black-box limitation. Specifically, tools like Break Down plots enable lenders to provide customers with clear, human-readable reasons for loan denials (e.g., "reduce revolving credit usage").
While the study faced limitations—such as the use of anonymized variable names which restricted deep semantic business logic checks—the results are conclusive. XAI methods successfully transform high-performance machine learning models into transparent tools that meet the rigorous standards of the banking industry. Future work should focus on automating the extraction of business rules from these XAI visualizations to further streamline regulatory compliance.
Summary updated