Skip to content

Menu

WorksComputer Science

VRLLM: Turning LLMs into Powerful Tabular Classifiers

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_y5ptfn8m. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Large Language Models (LLMs) have shown strong performance on text, but whether pretrained LLMs are effective for large-scale tabular classification remains unclear, as many previous works demonstrate that LLMs' tabular data classification performance falls behind tree-based models or neural architectures designed for tabular data. At Visa Research, we managed to fine-tune a pretrained Llama 3.2 1B LLM on billions of rows of labeled tabular data and make it outperform a wide array of tabular classifiers and even our competitive production deep learning model. For ease of reference, we refer to the model as the Visa Research LLM (VRLLM). In this paper, we share how we achieved this exciting result, covering data preparation, training recipe, ablation studies of design choices and deployment validation. We also benchmark frontier LLMs on the same task and analyze their prediction behavior across model families and generations. Our interpretability experiments suggest that VRLLM learns feature-specific predictive associations, while component ablations indicate that the earliest two FFN layers contribute to the emergence of linearly decodable task information. Our paper provides an engineering recipe and a focused empirical case study on adapting compact LLMs to industrial tabular prediction tasks.

Disclaimer. All trademarks are the property of their respective owners, are used for identification purposes only, and do not necessarily imply product endorsement or affiliation with Visa. Performance results are limited to the specific research task, evaluation dataset, model versions, and experimental settings described in this paper. They should not be interpreted as statements about the general capabilities, commercial suitability, or relative market standing of the referenced models, products, or organizations. To comply with legal and privacy policies, we do not release the dataset or any model trained on it.

Preprint. Work in progress.

Introduction

Introduction

Visa processed 257.5 billion transactions in fiscal year 2025 [1], producing large volumes of labeled, heterogeneous tabular data. Such data support predictive models for future transactions. For predictive modeling and tabular data classification, feature engineering combined with tree-based ensembles remains the dominant solution, as such models are efficient to train, update, and inspect [2, 3].

With the growing popularity of the Transformer [4] and the LLMs and the foundation models built upon it, Transformer-based models have increasingly been applied to tabular data [5, 6, 7]. Prior work spans specialized architectures, foundation models, and LLM adaptation. TabTransformer and SAINT model heterogeneous feature interactions through attention [5, 8], while TabPFN [9] and TabICL [10] transfer predictive capabilities across tasks through in-context learning. Complementary approaches serialize tables for LLM-based classification [6, 11] or encode transaction histories using recurrent networks, Transformers, and generative pretraining [12, 13, 14]. More recently, LLM4ES [15] and SeqLLM [16] adapt pretrained LLMs to behavioral sequences through textual event descriptions and specialized event tokenization, respectively.

Building on these directions, we investigate whether a compact pretrained causal LLM, fine-tuned directly on serialized transaction records, can serve as the classifier itself using its existing tokenizer and prediction head, without a specialized transaction encoder or tokenizer. The rationale for this approach is threefold:

  • Our data contain many categorical fields, some with extremely high cardinality and rich semantic information (e.g., more than 50M unique merchants). Assigning a separate embedding to each category can incur substantial memory and computational costs and provides limited support for unseen categories. In contrast, a pretrained LLM tokenizer uses a fixed vocabulary to represent category values compositionally, enabling it to encode unseen values and potentially capture semantic similarities among categories.

  • Large-scale labeled transaction data provide domain-specific supervision beyond the general knowledge acquired during pretraining. Fine-tuning can encode task-relevant transaction patterns and feature–label relationships into model parameters, enabling predictions on new records without requiring labeled examples at inference.

  • Our Transformer-based payment foundation models [13, 14, 17] perform well on transaction classification, motivating us to investigate whether pretrained LLMs with similar backbones can achieve comparable results.

We therefore prioritize domain-supervised fine-tuning to combine pretrained semantic representations with predictive knowledge learned from labeled payment data.

Our results demonstrate that a pretrained Llama 3.2 1B model [18], fine-tuned on billions of serialized transaction records, can achieve strong classification performance (Figure 1). VRLLM achieves 38.3% recall at the operating false-positive rate (OFPR) and 35.3% PR-AUC, exceeding the production-model baseline by 0.8 and 0.1 percentage points, respectively. In addition to comprehensive benchmarking and ablation studies, we conduct interpretability analyses to examine how pretraining and domain-specific learning contribute to the LLM’s predictions (§ 6). We make four main contributions:

Classification performance of frontier models, tabular classifiers, the Visa production model, and VRLLM

Figure 1. Classification performance of frontier models, tabular classifiers, the Visa production model, and VRLLM. Performance is reported as recall at the selected operating false-positive rate (OFPR). All experiments were conducted on offline data in a non-production environment for research purposes. Models marked * were evaluated zero-shot on 10,000 examples; all others were evaluated on a larger dataset. Models marked † were evaluated few-shot without fine-tuning, while the remaining models were trained or fine-tuned on the same source data. See § 5 for more evaluation details and performance comparisons.

  • Effective domain adaptation at scale. We show that a general pretrained LLM can outperform specialized tabular classifiers on our proprietary benchmark. We provide an end-to-end training recipe combining serialization, next-token supervision, parameter-efficient adaptation, and optimization for imbalanced data.

  • Analysis of performance and robustness. We examine how input semantics, pretrained knowledge, and architectural choices affect VRLLM’s classification performance and evaluate VRLLM’s robustness under deployment-oriented conditions alongside the production model.

  • Feature-specific priors and early-layer contributions. Our interpretability analyses suggest that VRLLM combines multiple sources of predictive knowledge: product codes provide priors grounded in training data, while dollar buckets provide ordinal information. Layer-wise probing further suggests that early feed-forward networks play an important role in encoding domain-specific knowledge.

  • Evaluation of frontier LLMs and decision models. We evaluate frontier LLMs and decision models without domain-specific adaptation. Although newer model generations generally achieve better overall classification performance on our benchmark, their recall at OFPR remains at 0.00%, falling well short of production performance.

Task and Data

We first define the binary transaction-classification task, summarize the dataset and temporal split, and describe the tabular data serialization method. To comply with company policies, we omit the raw feature values, exact feature definitions, calendar dates, and operating FPR; we report all other details needed to interpret the experiments.

Task Definition

We study binary classification. Given historical labeled tabular data, our objective is to train a binary classifier that predicts the probability that a tabular record in the test data belongs to the positive class. The validation and test data occur later in time than the training data. The data is highly imbalanced, with an extremely rare positive class. Under company policies, we cannot disclose the exact size of the data, positive class definition, class rate, and training/validation/test time splits.

Data Overview

The tabular data include hundreds of categorical and numerical features derived from payment transactions. The feature set used in this study excludes personally identifiable information (PII) under our internal data-governance definition. These features have been used to train non-LLM-based tabular classifiers and have proven effective. To maximize the utility of the tabular data for LLMs, we use the original textual values instead of categorical codes for features with semantic meaning. For instance, we use merchant-name string instead of ID to represent merchants.

In contrast to many public tabular data benchmarks and industry-scale tabular datasets [3], our dataset is significantly larger, containing billions of rows with high-fidelity labels. Another property of the data is the presence of high-cardinality fields such as the merchant-name field, which has more than 50M unique values.

Serialization Method

Building on prior serialization work [11], we construct three fixed-order text representations that vary in whether and how they include field names (Figure 2). We follow three design principles:

Figure 2. Three different tabular data serialization templates. The data and templates are used for illustration purposes and do not reflect the appearance or contents of the production data. The label token is masked during fine-tuning and inference.

(1) Enriching the semantics of serialized tabular data. For features and fields whose raw values include text, we retain the text instead of processed codes or values used by non-LLM ML models. For features with complex aggregation rules, we expand their names to make them easier to understand. We also design text templates tailored to the properties of each feature to maximize their semantic richness. For example, for highly sparse feature vectors with zero-value entries, we directly state that a feature is zero or null instead of describing each entry of the vector.

(2) Reducing template length by removing redundant information. Since fine-tuning on a large serialized dataset is costly, we remove unnecessary tokens from templates to shorten sequences and lower training costs. We use concise text templates to describe each feature name and its value. For numerical features, we convert floating-point numbers to integers if they are derived from integers; otherwise, we round the values to six decimal places and scale them to integers.

(3) Designing different templates based on semantic richness. Since it is unclear how much the semantic content of field names and textual values contributes to the predictive modeling task, we design three different versions of serialization templates based on their semantic richness (Figure 2). Feature Value Only is the template in which only raw feature values are presented; Feature Name + Value (Short) is the template that includes feature names and feature values with minimal transformation; Feature Name + Value (Long) is the most complex template, transforming each feature based on its meaning and data properties.

All templates preserve the same fixed field order and contain identical underlying feature values. After applying the above principles, each row of tabular data is transformed into text data ranging from 600 to 1,300 tokens. During tokenization, we use left padding and truncation with a maximum input length of 4,096 tokens.

Note on numerical value tokenization. Under the serialization method described in (2), numerical features are converted to integers and tokenized as sequences of digit strings. Unlike numerical feature embedding methods that explicitly encode numerical structure [19], this tokenization scheme does not explicitly preserve the ordering of the original values. For example, after conversion to the integer string 3125, the floating-point value 3.125 is tokenized into 312 and 5 by the Llama 3 tokenizer [18]. Nevertheless, numerical features in our datasets have relatively few distinct values compared with high-cardinality categorical features. We hypothesize that this lower cardinality, together with the fixed-order template and large scale of our training data, enables the LLM to learn relationships among numerical values. The ordinal-based prior observed across dollar-buckets in § 6.1 further suggests that the LLM captures some ordinal relationships despite representing numerical values as sequences of digit tokens.

Training Recipe

To fine-tune a pretrained LLM for text classification, there are two common approaches: fine-tuning an encoder-only or decoder-only LLM. We found that pretrained encoder-only Transformers performed substantially worse than decoder-only LLMs under our preliminary 1M-example configuration (see Table 4); therefore, we focus on fine-tuning decoder-only LLMs. Our detailed training recipe for decoder-only LLMs is described below.

ArchitectureModel (Size)Recall@OFPRPR-AUC
EncoderNV-Embed-v2 (8B)6.511.0
EncoderBERT (336M)8.213.0
DecoderVRLLM (1B)35.922.5

Table 4. Validation performance of encoder models vs. VRLLM fine-tuned on 1M transactions with short template.

Classification as next-token prediction. We follow the autoregressive formulation of decoder-only LLMs and fine-tune the model to predict a label token after each serialized record. Given a serialized sequence x=(x1,x2,…,xT−1,xT)\mathbf{x}=(x_1,x_2,\ldots,x_{T-1},x_T) where xTx_T is the ground-truth label token (0 or 1), the training loss is the cross-entropy computed only for the last label token, with all other tokens excluded from the loss:

L=−log⁡exp⁡(zT−1,xT)∑v=1Vexp⁡(zT−1,v)(1)\mathcal{L}=-\log\frac{\exp(z_{T-1,x_T})}{\sum_{v=1}^{V}\exp(z_{T-1,v})} \tag*{(1)}

where zT−1=fθ(x1,x2,…,xT−1)∈RV\mathbf{z}_{T-1}=f_\theta(x_1,x_2,\ldots,x_{T-1})\in\mathbb{R}^{V} is the logit vector produced by the causal language model fθf_\theta for predicting the next token xTx_T and VV is the vocabulary size of the corresponding LLM being fine-tuned.

The loss function above essentially optimizes the probability that the next token is the ground-truth class (0 or 1) given the serialized tabular data as input. This objective reuses the pretrained tokenizer, token embeddings, decoder, and LM head. Apart from LoRA modules inserted into selected decoder projections, it adds no field-specific input encoder, vocabulary extension, or task-specific classification head. We use this design to test whether the existing language-model interface can support serialized tabular classification.

At inference time, given an input sequence without the label token x′=(x1,x2,…,xT−1)\mathbf{x}' = (x_1, x_2, \ldots, x_{T-1}), the renormalized positive-class probability is computed as follows:

s(x′)=exp⁡(zT−1,1)exp⁡(zT−1,0)+exp⁡(zT−1,1).(2)s(\mathbf{x}') = \frac{\exp(z_{T-1,1})}{\exp(z_{T-1,0}) + \exp(z_{T-1,1})}. \tag*{(2)}

Because evaluation requires a continuous score rather than generated text, we compute s(x′)s(\mathbf{x}') directly from the LM-head logits for the tokens representing labels 0 and 1. We then calibrate this score using our business-specific method.

LoRA configuration. Since our serialized tabular inputs are relatively long (600–1.3k tokens each) and our training infrastructure has limited capacity (as shown in Table 1), we adopt low-rank adaptation (LoRA) [20] to improve training efficiency. Specifically, the embedding layer and LM head (tied in Llama 3.2 1B) are frozen during fine-tuning and LoRA adapters are only applied to the attention layers (q_proj, k_proj, v_proj, o_proj) and FFN projections (gate_proj, up_proj, down_proj). A more detailed configuration is presented in Table 1. Our subsequent interpretability analysis of these layers is presented in § 6.2.

SettingValue
BackboneLlama 3.2 1B (LoRA: rank=32, alpha=64, dropout=0.1)
# Trainable parameters22.5M (1.8%)
Effective batch size32 (gradient accumulation − 512)
Optimizer / LR / weight_decayAdamW / 2.0×10−52.0 \times10^{-5} / 1.0×10−21.0 \times10^{-2}
LR schedulercosine, linear warmup = 10k steps
Base model precision / parallelismBF16 / Distributed Data Parallel (DDP)
Hardware config4 × 80-GB NVIDIA A100/H100 GPUs

Table 1. Training configuration for VRLLM.

Data sampling. The long input sequences limit the per-GPU microbatch size to at most 8 on a GPU with 80 GB of VRAM. Given the extreme class imbalance in the unsampled training data, such small batches may contain few or no positive examples, resulting in noisy, negative-class-dominated gradients. To address this challenge, we retain all positive-class records while downsampling the negative-class records to obtain positive-to-negative ratios ranging from 1:3 to 1:10.

Gradient accumulation. To retain sufficient negative examples while maintaining training stability, we use a staged fine-tuning strategy: the LLM begins with a batch size of 32, and gradient accumulation is introduced after fine-tuning on approximately 100 million unique training records. An accumulation factor of 16 (corresponding to an effective batch size of 512) achieves the best performance by improving the consistency of minority-class representation per update, gradient stability and optimizer-update frequency [21, 22].

We made the following observations while tuning batch size: small batches enable frequent updates early in training, but continuing with a batch size of 32 eventually leads to slower improvement and lower performance. A gradient accumulation factor of 8 performs well but is slightly inferior to 16, while a factor of 80 performs worse. The poorer performance with a factor of 80 may partly reflect its substantially lower gradient update frequency. Therefore, an intermediate effective batch size stabilizes the minority-class signal without excessively reducing update frequency.

Training optimizations. We replaced the fixed CUDA memory-split configuration with expandable segments and disabled CUDA debugging settings to reduce memory fragmentation and synchronization overhead. We also increased the number of DataLoader workers from 0 to 4 and enabled persistent workers to reduce data-loading latency and GPU idle time. Collectively, these optimizations reduced peak GPU memory usage by approximately 50% and training time by approximately 30%, enabling us to maintain the same batch size with half as many GPUs.

Experiments

First, we compare the performance of VRLLM with that of different types of tabular classifier baselines on a large-scale temporal holdout test set (§ 5.1). Then, we benchmark the zero-shot classification performance of frontier LLMs on a 10,000-transaction subset (§ 5.2), conduct controlled ablations (§ 5.3) and assess temporal stability, merchant performance, and ensemble complementarity (§ 5.4).

Large-scale Evaluation

Experiment setup. We first compare the performance of VRLLM with representative tabular classification baselines on a large-scale temporal holdout test set. Recall@OFPR is a business metric that measures the recall for the positive class at a proprietary operating false-positive rate. The area under the precision-recall curve (PR-AUC) is a metric for measuring performance in imbalanced binary classification. All models’ prediction scores are calibrated using the same internal method before computing the business metric. Note that the temporal holdout test set was curated specifically for this study; therefore, while the absolute metric values do not reflect real-world performance, they support valid relative comparisons. Figure 1 reports the same Recall@OFPR results as Table 2.

No task-specific trainingTask-trained or fine-tuned
ModelTabPFN-3TabFMTabICLv2KumoTabularXGBoostLightGBMSAINTTabTransformerDCNv2Production modelVRLLMProduction + VRLLM
Reference[26][27][7][28][23][24][8][5][25]———
# Parameters53M410M27M213M500K130K1B1B1B—1B—
Recall@OFPR (%) ↑3.25.34.06.16.58.17.310.711.837.538.345.9
PR-AUC (%) ↑8.26.58.411.212.713.114.015.718.835.235.338.7

Table 2. Performance on a large-scale temporal holdout test set. Models are grouped by whether they undergo task-specific training or fine-tuning. Bold and underlined values indicate the best and second-best results, respectively.

Our baselines include classic tree-based models (XGBoost [23], LightGBM [24]), tabular neural networks (DCNv2 [25], SAINT [8], TabTransformer [5]), emerging tabular foundation models (TabPFN-3 [26], TabFM [27], TabICLv2 [7], and KumoTabular [28]), and our proprietary production model, which was designed and trained on the same labeled data under the same time split for the same task. Model sources and license information can be found in Table 11.

ModelModel/checkpoint source URLLicense
XGBoostdmlc/xgboostApache-2.0.(link)
LightGBMlightgbm-org/LightGBMMIT (link)
DCNv2We implemented it based on the paper.CC-BY 4.0 (link)
SAINTpytorch-wide deepApache-2.0 (link)
TabTransformerpytorch-widedeepApache-2.0 (link)
TabPFN-3Prior-Labs/tabpfn_3 — tabpfn-v3-classifier-v3__20260417__binary.ckptTabPFN-3 License v1.0 (link)
TabFMgoogle/tabfm-1.1.0-pytorch — classification/model.safetensorsTabFM Non-Commercial License v1.0 (link)
TabICLv2jingang/TabICL — tabicl-classifier-v2-20260212.ckptBSD-3-Clause (github.com)
KumoTabularnvidia/Kumo-Tabular — large/classifier.ptOpenMDW-1.1 (link)
Perplexity-Decider-v1.2perplexity-ai/pplx-decider-v1.2Apache-2.0(link)
BERTgoogle-bert/bert-base-uncasedApache-2.0 (link)
NV-Embed-v2nvidia/NV-Embed-v2CC BY-NC 4.0 (link)
Llama 3.2meta-llama/Llama-3.2-1B; meta-llama/Llama-3.2-3BLLAMA 3.2 COMMUNITY LICENSE (link)
MobileLLMfacebook/MobileLLM-125MFAIR Noncommercial Research License (link)

Table 11. Open source/weight models used in the paper and their code/checkpoint sources and licenses.

Among these models, only the tabular foundation models are neither trained nor fine-tuned on our data. Instead, we leverage their in-context learning (ICL) capabilities to perform inference on the test data using the same set of 800K transactions as context (the support set). This is the largest common support-set size that fits on a single GPU with 80 GB of VRAM for all evaluated tabular foundation models. These transactions are randomly sampled from the training data at a positive-to-negative class ratio of 1:1. The other baselines are trained on the same set of transactions as VRLLM. For each trainable model, we carry out a hyperparameter search with a fixed budget and report the best performing configuration.

To make a fair comparison, we align the number of parameters of three tabular neural networks to VRLLM’s 1B parameters. For these neural baselines, we use EmbeddingBag [29] to handle high-cardinality categorical features. At test time, unseen categories are represented by the mean embedding in the corresponding feature’s embedding table. Both XGBoost and LightGBM are trained directly on the integer-coded feature matrix, in which every categorical field is already mapped to a non-negative id. For XGBoost we use tree_method="hist" and treat these columns as ordinal numeric features, so splits take the form x≤θx \le\theta. For LightGBM we instead pass the categorical column indices via the categorical_feature argument, enabling its native Fisher-style optimal partitioning that produces true set-valued splits. No additional encoding (one-hot, target, or hashing) is applied to either model. All models are evaluated on the same holdout test set.

Performance comparison. From Table 2, we make the following observations:

  • Fine-tuned Llama 3.2 1B (VRLLM) achieves the best performance among all individual models, outperforming the production model by 0.8 points in Recall@OFPR. This result demonstrates that an LLM-based approach retaining the original vocabulary, tokenizer, and language modeling head can be competitive for tabular predictive modeling.

  • SAINT and TabTransformer are Transformer-based models designed for tabular data, yet both substantially underperform VRLLM. One possible explanation is that categorical embedding tables account for a large proportion of their parameters, while learning effective embeddings for infrequent categories in the long tail remains challenging. We hypothesize that the tokenization and representation of tabular fields play a critical role in performance on our task. The experiments in § 5.3 and § 6 further investigate the advantages of fine-tuned LLMs over tabular Transformers in this setting.

  • The tabular neural networks outperform the tree-based models, potentially reflecting their ability to capture interactions among the rich and informative categorical features in our datasets. Although the tree-based models support native categorical splits, this capability may be less effective for extremely high-cardinality features, particularly when many categories have few observations. These results suggest that categorical feature representation and interaction modeling may contribute to the observed performance gap.

  • The pretrained tabular foundation models underperform all supervised models. This gap may reflect limitations in context capacity and the complexity of our classification task: a limited set of in-context examples may not adequately represent the variability in the training data. These results suggest that domain-specific fine-tuning may help these models learn predictive patterns that are difficult to infer from in-context examples alone.

The above evidence underscores the importance of feature and model-architecture engineering for strong performance on this decision-critical application. Directly adopting pretrained tabular foundation models and classic tabular classifiers is suboptimal. Compared with the production model, which is purpose-built for the classification task, fine-tuning a pretrained LLM requires much less effort in feature engineering and model-architecture optimization. This opens up new possibilities for applied machine learning in industry. Meanwhile, after being fine-tuned on proprietary data, the LLM becomes a tabular classifier (or decision model) that offers desirable properties such as a bounded single-score output and a relatively small model size.

Zero-shot Performance of Frontier Models

Besides fine-tuning models or making predictions using ICL as described above, we also test the zero-shot classification performance of frontier LLMs using the Feature Name + Value (Long) template, as this template conveys more context about each input field. Due to high API costs, we benchmark frontier LLMs on a subset of 10,000 transactions sampled from the holdout test set described above, with a 1:9 ratio of positive to negative examples. This experiment evaluates the usefulness of frontier LLMs’ prior knowledge, reasoning, and zero-shot tabular classification capability for our proprietary classification task. Except for the 28B open-weight Perplexity-Decider-v1.2 [30], which was hosted on our on-prem server, all other models were accessed through secure enterprise LLM APIs. For frontier LLMs, we instruct them to generate a score between 1 and 1000 for binary classification. For Perplexity-Decider-v1.2, we extract the two class logits from its readout head and compute the positive-class probability using the default temperature. The OpenAI Decisions API [31] directly returns the probability of the positive outcome. We convert and calibrate these scores and probabilities before computing PR-AUC (comparable to the numbers reported in Table 2).

All frontier models achieve zero Recall@OFPR, indicating that their performance remains well below production requirements. Nevertheless, Figure 3 shows consistent improvements in PR-AUC across successive generations of frontier models. In particular, GPT-6-Astra substantially outperforms earlier generations of frontier LLMs.

Figure 3. Zero-shot classification performance on a 10,000-transaction subset across frontier model families and generations.

Behavioral analysis across frontier models. To understand the score discrepancy and prediction behavior of different models, we jointly analyze the inputs and outputs of these models and summarize the resulting observations below:

  • Top-ranked models show better base-rate calibration. Top-3-ranked models output finely graded scores with means 0.06–0.11, closely matching the positive-class base rate. Mid-ranked models (e.g., Gemini-3-pro, Grok-4) exhibit strongly bimodal distributions, with medians near 0.02 but 90th percentiles above 0.85. Bottom-ranked models collapse onto a narrow high-prior band: Gemini-2.5-pro has median 0.965 and Perplexity-Decider-v1.2 confines 99.9% of scores to [0.59, 0.69].

  • Output resolution matters alongside calibration. GPT-6-Astra outputs 266 distinct score values among 10K inputs, compared with 114 for Claude-fable-5.1 and only 40–49 for the OpenAI Decisions API, Claude-sonnet-4, and Claude-opus-4.5. Such coarse output grids restrict ranking granularity and can limit achievable PR-AUC, regardless of the underlying reasoning quality.

  • GPT-6-Astra separates the two classes most clearly. It assigns an average score of 0.26 to positive transactions versus 0.09 to negative ones, a gap of 0.17 on the [0, 1] scale. The corresponding gaps are 0.15 for Claude-fable-5.1 and 0.15 for Gemini-4-argon, but fall to only 0.09 for Gemini-2.5-pro (0.92 versus 0.83) and 0.01 for Perplexity-Decider-v1.2 (0.61 versus 0.60), whose compressed score distributions limit ranking information.

  • Top-ranked models encode useful merchant-category and transaction-amount priors. The top-3 ranked models exhibit a stronger understanding of merchant-category priors than the remaining frontier models, consistent with the findings of our prior work [32]. Also, these models assign higher positive-class probabilities to larger-dollar transactions, mirroring the dollar-bucket-conditioned priors we identified in VRLLM (§ 6.1).

The additional analysis of frontier models can be found in Appendix § 11. The above evidence suggests that, while frontier models are improving in zero-shot classification on our domain-specific data, task-specific supervised training remains necessary for producing fine-grained prediction scores that capture domain-specific predictive signals.

Ablation Study

Due to the high computational cost of ablation experiments, we cap the training data at 160M transactions and evaluate on a smaller validation set for the studies in Figure 4, Figure 5, and Figure 6. This setup is sufficient to support our conclusions. All ablation studies use the same hardware, random seed, training recipe, and data, except for the component under investigation. The curves are smoothed across adjacent steps.

Validation performance of feature value only and feature name + value (short) data serialization templates

Figure 4. The validation performance of feature value only and feature name value (short) data serialization templates.

Validation performance of different LLMs on the feature name + value (short) template

Figure 5. The validation performance of different LLMs on the feature name + value (short) template.

Validation performance of training without pretrained LLM weights and without textual merchant names

Figure 6. The validation performance of training without pretrained LLM weights and without textual merchant names.

Encoder vs. decoder with 1M training examples (Table 4). In the early stage of this project, we used a small dataset (1M transactions) to experiment with different model architectures. We test whether bidirectional text embedding models are better suited to encoding serialized tabular inputs than a causally masked decoder. The encoder-style alternatives are BERT [33] and NV-Embed-v2 [34], a more recent embedding model derived from a Mistral [35] backbone. Their average-pooled sequence representations are passed to a feed-forward classification head and the entire model is fine-tuned for the transaction classification task.

Under the tested 1M-example configurations, VRLLM outperforms both encoder baselines. Because the models differ in pretraining data/objectives, size, pooling, optimization, and adaptation method as well as attention mask, this experiment does not isolate a general advantage of decoder-only architecture.

Three data templates with 1M training examples (Table 3). We also experiment with three different serialization templates. Table 3 shows that the semantically enriched long template achieves the best Recall@OFPR when only 1M training examples are available. This suggests that the semantically rich template is preferable in the low-data regime because its natural-language descriptions provide a useful semantic prior. However, as we scale training on more data (see next paragraph), the benefit of semantic enrichment diminishes.

TemplateRecall@OFPRPR-AUC
Feature Value Only31.922.0
Feature Name + Value (Short)33.322.6
Feature Name + Value (Long)35.922.5

Table 3. Validation performance of VRLLM fine-tuned on 1M transactions with different templates.

Value-only vs. short serialization templates (Figure 4). As we trained on more data, the feature-value-only and feature-name-plus-value (short) templates follow broadly similar learning curves. The short template has a modest advantage at several intermediate stages, but this advantage narrows with additional data, and the value-only template ultimately performs best at the largest training scale. This result indicates that explicit feature-name semantics mainly improve data efficiency: when sufficient labeled data are available, VRLLM can infer predictive regularities directly from the ordered feature values while benefiting from the shorter, more token-efficient input. We posit that feature names or markers are still necessary if feature order varies across inputs.

LLMs with different sizes (Figure 5). The experiment reveals a clear capacity-dependent learning pattern. Llama 3.2 3B improves more rapidly and maintains the strongest validation performance through most of training, whereas Llama 3.2 1B closes much of the gap after seeing more than 100 million transactions. MobileLLM 0.1B [36] improves initially but plateaus and then declines slightly at the largest data scales. The 1B backbone offers a favorable balance among classification performance, fine-tuning and inference cost.

Effect of LLM pretraining and input semantics (Figure 6). We investigate whether LLM pretraining and semantic information in the tabular data improve classification performance. We train a Llama 3.2 1B backbone from scratch by reinitializing the attention and FFN layers (the yellow line). Its performance is much worse than fine-tuning with pretrained weights. Because the merchant-name field carries the richest semantic information in our transaction data, we map and replace each merchant name with a unique string-based ID consistently across the training and test data to investigate the impact of merchant names on classification performance. As shown in Figure 6, there is a consistent, substantial gap between training with merchant names and merchant IDs. We conclude that the pretrained weights provide a strong starting point for downstream adaptation, and the merchant-name semantics further improve the classifier’s generalization. Merchant names offer an extrapolation advantage through their semantic information, in contrast to the out-of-distribution (OOD) generalization limitations of merchant IDs. Please refer to § 5.4 for more evidence on merchant generalization performance.

Deployment-Oriented Validation

Temporal performance stability (Figure 7). To validate the deployment viability of VRLLM, we test its performance alongside that of the production model offline over eight consecutive evaluation time windows without model update. We cannot disclose the window duration or transaction volume per window due to the company’s policy. Across these windows, VRLLM and the production model exhibit roughly the same temporal trajectory. VRLLM remains competitive throughout and its performance changes closely track those of the production model rather than showing additional model-specific deterioration. This comparable pattern suggests that VRLLM responds to temporal distribution shift similarly to the deployed reference model, supporting its suitability for deployment under the same monitoring and model-refresh practices.

Recall@OFPR change of VRLLM and production model on eight consecutive evaluation time windows

Figure 7. The Recall@OFPR change of VRLLM and production model on eight consecutive evaluation time windows.

Generalization to unseen merchants (Table 5). A production model continually encounters new and long-tail merchants absent from its training data, so we test whether VRLLM’s classification ability depends on seen merchants. We build an unseen-merchant test set by selecting test transactions whose merchant names do not appear in the training data, yielding millions of transactions. We also construct four seen-merchant control populations, each sampled to the same size and label distribution but matched on one categorical field (merchant category code, product code, dollar bucket, or transaction day of week) to reduce differences unrelated to merchant familiarity.

PopulationRelative PR-AUC (%) VRLLMRelative PR-AUC (%) Production ModelRelative Recall@OFPR (%) VRLLMRelative Recall@OFPR (%) Production Model
Matched by Transaction Day100.0100.0100.0100.0
Matched by Product Code99.499.997.897.4
Matched by Dollar Bucket98.899.193.593.8
Matched by MCC92.186.787.983.7
Unseen Merchant86.773.881.568.0

Table 5. VRLLM vs. the production model on the unseen-merchant test set and four seen-merchant control populations. PR-AUC and Recall@OFPR are each normalized to that model’s own Matched-by-Transaction-Day population (100%) so the relative drop for each population is directly comparable.

Table 5 reports PR-AUC and Recall@OFPR for VRLLM and the production model on all five populations, each normalized to that model’s own Matched-by-Transaction-Day population (100%). On the unseen-merchant population, VRLLM shows a real downgrade (86.7% PR-AUC, 81.5% Recall@OFPR), confirming some dependence on merchant memorization, but not a collapse in performance. The production model’s downgrade on the same population is larger on both metrics (73.8% PR-AUC, 68.0% Recall@OFPR), while the two models track each other closely across the four seen-merchant controls. This indicates VRLLM generalizes to unseen merchants somewhat better than the production model, and that both metrics remain within a manageable range supporting VRLLM’s viability when handling the steady stream of new and long-tail merchants in production.

Disagreement and ensemble analysis (Table 6). Since VRLLM and the production model are trained on the same set of features, we want to understand their prediction differences and the potential for ensembling. Following our prior work on learning from disagreement [37], we carry out a post-hoc analysis of the predictions from both models on the same evaluation data. At the comparable operating threshold, VRLLM uniquely captures 8.0% of all true positive transactions, while the production model uniquely captures 7.9%.

ModelUnique true positives (% of all positives)Feature AFeature BFeature C
VRLLM8.0%53.28.75.5
Production Model7.9%33.62.713.1

Table 6. Disagreement analysis of VRLLM and production model on the same evaluation data. The number under each proprietary feature (A, B, and C) represents its average value in the corresponding true-positive group.

The feature-level analysis in Table 6 reveals that the unique positives captured by each model have distinct average values across selected features. Moreover, as shown in Table 2, averaging the prediction scores of VRLLM and the production model yields improvements of 7.6 and 3.4 points in Recall@OFPR and PR-AUC, respectively. These results collectively demonstrate that VRLLM learns predictive patterns distinct from those of the production model despite being trained on the same features. These complementary patterns improve classification performance through ensembling, which is a viable way to put the model in production.

Note on model robustness. Since our classification task is sensitive to numerical precision and classification thresholds, we post-process and calibrate the LLM’s predicted probabilities during inference to maintain robust deployment performance. We do not use the post-training or temperature-based calibration techniques employed by Jev-like decision models, since we use our own business logic to calibrate probabilities. We also find that fixing the input format, padding settings, GPU kernels, and software and hardware configurations is critical to maintaining deterministic predictions and robust performance during inference.

Model Interpretation

§ 5 shows that VRLLM performs well; this section asks why. Understanding the underlying mechanisms matters for two practical reasons: first, it helps us distinguish generalizable predictive signals from narrow memorized shortcuts, informing trust in a decision-critical production model; second, it surfaces hypotheses that can guide future model design. We examine VRLLM from two angles: a data perspective (§ 6.1), where counterfactual feature swaps reveal what prior each input field contributes to the prediction, and a model perspective (§ 6.2), where causal ablation of individual attention heads and FFN layers identifies which internal components the prediction depends on.

Data Perspective

To isolate the prior associated with an individual feature, we replace only that feature’s serialized value in holdout transactions, keep every other input token fixed, and measure the resulting change in the predicted positive-class probability [38]. We aggregate these changes for each source–target pair and examine the two ground-truth classes separately. This intervention measures the model’s sensitivity to a feature value and the prior carried by its text representation; because the swap can break correlations among fields and push the input off the data manifold, it should not be interpreted as a causal effect of changing the underlying transaction [39]. Table 7 and Table 8 use pseudonymous values to summarize the two distinct response patterns without disclosing proprietary feature values.

SourceTargetTarget associationTypical prediction probability response
Code-ACode-BMuch higher training-sample positive rateIncreases for both ground-truth classes
Code-BCode-AMuch lower training-sample positive rateDecreases for both ground-truth classes

Table 7. A summary of the prior learned for a product-code feature. Code names and prior levels are illustrative for compliance; the response directions summarize the feature-swap analysis.

SourceTargetTraining data positive rateTypical prediction probability response
Low bucketHigh bucketSimilar across bucketsIncreases for both ground-truth classes
High bucketLow bucketSimilar across bucketsDecreases for both ground-truth classes

Table 8. A summary of the prior learned for the dollar-bucket feature. Buckets are described only by relative direction (low to high) to avoid revealing production boundaries.

Product code: VRLLM looks up each code’s historical rate. The product code is an internally defined field, provided to VRLLM as a categorical feature. The product-code swaps (Table 7) show VRLLM behaving like a lookup table over code identities: moving from a code with a lower positive rate in the training data to one with a higher rate raises the model’s predicted probability, and the reverse lowers it, even though every other input feature stays unchanged. This happens in the same direction for both ground-truth classes, so the code is not applying a class-specific rule; it is adding a fixed offset based on how often that code was positive in training, i.e., a base rate learned directly from training data statistics. Because the codes are nominal (there is no natural low-to-high order among them), this is best explained as a stored, per-code lookup value, not as reasoning over the code’s value. See Appendix § 9 for the underlying counterfactual-swap results supporting this pattern.

Dollar bucket: VRLLM associates a higher bucket with a higher positive probability, regardless of its historical rate. The dollar bucket is a bucketed transaction-amount range, not the exact dollar amount, given to VRLLM as a categorical feature. Dollar-bucket swaps (Table 8) behave differently from product-code swaps: moving from a low bucket to a high bucket raises the predicted probability, and the reverse lowers it, even though the buckets have similar positive rates in the training data. So this is not VRLLM recalling a per-bucket historical rate the way it does for product code (there is none to recall—the rates are nearly identical across buckets). Instead, VRLLM treats the bucket’s position in the low-to-high ordering itself as the signal, applying the rule “a higher bucket number means higher positive probability” uniformly across buckets. Together with our frontier model analysis in § 5.2, these findings suggest that this prior may originate from pretraining and remain largely unchanged after fine-tuning. See Appendix § 10 for the underlying counterfactual-swap results supporting this pattern.

Different features induce different priors. Taken together, the counterfactual swaps on two representative features show that VRLLM does not apply a uniform rule to every categorical feature. The product code primarily supplies an identity-specific empirical base rate, while the dollar bucket supplies an ordered magnitude prior. The final prediction score of VRLLM is based on the combination of priors induced by various input features.

Model Perspective

Having characterized sensitivity to two input features, we now turn from what the model uses to how it computes it. We treat each attention head and each FFN sublayer as an individually testable component (a circuit) [40] of the residual stream, and intervene on one circuit at a time by replacing its activation with a class-agnostic mean-ablation value while holding every other circuit fixed. This is a causal instead of correlational analysis [41, 42]. The positive class signal is linearly decodable from a layer ℓ\ell’s residual stream alone can predict the label above chance [43]; observing this only shows association. If instead we ablate a circuit and that decodability disappears, the circuit is necessary for the positive class signal.

On a holdout evaluation set of 20K transactions (10K positive, 10K negative), we train a binary linear probe to predict the transaction label from the residual stream after each decoder layer. Under normal operation, the probe’s discriminative accuracy climbs steadily with depth; ablating either of the earliest two FFN layers (layer 0 or layer 1) causes that climb to plateau early, i.e., within two to three layers after the ablation point, well below the baseline’s final-layer accuracy. Ablating any other single circuit leaves the climb essentially intact (Figure 8). The earliest two FFN layers are therefore critical for the positive class signal the rest of the network relies on. No other individual component produced a comparably large effect.

Figure 8. Balanced binary linear-probe accuracy by decoder layer under the baseline (unablated) model, with layer-0 and layer-1 FFN ablation shown individually and the range spanning single-head ablation (layers 0–15, 512 = 32×1632 \times16 heads in total) and layer-2–15 FFN ablation shown as bands.

A plausible architectural explanation is the curse of depth [44]: VRLLM’s backbone uses pre-normalization, where each layer adds its output directly onto a residual stream that every later layer also reads from and writes to. Because this stream’s scale grows with depth, by the later layers each new layer’s own contribution is small relative to what has already accumulated, so late layers end up barely modifying the representation they receive rather than substantially transforming it. Early layers do not have this handicap, so they are where the network has the most room to shape the representation. This independently predicts that early layers should matter disproportionately, consistent with our ablation results.

This explanation accounts for the FFN result, but not for why no single early attention head shows the same effect: curse of depth is about depth (early vs. late) and says nothing about redundancy within a layer. Llama 3.2 1B’s multi-head attention has 32 parallel heads at each layer, so one head’s output can likely be compensated by the other 31; the FFN sublayer has no such parallel redundancy. We do not have an architectural explanation for the head result and leave it as an open question.

Mean-ablation only tells us a circuit is necessary. It cannot tell us what the circuit actually does to the prediction, because replacing its output with an average value erases any directional information. Activation steering [45] and activation patching [41] intervene with a specific value instead, e.g., the opposite class’s typical activation, or another example’s activation. Therefore they could show whether the earliest FFN layers push prediction toward the right class or simply gate the signal on and off. We leave this to future work.

Related Work

Transaction Representation Learning

Transaction representation learning encompasses graph-based, sequential, and record-level approaches. Graph neural networks (GNNs) capture dependencies among interacting entities, e.g., banking transaction graphs combine structural and edge-level information [46]. Sequential methods instead encode behavioral histories: PDT [47] learns user and merchant embeddings by encoding behavior sequences from different views with Transformers, while FATA-Trans [13] uses Transformers to capture within-record feature interactions and temporal dependencies. Payment foundation models further explore purchase-sequence pretraining and downstream task adoption [12, 14, 17, 48]. These methods generally consume graphs or sequences instead of independent serialized rows and rely on dedicated graph or sequence encoders.

For individual records, modern tabular architectures introduce explicit feature-interaction and attention-based inductive biases. DCNv2 combines an enhanced cross network with deep neural layers to learn explicit and implicit feature interactions [25]. TabTransformer [5] contextualizes categorical fields, while SAINT [8] combines feature-wise and intersample attention with contrastive pretraining. Nevertheless, boosted trees [23, 24] remain competitive on typical tabular benchmarks, with relative performance depending on dataset characteristics and tuning budgets [2, 3].

Recent tabular foundation models combine pretraining with in-context learning to transfer predictive capabilities across datasets. TabPFN-3 [26] scales to million-row tables, while TabICLv2 [10] improves large-table generalization with a scalable-softmax attention. TabFM [27] and KumoTabular [28] support in-context classification and regression using causal-model-generated tables and structured attention mechanisms. Together, these models enable transferable, dataset-level inference without training a separate predictor from scratch for each task. However, the in-context fitting/inference can still be computationally intensive.

VRLLM follows a different approach: it serializes transaction records and fine-tunes a general pretrained LLM on billions of transactions. Rather than introducing a domain-specific backbone or learning a separate embedding table for each categorical field, it reuses a shared pretrained language-model vocabulary to represent extremely high-cardinality features. Its distinction is therefore the combination of transaction serialization, vocabulary and pretrained knowledge reuse, and large-scale domain supervision.

LLM for Transaction Data

LLM-based approaches to tabular and transaction data differ primarily in how structured inputs are represented and how pretrained models are adapted [11]. Text serialization provides a direct interface to existing tokenizers and language-model representations: TabLLM [6] serializes table rows for prompting or few-shot fine-tuning, while LLM4E5 [15] extends this approach to event sequences by fine-tuning on enriched textual descriptions to learn user embeddings. Other methods introduce specialized tokenization or embedding alignment to accommodate structured behavioral inputs. SeqLLM [16] combines dedicated event tokens and a lightweight projector with supervised fine-tuning, whereas LATTE [49] and MINT [50] connect transaction encoders to language representations through contrastive alignment and projected embedding injection, respectively. LLMs can also serve as frozen feature extractors, generating embeddings of textualized rows for downstream tabular models [51, 52]. Together, these approaches span direct textual adaptation, specialized input representations, and embedding-based transfer.

Complementing work on LLM tabular data encoding, recent work explores decision-oriented prediction instead of free-form generation. Jev [53] and the OpenAI Decisions API [31] return typed predictions, probabilities, or scores that applications can consume directly. An open-weight model such as Perplexity Decider [30] adapts a pretrained backbone [54] for structured decision tasks. These systems share the goal of avoiding lengthy LLM responses when the desired output is a bounded decision, although their training procedures and prediction interfaces differ.

VRLLM shares this decision-oriented objective while following TabLLM, LLM4E5, and SeqLLM in adapting pretrained language models through task-specific supervision on serialized tabular data. VRLLM retains the tokenizer and pretrained vocab-embedding instead of introducing a dedicated event vocabulary, field-specific embedding tables, or an external transaction encoder. This choice avoids vocabulary expansion and additional representation-alignment stages, allowing high-cardinality field values to be represented compositionally through shared tokens.

Predictive Model and Transformer Interpretability

Interpretability methods for predictive models and Transformers span a spectrum: input-level attribution asks what a feature contributes to a prediction, component-level analysis asks which internal parts compute it, and probing asks what information a representation carries. We organize this subsection along that spectrum.

Input-level feature attribution typically perturbs or removes a feature and measures the resulting change in model output, formalized through a game-theoretic allocation of credit across features [38]. Because this requires evaluating the model on feature combinations absent from the training distribution, attribution can be distorted when features are correlated, motivating conditional or dependence-aware approximations [39]. Our counterfactual feature-value swaps follow this input-perturbation tradition. However, instead of a numerical attribution score, we characterize the qualitative response pattern each field induces, e.g., base-rate lookup for product code and ordinal generalization for dollar bucket.

Mechanistic interpretability treats attention heads and FFN layers as individually testable circuits wired to the residual stream to contribute additional signal [40]. Prior work localizes circuit-level computation by patching or restoring hidden states [41, 42], or by steering activations along a learned direction [45]. We pair this causal logic with linear probing of anomaly signals [43, 55, 56]. A probe shows what information a representation carries, but not that the model actually uses it. To test actual use, we ablate individual circuits and probe the anomaly signal in layer-wise activations before and after ablation (Figure 8). This way, we can distinguish a signal that is merely present from one on which the model actually depends on it. A separate line of work instead prunes or skips whole layers and finds that many contribute little to final performance [57, 58], broadly consistent with our finding that the earliest FFN layers are disproportionately important relative to the other circuits we test (Figure 8).

Conclusion

This paper demonstrates that a pretrained decoder-only LLM can be adapted into a competitive industrial-scale tabular classifier by serializing transaction records and fine-tuning on domain-specific labels. Trained on billions of records, VRLLM achieves the strongest performance among individual models in our benchmark. Our ablation study and interpretability analysis provide further insights into its performance and predictive behavior. Although our findings are limited to a single proprietary task, they offer a practical recipe for LLM-based tabular prediction and a testable interpretation of how these models make predictions.

Interpretation: Product Code Swap Analysis

§ 6.1 argues that VRLLM treats the product code as a lookup table of training-data rates instead of reasoning over the code’s value. This appendix substantiates that claim with the full counterfactual-swap results.

Experiment setup. Table 9 and Figure 9–Figure 10 support this pattern with the underlying counterfactual-swap results. Since the product code itself cannot be disclosed, every code is encoded as a capitalized Greek/Latin letter (Θ\Theta, I, K, …\ldots); the encoding is arbitrary but fixed across Table 9 and Figure 9–Figure 10. Table 9 reports training-set statistics for a 19-code subset, and Figure 9–Figure 10 report the counterfactual swap matrix restricted to a 12-code (rows) by 20-code (columns) subset for readability; the swap matrix additionally includes code HH, a placeholder value never seen during training and therefore absent from Table 9.

Product CodeIIKKΘ\ThetaΞ\XiEENNΛ\LambdaMMOOΣ\Sigma
Positive Rate45.20%42.67%38.29%35.56%34.23%33.27%30.57%26.71%26.25%24.99%
Product CodePPTTZZΠ\PiΔ\DeltaΓ\GammaBBΥ\UpsilonAA
Positive Rate16.70%15.76%0.50%0.24%0.00%0.00%0.00%0.00%0.00%

Table 9. Training-set positive rate for a 19-code subset of the product-code feature (sorted by positive rate, descending). Each code is replaced by a fixed pseudonymous symbol since the underlying product-code values cannot be disclosed; the encoding is arbitrary but matches Figure 9–Figure 10. Negative-class records were downsampled so these rates are not representative of the true population rate.

Figure 9. Product-code counterfactual swap, true-positive source instances: mean signed change in predicted positive-class probability (post-swap minus original) when the source product code (rows) is replaced by the target product code (columns), restricted to a 12-code (rows) by 20-code (columns) subset; rows are a subset of the codes in Table 9, and columns additionally include code HH (never seen during training, absent from Table 9). Axis labels give, in parentheses, the number of true-positive transactions actually sampled for each code as a source (up to 10,000). Diverging color scale centered at zero.

Figure 10. Same construction as Figure 9, restricted to true-negative source instances.

Sampling method. For each source code within a ground-truth class, we sample up to 10,000 held-out test transactions. We use every available transaction if fewer than 10,000 exist for that (source code, ground-truth class) combination and replace the serialized product-code value with every target code, measuring the resulting change in the predicted positive-class probability. The actual number of transactions sampled per source code is given in parentheses on the row and column axis labels of Figure 9–Figure 10.

Result. Code Π\Pi has a near-zero training-set positive rate (0.24%); Υ\Upsilon and A, included only as swap targets in Figure 9–Figure 10, were never observed as positive in training. All three act as strong negative-class signals regardless of the swapped instance’s true label. Swapping away from Π\Pi into the high-base-rate NN code (33% training positive rate) produces the largest increase among true-positive instances in this subset (Π→N\Pi\to N: 0.412 →\to 0.837, +0.424, n=101n=101), while swapping true-positive instances originally tagged NN into Υ\Upsilon produces the largest decrease (N→ΥN \to\Upsilon: 0.753 →\to 0.191, −0.562-0.562, n=10,000n=10{,}000). The same pattern holds, with a smaller magnitude, for true-negative instances (Π→N\Pi\to N: 0.036 →\to 0.240, +0.204, n=10,000n=10{,}000; N→ΥN \to\Upsilon: 0.167 →\to 0.012, −0.154-0.154, n=10,000n=10{,}000).

In short, VRLLM appears to treat the product code largely as a base-rate lookup: swapping to a historically low-positive-rate code suppresses the predicted positive-class probability regardless of the transaction’s other features and true label, and vice versa for high-positive-rate codes.

Interpretation: Dollar Bucket Swap Analysis

A parallel analysis of the dollar-bucket feature, summarized in § 6.1, finds that VRLLM treats a higher bucket as riskier irrespective of its training-data rate. The swap results below support this reading.

Experiment setup. Table 10 and Figure 11 support this pattern with the underlying counterfactual-swap results, restricted to ten categories observed during training for readability. Since the actual dollar-amount ranges cannot be disclosed, buckets are encoded as Roman numerals in their true increasing order (I << II << ⋯\cdots << IX); bucket 0, a non-numeric unknown category rather than a dollar amount, is labeled “Unknown” and falls outside this ordering. The encoding is arbitrary only in that it hides the real dollar thresholds and the relative order it displays is the true one. The data sampling method of this experiment is the same as that used in the product-code swap analysis.

Dollar BucketUnknownIIIIIIIVVVIVIIVIIIIX
Positive Rate0.00%31.65%33.01%29.70%31.50%31.07%32.74%36.83%34.89%32.44%

Table 10. Training-set positive rate for the 10 dollar-buckets (ordered by increasing bucket). Buckets are encoded as Roman numerals in their true increasing order since the actual dollar ranges cannot be disclosed; bucket Unknown is a non-numeric category outside this ordering. Negative-class records were downsampled, so these rates are not representative of the true population rate.

Figure 11. Dollar-bucket counterfactual swap: mean signed change in predicted positive-class probability (post-swap minus original) when the source bucket (rows) is replaced by the target bucket (columns), restricted to ten observed training categories of Table 10, arranged in their true increasing order. Left: true-positive source instances; right: true-negative source instances, sharing the same diverging color scale (centered at zero) for direct comparison. Axis labels give, in parentheses, the number of transactions actually sampled for each bucket as a source, for that panel’s ground-truth class (up to 10,000).

Result. The most extreme swap, from the lowest bucket I to the highest bucket IX, raises the predicted positive-class probability for both true-positive instances (I →\to IX: 0.764 →\to 0.863, +0.099, n=9,170n=9{,}170) and, more sharply, true-negative instances (I →\to IX: 0.157 →\to 0.606, +0.449, n=10,000n=10{,}000); the reverse swap lowers it in both cases (IX →\to I: 0.674 →\to 0.533, −0.141-0.141, n=2,102n=2{,}102 for true-positive; 0.170 →\to 0.126, −0.044-0.044, n=10,000n=10{,}000 for true-negative).

To sum up, VRLLM appears to treat the dollar bucket as an ordinal risk signal instead of a base-rate lookup: moving a transaction to a higher bucket raises its predicted positive-class probability and moving it to a lower bucket lowers it, regardless of the transaction’s true label, even though the buckets’ training-data positive rates are nearly identical.

Additional Analysis of Frontier Models

We compute pairwise Spearman rank correlations between the output scores of frontier models evaluated in § 5.2. According to Figure 12, the pairwise Spearman rank correlation scores span 0.18 to 0.86 and partition the models into two groups. GPT-6-Astra, Claude-fable-5.1, Claude-opus-4.5, Kimi-K3, and Grok-4.7 form a tightly coupled cluster with within-cluster correlations between 0.63 and 0.86. Outside this cluster, outputs decouple sharply: Gemini-4-argon averages only 0.26 correlation with the remaining listed models and reaches at most 0.44 (with GPT-6-Astra). The concentration of high pairwise correlations among the top-ranked models suggests that they share some common properties that drive similar output score distributions.

Figure 12. Spearman rank correlation of zero-shot scores across frontier LLMs on the 10K transaction classification sample. Models are ordered by hierarchical clustering on 1−ρ1 - \rho so related models appear as contiguous blocks. The gold box marks a tightly coupled cluster whose within-group correlations range from 0.63 to 0.86. The red outline highlights Gemini-4-argon, whose outputs are the most decoupled from the rest (mean correlation 0.26, maximum 0.44).

Open Source/Weight Model Source and License

The source code, checkpoints, and license information of all open source/weight models we compared and used in the paper are listed in Table 11.

References

  1. [1]Visa Inc. Visa fiscal 2025 annual report, 2025. URL https://s29.q4cdn.com/385744025/files/doc_downloads/2025/Visa-Fiscal-2025-Annual-Report.pdf. Accessed: 2026-09-22.
  2. [2]Léo Grinsztajn, Edouard Oyallon, and Gaël Varoquaux. Why do tree-based models still outperform deep learning on typical tabular data? Advances in neural information processing systems, 35:507–520, 2022.
  3. [3]Duncan McElfresh, Sujay Khandagale, Jonathan Valverde, Vishak Prasad C, Ganesh Ramakrishnan, Micah Goldblum, and Colin White. When do neural nets outperform boosted trees on tabular data? Advances in Neural Information Processing Systems, 36:76336–76369, 2023.arxiv.org/abs/2305.02997
  4. [4]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1706.03762
  5. [5]Xin Huang, Ashish Khetan, Milan Cvitkovic, and Zohar Karnin. Tabtransformer: Tabular data modeling using contextual embeddings. arXiv preprint arXiv:2012.06678, 2020.arxiv.org/abs/2012.06678
  6. [6]Stefan Hegselmann, Alejandro Buendia, Hunter Lang, Monica Agrawal, Xiaoyi Jiang, and David Sontag. Tabllm: Few-shot classification of tabular data with large language models. In International Conference on Artificial Intelligence and Statistics, pages 5549–5581. PMLR, 2023.arxiv.org/abs/2210.10723
  7. [7]Jingang Qu, David Holzmüller, Gaël Varoquaux, and Marine Le Morvan. TabICLv2: A better, faster, scalable, and open tabular foundation model, 2026.arxiv.org/abs/2602.11139
  8. [8]Gowthami Sompalli, Micah Goldblum, Avi Schwarzschild, C Bayán Bruss, and Tom Goldstein. Saint: Improved neural networks for tabular data via row attention and contrastive pre-training. arXiv preprint arXiv:2106.01342, 2021.
  9. [9]Noah Hollmann, Samuel Müller, Lennart Purucker, Arjun Krishnakumar, Max Körfer, Shi Bin Hoo, Robin Tibor Schirrmeister, and Frank Hutter. Accurate predictions on small data with a tabular foundation model. Nature, 637 (8045):319–326, 2025.DOI
  10. [10]Jingang Qu, David Holzmüller, Gaël Varoquaux, and Marine Le Morvan. TabICLv2: A better, faster, scalable, and open tabular foundation model. arXiv preprint arXiv:2602.11139, 2026.arxiv.org/abs/2602.11139
  11. [11]Yucheng Ruan, Xiang Lan, Jingying Ma, Yizhi Dong, Kai He, and Mengling Feng. Language modeling on tabular data: A survey of foundations, techniques and evolution. arXiv preprint arXiv:2408.10548, 2024.arxiv.org/abs/2408.10548
  12. [12]Piotr Skalski, David Sutton, Stuart Burrell, Iker Perez, and Jason Wong. Towards a foundation purchasing model: Pretrained generative autoregression on transaction sequences. In ACM ICAIF, pages 141–149, 2023.DOI
  13. [13]Dongyu Zhang, Liang Wang, Xin Dai, Shubham Jain, Junpeng Wang, Yujie Fan, Chin-Chia Michael Yeh, Yan Zheng, Zhongfang Zhuang, and Wei Zhang. Fata-trans: Field and time-aware transformer for sequential tabular data. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, pages 3247–3256, 2023.DOI
  14. [14]Yingtong Dou, Zhimeng Jiang, Tianyi Zhang, Mingzhi Hu, Zhichao Xu, Shubham Jain, Uday Singh Saini, Xiran Fan, Jiarui Sun, Menghai Pan, et al. Transactiongpt. arXiv preprint arXiv:2511.08939, 2025.arxiv.org/abs/2511.08939
  15. [15]Aleksei Shestov, Omar Zoloev, Maksim Makarenko, Mikhail Orlov, Egor Fadeev, Ivan Kireev, and Andrey Savchenko. Llm4es: Learning user embeddings from event sequences via large language models. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, pages 5238–5242, 2025.arxiv.org/abs/2508.05688
  16. [16]Guilin Li, Jiaxing Zhang, Matthias Hwai Yong Tan, Bo Wang, and Weiran Huang. Seqllm: Augmenting llms with behavioral-sequence modeling for high-stakes decisions at wechat pay. arXiv preprint arXiv:2608.03063, 2026.arxiv.org/abs/2608.03063
  17. [17]Chin-Chia Michael Yeh, Uday Singh Saini, Xin Dai, Xiran Fan, Shubham Jain, Yujie Fan, Jiarui Sun, Junpeng Wang, Menghai Pan, Yingtong Dou, et al. Treasure: A transformer-based foundation model for high-volume transaction understanding. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 1, pages 2518–2527, 2026.DOI
  18. [18]Abhimanyu Dubey et al. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
  19. [19]Yury Gorishniy, Ivan Rubachev, and Artem Babenko. On embeddings for numerical features in tabular deep learning. Advances in Neural Information Processing Systems, 35:24991–25004, 2022.arxiv.org/abs/2203.05556
  20. [20]Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.arxiv.org/abs/2106.09685
  21. [21]Haibo He and Edwardo A. Garcia. Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9):1263–1284, 2009. doi: 10.1109/TKDE.2008.239.DOI
  22. [22]Sam McCandlish, Jared Kaplan, Dario Amodei, and OpenAI Data Team. An empirical model of large-batch training, 2018. URL https://arxiv.org/abs/1812.06162.
  23. [23]Tianqi Chen and Carlos Guestrin. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 785–794. Association for Computing Machinery, 2016. doi: 10.1145/2939672.2939785.DOI
  24. [24]Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. LightGBM: A highly efficient gradient boosting decision tree. In Advances in Neural Information Processing Systems, volume 30, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html.
  25. [25]Ruoxi Wang, Rakesh Shivanna, Derek Z. Cheng, Sagar Jain, Dong Lin, Lichan Hong, and Ed H. Chi. DCN V2: Improved deep & cross network and practical lessons for web-scale learning to rank systems. In Proceedings of the Web Conference 2021. Association for Computing Machinery, 2021. doi: 10.1145/3442381.3450078.DOI
  26. [26]Léo Grinsztajn, Klemens Flöge, Oscar Key, Felix Birkel, Philipp Jund, Brendan Roof, Mihir Manium, Shi Bin Hoo, Magnus Bühler, Anurag Garg, Dominik Safaric, Jake Robertson, Benjamin Jäger, Simone Alessi, Adrian Hayler, Vladyslav Moroshan, Lennart Purucker, Philipp Singer, Alan Arazi, Julien Siems, Jan Hendrik Metzen, Georg Grab, Nick Erickson, Siyuan Guo, Eliott Kalfon, Simon Bing, David Salinas, Clara Cornu, Lilly Charlotte Wehrhahn, Diana Kriuchkova, Kursat Kaya, Lydia Sidhoum, Marie Salmon, Jerry Chen, Madelon Hulsebos, Yann LeCun, Samuel Müller, Bernhard Schölkopf, Sauraj Gambhir, Noah Hollmann, and Frank Hutter. TabPFN-3: Technical report, 2026.arxiv.org/abs/2605.13986
  27. [27]Weihao Kong, Erez Louidor Ilan, Shuxin Nie, Taman Narayan, Rajat Sen, Yichen Zhou, Deqing Fu, Samet Oymak, and Abhimanyu Das. TabFM: A zero-shot foundation model for tabular data, 2026.arxiv.org/abs/2609.37959
  28. [28]NVIDIA. Kumo Tabular. Hugging Face model card, 2026. URL https://huggingface.co/nvidia/Kumo-Tabular.
  29. [29]PyTorch Contributors. torch.nn.EmbeddingBag — PyTorch documentation. https://docs.pytorch.org/docs/2.8/generated/torch.nn.EmbeddingBag.html, 2026. Version 2.8.
  30. [30]Perplexity AI. pplx-decider-v1.2: A decision model checkpoint on the qwen3.8-27b backbone. https://huggingface.co/perplexity-ai/pplx-decider-v1.2, 2026. Accessed: 2026-11-05.
  31. [31]OpenAI Developers. Decisions api: Turn text and images into decisions your application can use. https://developers.openai.com/api/docs/guides/decisions, 2026. Accessed: 2026-11-05.
  32. [32]Liang Wang, Junpeng Wang, Chin chia Michael Yeh, Yan Zheng, Jiarui Sun, Xiran Fan, Xin Dai, Yujie Fan, and Yiwei Cai. Understanding LLM evaluator behavior: A structured multi-evaluator framework for merchant risk assessment, 2026. URL https://arxiv.org/abs/2602.05110.
  33. [33]Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pages 4171–4186, 2019.arxiv.org/abs/1810.04805
  34. [34]Chankyу Lee, Rajarshi Roy, Mengyao Xu, Jonathan Raiman, Mohammad Shoeybi, Bryan Catanzaro, and Wei Ping. NV-Embed: Improved techniques for training LLMs as generalist embedding models. arXiv preprint arXiv:2405.17428, 2024.arxiv.org/abs/2405.17428
  35. [35]Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7b, 2023. URL https://arxiv.org/abs/2310.06825.
  36. [36]Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedоров, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuram Krishnamoorthi, et al. Mobilellm: Optimizing sub-billion parameter language models for on-device use cases. arXiv preprint arXiv:2402.14905, 2024.arxiv.org/abs/2402.14905
  37. [37]Junpeng Wang, Liang Wang, Yan Zheng, Chin-Chia Michael Yeh, Shubham Jain, and Wei Zhang. Learning-from-disagreement: A model comparison and visual analytics framework. IEEE Transactions on Visualization and Computer Graphics, 29(9):3809–3825, 2022.arxiv.org/abs/2201.07849
  38. [38]Scott M. Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems, volume 30, 2017.arxiv.org/abs/1705.07874
  39. [39]Kjersti Aas, Martin Jullum, and Anders Løland. Explaining individual predictions when features are dependent: More accurate approximations to Shapley values. Artificial Intelligence, 298:103502, 2021.arxiv.org/abs/1903.10464
  40. [40]Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. A mathematical framework for transformer circuits. Transformer Circuits Thread, 2021. URL https://transformer-circuits.pub/2021/framework/index.html.
  41. [41]Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. Locating and editing factual associations in GPT. In Advances in Neural Information Processing Systems, volume 35, pages 17359–17372, 2022.arxiv.org/abs/2202.05262
  42. [42]Kevin Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris, and Jacob Steinhardt. Interpretability in the wild: A circuit for indirect object identification in GPT-2 small. In International Conference on Learning Representations, 2023.
  43. [43]Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016.arxiv.org/abs/1610.01644
  44. [44]Wenfang Sun, Xinyuan Song, Pengxiang Li, Lu Yin, Yefeng Zheng, and Shiwei Liu. The curse of depth in large language models. arXiv preprint arXiv:2502.05795, 2025.arxiv.org/abs/2502.05795
  45. [45]Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J Vazquez, Ulisse Mini, and Monte MacDiarmid. Steering language models with activation engineering. arXiv preprint arXiv:2308.10248, 2023.arxiv.org/abs/2308.10248
  46. [46]Naoto Minakawa, Kiyoshi Izumi, Hiroki Sakaji, and Hitomi Sano. Graph representation learning of banking transaction network with edge weight-enhanced attention and textual information. In Companion Proceedings of the Web Conference 2022. Association for Computing Machinery, 2022. doi: 10.1145/3487553.3524643.
  47. [47]Xin Dai, Yujie Fan, Zhongfang Zhuang, Shubham Jain, Chin-Chia Michael Yeh, Junpeng Wang, Liang Wang, Yan Zheng, Prince Osei Aboagye, and Wei Zhang. Pdt: Pretrained dual transformers for time-aware bipartite graphs. arXiv preprint arXiv:2306.01913, 2023.arxiv.org/abs/2306.01913
  48. [48]Maxim Ostroukhоv, Ruslan Mikhailov, Vladimir Iashin, Artem Sokolov, Andrei Akshonov, Vitaly Protasov, Andrey Goncharov, Dmitrii Beloborodov, Vince Mullin, Roman Yokunda Enzmann, et al. Pragma: Revolut foundation model. arXiv preprint arXiv:2604.08649, 2026.arxiv.org/abs/2604.08649
  49. [49]Egor Fadeev, Dzhambulat Mollaev, Aleksei Shestov, Dima Korolev, Omar Zoloev, Ivan A Kireev, Andrey Savchenko, and Maksim Makarenko. Latte: Learning aligned transactions and textual embeddings for bank clients. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 2635–2647, 2025.
  50. [50]Parameswaran Kamalaruban, Viktor Drobny, Mae Madigan, Julia Rozanova, David Sutton, and Stuart Burrell. Mint: A universal zero-shot predictor for transaction data. arXiv preprint arXiv:2608.14198, 2026.
  51. [51]Boshko Koloski, Andrei Margeloiu, Xiangjian Jiang, Blaž Škrlj, Nikola Simidjievski, and Mateja Jamnik. Llm embeddings for deep learning on tabular data. arXiv preprint arXiv:2502.11596, 2025.arxiv.org/abs/2502.11596
  52. [52]Xiran Fan, Zhimeng Jiang, Chin-Chia Michael Yeh, Yuzhong Chen, Yingtong Dou, Menghai Pan, and Yan Zheng. Enhancing foundation models in transaction understanding with llm-based sentence embeddings. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 903–911, 2025.DOI
  53. [53]Diogo Almeida. Introducing system one models & jev. https://typesafe.ai/blog/introducing-system-one-models-and-jev, sep 2026. Accessed: 2026-11-05.
  54. [54]Qwen Team. Qwen3.8-Max: A new bar for coding and cowork, August 2026. URL https://qwen.ai/blog?id=qwen3.8.
  55. [55]John Hewitt and Percy Liang. Designing and interpreting probes with control tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, pages 2733–2743. Association for Computational Linguistics, 2019.arxiv.org/abs/1909.03368
  56. [56]Yonatan Belinkov. Probing classifiers: Promises, shortcomings, and advances. Computational Linguistics, 48(1):207–219, 2022.arxiv.org/abs/2102.12452
  57. [57]Andrey Gromov, Kushal Tirumala, Hassan Shapourian, Paolo Glorioso, and Daniel A. Roberts. The unreasonable ineffectiveness of the deeper layers. arXiv preprint arXiv:2403.17887, 2024.arxiv.org/abs/2403.17887
  58. [58]Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. ShortGPT: Layers in large language models are more redundant than you expect. arXiv preprint arXiv:2403.03853, 2024.arxiv.org/abs/2403.03853

Machine contribution statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How machine contributions are recorded

Paper details

Citation

Cite
Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Contents

Pick where to look, or just type