SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.02926 · 2024

Privacy-Preserving Graph-Based Machine Learning with Fully Homomorphic Encryption for Collaborative Anti-Money Laundering

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2411.02926.json · badge: /api/ran/2411.02926.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
fabecode/GraphML-FHE canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
extract_param Ran
ran, honoured the contract we drafted
fabecode/GraphML-FHE/gnn_fhe_pipeline/train_util.py
code served (permissive licence) · get_code("e4225f0d81ea9f84")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os
from argparse import Namespace

# Create a temporary directory and model_settings.json file
temp_dir = tempfile.mkdtemp()
settings_file = os.path.join(temp_dir, 'model_settings.json')

# Write model settings to the JSON file
model_settings = {
    "bert": {
        "params": {
            "lr": 0.001,
            "weight_decay": 0.01,
            "epochs": 10
        }
    },
    "gpt": {
        "params": {
            "lr": 0.0005,
            "weight_decay": 0.001,
            "epochs": 5
        }
    }
}

with open(settings_file, 'w') as f:
    json.dump(model_settings, f)

# Change to the temporary directory so the function can find model_settings.json
original_dir = os.getcwd()
os.chdir(temp_dir)

# Create args object with a model name
args = Namespace(model="bert")

# Define ARGS dictionary
ARGS = {
    "parameter_name": "lr",
    "args": args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_enriched_df_colnames Ran
ran; our contract draft was wrong, not the code
fabecode/GraphML-FHE/gfp_xgb_fhe_pipeline/gfp.py
code served (permissive licence) · get_code("3c9131016f155a74")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

params = {
    'num_threads': 4,
    'time_window': 86400,
    'vertex_stats': True,
    'vertex_stats_cols': [4, 5],
    'vertex_stats_feats': [4, 8, 9],
    'fan': True,
    'fan_tw': 86400,
    'fan_bins': [2, 4],
    'degree': True,
    'degree_tw': 86400,
    'degree_bins': [2, 4],
    'scatter-gather': True,
    'scatter-gather_tw': 86400,
    'scatter-gather_bins': [2, 4],
    'temp-cycle': True,
    'temp-cycle_tw': 86400,
    'temp-cycle_bins': [2, 4],
    'lc-cycle': True,
    'lc-cycle_tw': 86400,
    'lc-cycle_len': 8,
    'lc-cycle_bins': [2, 4]
}

colnames = [
    'timestamp',
    'source',
    'destination',
    'amount',
    'feature1',
    'feature2'
]

ARGS = {
    'params': params,
    'colnames': colnames
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_dict_val Ran
ran, honoured the contract we drafted
fabecode/GraphML-FHE/gfp_xgb_fhe_pipeline/format_kaggle_files.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from mhaseebtariq/exstraqt, is pointer only (licence: NONE) · get_code("c8cbc17dea127fea")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from mhaseebtariq/exstraqt, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_loaders Ran
ran; our contract draft was wrong, not the code
fabecode/GraphML-FHE/gnn_fhe_pipeline/train_util.py
code served (permissive licence) · get_code("7a4b3977f9af49ca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch_geometric.data import Data, HeteroData
import torch_geometric.transforms as T

torch.manual_seed(0)

# Create a simple args config class
class Args:
    def __init__(self):
        self.num_neighs = [2, 2]
        self.batch_size = 2

args = Args()

# Create homogeneous graph data (non-HeteroData case)
x_homo = torch.randn(4, 3)
edge_index_homo = torch.tensor([[0, 1, 2, 3], [1, 2, 3, 0]], dtype=torch.long)
y_homo = torch.tensor([0, 1, 0, 1], dtype=torch.long)

tr_data = Data(x=x_homo, edge_index=edge_index_homo, y=y_homo)
val_data = Data(x=x_homo, edge_index=edge_index_homo, y=y_homo)
te_data = Data(x=x_homo, edge_index=edge_index_homo, y=y_homo)

# Create indices for val and test splits
tr_inds = torch.tensor([0, 1], dtype=torch.long)
val_inds = torch.tensor([0, 1], dtype=torch.long)
te_inds = torch.tensor([0], dtype=torch.long)

# Define a simple transform (identity transform)
transform = T.Compose([])

ARGS = {
    'tr_data': tr_data,
    'val_data': val_data,
    'te_data': te_data,
    'tr_inds': tr_inds,
    'val_inds': val_inds,
    'te_inds': te_inds,
    'transform': transform,
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_data Ran
ran; our contract draft was wrong, not the code
fabecode/GraphML-FHE/gfp_xgb_fhe_pipeline/data_split.py
code served (permissive licence) · get_code("f1bd775590b8f468")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np
import logging

logging.basicConfig(level=logging.INFO)

# Create a minimal valid DataFrame for df_edges
# The function expects: Timestamp, SourceAccountId, TargetAccountId, Is Laundering columns
np.random.seed(0)

n_transactions = 100
source_ids = np.random.randint(0, 10, n_transactions)
target_ids = np.random.randint(10, 20, n_transactions)
timestamps = np.sort(np.random.randint(0, 7 * 24 * 3600, n_transactions))  # 7 days of data
is_laundering = np.random.randint(0, 2, n_transactions)

df_edges = pd.DataFrame({
    'SourceAccountId': source_ids,
    'TargetAccountId': target_ids,
    'Timestamp': timestamps,
    'Is Laundering': is_laundering
})

ARGS = {
    'df_edges': df_edges,
    'test_size': 0.2,
    'val_size': 0.2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_data_with_val Ran
ran; our contract draft was wrong, not the code
fabecode/GraphML-FHE/gfp_xgb_fhe_pipeline/data_split.py
code served (permissive licence) · get_code("6f73ce4a15dc2e3c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np
import logging

logging.basicConfig(level=logging.INFO)

# Create a minimal DataFrame with required columns
np.random.seed(0)
n_transactions = 100

df_edges = pd.DataFrame({
    'SourceAccountId': np.random.randint(0, 10, n_transactions),
    'TargetAccountId': np.random.randint(10, 20, n_transactions),
    'Timestamp': np.arange(n_transactions) * 3600,  # One hour apart
    'Is Laundering': np.random.randint(0, 2, n_transactions)
})

ARGS = {
    'df_edges': df_edges,
    'test_size': 0.2,
    'val_size': 0.2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_adj_edges_with_times Ran
ran; our contract draft was wrong, not the code
fabecode/GraphML-FHE/gnn_fhe_pipeline/data_util.py
code served (permissive licence) · get_code("3dfdbb7a7e0eace8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

class MockData:
    def __init__(self):
        self.num_nodes = 4
        self.edge_index = torch.tensor([[0, 1, 2, 3], [1, 2, 3, 0]], dtype=torch.long)
        self.timestamps = torch.tensor([10, 20, 30, 40], dtype=torch.long)

data = MockData()

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_adj_nodes_with_times Ran
ran; our contract draft was wrong, not the code
fabecode/GraphML-FHE/gnn_fhe_pipeline/data_util.py
code served (permissive licence) · get_code("2b6032f43601d891")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch_geometric.data import Data, HeteroData

torch.manual_seed(0)

# Create a simple Data object with the required attributes
edge_index = torch.tensor([[0, 1, 0, 1], [1, 0, 2, 2]], dtype=torch.long)
timestamps = torch.tensor([[0.5], [1.2], [2.1], [3.0]], dtype=torch.float)

data = Data(
    x=torch.randn(3, 4),
    edge_index=edge_index,
    num_nodes=3
)
data.timestamps = timestamps

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate_homo Not yet run
unverified (harvested, no recorded run)
fabecode/GraphML-FHE/gnn_fhe_pipeline/train_util.py
code served (permissive licence) · get_code("5eea9480b7d2c8c5")
How it ran

no invocation recorded.

ports Not yet run
unverified (harvested, no recorded run)
fabecode/GraphML-FHE/gnn_fhe_pipeline/data_util.py
code served (permissive licence) · get_code("26cb49da0831ef34")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_dict_val 1 other paper
1 later
2604.02899 (2026-04)
Extracting Money Laundering Transactions from Quasi-Temporal Graph Representation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Combating money laundering has become increasingly complex with the rise of cybercrime and digitalization of financial transactions. Graph-based machine learning techniques have emerged as promising tools for Anti-Money Laundering (AML) detection, capturing intricate relationships within money laundering networks. However, the effectiveness of AML solutions is hindered by data silos within financial institutions, limiting collaboration and overall efficacy. This research presents a novel privacy-preserving approach for collaborative AML machine learning, facilitating secure data sharing across institutions and borders while preserving privacy and regulatory compliance. Leveraging Fully Homomorphic Encryption (FHE), computations are directly performed on encrypted data, ensuring the confidentiality of financial data. Notably, FHE over the Torus (TFHE) was integrated with graph-based machine learning using Zama Concrete ML. The research contributes two key privacy-preserving pipelines. First, the development of a privacy-preserving Graph Neural Network (GNN) pipeline was explored. Optimization techniques like quantization and pruning were used to render the GNN FHE-compatible. Second, a privacy-preserving graph-based XGBoost pipeline leveraging Graph Feature Preprocessor (GFP) was successfully developed. Experiments demonstrated strong predictive performance, with the XGBoost model consistently achieving over 99% accuracy, F1-score, precision, and recall on the balanced AML dataset in both unencrypted and FHE-encrypted inference settings. On the imbalanced dataset, the incorporation of graph-based features improved the F1-score by 8%. The research highlights the need to balance the trade-off between privacy and computational efficiency.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2411.02926")
get_code_for_paper("2411.02926")
have("2411.02926")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2411.02926.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2411.02926.svg)](https://syntology.ai/paper/2411.02926)

Connect an agent — have() is free.