Explainable Artificial Intelligence for Financial Risk Assessment: Comparing SHAP, LIME, and Attention-Based Methods in Credit and Market Risk Applications
Keywords:
Explainable AI, financial risk assessment, SHAP, LIME, attention mechanisms, credit scoring, market risk, regulatory complianceAbstract
Financial institutions increasingly deploy machine learning models for credit risk assessment, market risk analysis, and fraud detection, yet regulatory requirements and internal governance demand that model outputs be explainable to affected consumers, business stakeholders, and supervisors. This paper presents a comprehensive comparative evaluation of explainable artificial intelligence (XAI) techniques applied to financial risk assessment, focusing on three principal families: Shapley Additive exPlanations (SHAP), Local Interpretable Model-agnostic Explanations (LIME), and attention-based methods native to transformer architectures. Evaluations were conducted across three representative applications: consumer credit scoring using gradient boosted trees, corporate credit rating using a hybrid neural network, and market volatility forecasting using a transformer-based sequence model. Quantitative evaluation using established faithfulness, stability, and computational efficiency metrics was complemented by qualitative assessment through structured user studies with 30 practitioners spanning credit analysts, risk managers, model validators, and compliance officers. SHAP explanations achieved the highest faithfulness scores but required substantially higher computational cost (up to 340 seconds per explanation for the corporate credit application). LIME explanations produced more variable results across repeat samples (stability score 0.71 versus SHAP's 0.89) but at lower computational cost. Attention-based methods for the transformer model provided efficient explanations but with faithfulness limitations that motivated combined use with post-hoc methods. User study results indicated that practitioners assigned high value to counterfactual explanations, which were investigated as a complementary technique. The paper contributes empirical evidence supporting practical XAI deployment decisions and structured guidance for financial institutions.

