Scalable Representation Learning for Multimodal Tabular Transactions

Natraj Raman, Sumitra Ganesh, Manuela Veloso

TL;DR

This paper presents an end-to-end framework for learning representations from large-scale tabular financial transactions and connecting them to Large Language Models (LLMs). By combining a power-law partitioned embedder, offline meta-column pooling, adaptive numerical quantization, and parameter-efficient multimodal adapters, the proposed approach outperforms both gradient-boosted trees and fully fine-tuned 1.3B-parameter LLMs while using significantly fewer parameters.

What Problem Does This Paper Address?

Financial payment transactions are naturally tabular, semi-structured, and multimodal, featuring millions of high-cardinality identifiers (like account IDs), continuous numerical values (amounts, timestamps), and categorical or free-text descriptions.

Directly linearizing these tables into text strings for LLMs is inefficient: it blows up sequence lengths, loses relational table structure, and struggles with exact numerical reasoning. Conversely, standard tabular deep learning methods (like TabTransformer) fail to scale when tables have hundreds of auxiliary columns and power-law ID distributions with millions of unique tokens. Furthermore, connecting specialized tabular encoders to generative language models for downstream multi-task instruction following remains largely unaddressed.

Methods

The authors tackle these challenges across two main components: a Tabular Encoder and a Multimodal Decoder.

[Tabular Encoder]                                [Multimodal Decoder]
Raw Row (IDs, Meta, Amts)                       LLM Prefix / Adapter Layers
  │                                                        ▲
  ├─ Power-Law Partitioned Embedder (IDs)                  │
  ├─ Offline Meta-Column Summarization (Auxiliary data) ───┼─► Interleaved Input:
  └─ Adaptive Numerical Quantization (Amounts)             │   [R1] ⊕ ϕ(Enc(x1)) ⊕ ... ⊕ Text Prompt
        │                                                  │
     BERT + Composite Metric Loss (Hard Triplet + Masked) ─┘   (Tabular Encoder & LLM stay frozen)

1. Tabular Encoder

  • Power-Law Partitioning Embedder: Instead of allocating a full $D$-dimensional vector to every vocabulary item, the vocabulary is partitioned into $B$ bins following a power-law frequency distribution. Frequent identifiers receive larger subspace allocations ($D^b$), while long-tail, infrequent IDs are relegated to smaller subspaces, drastically reducing parameter counts.
  • Offline Meta-Column Embeddings: Normalized relational attributes (e.g., secondary account details) are pre-trained offline and pooled into summary representations before entering the main encoder, curbing input sequence length.
  • Adaptive Numerical Quantization: Continuous numerical columns are discretized into non-uniform bins—using finer granularity for small numbers and wider spacing for large magnitudes—to enforce continuity priors and resist noise.
  • Composite Metric Loss: Alongside standard masked auto-encoding (BERT-style), the encoder optimizes a batch hard triplet loss over perturbed samples to capture global row-to-row relationships rather than purely local column reconstructions.

2. Multimodal Decoder

  • Modality Interleaving via Sentinels: Records are prefixed with special tokens (e.g., [R1], [R2]) that live in the LLM vocabulary, allowing the model to explicitly reference individual transactions.
  • Parameter-Efficient Adapters: Both the tabular encoder and LLM remain completely frozen. Trainable projection transformer layers ($\phi$), a multi-task embedding layer ($\Xi_{\text{task}}$), and prompt prefix parameters ($\varphi$) handle cross-modal alignment without catastrophic forgetting.

Datasets

Because real banking transaction records are proprietary and confidential, the authors evaluated their architecture on a synthetically generated dataset of 10 million transactions built via mixture models (Gaussian Mixture Models for accounts, transactions per account, transaction dates, and values):

  • Contains ~125,000 unique Account IDs and Parent IDs.
  • Instruction Tuning Benchmark: 100,000 template-based instruction-response pairs spanning four distinct tasks:
  • Risk tagging (Low, Medium, High)
  • Geographic span (US, Americas, EMEA, Asia, International)
  • Expense type (Capital, Operational, Technology, Other)
  • Recurrence detection (Binary decision plus multi-record row sentinel identification).

Key Insights and Ideas

  • Parameter allocation should mirror data distribution: Allocating embedding dimensions according to power laws halved the embedding parameters while matching or outperforming standard full-size embedding tables on ID reconstruction.
  • Frozen LLMs + Adapters beat Full LLM Fine-Tuning: Freezing the LLM backbone and tuning lightweight adapters (122M parameters) substantially outperformed fully fine-tuning a 1.3B LLM, which suffered from optimization instability and degraded classification performance on several tasks.
  • Contrastive loss provides global structure: Adding batch hard triplet loss to standard masked tabular pre-training boosted reconstruction accuracy across all column types (e.g., raising numerical amount accuracy from 48.1% to 60.2%).

Key Results

  • Tabular Encoder Pre-training (Table 1): The Partitioned + MetaCols setting achieved 60.7% Account ID and 62.6% Parent ID reconstruction accuracy using only 100M parameters, outperforming the baseline Classical Embeds (58.7% and 61.8%) which required 185M parameters.
  • Downstream Instruction Tuning (Table 2):
  • On Risk Tagging, the Multimodal Phi Adapter reached 99.8% accuracy (vs. 82.9% for fully fine-tuned Falcon 1.3B and 60.9% for CatBoost).
  • On Geographic Tagging, Multimodal Phi scored 88.6% and Falcon Adapter scored 86.7% (vs. 71.6% for CatBoost).
  • On Expense Type, Multimodal Falcon Adapter reached 70.3% (vs. 50.0% for both CatBoost and full-tuning Falcon).

Limitations and Future Work

  • Multi-Record Cross-Modal Reasoning: Identifying recurring payments across multiple rows remained difficult for all models, with accuracy hovering between 47% and 48%, showing that grounding specific transaction sentinels across longer context remains challenging.
  • Evaluation on Synthetic Data: While the generation pipeline mirrors enterprise banking topologies, real-world cross-border transaction anomalies and concept drift were not evaluated.
  • Interpretability: The authors note that analyzing internal representation dynamics and embedding space geometry remains an open avenue for future work.

Summary updated

BibTeX
@inproceedings{raman2024scalable,
  author = {Natraj Raman and Sumitra Ganesh and Manuela Veloso},
  title = {{Scalable Representation Learning for Multimodal Tabular Transactions}},
  booktitle = {TRL @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=QkPZ0sFgsy},
}
Figure