Manuscript Offprint
arXiv:2610.27256TxnQA: Benchmarking Analytical Reasoning and Evidence Grounding over Transaction Event Sequences
Rabimba Karanjai , Yiming Bian , Yun-Shiuan Chuang , Jenna L. Ballard , Zijie Pan , Shivani Shekhar , Yixi Li , Yirou Ge , Avinash Thangali , Richard Williamson , Linsey Pang , Prakhar Mehrotra
PayPal AI, University of Pennsylvania
Work done during internship at PayPal.
Analyzing merchant transaction histories requires dynamic temporal filtering, entity resolution, and aggregation over irregular event streams—operations poorly captured by static tabular or time-series forecasting benchmarks. We introduce TXNQA, an analytical QA benchmark comprising 27 task families (81 templates) alongside a 5-scenario fraud-risk reasoning suite that evaluates both verdicts and supporting evidence over synthetic, privacy-mitigated transaction data. Ground-truth answers are computed programmatically, and model performance is decomposed into format-following rate (FFR), conditional content accuracy (CA), and end-to-end correctness (E2E). Evaluating prompted proprietary baselines and six LoRA-adapted open-weight models shows that adaptation reliably enforces output schemas but leaves arithmetic bottlenecks: Gemma-4-31B-IT and Qwen3-8B attain E2E scores of 0.867 and 0.816, whereas evaluated MoE checkpoints reach only 0.632–0.713. Furthermore, on the 500-instance fraud suite, verdict accuracy frequently exceeds 80%, yet joint accuracy (requiring exact evidence attribution) collapses to at most ~23%. These findings identify schema compliance, semantic calculation, and evidence attribution as three distinct bottlenecks in transaction-sequence QA.
Correspondence rkaranjai@paypal.com
Date October 2026
1 Introduction
Natural language interfaces for transaction histories allow analysts to query financial activity directly, determining how many unique buyers made purchases in a given window, identifying peak transaction periods, measuring periods of merchant inactivity, or checking whether median spend shifted following a specific date. While such queries are straightforward to articulate, answering them requires orchestrating multiple operations over an irregular stream of events. A large language model (LLM) must filter records by time, resolve counterparties, execute aggregations or comparisons, and format the final answer to meet downstream operational requirements. In high-stakes applications such as fraud detection, the LLM must also move beyond a binary classification to isolate the specific transactions and attributes that support its conclusion.
A transaction history differs fundamentally from standard tabular data or regularly sampled time series. It pairs static merchant metadata with an irregular sequence of timestamped events featuring mixed numerical and categorical attributes. Furthermore, the required computation depends entirely on the query: one question might demand an extremum search, another an entity-linkage check, and a third a multi-step aggregation over sliding windows. Rather than a static forecasting problem, transaction question answering (QA) is an analytical task conditioned entirely on the natural language query. While event-sequence modeling has recognized the distinct nature of irregular event data (Li et al., 2025; Sun et al., 2026), language-driven analytical interfaces over these streams remain underexplored.
Prior work has addressed adjacent problems, including QA over financial reports and tables (Chen et al., 2021; Zhu et al., 2021; Chen et al., 2022; Zhao et al., 2022), time-series QA (Kong et al., 2025; Jing et al., 2026; Xie et al., 2024; Han et al., 2026; Chen et al., 2026; Nie et al., 2026; Xie et al., 2026), representation learning for tabular sequences (Padhi et al., 2021; Babaev et al., 2022; Moskvoretskii et al., 2024; Mollaev et al., 2025), and safety or fraud evaluation for language models (Yang et al., 2025b; Chakraborty et al., 2024). However, current benchmarks rarely evaluate whether models can simultaneously reason across irregular event histories, comply with typed answer schemas, and provide grounded, feature-level evidence.
We make four contributions:
-
A benchmark containing 27 analytical task families spanning 43 answer-format variants and 5 representative fraud scenarios;
-
Programmatically generated analytical gold answers and a scheme that scores format compliance (FFR) separately from content correctness (CA) and jointly (E2E);
-
Prompted-only evaluation across proprietary and open-weight systems and a base-versus-LoRA study across six open-weight checkpoints, compared against a time-series-specialized model;
-
Evidence that nominal parameter scale is not monotonic with adapted performance, and that fraud-verdict quality can substantially exceed supporting-evidence quality.
Time-Series and Event-Sequence QA. A growing body of work examines language-model interfaces for temporal data. Time-MQA established a broad multi-task benchmark for continual pre-training on regular time series (Kong et al., 2025), while ChatTS unified multivariate time series as a native input modality (Xie et al., 2024). Parallel efforts have aligned time-series embeddings with language representations (Sun et al., 2024; Langer et al., 2025) and evaluated specialized skills such as tool execution, long-context retrieval, and clinical grounding (Han et al., 2026; Chen et al., 2026; Nie et al., 2026; Xie et al., 2026). Most relevant to our data format is ESQA (Abdullaeva et al., 2026), which categorizes event-sequence questions into predictive tasks (forecasting future attributes such as loan default) and extractive tasks (computing sequence-level descriptive statistics). Similarly, recent efforts have explored event-centric multi-hop reasoning (Li et al., 2024) and financial event foundation models (Rusakov et al., 2026). TxNQA aligns with the extractive and analytical paradigm of these benchmarks, but differentiates itself by introducing: (i) strictly typed operational schemas that decouple formatting compliance from numerical execution, and (ii) a controlled, feature-level evidence-selection task for risk assessment.
Transaction and Event-Sequence Modeling. Dedicated architectures for tabular sequences such as TabFormer (Padhi et al., 2021), CoLES (Babaev et al., 2022), and MLEM (Moskvoretskii et al., 2024) use field-aware attention and contrastive objectives to model multi-attribute event histories. While these approaches produce powerful sequence representations, they are predominantly evaluated on fixed downstream objectives such as classification, representation retrieval, or next-token forecasting. TxNQA instead benchmarks language models on query-conditioned analytical reasoning, where the required operation must be interpreted dynamically from an analyst's query.
Fraud QA Benchmarking. Prior LLM fraud benchmarks mainly focus on textual content. Fraud-R1 (Yang et al., 2025b) evaluates resistance to multi-turn fraud inducements, while DetoxBench (Chakraborty et al., 2024) benchmarks classification across phishing, fraudulent and spam emails, fake jobs, fake news, and abusive language. These settings assess signals expressed directly in text rather than evidence distributed across structured transaction records. Closer to our setting, Tan et al. (2026) apply LLMs to tabular transactions

Figure 1 Overview of the TxnQA benchmark framework. Starting from real merchant transaction data, we generate privacy-mitigated synthetic merchant profiles and irregular transaction sequences using REaLTabFormer. Each transaction sequence is converted into natural-language context and paired with automatically generated question-answer pairs. The resulting benchmark is used to evaluate multiple open-weight large language models under both base (zero-shot) and LoRA supervised fine-tuning settings. Model performance is assessed using three complementary metrics together with fine-grained analyses across question categories, answer formats, and model architectures.
| Split | Users | Items | Use |
|---|---|---|---|
| Train | 30,000 | - | LoRA SFT |
| Validation | 6,500 | - | Model selection |
| Test – General QA | 160 | 162 | Main analytical results |
| Test – Fraud QA | 500 | 500 | Fraud-evidence results |
Table 1 Dataset populations used in the evaluation.
and generate rationales alongside fraud scores, but do not quantitatively evaluate whether those rationales identify the correct evidence. TXNQA instead evaluates both verdict accuracy and feature-level evidence selection using closely matched profiles with different outcomes.
3 Benchmark Construction and Validation
3.1 Transaction Sequence Generation
Publicly accessible merchant transaction records are scarce due to commercial confidentiality and data privacy constraints. To address this, we train REaLTabFormer (Solatorio and Dupriez, 2023) on approved internal transaction records from a large payment processing platform; because the raw source data cannot be shared, we release only the synthetic derivative. REaLTabFormer structures merchant profiles as a primary ('parent') table and each merchant's transaction sequence as an associated ('child') table. The model autoregressively samples the parent metadata before using a sequence-to-sequence model to generate the corresponding transaction history, dynamically determining sequence lengths.
We generate separate user sets for training, validation, and testing (30,000 / 6,500 / 180 merchants). The test set contains 162 General QA items and 500 Fraud QA items (Table 1), chosen to cover all 27 analytical task types (6 instances each) and the 5 fraud scenarios. The General QA test set draws its 162 items from 160 distinct merchants; a small number of merchants contribute more than one evaluation item so that every task type reaches its target count.
Post-processing and quality assurance. To preserve logical consistency, we re-compute all deterministic fields directly from their foundational attributes and re-index timestamps to guarantee strict chronological ordering. We design empirical diagnostics along three dimensions: statistical realism (Kolmogorov–Smirnov tests for continuous features, total variation distance for discrete distributions), relational fidelity (conservation of Spearman rank correlations across parent and child tables), and sample novelty (exact-match detection and distance-to-closest-record against held-out private records). Because these metrics represent empirical diagnostics rather than formal differential privacy guarantees, we classify the released benchmark as privacy-mitigated.
Transaction text generation. Each structured sequence is serialized into natural language by combining a summary sentence of the merchant profile with chronological transaction descriptions (e.g., “On Monday, March 3, 2025 at 12:15pm, a transaction of $24.50 was processed.”). This textual narrative forms the sole context provided to the language model for all queries concerning that merchant.
QA generation. We define 27 analytical question types, each with 3 wording variants (81 templates total) and 43 answer-format variants spanning precise and categorical regimes (full enumeration in Appendix A); gold answers are computed directly from the structured records using the formula appropriate to each question type, not generated or paraphrased by a model. Three question types are not answerable from the rendered text alone and have gold answer UNKNOWN, scored via a decline-accuracy metric. The FraudQA set instantiates five fraud scenarios—merchant batch signup under a gibberish email domain, unusual-amount transfer between the same entity, impossible-travel IP change, device-spoof compromise, and card testing (full descriptions in Appendix A)—each programmatically expanded into 100 cases balanced across confirmed-fraud, hard-negative (benign look-alike), and clear-negative instances, with reference verdicts and gold evidence features specified by the scenario design.
4 Models and Training
To provide a comprehensive evaluation across model scales, architectures, and reasoning paradigms, we benchmark 13 open-weight checkpoints alongside three leading proprietary systems.
Our open-weight selection spans dense and mixture-of-experts (MoE) architectures across scales from 7B to 235B parameters: DeepSeek-R1-Distill-Qwen-7B, Qwen3-8B, Qwen3-32B, Qwen3-30B-A3B-Instruct-2507, Qwen3-30B-A3B-Thinking-2507, Qwen3-235B, Gemma-4-31B-IT, GLM-5.2, GPT-OSS-20B, GPT-OSS-120B, DeepSeek-V4-Flash, DeepSeek-V4-Pro, and Kimi-K2.6 (Guo et al., 2025; Yang et al., 2025a; Team et al., 2025; Zeng et al., 2026; Agarwal et al., 2025; Xu et al., 2026; Team et al., 2026). For models supporting configurable test-time compute, we evaluate both reasoning-enabled (“thinking”) and direct generation modes. For proprietary baselines, we evaluate current frontier models—Claude Sonnet, GPT-5.2, and Gemini 2.5 Pro—under zero-shot prompting via standard APIs. Finally, we evaluate ChatTS (Xie et al., 2024) as an architectural contrast that encodes transaction histories directly as numerical time series rather than serialized text.
We adapt six representative open-weight checkpoints using Low-Rank Adaptation (LoRA; Hu et al., 2021): DeepSeek-R1-Distill-7B, Qwen3-8B, Qwen3-32B, Qwen3-30B-A3B-Instruct, Qwen3-30B-A3B-Thinking, and Gemma-4-31B-IT. We apply adapters to all attention and feed-forward projections with rank , scaling factor , and dropout rates of 0.00 or 0.05. Training runs for 2–3 epochs with learning rates tuned between and using cosine decay (detailed hyperparameters are listed in Appendix C).
We note an important experimental distinction regarding the two Qwen3-30B-A3B variants: although they share identical parameter counts (30B total, 3B active), they represent distinct post-training recipes rather than an isolated toggle on reasoning compute. Furthermore, our fine-tuning recipe adapts the Thinking variant using a direct-answer instruction template rather than eliciting intermediate chain-of-thought traces, an operational choice whose implications we analyze in Section 7.
5 Evaluation Protocol
We evaluate all systems across the 162 General QA and 500 Fraud QA test instances. To account for stochasticity during generation, each model produces three independent completions per question (random seeds 0, 1, and 2) using temperature-based sampling (T = 0.7). We report the empirical mean and standard deviation across these three decoding runs.
For statistical comparisons across checkpoints, significance markers denote Welch's one-tailed two-sample t-tests with Bonferroni correction ( ) applied across seed aggregates. Open-weight models were evaluated on NVIDIA B200 GPUs (Ubuntu 24.04, CUDA 12.9, PyTorch 2.10, vLLM 0.19.1), while proprietary models were queried via standardized API endpoints.
Metrics. To isolate whether errors stem from syntax non-compliance or flawed arithmetic, let indicate format validity and indicate normalized correctness for example . We define:
Within any run, E2E = FFR × CA. In multi-seed tables, we report , which closely approximates mean per-run E2E.
For Fraud QA, an answer contains a verdict and cited feature set ; let denote gold evidence and . We report: (1) FFR: valid (verdict, evidence) parses; (2) Verdict Accuracy: accuracy among valid outputs; and (3) Joint Accuracy: strict exact-match ( and correct verdict). To characterize failure modes without diluting signal, evidence quality is macro-averaged exclusively over rows missing exact evidence ( ):
• Recall = : share of required gold features recovered;
• Precision = : share of cited features that are correct;
- Over-citation = : number of extraneous cited features as a multiple of gold-set size (lower is better).
6 Results and Diagnostic Analysis
6.1 Zero-Shot Baselines
Table 2 summarizes zero-shot performance across proprietary systems, while Appendix Table 10 provides complete results across open-weight checkpoints.
Among proprietary systems, GPT-5.2 (high reasoning) attains the highest strict content accuracy on precise questions (88.7% CA), whereas Claude Sonnet (thinking enabled) achieves the strongest output schema adherence (97.5% precise FFR, 99.1% categorical FFR) and the highest overall end-to-end score (82.9% E2E). Across providers, enabling test-time reasoning yields mixed effects rather than uniform gains: while it consistently improves strict numerical accuracy for GPT-5.2 (+12.4% CA) and Claude Sonnet (+0.0% CA, but +12.4% FFR), its impact on Gemini 2.5 Pro is marginal across both precise and categorical tasks. These variations indicate that extended reasoning traces do not inherently guarantee better schema compliance without explicit output constraints.
6.2 Fine-Tuned Performance and Base-to-Tuned Gains
Table 3 presents performance following LoRA adaptation on open-weight models, alongside the specialized time-series baseline ChatTS. Table 4 isolates the specific gains from base checkpoints to adapted variants under matched protocols.
Fine-tuning reliably eliminates formatting errors: all adapted open-weight checkpoints achieve 99.0%–100.0% FFR across both precise and categorical splits, accompanied by perfect decline accuracy (100.0%) on unanswerable questions. For standard instruct models, this formatting alignment translates into substantial
| Proprietary model | Reasoning | Precise QA | Categorical QA | |||
|---|---|---|---|---|---|---|
| FFR | CA (strict) | E2E (approx.) | FFR | CA (match) | ||
| Claude Sonnet | Thinking-on | |||||
| Claude Sonnet | Thinking-off | |||||
| GPT-5.2 | High | |||||
| GPT-5.2 | None | |||||
| Gemini 2.5 Pro | High | |||||
| Gemini 2.5 Pro | Low | |||||
Table 2 Zero-shot performance of proprietary models, percentages with SD across 3 decoding seeds. E2E is approximated as ; SD via delta-method approximation. Bold indicates top value per column.
| Fine-tuned checkpoint | Precise QA | Categorical QA | Decline Acc. | |||
|---|---|---|---|---|---|---|
| FFR | CA (strict) | E2E (approx.) | FFR | CA (match) | ||
| DeepSeek-R1-Distill-7B | 100.0 | |||||
| Qwen3-8B | 100.0 | |||||
| Qwen3-30B-A3B-Instruct-2507 | 100.0 | |||||
| Qwen3-30B-A3B-Thinking-2507 | 100.0 | |||||
| Qwen3-32B | 100.0 | |||||
| Gemma-4-31B-IT | 100.0 | |||||
| 100.0 | 87.6 | 87.6 | 100.0 | 88.9 | 100.0 | |
Table 3 Fine-tuned performance on the General QA precise- and categorical-answer splits. E2E approximated as in Table 2. ChatTS evaluated with a single deterministic run.
end-to-end improvements: non-thinking checkpoints gain between +0.132 and +0.311 in E2E (Table 4), with Gemma-4-31B-IT reaching an E2E of 0.867. ChatTS records an E2E of 0.876; however, because ChatTS was evaluated via a single deterministic run rather than our three-seed evaluation protocol, its score should be viewed as competitive with dense language models rather than statistically superior.
Architecture and Reasoning Dynamics. Our results highlight two unexpected patterns:
-
Scale does not dictate task mastery: Adapted Qwen3-8B (0.816 E2E) matches the 4× larger Qwen3-32B (0.825 E2E). Moreover, evaluated MoE checkpoints (Qwen3-30B-A3B) trail dense models of comparable total scale, reaching only 0.632–0.713 E2E. As post-training mixtures and active parameter footprints (3B active) differ, we report this as an empirical observation rather than a causal architectural claim.
-
Direct SFT can impair native reasoning models: While DeepSeek-R1-Distill-7B gains +0.244 E2E post-SFT, Qwen3-30B-A3B-Thinking drops 0.223 E2E (0.855 → 0.632). As discussed in Section 7, fine-tuning reasoning models on direct-answer pairs inadvertently suppresses internal scratchpad generation.
6.3 Fraud QA: Verdict-Evidence Separation
Table 5 reports Fraud QA performance for six proprietary models, each run with thinking on and off (12 configurations, three seeds each; all produce parseable structured output, FFR ≥ 99.3%). Verdict accuracy is consistently high—averaging 73.1% and peaking at 87.7% (GPT-5 mini, thinking off)—yet joint accuracy, which additionally requires the cited evidence to exactly match the gold rationale, averages only 12.5% and never exceeds 22.8%. Evidence grounding, not verdict calling, is the bottleneck: even on the rows where evidence is wrong, citation precision never exceeds 34.7% and recall tops out at 85.6%. Because the task is label-balanced (50% fraud), configurations such as Claude Sonnet and Haiku (thinking on, 53.5–56.2% verdict accuracy) sit only modestly above the 50% always-fraud floor, reflecting a hard-negative wall in which benign look-alike cases are over-flagged. Thinking mode trades verdict accuracy for evidence-grounded correctness in every matched pair: it raises joint accuracy in all six model pairs while lowering verdict accuracy in all six (e.g., GPT-5 mini: joint 1.0 → 15.4, verdict 87.7 → 82.5; Gemini 3.1 Flash-Lite: joint 14.1 → 22.8, verdict
| Protocol | Checkpoint | Base FFR | Tuned FFR | ΔFFR | Base E2E | Tuned E2E | ΔE2E |
|---|---|---|---|---|---|---|---|
| Matched non-thinking | Qwen3-8B | 0.981 ± 0.00 | 1.000 ± 0.00 | +0.019 | 0.505 ± 0.02 | 0.816 ± 0.02 | +0.311 |
| Gemma-4-31B-IT | 0.956 ± 0.01 | 1.000 ± 0.00 | +0.044 | 0.711 ± 0.01 | 0.867 ± 0.03 | +0.156 | |
| Qwen3-32B | 0.978 ± 0.01 | 1.000 ± 0.00 | +0.022 | 0.555 ± 0.03 | 0.825 ± 0.03 | +0.270 | |
| Qwen3-30B-A3B-Instruct | 0.959 ± 0.01 | 0.990 ± 0.00 | +0.031 | 0.581 ± 0.01 | 0.713 ± 0.01 | +0.132 | |
| Native-thinking | DeepSeek-R1-Distill-7B | 0.749 ± 0.02 | 1.000 ± 0.00 | +0.251 | 0.546 ± 0.03 | 0.790 ± 0.03 | +0.244 |
| Qwen3-30B-A3B-Thinking | 0.956 ± 0.02 | 1.000 ± 0.00 | +0.044 | 0.855 ± 0.02 | 0.632 ± 0.01 | -0.223 |
Table 4 Base-to-tuned changes. Native-thinking deltas use a larger generation budget.
| Model | Precise QA (%) | Evidence Quality | ||||
|---|---|---|---|---|---|---|
| FFR | Verdict Acc. | Joint Acc. | Rec. (%) | Prec. (%) | Over-citation | |
| GPT-5 (thinking on) | 100.0 ± 0.0 | 80.9 ± 1.2 | 22.4 ± 0.6 | 58.2 ± 0.9 | 34.0 ± 0.6 | 1.77 ± 0.05 |
| GPT-5 (thinking off) | 100.0 ± 0.0 | 81.4 ± 0.4 | 0.9 ± 0.3 | 74.2 ± 1.4 | 34.5 ± 0.4 | 2.38 ± 0.01 |
| GPT-5 mini (thinking on) | 100.0 ± 0.0 | 82.5 ± 0.6 | 15.4 ± 0.2 | 66.3 ± 1.2 | 34.7 ± 0.2 | 1.83 ± 0.04 |
| GPT-5 mini (thinking off) | 100.0 ± 0.0 | 87.7 ± 1.0 | 1.0 ± 0.4 | 85.6 ± 0.2 | 34.4 ± 0.3 | 2.75 ± 0.01 |
| Claude Opus 4.6 (thinking on) | 100.0 ± 0.0 | 71.7 ± 0.3 | 16.5 ± 0.2 | 62.8 ± 0.4 | 28.8 ± 0.3 | 2.28 ± 0.01 |
| Claude Opus 4.6 (thinking off) | 100.0 ± 0.0 | 79.8 ± 0.2 | 8.3 ± 0.4 | 64.3 ± 0.7 | 33.1 ± 0.4 | 2.13 ± 0.00 |
| Claude Sonnet 4.6 (thinking on) | 100.0 ± 0.0 | 53.5 ± 0.7 | 10.5 ± 0.6 | 59.0 ± 1.1 | 30.8 ± 0.4 | 1.95 ± 0.00 |
| Claude Sonnet 4.6 (thinking off) | 99.3 ± 0.4 | 64.8 ± 1.0 | 9.1 ± 0.2 | 61.0 ± 0.8 | 31.6 ± 0.2 | 2.08 ± 0.01 |
| Claude Haiku 4.5 (thinking on) | 100.0 ± 0.0 | 56.2 ± 0.9 | 18.5 ± 0.4 | 43.9 ± 2.1 | 27.3 ± 0.3 | 1.66 ± 0.03 |
| Claude Haiku 4.5 (thinking off) | 100.0 ± 0.0 | 69.7 ± 0.6 | 10.5 ± 0.3 | 50.3 ± 0.3 | 32.2 ± 0.4 | 1.64 ± 0.02 |
| Gemini 3.1 Flash-Lite (thinking on) | 100.0 ± 0.0 | 69.0 ± 1.7 | 22.8 ± 0.5 | 39.8 ± 0.6 | 27.9 ± 0.4 | 1.55 ± 0.07 |
| Gemini 3.1 Flash-Lite (thinking off) | 100.0 ± 0.0 | 79.7 ± 0.5 | 14.1 ± 0.4 | 27.8 ± 0.8 | 30.4 ± 1.6 | 1.17 ± 0.06 |
Table 5 FraudQA performance of proprietary models (zero-shot), mean ± SD over 3 seeds. Left: answer-level accuracy over all rows (Precise QA). Right: Evidence Quality conditioned on the evidence-incorrect population (P ≠ G). Bold indicates best per column.
79.7 → 69.0). Finally, nominal model tier is not monotonic with performance: the smallest-tier model, Gemini 3.1 Flash-Lite (thinking), attains the best joint accuracy (22.8%), ahead of every flagship configuration.
Case Study: Why the Verdict–Evidence Gap? The gap is largest for GPT-5 mini (thinking off), which attains the highest verdict accuracy in our suite (87.7%) yet almost never cites exactly the gold evidence (joint accuracy 1.0%)—an 86.7-point gap. The cause is not missing evidence but over-citation. On confirmed-fraud cases it labels correctly, it recovers the full gold set 63% of the time and attains the highest evidence recall of any configuration (0.86); yet it cites 7.8 features on average where the gold rationale needs only two to five, over-citing at 2.8 × |G| and dragging precision to 0.34. On one self-dealing case (gold: seq_sndr_email, rcvr_email, seq_amount, seq_um_txn_d30), it lists eleven features, adding merchant metadata (merch_country, merchant_category, merch_total_txns, ...) unrelated to the self-payment pattern. The model thus identifies decisive signals but hedges by enumerating every plausibly-relevant field rather than isolating the minimal causal set. Chain-of-thought reasoning is a partial corrective—it prunes over-citation (2.8 → 1.8×) and raises joint accuracy (1.0 → 15.4%) at some cost to recall—indicating the gap reflects a selection/decisiveness failure rather than a knowledge gap.
6.4 Answering by Querying the Records
We also test a tool-use protocol in which the model never sees the transaction text. It receives the schema of a per-merchant SQLite database that holds exactly what the text shows: the merchant fields, plus one row per transaction with its displayed date, hour, weekday, and amount. The model writes one query and sees the result, with one retry if the query fails. It then writes the answer in the required format. We compare this protocol with the direct protocol of Section 5 on six open-weight models.
This comparison uses an expanded question set with 71 types: the 27 original types and 44 new ones, such
| Model | SQL | Direct | Direct, 32k |
| Answering without reasoning | |||
| Qwen3-8B | 78.7 | 50.6 | – |
| Qwen3-32B | 76.7 | 55.6 | – |
| Qwen3-30B-A3B-Instruct | 87.6 | 59.1 | – |
| Answering with reasoning | |||
| Qwen3-30B-A3B-Thinking | 87.9 | 77.4 | 84.9 |
| GPT-OSS-20B | 86.3 | 82.4 | 85.5 |
| GPT-OSS-120B | 90.5 | 83.3 | 83.9 |
Table 6 End-to-end accuracy (E2E, %) on the expanded 71-type test set (426 questions). SQL: the model queries a database containing the same records. Direct: protocol with default 8,192-token budget, or 32,000 tokens for reasoning models. Values are means over 3 seeds.
as year-over-year changes and rankings of weekdays, months, hours, and amounts. Every gold answer is computed from the rendered text the model reads. The balanced test set has 426 questions over 408 merchants, sampled the same way as original test items and from the same pool of held-out test merchants. For 59 of these questions the gold answer is UNKNOWN. Because the question set differs, we report these results separately from the original evaluation (Table 6).
SQL access helps every model. The three models that answer without reasoning gain 21–28 points of E2E, and Qwen3-30B-A3B-Instruct rises from 59.1 to 87.6, matching its reasoning counterpart under SQL (87.9). The reasoning models gain less at the default budget: 10.5 points for Qwen3-30B-A3B-Thinking, 3.9 for GPT-OSS-20B, and 7.2 for GPT-OSS-120B. Part of their deficit comes from truncated reasoning. In seed 0, 46 of Qwen3-30B-A3B-Thinking's 426 direct answers run out of tokens before the answer. With 32,000 tokens, its gap to SQL falls to 3.0 points and GPT-OSS-20B's to 0.8. GPT-OSS-120B rarely ran out (3 of 426 in seed 0) and keeps a gap of 6.5. With SQL, it is the strongest configuration (90.5).
For models that answer without reasoning, much of the direct-protocol error comes from computing over rendered records, and exact database access removes most of it. Two caveats apply: (1) the SQL prompt adds two notes about SQLite behavior (without them, Qwen3-8B scores 75.9 instead of 78.7); (2) SQL access changes how the model reaches the records as well as their format. Appendix E gives full protocol details and all metrics.
7 Discussion
The core contribution of TXNQA lies in the intersection of four challenges: irregular temporal event data, dynamic query-dependent logic, strictly typed output, and feature-level risk attribution (Section 2). While existing benchmarks address subsets of these properties, transaction analysis requires models to solve them simultaneously. In this context, separating performance into format compliance (FFR), conditional accuracy (CA), and end-to-end correctness (E2E) provides actionable operational diagnostics.
Our empirical findings demonstrate that raw parameter scale does not reliably predict performance on irregular event sequences (Section 6). Smaller, fine-tuned dense models such as Qwen3-8B frequently match or outperform checkpoints with four to thirty times more parameters. While architectural differences, training mixtures, and hyperparameter choices prevent broad causal claims regarding dense versus sparse models, these results hold practical value: targeted domain adaptation provides a viable, computationally efficient path toward operational transaction QA without mandating massive parameter footprints.
Our empirical results also provide a cautionary note against viewing supervised fine-tuning as a universal remedy for multi-step reasoning failures. Across identical non-thinking configurations, LoRA adapters improve E2E almost always, driving FFR near 100%, but leaving residual errors mostly on arithmetic and relational calculations. Furthermore, fine-tuning can actively harm models that rely on extended test-time compute: Qwen3-30B-A3B-Thinking suffered a 22.3-point decline in E2E following adaptation. Because this checkpoint was fine-tuned on direct-answer pairs rather than reasoning traces, the supervision signal appears to suppress its internal scratchpad generation.
The fraud results carry a direct operational implication: a correct verdict is not evidence of grounded reasoning. Against gold evidence carefully defined and verified for each scenario, verdict accuracy nears 88% while strict joint accuracy never exceeds 22.8%, and citation precision stays below 35% on missed rows. Models tend to reach the right conclusion without selecting the right supporting evidence. We interpret this as a measure of evidence-selection quality: because the gold rationale is specified as a set of discriminative feature names rather than a full natural-language reasoning trace, selecting them is necessary but not sufficient for a faithful explanation. The gap we report is therefore a conservative lower bound on the grounding problem.
8 Conclusion
We introduced TXNQA, a benchmark for single-turn analytical QA over irregular merchant transaction histories with a controlled fraud-risk feature-selection stress test. Across six LoRA-adapted open-weight checkpoints, E2E point estimates range from 0.632 to 0.867, with Gemma-4-31B-IT highest among them. Decomposed metrics show adaptation often improves format compliance without eliminating answering inaccuracies, and that high fraud-verdict accuracy can coexist with weak supporting-feature selection. These findings motivate evaluation that separates computation, rendering, and evidence.
Limitations
The benchmark is synthetic data generated by fitting REaLTabFormer to approved internal merchant-transaction data; marginal and pairwise fidelity diagnostics (Section 3) do not establish downstream behavioral equivalence, fairness, or transfer to new markets, currencies, or payment rails, and REaLTabFormer is not a differentially private mechanism—exact-copy and distance-to-closest-record checks are empirical diagnostics, not formal privacy guarantees.
The evaluated populations are small (162 general-QA and 500 fraud-QA items; 426 questions for the SQL comparison of Section 6.4), and reported standard deviations reflect variability across three decoding seeds, not uncertainty over test items. Reported E2E values are an approximation ( across seed-averaged means), not the harness-computed per-item quantity, except in Tables 6 and 11.
Training and test questions are drawn from the same 27-task-family, 3-wording-variant template distribution and the same synthetic generator; held-out or independently paraphrased template evaluation is an open direction.
Fraud QA covers five scenario families curated by fraud-prevention experts and abstracted from real cases into canonical patterns. It is deliberately scoped to test an LLM's basic ability to recognize fraud patterns rather than to resolve full operational complexity. The task is conducted in English and in a single turn.
Model comparisons are descriptive, not causal: model families, post-training recipes, adapter footprints, hyperparameters, output-token budgets, tokenizers, and serving backends differ across checkpoints.
Ethical Considerations
The underlying real transaction data used to fit the synthetic generator is sensitive and was accessed under internal approval; it is not released, and only the synthetic, privacy-mitigated derivative described above is intended for release. The controlled fraud-risk scenarios are rule-defined and authored for this benchmark; they must not be interpreted as validated real-world fraud labels, and models evaluated on this benchmark must not be deployed as autonomous fraud, credit, compliance, or adverse-action systems. This benchmark is intended for research use in evaluating language-conditioned analytical and evidence-selection capabilities, with human oversight assumed for any higher-stakes downstream use.
References
Irina Abdullaeva, Ivan Karpukhin, Andrei Filatov, Mikhail Orlov, Viacheslav Vasilev, Natalya Belova, Denis Dimitrov, Andrey Kuznetsov, Ivan Kireev, and Andrey V Savchenko. Esqa: Event sequences question answering. IEEE Access, 2026.
Sandhini Agarwal, Lama Ahmad, Jason Ai, Sam Altman, Andy Applebaum, Edwin Arbus, Rahul K Arora, Yu Bai, Bowen Baker, Haiming Bao, et al. gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925, 2025.
Dmitrii Babaev, Nikita Ovsov, Ivan Kireev, Maria Ivanova, Gleb Gusev, Ivan Nazarov, and Alexander Tuzhilin. Coles: Contrastive learning for event sequences with self-supervision. In Proceedings of the 2022 International Conference on Management of Data, pages 1190–1199, 2022. doi: 10.1145/3514221.3526129.
Joymallya Chakraborty, Wei Xia, Anirban Majumder, Dan Ma, Walid Chaabene, and Naveed Janvekar. Detoxbench: Benchmarking large language models for multitask fraud and abuse detection. arXiv preprint arXiv:2409.06072, 2024. URL https://arxiv.org/abs/2409.06072.
Sanhorn Chen, Xiaoyang Chen, Boyu Liu, and Roy Zhao. Towards verifiable agentic data science: Solving irregular TSQA via tool-grounded reasoning. arXiv preprint arXiv:2606.15107, 2026. URL https://arxiv.org/abs/2606.15107.
Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan Routledge, and William Yang Wang. FinQA: A dataset of numerical reasoning over financial data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3697–3711, 2021. doi: 10.18653/v1/2021.emnlp-main.300.
Zhiyu Chen, Shiyang Li, Charese Smiley, Zhiqiang Ma, Sameena Shah, and William Yang Wang. ConvFinQA: Exploring the chain of numerical reasoning in conversational finance question answering. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 6279–6292, 2022. doi: 10.18653/v1/2022.emnlp-main.421.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
Liying Han, Kang Yang, Oliver Wang, Jason Wu, Pengrui Quan, Gaofeng Dong, Ozan Baris Mulayim, Sizhe Ma, Yuyang Yuan, Dezhi Hong, Mario Berges, and Mani Srivastava. TS-Skill: A benchmark for evaluating analytical skills in time-series question answering. arXiv preprint arXiv:2605.24703, 2026. URL https://arxiv.org/abs/2605.24703.
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. arxiv preprint. arXiv preprint arXiv:2106.09685, 2021.
Baoyu Jing, Sanhorn Chen, Lecheng Zheng, Boyu Liu, Zihao Li, Jiaru Zou, Tianxin Wei, Zhining Liu, Zhichen Zeng, Ruizhong Qiu, Xiao Lin, Yuchen Yan, Dongqi Fu, Jingchao Ni, Jingrui He, and Hanghang Tong. TSAQA: Time series analysis question and answering benchmark. arXiv preprint arXiv:2601.23204, 2026. URL https://arxiv.org/abs/2601.23204.
Qichao Kong et al. Time-MQA: Time series multi-task question answering with context enhancement. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.acl-long.1437. Long Papers.
Patrick Langer, Thomas Kaar, Max Rosenblattl, Maxwell A Xu, Winnie Chow, Martin Maritsch, Robert Jakob, Ning Wang, Juncheng Liu, Aradhana Verma, et al. Opentslm: Time-series language models for reasoning over multivariate medical text-and time-series data. arXiv preprint arXiv:2510.02410, 2025.
Ruosen Li, Zimu Wang, Son Quoc Tran, Lei Xia, and Xinya Du. MEQA: A benchmark for multi-hop event-centric question answering with explanations. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2024. doi: 10.52202/079017-4028.
Xuanying Li, Sha Xiang, and Cheng Dai. A survey of forecasting methods for irregular time series. In 2025 IEEE International Conferences on Internet of Things (iThings) IEEE Green Computing & Communications (GreenCom) IEEE Cyber, Physical & Social Computing (CPSCom) and IEEE Smart Data (SmartData) and IEEE Congress on Cybermatics (Cybermatics), pages 83–90. IEEE, 2025.
Dzhambulat Mollaev, Ivan Kireev, Mikhail Orlov, Alexander Kostin, Ivan Karpukhin, Maria Postnova, Gleb Gusev, and Andrey Savchenko. Multimodal banking dataset: Understanding client needs through event sequences. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, pages 6476–6480, 2025.
Viktor Moskvoretskii, Dmitry Osin, Egor Shvetsov, Igor Udovichenko, Maxim Zhelnin, Andrey Dukhovny, Anna Zhimerikina, and Evgeny Burnaev. MLEM: Generative and contrastive learning as distinct modalities for event sequences. arXiv preprint arXiv:2401.15935, 2024. URL https://arxiv.org/abs/2401.15935.
Frank Nie, Ethan B. Liu, Yuan Zhu, Loe Yan, Wei Fan, and Jindong Han. CLIR-Bench: Benchmarking multimodal question answering over irregular clinical time series. arXiv preprint arXiv:2607.09880, 2026. URL https://arxiv.org/abs/2607.09880.
Inkit Padhi, Yair Schiff, Igor Melnyk, Mattia Rigotti, Youssef Mroueh, Pierre Dognin, Jerret Ross, Ravi Nair, and Erik Altman. TabFormer: Tabular transformers for modeling multivariate time series. In 2021 IEEE International Conference on Acoustics, Speech and Signal Processing, pages 3565–3569, 2021. doi: 10.1109/ICASSP39728.2021.9414142.
Nikita Rusakov, Vladislav Meshkov, Konstantin Zorin, Gleb Zaripov, Alexander Uglov, Alexey Vasilev, and Anton Klenitskiy. A foundation model for multimodal event sequences in financial applications. arXiv preprint arXiv:2607.09955, 2026. URL https://arxiv.org/abs/2607.09955.
Aivin V. Solatorio and Olivier Dupriez. Realtabformer: Generating realistic relational and tabular data using transformers. arXiv preprint arXiv:2302.02041, 2023.
Chenxi Sun, Yaliang Li, Hongyan Li, and Shenda Hong. TEST: Text prototype aligned embedding to activate LLM's ability for time series. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=Tuh4nZVb0g.
Chenxi Sun, Moxian Song, Derun Cai, Baofeng Zhang, Hongyan Li, and Shenda Hong. A review of deep learning methods for irregularly sampled medical time series data. Health Data Science, 6:0456, 2026.
Xuwei Tan, Yao Ma, and Xueru Zhang. Understanding structured financial data with llms: A case study on fraud detection. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics, pages 23375–23390, 2026. URL https://aclanthology.org/2026.acl-long.1071/.
Gemma Team, A Kamath, J Ferret, S Pathak, N Vieillard, R Merhej, S Perrin, T Matejovicova, A Ramé, M Rivière, et al. Gemma 3 technical report. arXiv preprint arXiv:2503.19786, 2025.
Kimi Team, Tongtong Bai, Yifan Bai, Yiping Bao, SH Cai, Yuan Cao, Y Charles, HS Che, Cheng Chen, Guanduo Chen, et al. Kimi k2. 5: Visual agentic intelligence. arXiv preprint arXiv:2602.02276, 2026.
Stephan Xie, Ben Cohen, Mononito Goswami, Junhong Shen, Emaad Khwaja, Chenghao Liu, David Asker, Othmane Abou-Amal, and Ameet Talwalkar. ARFBench: Benchmarking time series question answering ability for software incident response. arXiv preprint arXiv:2604.21199, 2026. URL https://arxiv.org/abs/2604.21199.
Zhe Xie, Zeyan Li, Xiao He, Longlong Xu, Xidao Wen, Tieying Zhang, Jianjun Chen, Rui Shi, and Dan Pei. Chatts: Aligning time series with llms via synthetic data for enhanced understanding and reasoning. arXiv preprint arXiv:2412.03104, 2024.
Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, et al. Deepseek-v4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348, 2026.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025a.
Shu Yang, Shenzhen Zhu, Zeyu Wu, Keyu Wang, Junchi Yao, Junchao Wu, Lijie Hu, Mengdi Li, Derek F. Wong, and Di Wang. Fraud-r1: A multi-round benchmark for assessing the robustness of llm against augmented fraud and phishing inducements. In Findings of the Association for Computational Linguistics: ACL 2025, pages 4374–4420, 2025b. URL https://aclanthology.org/2025.findings-acl.226/.
Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, et al. Glm-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026.
Yilun Zhao, Yunxiang Li, Chenying Li, and Rui Zhang. MultiHiertt: Numerical reasoning over multi hierarchical tabular and textual data. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics, pages 6588–6600, 2022. doi: 10.18653/v1/2022.acl-long.454.
Fengbin Zhu, Wenqiang Lei, Youcheng Huang, Chao Wang, Shuo Zhang, Jiancheng Lv, Fuli Feng, and Tat-Seng Chua. TAT-QA: A question answering benchmark on a hybrid of tabular and textual content in finance. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 3277–3287, 2021. doi: 10.18653/v1/2021.acl-long.254.
A Analytical Question Types and Format Variants
We define 27 analytical question types, each with three wording variants (Table 7) and 43 answer-format variants across precise and categorical regimes (Table 8). Three question types (9, 24, 25) are not answerable from the transaction text alone (no user-level information); their gold answer is UNKNOWN, scored via decline accuracy.
Fraud scenarios. Story 1 (Merchant Registration Linkage): a synthetic-looking email domain plus a large same-day cluster of merchant registrations under that domain may indicate coordinated batch registration; the matched negative preserves the registration count but uses a widely used public email provider. Story 2 (Sender–Receiver Identity Linkage): a sender email matching the merchant's receiver email, combined with unusually high transaction velocity/value from that sender, may indicate a collusive relationship; the matched negative preserves comparable activity but removes the email match. Reference verdicts and evidence features were supplied by a domain expert at the source payment platform.
Transaction features. Merchant-level: category, country, account age, total transaction count, distinct buyers (plus, for fraud QA: registration date, receiver email, same-domain same-day registration count, email domain). Per-transaction: datetime, hour, amount (plus, for fraud QA: buyer ID, sender email, user-merchant transaction count/spend in the past 7/30 days).
Table 7 27 analytical question types, 3 wording variants each. Not answerable from rendered text alone; gold label is UNKNOWN.
| Type | Variant 1 | Variant 2 | Variant 3 |
|---|---|---|---|
| 1. merchant category | What category does this merchant operate in? | How would you classify this merchant's business? | What kind of goods or services does this merchant sell? |
| 2. merchant country | Where is this merchant based? | What country does this merchant operate from? | In which country is this merchant located? |
| 3. busiest day | On which weekday is this merchant most active? | What's the peak day of the week for transactions? | Which day sees the highest transaction volume? |
| 4. busiest time of day | When during the day is this merchant busiest? | Which time of day sees the most activity? | What part of the day has peak volume? |
| 5. merchant age | How old is this merchant's account? | How long has this merchant been operating? | When was this merchant first established? |
| 6. transaction count | What's this merchant's total transaction count? | How many payments has this merchant processed? | What's the overall transaction volume? |
| 7. distinct buyers | How many unique customers has this merchant served? | What's the number of different buyers? | How many separate buyers transacted here? |
| 8. txns per buyer | What's the average number of transactions per buyer? | How many times does a typical buyer transact? | On average, how many purchases does each customer make? |
| 9. buyer concentration | How concentrated are transactions among the top buyer? | What fraction of activity comes from the busiest single buyer? | What percentage of transactions does the top buyer account for? |
| 10. typical amount | What's the average transaction value? | How much is a typical purchase here? | What's the mean amount per transaction? |
| 11. minimum amount | What's the lowest-value transaction? | How small is the smallest payment? | What's the minimum amount transacted? |
| 12. maximum amount | What's the highest-value transaction? | How large is the biggest payment? | What's the maximum amount transacted? |
| 13. largest vs average | How many times bigger is the largest transaction than the average? | What's the ratio of the biggest transaction to the typical one? | By what factor does the largest transaction exceed the average? |
Continued on next page
| Type(s) | Regime | Example format instruction |
| 1–4, 20–22 | categorical | Category / country / day-code / part-of-day / clock-hour / ISO or prose date |
| 5, 6–9, 13–19, 23, 26–27 | precise | Exact count, ratio, coefficient of variation, or interval, per type |
| 10–12, 15 | precise | Exact dollar amount, full digits or K/M-suffixed |
| 24, 25 | precise | Exact age (years/months/days) or country count |
Table 8 43 answer-format variants across the 27 question types (condensed), spanning precise and categorical regimes.
Table 7 – Continued from previous page
| Type | Variant 1 | Variant 2 | Variant 3 |
|---|---|---|---|
| 14. amount CoV | How spread out are the transaction amounts relative to the mean? | How consistent are this merchant’s transaction values? | What’s the relative variability of the amounts? |
| 15. median amount | What’s the middle (50th-percentile) transaction value? | Half of transactions fall below what amount? | What’s the median spend per transaction? |
| 16. transaction frequency | What’s the typical gap between transactions? | How frequently does this merchant transact? | On average, how much time passes between payments? |
| 17. interval burstiness | Are transactions evenly spaced or clumped together? | How consistent is the timing between transactions? | How variable are the gaps between transactions? |
| 18. longest inactivity gap | What’s the longest stretch with no transactions? | How long was the biggest pause in activity? | What’s the maximum time between consecutive transactions? |
| 19. windowed count | What’s the transaction count over the past 30 days? | How many payments were made in the last month? | How active has this merchant been in the last 30 days? |
| 20. busiest hour | At what hour of the day are transactions most frequent? | What’s the peak hour for this merchant? | Which hour sees the highest transaction volume? |
| 21. most recent transaction | When did this merchant last transact? | What’s the date of the latest transaction? | How recently did this merchant transact? |
| 22. first transaction | When did this merchant’s activity begin? | What’s the date of the earliest transaction? | When did this merchant make its first sale? |
| 23. transacting days | On how many separate days was this merchant active? | How many distinct days saw at least one transaction? | On how many different days did this merchant transact? |
| 24. buyer account age | What’s the typical account age of this merchant’s buyers? | How established are this merchant’s customers? | How old are the buyers’ accounts, on average? |
| 25. buyer countries | From how many different countries do buyers originate? | How geographically spread are this merchant’s buyers? | What’s the number of distinct buyer countries? |
| 26. amount trend | Are transaction amounts rising or falling over time? | Is the spend per transaction growing or shrinking? | How has the typical amount changed over the history? |
| 27. activity trend | Is this merchant’s transaction volume rising or falling over time? | Is activity picking up or slowing down? | How has the transaction count changed over time? |
B Full Metric Definitions
Realism (numerical): (Kolmogorov–Smirnov). Realism (categorical): TVD = . Fraud verdict accuracy, precision, and recall, and macro-averaged evidence precision/recall.
call, with , the predicted/gold evidence-feature sets for case :
As noted in Section 5, these are undefined when or respectively.
C Fine-Tuning Configuration
| Checkpoint | Params | Type | Epochs | LR | Trainable |
|---|---|---|---|---|---|
| DeepSeek-R1-Distill-Qwen-7B | 7.62B | Dense | 3 | 80.7M | |
| Qwen3-8B | 8B | Dense | 3 | 87.3M | |
| Qwen3-32B | 32B | Dense | 2 | 268M | |
| Qwen3-30B-A3B-Instruct | 30B/3B | MoE | 2 | 1.99B | |
| Qwen3-30B-A3B-Thinking | 30B/3B | MoE | 2 | 1.99B | |
| Gemma-4-31B-IT | 31B | Dense | 2 | 244M |
Table 9 LoRA configurations (rank 32, , dropout 0.00–0.05).
All checkpoints used AdamW (, , ), zero weight decay, gradient clipping at norm 1.0, cosine LR decay with 0.03 warmup ratio, bf16 precision, a global seed of 0, final-epoch checkpoint selection, and a 4096-token max sequence length with left-truncation (text models) or example-dropping (ChatTS). Evaluation used greedy decoding (temperature 0) for the SFT harness's own internal checks and temperature 0.7 for the 3-seed reported results (Section 5). Hardware: 8×NVIDIA B200 (183GB) per node, DDP via torchrun.
D Full Zero-Shot and Fraud QA Results (Open-Weight Models)
E SQL Baseline Details
Database. Each merchant's database has a one-row merchant table (category, country, account age, total transactions, distinct buyers) and a transactions table with one row per rendered transaction (index, displayed date and time, date, hour, weekday, amount, and a timestamp for ordering). The schema description states that the records end at the latest transaction, which serves as “now”, and that buyer identities are not available. It also defines chronological order by timestamp. The direct protocol states none of this; its model infers it from listed transactions. SQLite is extended with median() and stddev(), as analytics databases provide. Queries run read-only with a 5-second timeout, and the model sees at most 20 result rows. Hand-written reference queries reproduce the gold answer for 18 question types on every validation merchant, confirming database sufficiency.
Generation. Each question gets one sample per seed (seeds 0–2, temperature 0.7), with one retry after a failed query and no voting over samples. Qwen3-8B and Qwen3-32B run without thinking in both protocols, and Qwen3-30B-A3B-Instruct has no reasoning mode. These models receive 512 tokens per query and 128 for the answer. Qwen3-30B-A3B-Thinking and GPT-OSS always reason and receive 8,192 tokens for each query attempt and for the answer. GPT-OSS runs at its chat template’s default reasoning effort (medium), and vLLM’s Marlin kernel serves its 4-bit (MXFP4) expert layers. All runs used vLLM 0.19.0 on a single NVIDIA B200.
| Open-weight checkpoint | Thinking | Precise QA | Categorical QA | |||
|---|---|---|---|---|---|---|
| FFR | CA (strict) | E2E (approx.) | FFR | CA (match) | ||
| Qwen3-8B | Off | 98.1 | 51.5 | 50.5 | 88.9 | 66.7 |
| Qwen3-8B | On | 93.7 | 87.1 | 81.6 | 95.4 | 66.0 |
| Qwen3-32B | Off | 97.8 | 56.8 | 55.5 | 99.1 | 68.2 |
| Qwen3-32B | On | 94.0 | 84.8 | 79.7 | 100.0 | 63.0 |
| Qwen3-30B-A3B-Instruct-2507 | Off | 95.9 | 60.6 | 58.1 | 100.0 | 63.0 |
| Qwen3-30B-A3B-Thinking-2507 | On | 95.6 | 89.4 | 85.5 | 97.2 | 72.4 |
| DeepSeek-R1-Distill-7B | 74.9 | 72.9 | 54.6 | 87.0 | 58.6 | |
| Gemma-4-31B-IT | Off | 95.6 | 74.4 | 71.1 | 100.0 | 66.7 |
| Gemma-4-31B-IT | On | 94.9 | 87.0 | 82.6 | 97.2 | 75.2 |
| GPT-OSS-20B | Off | 84.1 | 84.2 | 70.8 | 99.1 | 69.2 |
| GPT-OSS-120B | Off | 81.9 | 87.2 | 71.4 | 95.4 | 73.8 |
| GPT-OSS-120B | On | 82.9 | 88.9 | 73.7 | 88.9 | 70.8 |
| Qwen3-235B | Off | 95.2 | 62.7 | 59.7 | 83.3 | 76.7 |
| Qwen3-235B | On | 93.7 | 87.1 | 81.6 | 100.0 | 72.2 |
| GLM-5.2 | Off | 94.6 | 72.5 | 68.6 | 100.0 | 68.5 |
| GLM-5.2 | On | 92.4 | 88.0 | 81.3 | 98.1 | 67.9 |
| DeepSeek-V4-Flash | Off | 73.7 | 92.2 | 68.0 | 92.6 | 71.0 |
| DeepSeek-V4-Flash | On | 92.4 | 87.3 | 80.7 | 92.6 | 73.0 |
| DeepSeek-V4-Pro | Off | 73.0 | 93.9 | 68.5 | 94.4 | 70.6 |
| DeepSeek-V4-Pro | On | 93.3 | 90.8 | 84.7 | 95.4 | 70.9 |
| Kimi-K2.6 | Off | 64.1 | 92.2 | 59.1 | 82.4 | 71.9 |
| Kimi-K2.6 | On | 88.9 | 87.5 | 77.8 | 93.5 | 74.3 |
Table 10 Zero-shot open-weight performance. Reasoning-only checkpoint.
Tool-behavior notes. In early Qwen3-8B traces, the model wrote PostgreSQL median syntax, which SQLite rejects, and repeated it after the error. It also filled answer templates with “+/-%” when a query returned NULL. The main setup therefore adds two notes that describe the tool. After a failed query, a reminder states that the database is SQLite and provides median() and stddev(). In the answer step, a statement notes that a NULL or empty result indicates records do not contain the value. With the notes, all 12 median questions in Qwen3-8B’s seed 0 obtain a working query; without them, none do (Table 11, “SQL, no notes”). The NULL note has one known cost: SUM() returns NULL when no rows match, so on the 2 test questions whose date range contains no sales (gold $0), models following the note answer UNKNOWN, costing approximately 0.5 E2E points.
Reasoning budget. With 32,000 tokens, 44 of Qwen3-30B-A3B-Thinking’s 46 truncated direct answers (seed 0) finish, and the 380 answers that finished within 8,192 tokens emerge identical. Its gain therefore comes entirely from newly finished answers. Exact-value accuracy falls from 93.9 to 89.5 as E2E rises. GPT-OSS behaves differently: it does not reproduce answers token for token when only the budget changes. In seed 0, 265 of 415 previously finished answers are identical for GPT-OSS-20B, and 290 of 423 for GPT-OSS-120B, mixing newly finished answers (11 and 3) with run-to-run variation.
Worked Example. To illustrate how structured transaction records are serialized and queried in TxNQA, consider the following sample instance (hand-constructed for exposition):
Serialized Context (truncated): “This merchant operates in the restaurants category and is based in the United States, with an account age of approximately 2.3 years. On Monday, March 3, 2025 at 12:15pm, a transaction of 61.10 was processed. [...]12 further transactions ...]”
Prompted Question (Type 6, Variant 1): “What’s this merchant’s total transaction count? Give the exact count.”
Programmatic Derivation: Count of rows in the structured transaction table = 14.
| Model | Method | E2E | FFR | CA exact (strict) | CA categorical | Decline acc. |
|---|---|---|---|---|---|---|
| Qwen3-8B | SQL | |||||
| SQL, no notes | ||||||
| Direct | ||||||
| Qwen3-32B | SQL | |||||
| Direct | ||||||
| Qwen3-30B-A3B-Instruct | SQL | |||||
| Direct | ||||||
| Qwen3-30B-A3B-Thinking | SQL | |||||
| Direct | ||||||
| Direct, 32k | ||||||
| GPT-OSS-20B | SQL | |||||
| Direct | ||||||
| Direct, 32k | ||||||
| GPT-OSS-120B | SQL | |||||
| Direct | ||||||
| Direct, 32k |
Table 11 SQL baseline and direct answers on the expanded 71-type test set, all metrics (% , mean ± SD over 3 seeds). E2E and FFR are over 367 answerable questions; CA is over format-valid answers; decline accuracy is over 59 questions whose gold is UNKNOWN.
Gold Answer Target: "This merchant has 14 transactions."