SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.16424 · ICLR · 2023

Machine Unlearning of Federated Clusters

Olgica Milenkovic, Saurav Prakash, Chao Pan, Jin Sima, Vishal Rana

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 4 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; 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/2210.16424.json · badge: /api/ran/2210.16424.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
thupchnsky/mufc canonical (classifier label)
classifier basis: classifier_2025
3 ran · 4 no recorded run
FunctionStatusWhere it lives
load_dataset Ran
ran; our contract draft was wrong, not the code
thupchnsky/mufc/utils.py
code served (permissive licence) · get_code("da3651feb0814f25")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T03:02:54Z). 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 pickle
import tempfile
import os

# Create a temporary pickle file with a small dataset
temp_dir = tempfile.mkdtemp()
temp_filepath = os.path.join(temp_dir, "test_dataset.pkl")

# Create a simple dataset dict
test_dataset = {
    "data": [1, 2, 3, 4, 5],
    "labels": [0, 1, 0, 1, 0],
    "metadata": {"name": "test", "size": 5}
}

# Save it to the temporary file
with open(temp_filepath, 'wb') as fw:
    pickle.dump(test_dataset, fw)

# Define ARGS with the filepath parameter
ARGS = {
    "filepath": temp_filepath
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
matplotlib, numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
distance_to_set Ran
ran, honoured the contract we drafted
thupchnsky/mufc/kfed.py
code served (permissive licence) · get_code("da61bfc2e2692808")
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 ndarray, ndim 1, dtype family float, shape (2,) 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 numpy as np
import scipy.spatial.distance
from sklearn.metrics import pairwise_distances as sparse_cdist

# Create sample data
# A: numpy array of shape (2, 4) - 2 points in 4D space
A = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float64)

# S: numpy array of shape (3, 4) - 3 reference points in 4D space
S = np.array([
    [0.0, 0.0, 0.0, 0.0],
    [1.0, 1.0, 1.0, 1.0],
    [10.0, 10.0, 10.0, 10.0]
], dtype=np.float64)

ARGS = {
    'A': A,
    'S': S,
    'sparse': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
kmeans_pp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thupchnsky/mufc/kfed.py
code served (permissive licence) · get_code("e2cb6633bbbf7dbd")
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 ndarray, ndim 2, dtype family float, shape (3, 4) 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 numpy as np
import scipy
from sklearn.metrics import pairwise_distances as sparse_cdist

np.random.seed(0)

# Create a small dense data matrix: 10 samples, 4 features
A_dense = np.random.randn(10, 4).astype(np.float64)

# Create a small sparse data matrix for testing sparse=True case
from scipy.sparse import csr_matrix
A_sparse = csr_matrix(A_dense)

ARGS = {
    "A": A_dense,
    "k": 3,
    "weighted": True,
    "sparse": False,
    "verbose": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 4) 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
awasthisheffet Not yet run
unverified (harvested, no recorded run)
thupchnsky/mufc/kfed.py
code served (permissive licence) · get_code("448e8d3b085326ff")
How it ran

no invocation recorded.

clustering_loss Not yet run
unverified (harvested, no recorded run)
thupchnsky/mufc/utils.py
code served (permissive licence) · get_code("86a994e446e7514a")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

kfed Not yet run
unverified (harvested, no recorded run)
thupchnsky/mufc/kfed.py
code served (permissive licence) · get_code("597dcf79adfbadbe")
How it ran

no invocation recorded.

sample_points_in_bin Not yet run
unverified (harvested, no recorded run)
thupchnsky/mufc/utils.py
code served (permissive licence) · get_code("8c600bbc1a79229c")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
clustering_loss 1 other paper
1 dated earlier
1907.05012 (2019-07)
Making AI Forget You: Data Deletion in Machine Learning
load_dataset 1 other paper
1 dated earlier
1907.05012 (2019-07)
Making AI Forget You: Data Deletion in Machine Learning
sample_points_in_bin 1 other paper
1 dated earlier
1907.05012 (2019-07)
Making AI Forget You: Data Deletion in Machine Learning

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-23.

Repositories linked to this paper

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

Abstract

Federated clustering (FC) is an unsupervised learning problem that arises in a number of practical applications, including personalized recommender and healthcare systems. With the adoption of recent laws ensuring the "right to be forgotten", the problem of machine unlearning for FC methods has become of significant importance. We introduce, for the first time, the problem of machine unlearning for FC, and propose an efficient unlearning mechanism for a customized secure FC framework. Our FC framework utilizes special initialization procedures that we show are well-suited for unlearning. To protect client data privacy, we develop the secure compressed multiset aggregation (SCMA) framework that addresses sparse secure federated learning (FL) problems encountered during clustering as well as more general problems. To simultaneously facilitate low communication complexity and secret sharing protocols, we integrate Reed-Solomon encoding with special evaluation points into our SCMA pipeline, and prove that the client communication cost is logarithmic in the vector dimension. Additionally, to demonstrate the benefits of our unlearning mechanism over complete retraining, we provide a theoretical analysis for the unlearning performance of our approach. Simulation results show that the new FC framework exhibits superior clustering performance compared to previously reported FC baselines when the cluster sizes are highly imbalanced. Compared to completely retraining K-means++ locally and globally for each removal request, our unlearning procedure offers an average speed-up of roughly 84x across seven datasets. Our implementation for the proposed method is available at https://github.com/thupchnsky/mufc.

For agents

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

get_harvested_code_for_paper("2210.16424")
get_code_for_paper("2210.16424")
have("2210.16424")

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

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

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

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

Connect an agent — have() is free.