Home icon

Build an explainable next-best-product recommendation system for banking on AWS

Machine Learning Blog



This article describes building an explainable next-best-product recommendation system for banking using PyTorch and Amazon SageMaker with a multi-tower neural network architecture and learned attention mechanisms.

  • Multi-tower architecture with specialized neural networks for sequences, transactions, demographics, and behavioral data
  • GRU-based sequence tower captures temporal product adoption patterns using pack_padded_sequence for variable-length sequences
  • Learned attention mechanism fuses tower outputs with per-customer weights, providing built-in explainability for regulators
  • AWS Glue ETL normalizes multi-source banking data; SageMaker Processing creates ML features with Dask parallelism
  • Feature Importance Module produces per-customer contribution scores from each data tower without post-hoc interpretation
  • Deployed on SageMaker with ml.g5.12xlarge GPU instances; supports batch scoring and real-time endpoints
  • Achieved strong top-1, top-3, and top-5 accuracy with sequence tower contributing most signal

The multi-tower approach with learned attention provides both high accuracy and regulatory-compliant explainability for banking product recommendations.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jul 27
2026
Building a scalable personalized recommendation system on AWS: From batch to real-time
May 12
2025
Building an AI Stack for Banking on AWS
Jul 20
2026
How AWS helps Hong Kong banks deliver on HKMA DART Framework
Jan 13
2026
Enhancing Bank Performance with AI-Powered Competitive Intelligence on AWS

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.