You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Configuration Parsing Warning:In UNKNOWN_FILENAME: "architectures" must be an array

AMLNet v2.2.3: Multi-Scale Financial Crime Detection Research Models

Trained PyTorch Geometric Graph Neural Network (GNN) checkpoints, Scikit-Learn baseline estimators, and benchmark evaluation manifests for anti-money laundering (AML) node classification on synthetic transaction graphs.


1. Repository Structure

AMLNet-Research/
β”œβ”€β”€ README.md                          # Repository documentation and model cards (v2.2.3)
β”œβ”€β”€ LICENSE                            # MIT License
β”œβ”€β”€ config.json                        # Global model and architecture configuration
β”œβ”€β”€ model_manifest.json                # Complete 30-entry benchmark and artifact registry
β”œβ”€β”€ published_benchmark_manifest.json  # Canonical published benchmark manifest (30 experiments)
β”œβ”€β”€ requirements-inference.txt         # Pinned runtime dependencies for inference
β”œβ”€β”€ benchmarks/
β”‚   β”œβ”€β”€ dataset_inventory.json         # Detailed audit of all 5 IBM AMLSim dataset scales
β”‚   β”œβ”€β”€ results_summary.json           # Canonical 30-experiment benchmark record
β”‚   └── evaluation_protocol.md         # Leak-free splitting and calibration protocol
β”œβ”€β”€ inference/
β”‚   β”œβ”€β”€ graph_inference.py             # PyG inference engine (AMLGCN, AMLGraphSAGE, AMLGAT)
β”‚   β”œβ”€β”€ predict.py                     # Scikit-learn tabular inference engine with StandardScaler
β”‚   └── validate_artifacts.py          # Cryptographic and deserialization validation suite
└── models/
    β”œβ”€β”€ 100/                           # Tier 1 (100 Accounts): GCN, GraphSAGE, GAT, GB, RF, LR
    β”œβ”€β”€ 1K/                            # Tier 2 (1,000 Accounts): GCN, GraphSAGE, GAT, GB, RF, LR
    β”œβ”€β”€ 10K/                           # Tier 3 (10,000 Accounts): GCN, GraphSAGE, GAT, GB, RF, LR
    β”œβ”€β”€ 100K/                          # Tier 4 (100,000 Accounts - Flagship): GCN, SAGE, GAT, GB, RF, LR
    └── 1M/                            # Tier 5 (1,000,000 Accounts): GCN, GraphSAGE, GAT, GB, RF, LR

2. Multi-Scale Dataset Coverage & Scope Distinctions

AMLNet is evaluated across five synthetic financial transaction network scales generated via IBM AMLSim:

Dataset Tier Scale Label Source Accounts Source Transactions SAR Prevalence Evaluation Profile Interactive Scope
Tier 1 100 100 17,144 20.00% light 100 accounts (Full source)
Tier 2 1K 1,000 117,533 16.00% full 1,000 accounts (Full source)
Tier 3 10K 10,000 1,323,234 16.94% balanced 10,000 accounts (250K tx edges sampled)
Tier 4 100K (Default) 100,000 12,476,012 17.09% balanced 25,000 accounts / 35,000 edges cohort
Tier 5 1M 1,000,000 124,703,184 20.00% light 10,000 accounts (Subsampled slice)
Total 1,111,100 138,637,107

Important Scope Note: Source datasets and interactive/training scopes are distinct. For example, in Tier 4 (100K accounts), account feature profiles aggregate statistics from all 12.4M source transactions, whereas graph training utilizes a balanced subgraph and the interactive exploration index uses a responsive 25,000-account / 35,000-edge neighborhood index.


3. Flagship Tier 4 Performance (100K Accounts, Group exp_amlsim_100kv_10me_balanced_1795199090)

Evaluated on a 20% holdout test partition with leak-free preprocessing (StandardScaler fitted strictly on training accounts) and validation-tuned threshold:

Model Architecture Test F1 Test Recall Test Precision PR-AUC ROC-AUC Test Accuracy Optimal Threshold Artifact File
HistGradientBoosting 0.3468 0.4286 0.2912 0.3414 0.6385 0.7242 0.5167 models/100K/gradient_boosting/model.joblib
Logistic Regression 0.3269 0.4988 0.2432 0.3044 0.6271 0.6492 0.5013 models/100K/logistic_regression/model.joblib
AMLGraphSAGE 0.3179 0.5012 0.2327 0.2824 0.6136 0.6326 0.4508 models/100K/graphsage/model.pt
Random Forest 0.3093 0.8548 0.1888 0.2641 0.5901 0.3478 0.0500 models/100K/random_forest/model.joblib
AMLGCN 0.3068 0.6089 0.2050 0.2554 0.5916 0.5300 0.4623 models/100K/gcn/model.pt
AMLGAT 0.2858 0.6206 0.1856 0.1952 0.5452 0.4702 0.5968 models/100K/gat/model.pt

Verified Performance Notice: The verified recall range for models on the 100K balanced benchmark is 42.86% to 85.48%. Earlier preliminary or uncalibrated recall estimates are strictly excluded in favor of leak-free validation protocols fitted exclusively on training accounts.


4. Complete 30-Experiment Benchmark Registry

The 30 experiments span 5 dataset tiers and 6 model architectures evaluated under standardized profiles (light, full, balanced):

Tier Architecture Profile Accuracy Precision Recall F1 Score PR-AUC ROC-AUC Threshold Experiment ID
100 gat light 0.6500 0.2857 0.5000 0.3636 0.2301 0.4219 0.4181 exp_amlsim_100v_10ke_light_1795180225_gat
100 gcn light 0.6500 0.2000 0.2500 0.2222 0.3409 0.7031 0.3865 exp_amlsim_100v_10ke_light_1795180225_gcn
100 gradient_boosting light 0.2000 0.2000 1.0000 0.3333 0.2589 0.5391 0.1325 exp_amlsim_100v_10ke_light_1795180225_gradient_boosting
100 graphsage light 0.8000 0.0000 0.0000 0.0000 0.2307 0.5000 0.3842 exp_amlsim_100v_10ke_light_1795180225_graphsage
100 logistic_regression light 0.7000 0.2500 0.2500 0.2500 0.3415 0.5781 0.5168 exp_amlsim_100v_10ke_light_1795180225_logistic_regression
100 random_forest light 0.3500 0.2000 0.7500 0.3158 0.2639 0.5469 0.05 exp_amlsim_100v_10ke_light_1795180225_random_forest
1K gat full 0.6300 0.2000 0.4375 0.2745 0.3049 0.5631 0.4432 exp_amlsim_1kv_100ke_full_1795180263_gat
1K gcn full 0.8250 0.4211 0.2500 0.3137 0.3737 0.6404 0.4763 exp_amlsim_1kv_100ke_full_1795180263_gcn
1K gradient_boosting full 0.8150 0.4324 0.5000 0.4638 0.4170 0.7275 0.4558 exp_amlsim_1kv_100ke_full_1795180263_gradient_boosting
1K graphsage full 0.5900 0.2283 0.6562 0.3387 0.4318 0.6730 0.4297 exp_amlsim_1kv_100ke_full_1795180263_graphsage
1K logistic_regression full 0.5850 0.2316 0.6875 0.3465 0.4810 0.6951 0.4404 exp_amlsim_1kv_100ke_full_1795180263_logistic_regression
1K random_forest full 0.7550 0.3509 0.6250 0.4494 0.4421 0.7397 0.22 exp_amlsim_1kv_100ke_full_1795180263_random_forest
10K gat balanced 0.2370 0.1735 0.9377 0.2929 0.1979 0.5562 0.6325 exp_amlsim_10kv_1me_balanced_1795180318_gat
10K gcn balanced 0.5900 0.2259 0.5905 0.3268 0.2558 0.6294 0.4468 exp_amlsim_10kv_1me_balanced_1795180318_gcn
10K gradient_boosting balanced 0.8075 0.4365 0.4896 0.4615 0.4567 0.7746 0.5848 exp_amlsim_10kv_1me_balanced_1795180318_gradient_boosting
10K graphsage balanced 0.7350 0.2977 0.4214 0.3489 0.3236 0.6661 0.4871 exp_amlsim_10kv_1me_balanced_1795180318_graphsage
10K logistic_regression balanced 0.7735 0.3645 0.4629 0.4078 0.3903 0.6944 0.5399 exp_amlsim_10kv_1me_balanced_1795180318_logistic_regression
10K random_forest balanced 0.7675 0.3615 0.4955 0.4180 0.4007 0.7467 0.24 exp_amlsim_10kv_1me_balanced_1795180318_random_forest
100K gat balanced 0.4702 0.1856 0.6206 0.2858 0.1952 0.5452 0.5968 exp_amlsim_100kv_10me_balanced_1795199090_gat
100K gcn balanced 0.5300 0.2050 0.6089 0.3068 0.2554 0.5916 0.4623 exp_amlsim_100kv_10me_balanced_1795199090_gcn
100K gradient_boosting balanced 0.7242 0.2912 0.4286 0.3468 0.3414 0.6385 0.5167 exp_amlsim_100kv_10me_balanced_1795199090_gradient_boosting
100K graphsage balanced 0.6326 0.2327 0.5012 0.3179 0.2824 0.6136 0.4508 exp_amlsim_100kv_10me_balanced_1795199090_graphsage
100K logistic_regression balanced 0.6492 0.2432 0.4988 0.3269 0.3044 0.6271 0.5013 exp_amlsim_100kv_10me_balanced_1795199090_logistic_regression
100K random_forest balanced 0.3478 0.1888 0.8548 0.3093 0.2641 0.5901 0.05 exp_amlsim_100kv_10me_balanced_1795199090_random_forest
1M gat light 0.2060 0.2006 0.9950 0.3339 0.2000 0.5002 0.295 exp_amlsim_1mv_100me_light_1795193686_gat
1M gcn light 0.2140 0.2004 0.9800 0.3328 0.2000 0.5000 0.3883 exp_amlsim_1mv_100me_light_1795193686_gcn
1M gradient_boosting light 0.2020 0.2004 1.0000 0.3339 0.1976 0.4890 0.3298 exp_amlsim_1mv_100me_light_1795193686_gradient_boosting
1M graphsage light 0.2000 0.2000 1.0000 0.3333 0.2033 0.5002 0.3595 exp_amlsim_1mv_100me_light_1795193686_graphsage
1M logistic_regression light 0.2090 0.2012 0.9950 0.3347 0.2006 0.5072 0.4912 exp_amlsim_1mv_100me_light_1795193686_logistic_regression
1M random_forest light 0.2070 0.2002 0.9900 0.3331 0.2021 0.5012 0.05 exp_amlsim_1mv_100me_light_1795193686_random_forest

5. Node Feature Specification (10 Graph Features)

All models consume 10 aggregated transactional node features:

  1. incoming_count: In-degree transaction count
  2. outgoing_count: Out-degree transaction count
  3. total_incoming_amount: Total currency volume received
  4. total_outgoing_amount: Total currency volume transferred
  5. avg_incoming_amount: Mean value of received transactions
  6. avg_outgoing_amount: Mean value of sent transactions
  7. unique_counterparties: Count of distinct counterparties
  8. in_out_amount_ratio: Incoming to outgoing amount ratio
  9. log_total_incoming: Log1p of total incoming funds
  10. log_total_outgoing: Log1p of total outgoing funds

6. Standalone Inference Examples

PyTorch Geometric GNN Models:

import torch
from inference.graph_inference import load_gnn_model, run_gnn_inference

# Load verified model weights using safe weights_only=True
model, threshold = load_gnn_model("models/100K/graphsage/model.pt", "graphsage")

# 5 sample account nodes with 10 features, and 4 directed transaction edges
x = torch.randn(5, 10)
edge_index = torch.tensor([[0, 1, 2, 3], [1, 2, 3, 0]], dtype=torch.long)

result = run_gnn_inference(model, threshold, x, edge_index)
print("Risk Probabilities:", result["probabilities"])
print("SAR Alert Flags:", result["predictions"])

Tabular Baseline Estimators:

import numpy as np
import joblib

# Load trained model package and leak-free fitted scaler
pkg = joblib.load("models/100K/gradient_boosting/model.joblib")
model = pkg["model"]
threshold = pkg["threshold"]
scaler = joblib.load("models/100K/gradient_boosting/standard_scaler.joblib")

raw_features = np.random.randn(5, 10)
scaled_features = scaler.transform(raw_features)
probabilities = model.predict_proba(scaled_features)[:, 1]
predictions = (probabilities >= threshold).astype(int)

print("Probabilities:", probabilities)
print("Predictions:", predictions)

7. Ethical Considerations & Limitations

  • Synthetic Data: All models were trained and benchmarked strictly on synthetic IBM AMLSim data. They do not represent real banking customers or genuine transaction records.
  • Biometric Isolation: AMLNet provides WebAuthn passkey authentication strictly for investigator login and session management; biometric signals are completely isolated from AML transaction models and are never used in model training or inference.
  • Academic & Research Purpose: Models and benchmarks are intended for algorithm evaluation, architectural comparison, and academic research. They must not be deployed for autonomous regulatory SAR filing without human investigator review.
  • Licensing: AMLNet source code and model weights are licensed under the MIT License. Underlying synthetic graph topologies are based on IBM AMLSim (Apache 2.0).
Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support