Rewrite the card in two halves: a practitioner path, then the standard card order
Browse files
README.md
CHANGED
|
@@ -104,6 +104,10 @@ dataset_info:
|
|
| 104 |
[Licence](./NOTICE.md) ·
|
| 105 |
[Report a bad case](https://huggingface.co/datasets/natnitaract/amlcompact-eval/discussions)
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
The evaluation dataset for *AMLCompact: Bias-Free Downsampling Makes AMLworld Tractable for
|
| 108 |
LLM Evaluation*, an ARR submission committed to EMNLP 2026 (Resources and Evaluation).
|
| 109 |
|
|
@@ -112,67 +116,58 @@ Code, prompts, the full pipeline and every result table live in the companion re
|
|
| 112 |
this dataset needs only that package and the arrays below; reproducing the paper end to end
|
| 113 |
needs the repository as well.
|
| 114 |
|
| 115 |
-
|
| 116 |
-
metrics on a few thousand edges reproduce the metrics of the full million-edge test split,
|
| 117 |
-
and serialised as typed two-hop subgraph prompts that fit an LLM context.
|
| 118 |
|
| 119 |
-
| Config | Rows | Illicit | Full test split | Reduction | sum(
|
| 120 |
-
|---|---:|---:|---:|---:|---:|
|
| 121 |
-
| HI-Small | 3,753 | 1,251 | 1,015,669 | 271x | 1,015,669 |
|
| 122 |
-
| LI-Small | 2,268 | 756 | 1,384,810 | 611x | 1,384,810 |
|
| 123 |
|
| 124 |
-
The weight column sums to the full split size by construction. That is the property the
|
| 125 |
-
|
| 126 |
|
| 127 |
-
##
|
| 128 |
|
| 129 |
-
`
|
| 130 |
-
|
| 131 |
-
|
|
|
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
| `data/<config>/test-*.parquet` | the evaluation set, one row per case, eleven columns | 31.7 MiB | CDLA |
|
| 136 |
-
| `extras/<config>/*.npy` | indices, HT weights, labels, typologies, ensemble probabilities | 0.2 MiB | CDLA |
|
| 137 |
-
| `extras/<config>/features_gfp.npz` | 79 GFP columns per case, plus the column names | 1.0 MiB | CDLA |
|
| 138 |
-
| `extras/<config>/case_index.parquet` | seven-column join table; its weight column is `weight` | 0.1 MiB | CDLA |
|
| 139 |
-
| `ml_baselines/weights/` | all three members, 5 seeds each, plus GCPAL's pretrained encoder | 604.0 MiB | MIT |
|
| 140 |
-
| `ml_baselines/test_probs/` | full-split probabilities and typology heads, per member and seed | 494.5 MiB | MIT |
|
| 141 |
-
| `build_report.json` | what the builder asserted at publish time | 461 B | MIT |
|
| 142 |
-
| | **total** | **1.11 GiB** | |
|
| 143 |
|
| 144 |
-
|
| 145 |
-
typology head and `seed_*_meta.json`, which records that member's own tuned threshold. That
|
| 146 |
-
per-member threshold is not the ensemble operating point: HI-Small LightGBM seed 42 carries
|
| 147 |
-
0.7339, against the ensemble's 0.80. Confusing the two is an easy way to fail to reproduce a
|
| 148 |
-
number.
|
| 149 |
|
| 150 |
-
|
|
|
|
|
|
|
| 151 |
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
| `center_edge_id` | string | The AMLworld edge this case is centred on. |
|
| 156 |
-
| `subset_index` | int64 | Row index into the full temporal test split. |
|
| 157 |
-
| `label` | int8 | 1 = illicit, 0 = benign. |
|
| 158 |
-
| `illicit` | bool | `label == 1`. |
|
| 159 |
-
| `typology` | string? | One of fan-out, fan-in, cycle, scatter-gather, gather-scatter, stack, bipartite, random. Null for benign edges and for illicit edges with no upstream typology label. |
|
| 160 |
-
| `typology_id` | int8 | Integer encoding, -1 for benign. Order as listed above. |
|
| 161 |
-
| `ht_weight` | float64 | Horvitz-Thompson importance weight. Apply when aggregating P, R and F1. |
|
| 162 |
-
| `n_transactions` | int64 | Transactions in the two-hop subgraph. |
|
| 163 |
-
| `n_tokens_approx` | int64 | Approximate prompt length. |
|
| 164 |
-
| `typed_graph_text` | string | The typed-graph prompt for this case, as the evaluated models saw it. |
|
| 165 |
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
|
|
|
|
|
|
| 173 |
```
|
| 174 |
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
|
| 177 |
Weighted scores on this set estimate the full-split metrics. What that guarantees depends on
|
| 178 |
which metric you ask for. The weighted true-positive, false-positive and false-negative
|
|
@@ -202,68 +197,68 @@ R = tp / (tp + fn)
|
|
| 202 |
F1 = 2 * P * R / (P + R)
|
| 203 |
```
|
| 204 |
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
0.48 on LI-Small:
|
| 208 |
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
|
| 213 |
-
|
| 214 |
-
allow_patterns=["extras/HI-Small/*"])
|
| 215 |
-
d = f"{root}/extras/HI-Small"
|
| 216 |
-
probs = np.load(f"{d}/ensemble_probs_coreset.npy")
|
| 217 |
-
labels = np.load(f"{d}/labels.npy")
|
| 218 |
-
w = np.load(f"{d}/ht_weights.npy")
|
| 219 |
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
fp = w[(labels == 0) & (preds == 1)].sum()
|
| 224 |
-
fn = w[(labels == 1) & (preds == 0)].sum()
|
| 225 |
-
P, R = tp / (tp + fp), tp / (tp + fn)
|
| 226 |
-
print(100 * P, 100 * R, 200 * P * R / (P + R)) # 93.4555 57.0743 70.8685
|
| 227 |
-
```
|
| 228 |
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
|
| 234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
|
| 236 |
-
|
| 237 |
-
import lightgbm as lgb, numpy as np
|
| 238 |
-
booster = lgb.Booster(model_file="ml_baselines/weights/HI-Small/LightGBM+GFP/seed_42.txt")
|
| 239 |
-
X = np.load("extras/HI-Small/features_gfp.npz")["X"] # (3753, 79)
|
| 240 |
-
p = booster.predict(X)
|
| 241 |
-
```
|
| 242 |
|
| 243 |
-
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
-
``
|
| 247 |
-
import torch
|
| 248 |
-
ck = torch.load("ml_baselines/weights/HI-Small/GCPAL+GFP/finetuned_seed_42.pt",
|
| 249 |
-
map_location="cpu", weights_only=True)
|
| 250 |
-
ck["model_state_dict"] # 33 tensors, 122,503 params
|
| 251 |
-
ck["feat_dim"], ck["hidden_dim"], ck["num_layers"] # 84, 128, 2
|
| 252 |
-
ck["best_threshold"], ck["best_val_f1"] # selected on validation
|
| 253 |
-
```
|
| 254 |
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
graph, which is the other reason to use the shipped probabilities rather than re-inferring.
|
| 260 |
-
`amlc/baselines/ml/gcpal.py` documents the aggregation and why it exists.
|
| 261 |
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
`
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
|
| 268 |
## Reading the dataset viewer
|
| 269 |
|
|
@@ -287,62 +282,44 @@ joining it to the parquet without renaming gives you two weight columns or none.
|
|
| 287 |
|
| 288 |
## Case identifiers
|
| 289 |
|
| 290 |
-
Cases are `amlc_00000` .. `amlc_03752` (HI-Small) and `amlc_00000` .. `amlc_02267` (LI-Small)
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
records what that substitution was.
|
| 296 |
|
| 297 |
-
##
|
| 298 |
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
columns or none, and the failure is silent.
|
| 303 |
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
| `label` | int64 | 1 illicit, 0 benign. int8 in the evaluation parquet |
|
| 309 |
-
| `typology` | string | null for benign and for illicit edges with no upstream label |
|
| 310 |
-
| `n_transactions` | int64 | transactions in the two-hop subgraph |
|
| 311 |
-
| `subset_index` | int64 | row index into the full temporal test split |
|
| 312 |
-
| `weight` | float64 | the Horvitz-Thompson weight. Called `ht_weight` in the other file |
|
| 313 |
|
| 314 |
-
|
|
|
|
|
|
|
|
|
|
| 315 |
|
| 316 |
-
|
| 317 |
-
this revision, so it does not move.
|
| 318 |
|
| 319 |
-
|
| 320 |
-
[`docs/known_issues.md`](https://github.com/nat-nischw/AMLCompact/blob/main/docs/known_issues.md)
|
| 321 |
-
in the code repository, which names which published numbers moved and by how much. Two are worth
|
| 322 |
-
knowing about here because they touch the shipped arrays: a Horvitz-Thompson weight defect on
|
| 323 |
-
LI-Small that double-counted most of the benign population, and a typology encoding defect in
|
| 324 |
-
two downstream consumers. Both are fixed in what ships.
|
| 325 |
|
| 326 |
-
|
| 327 |
-
`AMLC_LEGACY_DRAW=1`, so a reader comparing the submitted paper against this artefact can see
|
| 328 |
-
where the difference comes from rather than guessing.
|
| 329 |
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
|
|
|
|
|
|
|
|
|
| 333 |
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
- **Typology labels cover illicit edges only**, 791 of 1,251 on HI-Small and 174 of 756 on
|
| 338 |
-
LI-Small; the rest have no upstream typology.
|
| 339 |
-
- **GCPAL was fine-tuned on a random 60/20/20 split**, so 609,857 of 1,015,669 HI-Small and
|
| 340 |
-
830,310 of 1,384,810 LI-Small temporal test edges were in its fine-tuning set. It is one of
|
| 341 |
-
three ensemble members, so the ensemble figures are optimistic to that extent.
|
| 342 |
-
- **This is a coreset, not a sample of convenience.** Every illicit edge is retained
|
| 343 |
-
deterministically and benign edges carry inverse-inclusion-probability weights. Unweighted
|
| 344 |
-
metrics on this set are a diagnostic against a 1:2 predict-all floor, not a population
|
| 345 |
-
estimate.
|
| 346 |
|
| 347 |
## What this is for, and what it is not for
|
| 348 |
|
|
@@ -373,7 +350,79 @@ integrity rather than content: `scripts/00_download_amlworld.py` checks pinned S
|
|
| 373 |
before anything is derived. We did not run a content sweep over the 6,021 serialised prompts,
|
| 374 |
because they are built from that synthetic source by a deterministic serialiser.
|
| 375 |
|
| 376 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
|
| 378 |
Underlying transactions: [AMLworld](https://www.kaggle.com/datasets/ealtman2019/ibm-transactions-for-anti-money-laundering-aml)
|
| 379 |
(IBM, synthetic), published under the **Community Data License Agreement, Sharing, Version 1.0**,
|
|
@@ -397,8 +446,6 @@ under your own Kaggle account.
|
|
| 397 |
|
| 398 |
## Citation
|
| 399 |
|
| 400 |
-
Conference metadata is filled in at camera-ready. Until then:
|
| 401 |
-
|
| 402 |
```bibtex
|
| 403 |
@misc{nitarach2026amlcompact,
|
| 404 |
title = {AMLCompact: Bias-Free Downsampling Makes AMLworld Tractable for LLM Evaluation},
|
|
@@ -410,3 +457,7 @@ Conference metadata is filled in at camera-ready. Until then:
|
|
| 410 |
url = {https://openreview.net/forum?id=VouFZFf8Ph}
|
| 411 |
}
|
| 412 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
[Licence](./NOTICE.md) ·
|
| 105 |
[Report a bad case](https://huggingface.co/datasets/natnitaract/amlcompact-eval/discussions)
|
| 106 |
|
| 107 |
+
An anti-money-laundering benchmark small enough to run a language model on. Two AMLworld splits
|
| 108 |
+
compressed 271x and 611x, with Horvitz-Thompson weights that put the full-split metrics back,
|
| 109 |
+
and each edge serialised as a typed two-hop subgraph that fits a context window.
|
| 110 |
+
|
| 111 |
The evaluation dataset for *AMLCompact: Bias-Free Downsampling Makes AMLworld Tractable for
|
| 112 |
LLM Evaluation*, an ARR submission committed to EMNLP 2026 (Resources and Evaluation).
|
| 113 |
|
|
|
|
| 116 |
this dataset needs only that package and the arrays below; reproducing the paper end to end
|
| 117 |
needs the repository as well.
|
| 118 |
|
| 119 |
+
**Frozen at v1.0**, the revision the paper cites. Errata are recorded rather than patched.
|
|
|
|
|
|
|
| 120 |
|
| 121 |
+
| Config | Rows | Illicit | Typology-labelled | Full test split | Reduction | sum(ht_weight) |
|
| 122 |
+
|---|---:|---:|---:|---:|---:|---:|
|
| 123 |
+
| HI-Small | 3,753 | 1,251 | 791 | 1,015,669 | 271x | 1,015,669 |
|
| 124 |
+
| LI-Small | 2,268 | 756 | 174 | 1,384,810 | 611x | 1,384,810 |
|
| 125 |
|
| 126 |
+
The weight column sums to the full split size by construction. That is the property the dataset
|
| 127 |
+
exists for, and it is asserted at build time and again on every load.
|
| 128 |
|
| 129 |
+
## Quickstart
|
| 130 |
|
| 131 |
+
```python
|
| 132 |
+
from datasets import load_dataset
|
| 133 |
+
ds = load_dataset("natnitaract/amlcompact-eval", "HI-Small", split="test")
|
| 134 |
+
```
|
| 135 |
|
| 136 |
+
One row is one case. `typed_graph_text` is the prompt as the evaluated models received it, and
|
| 137 |
+
the task is two questions: is this edge illicit, and which of eight laundering typologies is it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
+
## Verify your setup
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
+
To check your copy is intact, run it against the shipped ensemble probabilities. They are
|
| 142 |
+
probabilities, so a threshold is needed; the paper's operating points are 0.80 on HI-Small and
|
| 143 |
+
0.48 on LI-Small:
|
| 144 |
|
| 145 |
+
```python
|
| 146 |
+
import numpy as np
|
| 147 |
+
from huggingface_hub import snapshot_download
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
+
root = snapshot_download("natnitaract/amlcompact-eval", repo_type="dataset",
|
| 150 |
+
allow_patterns=["extras/HI-Small/*"])
|
| 151 |
+
d = f"{root}/extras/HI-Small"
|
| 152 |
+
probs = np.load(f"{d}/ensemble_probs_coreset.npy")
|
| 153 |
+
labels = np.load(f"{d}/labels.npy")
|
| 154 |
+
w = np.load(f"{d}/ht_weights.npy")
|
| 155 |
|
| 156 |
+
assert w.sum() == 1_015_669 # the property the dataset exists for
|
| 157 |
+
preds = (probs >= 0.80).astype(int) # LI-Small uses 0.48
|
| 158 |
+
tp = w[(labels == 1) & (preds == 1)].sum()
|
| 159 |
+
fp = w[(labels == 0) & (preds == 1)].sum()
|
| 160 |
+
fn = w[(labels == 1) & (preds == 0)].sum()
|
| 161 |
+
P, R = tp / (tp + fp), tp / (tp + fn)
|
| 162 |
+
print(100 * P, 100 * R, 200 * P * R / (P + R)) # 93.4555 57.0743 70.8685
|
| 163 |
```
|
| 164 |
|
| 165 |
+
You should get P/R/F1 = 93.4555 / 57.0743 / 70.8685 on HI-Small and
|
| 166 |
+
73.2984 / 18.5185 / 29.5671 on LI-Small. Those are the full-split values: the supervised
|
| 167 |
+
ensemble flags no down-sampled edge, so the weighted computation on 3,753 rows and the
|
| 168 |
+
unweighted one on 1,015,669 are the same arithmetic on the same edges.
|
| 169 |
+
|
| 170 |
+
## Horvitz-Thompson weighted metrics
|
| 171 |
|
| 172 |
Weighted scores on this set estimate the full-split metrics. What that guarantees depends on
|
| 173 |
which metric you ask for. The weighted true-positive, false-positive and false-negative
|
|
|
|
| 197 |
F1 = 2 * P * R / (P + R)
|
| 198 |
```
|
| 199 |
|
| 200 |
+
The reference implementation is `amlc.triage.doubt_triage.ht_weighted_prf` in the repository;
|
| 201 |
+
the block above mirrors it, kept here so the card stands alone.
|
|
|
|
| 202 |
|
| 203 |
+
**Do not report an unweighted mean.** Unweighted numbers describe this coreset and not the
|
| 204 |
+
population it stands for. Under the 1:2 design ratio a predict-all-illicit guess scores about
|
| 205 |
+
50% F1 unweighted and 0.25% weighted, which is the whole distance between the two frames.
|
| 206 |
|
| 207 |
+
## Files that ship
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
|
| 209 |
+
`load_dataset` pulls only `data/`, which is 31.7 MiB. A `git clone` pulls everything,
|
| 210 |
+
which is 1.11 GiB, almost all of it supervised model weights. Six file families were missing
|
| 211 |
+
from the previous version of this list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
|
| 213 |
+
| Path | What it is | Size | Licence |
|
| 214 |
+
|---|---|---:|---|
|
| 215 |
+
| `data/<config>/test-*.parquet` | the evaluation set, one row per case, eleven columns | 31.7 MiB | CDLA |
|
| 216 |
+
| `extras/<config>/*.npy` | indices, HT weights, labels, typologies, ensemble probabilities | 0.2 MiB | CDLA |
|
| 217 |
+
| `extras/<config>/features_gfp.npz` | 79 GFP columns per case, plus the column names | 1.0 MiB | CDLA |
|
| 218 |
+
| `extras/<config>/case_index.parquet` | seven-column join table; its weight column is `weight` | 0.1 MiB | CDLA |
|
| 219 |
+
| `ml_baselines/weights/` | all three members, 5 seeds each, plus GCPAL's pretrained encoder | 604.0 MiB | MIT |
|
| 220 |
+
| `ml_baselines/test_probs/` | full-split probabilities and typology heads, per member and seed | 494.5 MiB | MIT |
|
| 221 |
+
| `build_report.json` | what the builder asserted at publish time | 461 B | MIT |
|
| 222 |
+
| | **total** | **1.11 GiB** | |
|
| 223 |
|
| 224 |
+
Under `ml_baselines/weights/`, each member also ships `seed_*_typology.{txt,json}` for the
|
| 225 |
+
typology head and `seed_*_meta.json`, which records that member's own tuned threshold. That
|
| 226 |
+
per-member threshold is not the ensemble operating point: HI-Small LightGBM seed 42 carries
|
| 227 |
+
0.7339, against the ensemble's 0.80. Confusing the two is an easy way to fail to reproduce a
|
| 228 |
+
number.
|
| 229 |
|
| 230 |
+
## Schema
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
|
| 232 |
+
| Field | Type | Description |
|
| 233 |
+
|---|---|---|
|
| 234 |
+
| `case_id` | string | `amlc_00000` .. Stable identifier, also the row position. |
|
| 235 |
+
| `center_edge_id` | string | The AMLworld edge this case is centred on. |
|
| 236 |
+
| `subset_index` | int64 | Row index into the full temporal test split. |
|
| 237 |
+
| `label` | int8 | 1 = illicit, 0 = benign. |
|
| 238 |
+
| `illicit` | bool | `label == 1`. |
|
| 239 |
+
| `typology` | string? | One of fan-out, fan-in, cycle, scatter-gather, gather-scatter, stack, bipartite, random. Null for benign edges and for illicit edges with no upstream typology label. |
|
| 240 |
+
| `typology_id` | int8 | Integer encoding, -1 for benign. Order as listed above. |
|
| 241 |
+
| `ht_weight` | float64 | Horvitz-Thompson importance weight. Apply when aggregating P, R and F1. |
|
| 242 |
+
| `n_transactions` | int64 | Transactions in the two-hop subgraph. |
|
| 243 |
+
| `n_tokens_approx` | int64 | Approximate prompt length. |
|
| 244 |
+
| `typed_graph_text` | string | The typed-graph prompt for this case, as the evaluated models saw it. |
|
| 245 |
|
| 246 |
+
## Column dictionary: `case_index.parquet`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
|
| 248 |
+
A join table for reading labels and weights without pulling the 31.7 MiB prompt column. Its
|
| 249 |
+
weight column is named `weight` and the evaluation parquet's is `ht_weight`. That is a real
|
| 250 |
+
inconsistency and not a subtlety: joining the two without renaming leaves you with two weight
|
| 251 |
+
columns or none, and the failure is silent.
|
|
|
|
|
|
|
| 252 |
|
| 253 |
+
| Column | Type | Note |
|
| 254 |
+
|---|---|---|
|
| 255 |
+
| `case_id` | string | the join key, `amlc_NNNNN` |
|
| 256 |
+
| `center_edge_id` | string | the AMLworld edge this case is centred on |
|
| 257 |
+
| `label` | int64 | 1 illicit, 0 benign. int8 in the evaluation parquet |
|
| 258 |
+
| `typology` | string | null for benign and for illicit edges with no upstream label |
|
| 259 |
+
| `n_transactions` | int64 | transactions in the two-hop subgraph |
|
| 260 |
+
| `subset_index` | int64 | row index into the full temporal test split |
|
| 261 |
+
| `weight` | float64 | the Horvitz-Thompson weight. Called `ht_weight` in the other file |
|
| 262 |
|
| 263 |
## Reading the dataset viewer
|
| 264 |
|
|
|
|
| 282 |
|
| 283 |
## Case identifiers
|
| 284 |
|
| 285 |
+
Cases are `amlc_00000` .. `amlc_03752` (HI-Small) and `amlc_00000` .. `amlc_02267` (LI-Small);
|
| 286 |
+
the digits are the row position. The identifier is the join key across the parquet,
|
| 287 |
+
`case_index.parquet`, the released predictions, the rubric annotations, and the text inside
|
| 288 |
+
`typed_graph_text`. The runs predate this form and were retagged for the release, which
|
| 289 |
+
`docs/known_issues.md` in the code repository records.
|
|
|
|
| 290 |
|
| 291 |
+
## Running the supervised baselines
|
| 292 |
|
| 293 |
+
All three ensemble members ship their weights under `ml_baselines/weights/` and their full-split
|
| 294 |
+
probabilities under `ml_baselines/test_probs/`. The repository has the loading code and the
|
| 295 |
+
training pipeline; two caveats belong here because they are properties of the data.
|
|
|
|
| 296 |
|
| 297 |
+
`GCPAL+GFP` is not a separately trained model: it is the `GCPAL_knn` checkpoints re-inferred on
|
| 298 |
+
the temporal test split. Reproducing its probabilities needs the line-graph construction over
|
| 299 |
+
the full transaction graph, so use the shipped probabilities unless you are rebuilding from
|
| 300 |
+
AMLworld.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
|
| 302 |
+
`feat_dim` in those checkpoints is 84 while `features_gfp.npz` carries 79 columns, and that is
|
| 303 |
+
not a mismatch to fix. GCPAL's node features are the 79 GFP dimensions plus 5 it aggregates
|
| 304 |
+
itself from the line graph: the mean of each of the three edge features, the log degree, and
|
| 305 |
+
the smallest temporal delta on any incoming edge.
|
| 306 |
|
| 307 |
+
---
|
|
|
|
| 308 |
|
| 309 |
+
# Dataset Card for AMLCompact
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
|
| 311 |
+
## Dataset Description
|
|
|
|
|
|
|
| 312 |
|
| 313 |
+
- **Repository:** https://github.com/nat-nischw/AMLCompact
|
| 314 |
+
- **Paper:** https://openreview.net/forum?id=VouFZFf8Ph
|
| 315 |
+
- **Point of Contact:** `<NAME AND ADDRESS>`
|
| 316 |
+
- **Curated by:** the paper's authors, from IBM's AMLworld
|
| 317 |
+
- **Language:** English, in that the serialised prompts are English; the underlying records are
|
| 318 |
+
transaction fields rather than natural language
|
| 319 |
|
| 320 |
+
Each row is one transaction edge from AMLworld's temporal test split, with its two-hop
|
| 321 |
+
neighbourhood flattened into a prompt, its ground-truth label and typology, and the importance
|
| 322 |
+
weight that maps a metric computed here onto the full split.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
|
| 324 |
## What this is for, and what it is not for
|
| 325 |
|
|
|
|
| 350 |
before anything is derived. We did not run a content sweep over the 6,021 serialised prompts,
|
| 351 |
because they are built from that synthetic source by a deterministic serialiser.
|
| 352 |
|
| 353 |
+
## Dataset Structure
|
| 354 |
+
|
| 355 |
+
One `test` split per config. There is no train or validation split here: the coreset is built
|
| 356 |
+
from the test split only, and AMLworld's train and validation splits are left intact for anyone
|
| 357 |
+
fitting a model.
|
| 358 |
+
|
| 359 |
+
The sampler is the only filter applied. Every illicit edge is retained, benign edges are drawn
|
| 360 |
+
by supervised difficulty at a 1:2 design ratio, and each retained edge carries the inverse of
|
| 361 |
+
its stratum's inclusion probability as `ht_weight`. The distinct weight values are the design:
|
| 362 |
+
|
| 363 |
+
| Config | weight 1.0 | down-sampled weights |
|
| 364 |
+
|---|---:|---|
|
| 365 |
+
| HI-Small | 1,614 rows | 469.338 on 1,426 rows, 483.561 on 713 |
|
| 366 |
+
| LI-Small | 1,025 rows | 1100.359 on 415, 1103.017 on 414, 1136.442 on 414 |
|
| 367 |
+
|
| 368 |
+
Every illicit row carries weight exactly 1.0 in both splits, which is why recall is exact for
|
| 369 |
+
any predictor and only precision and F1 are estimates.
|
| 370 |
+
|
| 371 |
+
## Curation Rationale
|
| 372 |
+
|
| 373 |
+
AMLworld's test split is around a million edges and serialises to roughly 1B tokens per pass,
|
| 374 |
+
which puts in-context evaluation out of reach. Prior work fell back on small curated subsets
|
| 375 |
+
that no longer matched the 0.05 to 0.12 percent illicit rate, so supervised models and language
|
| 376 |
+
models could not be compared on one set. This is the same split compressed enough to prompt,
|
| 377 |
+
with the weights that make the comparison valid.
|
| 378 |
+
|
| 379 |
+
## Source Data
|
| 380 |
+
|
| 381 |
+
AMLworld (Altman et al., NeurIPS 2023 Datasets and Benchmarks), IBM's synthetic
|
| 382 |
+
anti-money-laundering transaction dataset. The original CSVs are not redistributed; fetch them
|
| 383 |
+
from Kaggle under your own account. Serialisation is deterministic given the retained edge set
|
| 384 |
+
except for the neighbour cap, which samples under a process-global random state, so the shipped
|
| 385 |
+
text is the text that was evaluated rather than something a rebuild reproduces byte-for-byte.
|
| 386 |
+
|
| 387 |
+
## Personal and Sensitive Information
|
| 388 |
+
|
| 389 |
+
Covered under Out-of-Scope Use above: the records are agent-generated and correspond to no real
|
| 390 |
+
person or institution, and what we verify mechanically is integrity rather than content.
|
| 391 |
+
|
| 392 |
+
## Bias, Risks and Limitations
|
| 393 |
+
|
| 394 |
+
- **Reasoning traces, where released, exist for seed 42 only.**
|
| 395 |
+
- **Typology labels cover illicit edges only**, 791 of 1,251 on HI-Small and 174 of 756 on
|
| 396 |
+
LI-Small; the rest have no upstream typology.
|
| 397 |
+
- **GCPAL was fine-tuned on a random 60/20/20 split**, so 609,857 of 1,015,669 HI-Small and
|
| 398 |
+
830,310 of 1,384,810 LI-Small temporal test edges were in its fine-tuning set. It is one of
|
| 399 |
+
three ensemble members, so the ensemble figures are optimistic to that extent.
|
| 400 |
+
- **This is a coreset, not a sample of convenience.** Every illicit edge is retained
|
| 401 |
+
deterministically and benign edges carry inverse-inclusion-probability weights. Unweighted
|
| 402 |
+
metrics on this set are a diagnostic against a 1:2 predict-all floor, not a population
|
| 403 |
+
estimate.
|
| 404 |
+
|
| 405 |
+
## Changelog and errata
|
| 406 |
+
|
| 407 |
+
**v1.0**, the release the paper cites. Frozen: the numbers in the paper are computed against
|
| 408 |
+
this revision, so it does not move.
|
| 409 |
+
|
| 410 |
+
Corrections made between the first build and this release are listed in
|
| 411 |
+
[`docs/known_issues.md`](https://github.com/nat-nischw/AMLCompact/blob/main/docs/known_issues.md)
|
| 412 |
+
in the code repository, which names which published numbers moved and by how much. Two are worth
|
| 413 |
+
knowing about here because they touch the shipped arrays: a Horvitz-Thompson weight defect on
|
| 414 |
+
LI-Small that double-counted most of the benign population, and a typology encoding defect in
|
| 415 |
+
two downstream consumers. Both are fixed in what ships.
|
| 416 |
+
|
| 417 |
+
The superseded coreset draw behind the ARR-submission numbers is still runnable, with
|
| 418 |
+
`AMLC_LEGACY_DRAW=1`, so a reader comparing the submitted paper against this artefact can see
|
| 419 |
+
where the difference comes from rather than guessing.
|
| 420 |
+
|
| 421 |
+
If you find a case you think is mislabelled, open a discussion quoting its `amlc_NNNNN`
|
| 422 |
+
identifier. Errata are recorded rather than quietly patched, because a benchmark that changes
|
| 423 |
+
under the people comparing against it is not a benchmark.
|
| 424 |
+
|
| 425 |
+
## Licensing Information
|
| 426 |
|
| 427 |
Underlying transactions: [AMLworld](https://www.kaggle.com/datasets/ealtman2019/ibm-transactions-for-anti-money-laundering-aml)
|
| 428 |
(IBM, synthetic), published under the **Community Data License Agreement, Sharing, Version 1.0**,
|
|
|
|
| 446 |
|
| 447 |
## Citation
|
| 448 |
|
|
|
|
|
|
|
| 449 |
```bibtex
|
| 450 |
@misc{nitarach2026amlcompact,
|
| 451 |
title = {AMLCompact: Bias-Free Downsampling Makes AMLworld Tractable for LLM Evaluation},
|
|
|
|
| 457 |
url = {https://openreview.net/forum?id=VouFZFf8Ph}
|
| 458 |
}
|
| 459 |
```
|
| 460 |
+
|
| 461 |
+
Cite AMLworld as well; nothing here exists without it, and its licence asks that the attribution
|
| 462 |
+
be preserved. The entry and its venue states are in
|
| 463 |
+
[`docs/citation.md`](https://github.com/nat-nischw/AMLCompact/blob/main/docs/citation.md).
|