arXiv:2610.13627cs.CLOct 2026

Manuscript Offprint

arXiv:2610.13627

AMLworld-Compact: Importance-Weighted Downsampling for Cost-Effective LLM Evaluation and Error Diagnosis

Natapong Nitarach, Phume Ngampornsukswadi, Pittawat Taveekitworachai, Surapon Nonesung, Warit Sirichotedumrong, Kunat Pipatanakul

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Evaluating large language models (LLMs) on AMLworld's smallest test splits is costly because each of over a million targets requires a separate graph prompt. Sampling reduces this cost, but small balanced subsets change unweighted precision and F1. We introduce AMLworld-Compact, an evaluation set that retains every illicit test transaction and samples benign transactions from supervised-score strata. Its HT-Coreset protocol reduces evaluation targets by 271×271\times and 611×611\times on HI-Small and LI-Small. Horvitz–Thompson weights give unbiased full-test confusion-count estimates for fixed predictions; recall is exact, while precision and F1 are ratio estimates. In a held-out study using Graph Feature Preprocessor (GFP) features, one boosted-tree family defines strata for evaluating the other over 500 draws per configuration. At the released sizes, F1 RMSE is 0.00–2.58 percentage points versus 4.44–7.41 for uniform sampling with HT weights; conservative intervals remain broad. Under the evaluated graph prompts, seven open-weight LLMs have weighted precision near the predict-all-illicit baseline. In an outcome-stratified audit of 1,000 HI-Small few-shot outputs from one run per model, lexical checks pass for 84.5% of correct and 56.2% of incorrect binary verdicts, so these markers do not establish correctness. We release the evaluation sets, construction code, and audit tools. 1^{1}

1 Introduction

Anti-money laundering (AML) detection asks whether a transaction belongs to illicit activity. The evidence can span several accounts and transfers: a gather-scatter pattern, for example, collects funds at one account before redistributing them. A large language model (LLM) can receive this neighborhood as graph text, but evaluating each transaction Fewer targets, full-test estimates

HI-Small 1,015,669 →\rightarrow 3,753 ≈\approx 271 ×\times

LI-Small 1,384,810 →\rightarrow 2,268 ≈\approx 611 ×\times

(a) Target selection: HT-Coreset

Full test

AMLworld-Compact

Keep all

Illicit

Keep all at release

High-score

benign

3 difficulty strata

Other

benign

(b) Evaluation and reporting

Model predictions

HT-weighted

we=1/πew_{e}=1/\pi_{e}

Full-test estimates

Unweighted

we=1w_{e}=1

Subset diagnostics

Figure 1: HT-Coreset (a) retains illicit targets (diamonds) and samples benign targets (circles). High-score benign targets form one stratum, defined by the construction ensemble; all fit at the released budgets. The other benign targets form three difficulty terciles (shaded rows). In (b), predictions on the targets selected in (a) are weighted by 1/πe1/\pi_e for full-test estimates or counted equally for subset diagnostics; πe\pi_e is the inclusion probability. Markers represent transaction targets; marker counts are illustrative.

separately requires one prompt per target. The test partitions of AMLworld's two smallest splits (Altman et al., 2023) each contain over a million transactions, with illicit rates of 0.12% on HI-Small and 0.05% on LI-Small. A single pass on either split requires over a million graph prompts; comparing models and prompt variants multiplies this workload.

A small class-proportional sample contains few illicit cases, limiting recall and typology analysis. A balanced sample increases their share but

1^{1} typhoon-ai/AMLworldCompactEval

github.com/nat-nischw/AMLworld-Compact changes unweighted precision and F1. Prior exploratory work (Pirmorad, 2025) evaluates LLMs on a small balanced AMLworld subset; those scores reflect its enriched illicit proportion. The challenge is to reduce model calls while keeping rare cases available for diagnosis and estimating detection at full-test prevalence.

We introduce AMLworld-Compact, constructed with HT-Coreset. The protocol retains every illicit test edge, uses supervised scores to identify difficult benign cases, and samples the remaining benign edges within difficulty strata. Known inclusion probabilities give Horvitz–Thompson (HT) weights (Horvitz and Thompson, 1952) for estimating full-test confusion counts. The weights account for unsampled benign cases; unweighted counts describe errors on the selected cases. These two summaries use the same selected targets and predictions (Figure 1); precision and F1 are ratio estimates, with possible finite-sample bias.

The released sets contain 3,753 HI-Small and 2,268 LI-Small targets, reducing target counts by 271×271\times and 611×611\times. Each target has GFP features (Blanuša et al., 2024) and a typed-subgraph prompt extracted from the full graph: selecting fewer targets does not reduce the neighborhood available to each selected case. Our contributions are:

• An evaluation set with a full-test reference. The released targets, inclusion weights, features, and graph strings let subsequent models use the same cases and estimate metrics for the same population. We compare 12 budgets and 7 alternative samplers, then test sampling error and interval coverage with the evaluated booster family held out of construction, over 500 draws per configuration (Section 3).

• LLM evaluation and error analysis. Seven open-weight LLMs with the original prompts have weighted precision near full-test illicit prevalence. We analyze ML–LLM error overlap and find that lexical checks pass for over half of the incorrect binary verdicts in the audit sample. A supplementary control shows that the label-derived route accounts for most of the apparent hybrid gain (Sections 4 and 5).