Credit Risk Meets Large Language Models: Building a Risk Indicator from Loan Descriptions in P2P Lending

Authors

  • Mario Sanz-Guerrero Universidad Complutense de Madrid, Spain
  • Javier Arroyo Universidad Complutense de Madrid, Spain https://orcid.org/0000-0001-6127-7538

DOI:

https://doi.org/10.4114/intartif.vol28iss75pp220-247

Keywords:

Credit Risk, Peer-to-Peer Lending, Natural Language Processing, BERT, Transfer Learning, Explainable AI

Abstract

Peer-to-peer (P2P) lending connects borrowers and lenders through online platforms but suffers from significant information  asymmetry, as lenders often lack sufficient data to assess borrowers’ creditworthiness. This paper addresses this challenge by leveraging BERT, a Large Language Model (LLM) known for its ability to capture contextual nuances in text, to generate a risk score based on borrowers’ loan descriptions using a dataset from the Lending Club platform. We fine-tune BERT to distinguish between defaulted and non-defaulted loans using the loan descriptions provided by the borrowers. The resulting BERT-generated risk score is then integrated as an additional feature into an XGBoost classifier used at the loan granting stage, where decision-makers have limited information available to guide their decisions. This integration enhances predictive performance, with improvements in balanced accuracy and AUC, highlighting the value of textual features in complementing traditional inputs. Moreover, we find that the  incorporation of the BERT score alters how classification models utilize traditional input variables, with these changes varying by loan purpose. These findings suggest that BERT discerns meaningful patterns in loan descriptions, encompassing borrower-specific features, specific purposes, and linguistic characteristics. However, the inherent opacity of LLMs and their potential biases underscore the need for transparent frameworks to ensure regulatory compliance and foster trust. Overall, this study demonstrates how LLM-derived insights interact with traditional features in credit risk modeling, opening new avenues to enhance the explainability and fairness of these models. 

Downloads

Download data is not yet available.

Metrics

Metrics Loading ...

Downloads

Published

2025-03-06

How to Cite

Mario Sanz-Guerrero, & Javier Arroyo. (2025). Credit Risk Meets Large Language Models: Building a Risk Indicator from Loan Descriptions in P2P Lending. Inteligencia Artificial, 28(75), 220–247. https://doi.org/10.4114/intartif.vol28iss75pp220-247