SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.18147 · ICLR · 2025

NoEsis: Differentially Private Knowledge Transfer in Modular LLM Adaptation

Hamed Haddadi, Stefanos Laskaridis, Rob Romijnders, Ali Shahin

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 0 no recorded run), 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/2504.18147.json · badge: /api/ran/2504.18147.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
RobRomijnders/noesis canonical (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
FunctionStatusWhere it lives
custom_collate_fn Ran
ran on a synthesized input
RobRomijnders/noesis/NoEsis/util_data.py
code served (permissive licence) · get_code("b34ef4a96f55b090")
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 dict. 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 numpy as np
import torch

torch.manual_seed(0)

# Create a batch of dictionaries
# Each dict has 'decoder_input_ids' (a list of blocks) and other keys
batch = [
    {
        'decoder_input_ids': [
            np.array([1, 2, 3, 4]),
            np.array([5, 6, 7, 8]),
            np.array([9, 10, 11, 12])
        ],
        'attention_mask': [
            np.array([1, 1, 0, 0]),
            np.array([1, 1, 1, 0]),
            np.array([1, 1, 1, 1])
        ],
        'labels': [
            np.array([2, 3, 4, 5]),
            np.array([6, 7, 8, 9]),
            np.array([10, 11, 12, 13])
        ]
    },
    {
        'decoder_input_ids': [
            np.array([14, 15, 16, 17]),
            np.array([18, 19, 20, 21])
        ],
        'attention_mask': [
            np.array([1, 0, 0, 0]),
            np.array([1, 1, 1, 1])
        ],
        'labels': [
            np.array([15, 16, 17, 18]),
            np.array([19, 20, 21, 22])
        ]
    }
]

ARGS = {
    'batch': batch
}
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 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
get_auroc Ran
ran on a synthesized input
RobRomijnders/noesis/NoEsis/util_mia.py
code served (permissive licence) · get_code("0a3b80da511388ad")
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 numpy as np
from sklearn import metrics

np.random.seed(0)

# Create sample histogram data
# bins should have n+1 elements for n histogram bins
bins = np.array([0.0, 0.2, 0.4, 0.6, 0.8, 1.0])

# hist1: positive class histogram (5 bins corresponding to bins[:-1])
hist1 = np.array([10, 15, 20, 25, 30])

# hist2: negative class histogram (5 bins corresponding to bins[:-1])
hist2 = np.array([30, 25, 20, 15, 10])

# fpr_thresh: false positive rate threshold
fpr_thresh = 0.01

ARGS = {
    "bins": bins,
    "hist1": hist1,
    "hist2": hist2,
    "fpr_thresh": fpr_thresh,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
has_multiple_datasets Ran
ran on a synthesized input
RobRomijnders/noesis/NoEsis/util.py
code served (permissive licence) · get_code("ca143f55f88b9020")
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 bool, 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 torch

ARGS = {
    'x': 'dataset1,dataset2'
}
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 bool, 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
read_config Ran
ran on a synthesized input
RobRomijnders/noesis/NoEsis/util_model.py
code served (permissive licence) · get_code("3115c9efb8a27354")
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 dict. 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 json
import os
import tempfile
import shutil

# Create a temporary directory to act as checkpoint directory
temp_ckpt_dir = tempfile.mkdtemp()

# Create a config.json file in the temporary directory
config_data = {
    "model": "test_model",
    "learning_rate": 0.001,
    "batch_size": 32,
    "num_epochs": 10,
    "hidden_dim": 256
}

config_path = os.path.join(temp_ckpt_dir, 'config.json')
with open(config_path, 'w', encoding='utf-8') as f:
    json.dump(config_data, f)

ARGS = {
    "ckpt_dir": temp_ckpt_dir
}
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 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
strip_datasets Ran
ran on a synthesized input
RobRomijnders/noesis/NoEsis/util.py
code served (permissive licence) · get_code("088eab3c4c6b5808")
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 str. 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 torch
import numpy as np

# Setup for strip_datasets function
# The function takes a string parameter 'x' and:
# 1. Splits it by commas
# 2. Maps each element to lowercase and strips whitespace
# 3. Sorts the results
# 4. Joins them with hyphens

# Create a simple test string with multiple datasets
test_string = "DatasetA, DATASETB,  datasetc "

ARGS = {
    "x": test_string
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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.

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

Large Language Models (LLM) are typically trained on vast amounts of data from various sources. Even when designed modularly (e.g., Mixture-of-Experts), LLMs can leak privacy on their sources. Conversely, training such models in isolation arguably prohibits generalization. To this end, we propose a framework, NOESIS, which builds upon the desired properties of modularity, privacy, and knowledge transfer. NOESIS integrates differential privacy with a hybrid twostaged parameter-efficient fine-tuning that combines domain-specific low-rank adapters, acting as experts, with common prompt tokens, acting as a knowledgesharing backbone. Results from our evaluation on CODEXGLUE showcase that NOESIS can achieve provable privacy guarantees with tangible knowledge transfer across domains, and empirically show protection against Membership Inference Attacks. Finally, on code completion tasks, NOESIS bridges at least 77% of the accuracy gap between the non-shared and the non-private baseline.

For agents

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

get_harvested_code_for_paper("2504.18147")
get_code_for_paper("2504.18147")
have("2504.18147")

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

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

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

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

Connect an agent — have() is free.