Skip to main content
QUICK REVIEW

[Paper Review] DeepTrax: Embedding Graphs of Financial Transactions

C. Bayan Bruss, Anish Khazane|arXiv (Cornell University)|Jul 16, 2019
Advanced Graph Neural NetworksComputer Science29 references9 citations
TL;DR

This paper proposes DeepTrax, a graph embedding framework that models credit card transactions as a bipartite graph between accounts and merchants, using time-constrained transaction pairs to train node embeddings via a skip-gram model. The method generates semantically meaningful, low-dimensional vectors that capture spending patterns, geography, and merchant categories, achieving strong performance in link prediction (AUC and F1) and improving fraud detection by 5.2% when used as features.

ABSTRACT

Financial transactions can be considered edges in a heterogeneous graph between entities sending money and entities receiving money. For financial institutions, such a graph is likely large (with millions or billions of edges) while also sparsely connected. It becomes challenging to apply machine learning to such large and sparse graphs. Graph representation learning seeks to embed the nodes of a graph into a Euclidean vector space such that graph topological properties are preserved after the transformation. In this paper, we present a novel application of representation learning to bipartite graphs of credit card transactions in order to learn embeddings of account and merchant entities. Our framework is inspired by popular approaches in graph embeddings and is trained on two internal transaction datasets. This approach yields highly effective embeddings, as quantified by link prediction AUC and F1 score. Further, the resulting entity vectors retain intuitive semantic similarity that is explored through visualizations and other qualitative analyses. Finally, we show how these embeddings can be used as features in downstream machine learning business applications such as fraud detection.

Motivation & Objective

  • To address the challenge of applying machine learning to large, sparse financial transaction graphs with millions of entities.
  • To learn dense, low-dimensional embeddings of merchant and account entities that preserve topological and semantic structure.
  • To evaluate the utility of these embeddings in downstream tasks such as fraud detection and link prediction.
  • To demonstrate that geographic and categorical patterns emerge naturally in the embedding space without explicit feature engineering.

Proposed method

  • The method constructs a bipartite graph where edges are formed between merchants when a single account transacts with both within a fixed time window (e.g., 50 seconds).
  • It applies a skip-gram model with negative sampling to learn node embeddings, treating transaction sequences as context windows.
  • The model is trained on two internal transaction datasets, learning representations that encode transactional behavior and proximity.
  • Embeddings are evaluated using link prediction AUC and F1 scores to quantify structural preservation.
  • The framework is extended to a transfer learning setup where merchant embeddings are used as features in a fraud detection model.
  • An auxiliary trainable MLP is used to compress embeddings into a single fraud score, reducing feature space expansion while boosting performance.

Experimental results

Research questions

  • RQ1Can graph embedding techniques effectively represent large-scale, sparse financial transaction networks with meaningful semantic structure?
  • RQ2To what extent do learned embeddings capture geographic and categorical similarities among merchants without explicit features?
  • RQ3How well do the embeddings generalize to downstream tasks like fraud detection compared to baseline models?
  • RQ4Can a compressed embedding representation (via an MLP) preserve predictive power while minimizing feature space growth?

Key findings

  • The model achieves strong link prediction performance, with high AUC and F1 scores, indicating effective preservation of graph topology in the embedding space.
  • Geographic proximity emerges naturally in the embedding space, as evidenced by merchants in the same zip code clustering together, even without geographic features as input.
  • The model captures semantic and cultural nuances, such as regional concentrations of breweries in Portland or coffee shops in Los Angeles.
  • Direct use of raw merchant embeddings improves fraud detection AUpr by approximately 1.0% compared to a baseline model.
  • Using a trainable MLP to compress embeddings into a single fraud score boosts fraud detection efficacy by 5.2%, demonstrating effective transfer learning.
  • The embeddings enable intuitive entity resolution, as seen in the clustering of duplicate or related merchant names (e.g., DUNKIN #341663 Q and Q35) despite differing string representations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.