Attention-based Dynamic Multilayer Graph Neural Networks for Loan Default Prediction

Sahab Zandi, Kamesh Korangi, María Óskarsdóttir, Christophe Mues, Cristián BravoarXiv 2024

TL;DR

This paper introduces DYMGNN (Dynamic Multilayer Graph Neural Networks), a novel framework that predicts loan defaults by modeling borrowers within an evolving, multi-layered network based on shared geography and lenders. By combining Graph Attention Networks (GAT), LSTMs, and a custom temporal attention mechanism, the model outperforms traditional baseline methods like XGBoost and reveals that a borrower's most recent financial behavior carries the overwhelming majority of predictive weight.

What Problem Does This Paper Address?

Traditional credit scoring models operate under a major assumption: they treat borrowers as independent entities (the Independent and Identically Distributed, or IID, assumption). In reality, financial risk propagates through networks. If a specific region suffers an economic downturn, or if a particular mortgage provider faces systemic issues, connected borrowers share correlated default risks.

While researchers have recently turned to Graph Neural Networks (GNNs) to capture these connections, most existing approaches rely on static, single-layer graphs. This paper addresses two major real-world complexities:

  1. Multilayer Relationships: Borrowers are connected in multiple ways simultaneously (e.g., living in the same zip code and using the same mortgage lender).
  2. Dynamicity: Financial behavior and network structures evolve over time.

Methods

The authors propose DYMGNN, a unified framework designed to handle networks that are both dynamic and multilayered. The architecture processes data through a multi-step pipeline:

  • Topological Embedding: The multilayer network is represented as a massive "supra-adjacency matrix" where nodes exist in multiple layers (Geography and Lender) with interlayer edges connecting identical borrowers. The authors tested both Graph Convolutional Networks (GCN) and Graph Attention Networks (GAT) to aggregate features from a node's neighbors within each time snapshot.
  • Temporal Embedding: To capture how these representations evolve over time, the sequence of topological embeddings is fed into a Recurrent Neural Network (RNN)—specifically testing Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) architectures.
  • Temporal Attention Mechanism (ATT): Instead of treating all time steps equally, a custom soft attention mechanism assigns weights to different time snapshots, allowing the model to automatically learn which time periods are most indicative of future default.
  • Decoder: A feed-forward neural network with dropout regularization and a sigmoid activation function outputs the final probability of default.

Datasets

The model was evaluated using the Single-Family Loan-Level (SFLL) dataset provided by U.S. mortgage financier Freddie Mac.

  • Scope: Loans originated in 2009 and 2010, tracking performance into 2012–2013.
  • Features: Includes individual credit attributes (FICO scores, debt-to-income ratios) and dynamic behavioral features (current unpaid principal balance, payment arrears status).
  • Network Construction: Slice-by-slice networks were built using 6-month rolling windows, where nodes were linked if they shared the same first two digits of their zip code (Geographical layer) or the same mortgage provider (Company layer).

Key Insights and Ideas

  • The Power of Multi-Layering: Models trained on the double-layer network (Geography + Lender) consistently achieved tighter confidence intervals and better overall performance than single-layer counterparts, proving that combining distinct relationship types yields a more robust risk profile.
  • GAT and LSTM Reign Supreme: GAT outperformed GCN because it learns to weight specific neighbor connections differently rather than treating them isotropically. Similarly, LSTM's complex gated structure handled long-range dependencies better than the simpler GRU.
  • Recent Data is King: The custom attention mechanism revealed a dramatic upward trend in importance as time progressed. Attention scores remained low (~0.1) for the first few months but spiked sharply to peak just below 0.6 at the final timestamp. This implies that longer lookback windows offer diminishing returns; the most recent snapshot holds the vast majority of predictive value.

Key Results

The GAT-LSTM-ATT configuration on the double-layer network emerged as the clear winner:

  • Predictive Performance: It achieved an AUC of 0.812 and an $F_1$ score of 0.851, outperforming the best non-graph machine learning baseline, XGBoost (AUC: 0.805, $F_1$: 0.837), and vastly outperforming static graph baselines.
  • Feature Importance: Using Shapley values, the authors verified that the presence of recent payment arrears (if_delq_sts) and FICO scores were the most critical predictors for the model, aligning well with financial intuition.
  • Computational Trade-off: This accuracy comes at a cost. Training the full GAT-LSTM-ATT double-layer model took 12,120 seconds (~3.3 hours), compared to just 151 seconds for XGBoost, highlighting a significant complexity trade-off for production environments.

Limitations and Future Work

The authors note that their sample data from 2009–2010 heavily reflects the anomalies of the global financial crisis, meaning further research is required to test the model's robustness across different macroeconomic cycles.

For future work, they suggest:

  • Incorporating actual continuous distance metrics between zip code centroids rather than binary matching.
  • Adding more layers to map even more complex inter-individual connections.
  • Experimenting with variable window lengths to dynamically optimize the lookback period.

Summary updated

BibTeX
@misc{zandi2024attention,
  author = {Sahab Zandi and Kamesh Korangi and María Óskarsdóttir and Christophe Mues and Cristián Bravo},
  title = {{Attention-based Dynamic Multilayer Graph Neural Networks for Loan Default Prediction}},
  year = {2024},
  eprint = {2402.00299},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.00299},
}
Figure