TL;DR
MINT (Multimodal Instruction Network for Transactions) bridges the gap between specialized transaction encoders and Large Language Models (LLMs) by injecting compact transaction embeddings directly into the LLM's hidden space. This approach enables flexible, zero-shot financial reasoning and predictive question-answering while drastically reducing token overhead, latency, and memory consumption compared to traditional text-serialization methods.
What Problem Does This Paper Address?
Financial institutions handle massive streams of sequential transaction data for tasks like fraud detection, credit risk assessment, and personalized banking. While specialized "Payments Foundation Models" can encode these sequences into rich embeddings, they are typically rigid and tied to specific downstream classifiers, lacking the flexible, zero-shot reasoning capabilities of LLMs.
Conversely, prompting standard LLMs to reason over financial histories requires serializing transactions into long, repetitive text strings (e.g., "Transaction at 09:15: amount=$4.75, merchant=Starbucks..."). This text-serialization strategy suffers from severe limitations:
- Token Bloat: Long transaction histories quickly exhaust the LLM's context window.
- High Computational Cost: Processing thousands of tokens per customer spikes inference latency and VRAM usage.
- Poor Numerical/Temporal Reasoning: LLMs natively struggle to extract subtle behavioral trends and numerical patterns from raw text.
MINT addresses this by treating transaction history as a distinct modality, allowing LLMs to "see" transaction sequences as compact embeddings rather than text.
Methods
MINT introduces a decoupled, multimodal architecture consisting of three main components:
- Frozen Transaction Sequence Encoder: A Transformer-based model pretrained autoregressively on billions of unlabeled transactions to predict the next event. It outputs dense, contextualized behavioral embeddings.
- Connector Module (Modality Projector): A lightweight multi-layer perceptron (MLP) with LayerNormalization that maps the transaction encoder's output space into the LLM's hidden dimension.
- LLM Backbone with LoRA: An instruction-tuned LLM (specifically Qwen3) adapted using Low-Rank Adaptation (LoRA) to handle the injected transaction tokens.
Instead of text, MINT interleaves special placeholder tokens (<emb>) within the prompt template. At runtime, these placeholders are replaced directly with the projected transaction vectors.
The training pipeline consists of two stages:
- Stage 1: Modality Alignment. The connector is trained on transaction captioning data to ensure the transaction embeddings align with the LLM's token space. The LLM remains frozen.
- Stage 2: Supervised Fine-Tuning (SFT). The connector and LoRA adapters are jointly optimized on a multi-task mixture of captioning and question-answering (QA) data, including Chain-of-Thought (CoT) rationales.
Datasets
The authors utilized a massive, proprietary dataset of anonymized card transactions from a real-world payment network.
- Pretraining: Billions of transactions were used to pretrain the transaction sequence encoder.
- Instruction Tuning & Evaluation: A customer-level split (80% train, 10% val, 10% test) yielding roughly 134k/14k/19k transaction histories.
- Synthesized Tasks:
- Captioning Data: Programmatic reports and semantic descriptions generated via a teacher LLM (Mistral-7B-Instruct).
- QA Data: Programmatically generated multiple-choice questions split into extractive QA (filtering, ranking past events) and predictive QA (forecasting future behavior). Out-of-distribution (OOD) test sets featured entirely unseen question types to rigorously evaluate zero-shot generalization.
Key Insights and Ideas
- Complementary Strengths (Embeddings vs. Text): The authors discovered a fascinating trade-off. Text serialization performs well on extractive tasks because the exact surface-level text is explicitly present. However, transaction embeddings vastly outperform text for predictive reasoning. This is likely because the encoder's self-supervised pretraining objective naturally aligns with forecasting future behavior.
- The Layer-Depth Trade-off: When extracting embeddings from the transaction encoder, intermediate layers (second-to-last) provide better precision for in-distribution (ID) tasks. However, the final layer provides superior robustness and generalization for out-of-distribution (OOD) tasks.
- History Length is Task-Dependent: For extractive retrieval, more history always helps. For predictive forecasting, however, adding more history embeddings yields diminishing returns and can even degrade performance, suggesting that the encoder successfully compresses the necessary predictive signals into highly compact representations.
Key Results
MINT achieves a superior accuracy-efficiency Pareto frontier compared to text-serialized LLM baselines.
- Predictive Accuracy: On predictive QA, MINT with just a single history embedding ($h=1$) outperformed the text-serialized LLM baseline using 5 transactions ($h=5$) in both ID and OOD settings, while exhibiting significantly less performance degradation on OOD tasks.
- Inference Efficiency: Comparing MINT ($h=5$) to the text-serialized LLM SFT baseline ($h=1$), MINT achieved:
- 18% lower Time-to-First-Token (TTFT).
- 2.4× higher decode throughput (tokens/sec).
- 11% lower peak VRAM consumption.
- 26% fewer input tokens.
Limitations and Future Work
- Proprietary Data: The reliance on a closed, proprietary Visa dataset limits direct reproducibility by the broader research community, though the authors attempt to mitigate this with highly detailed dataset and prompt specifications.
- Generalization Degradation: Like many domain-specific fine-tuning methods, activating the LoRA adapters causes a drop in the LLM's general-purpose reasoning capabilities (e.g., on benchmarks like GSM8K). However, because it uses PEFT, these adapters can be toggled off when general reasoning is required.
- Future Directions: The authors point toward exploring open-ended transaction discovery, confidence-aware reasoning (outputting calibrated confidence scores alongside answers), and hybrid architectures that combine transaction embeddings with selective text retrieval.
Summary updated