SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.08569 · NeurIPS · 2024

Noise-Aware Differentially Private Regression via Meta-Learning

Wessel Bruinsma, Richard Turner, Matthew Ashman, Stratis Markou, Ossi Räisä, Antti Honkela, Marlon Tobaben

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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; 7 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2406.08569.json · badge: /api/ran/2406.08569.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
cambridge-mlg/dpconvcnp canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
expand_last_dims Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cambridge-mlg/dpconvcnp/dpconvcnp/utils.py
code served (permissive licence) · get_code("a29dd6558d2bf53f")
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 EagerTensor, ndim 5, dtype family float, shape (2, 3, 4, 1, 1) 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 tensorflow as tf

# Create a small tensor with shape (2, 3, 4)
tensor = tf.constant([
    [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]],
    [[13, 14, 15, 16], [17, 18, 19, 20], [21, 22, 23, 24]]
], dtype=tf.float32)

# ndims specifies how many dimensions of size 1 to append
ndims = 2

ARGS = {
    "tensor": tensor,
    "ndims": ndims,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 5, dtype family float, shape (2, 3, 4, 1, 1) — shape (2, 3, 4, 1, 1) 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
flatten_grid Ran
ran, honoured the contract we drafted
cambridge-mlg/dpconvcnp/dpconvcnp/model/setconv.py
code served (permissive licence) · get_code("bb3fa3e297962df0")
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 EagerTensor, ndim 3, dtype family float, shape (2, 12, 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 tensorflow as tf

# Create a small grid tensor
# Shape: (batch_size=2, n1=3, n2=4, dim=2)
# This represents a 2D grid with batch size 2, where each batch has a 3x4 grid of 2D points
grid = tf.constant([
    [
        [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0], [7.0, 8.0]],
        [[9.0, 10.0], [11.0, 12.0], [13.0, 14.0], [15.0, 16.0]],
        [[17.0, 18.0], [19.0, 20.0], [21.0, 22.0], [23.0, 24.0]],
    ],
    [
        [[25.0, 26.0], [27.0, 28.0], [29.0, 30.0], [31.0, 32.0]],
        [[33.0, 34.0], [35.0, 36.0], [37.0, 38.0], [39.0, 40.0]],
        [[41.0, 42.0], [43.0, 44.0], [45.0, 46.0], [47.0, 48.0]],
    ]
], dtype=tf.float32)

ARGS = {
    "grid": grid
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 12, 2) — shape (2, 12, 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
get_latitudes_longitudes Ran
ran; our contract draft was wrong, not the code
cambridge-mlg/dpconvcnp/experiments/download_property_data.py
code served (permissive licence) · get_code("f9de4dfdf0702500")
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 2, 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 requests

# The function takes a single parameter 'postcodes' which should be a string
# or an iterable of postcodes. Looking at the function body:
# - It converts postcodes to a list: list(postcodes)
# - It iterates over postcodes with len(postcodes)
# - It expects postcodes to be iterable
# The function makes an API call to postcodes.io, but we're in a sandboxed
# environment without network access, so it will fail gracefully and return
# ([None] * len(postcodes), [None] * len(postcodes))

# Valid postcodes argument - a list or iterable of postcode strings
postcodes_input = ['SW1A1AA', 'M11AE', 'B335DH']

ARGS = {
    'postcodes': postcodes_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
make_adaptive_grids Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cambridge-mlg/dpconvcnp/dpconvcnp/model/setconv.py
code served (permissive licence) · get_code("bb8e7d5f34c4c79b")
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 tensorflow as tf

# Set seed for reproducibility
tf.random.set_seed(0)

# Create test data
batch_size = 2
num_points = 5
dim = 4

# Create a tensor of shape (batch_size, num_points, dim) containing points
x = tf.random.normal(shape=(batch_size, num_points, dim))

# Define arguments for make_adaptive_grids
ARGS = {
    "x": x,
    "points_per_unit": 3,
    "margin": 0.5,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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
make_grids Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cambridge-mlg/dpconvcnp/dpconvcnp/model/setconv.py
code served (permissive licence) · get_code("dd6d875d4580d84a")
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 tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)

# Create small test tensors
batch_size = 2
dim = 4

# xmin: shape (batch_size, dim) - lower corner of box
xmin = tf.constant([
    [0.0, 0.0, 0.0, 0.0],
    [1.0, 1.0, 1.0, 1.0]
], dtype=tf.float32)

# xmax: shape (batch_size, dim) - upper corner of box
xmax = tf.constant([
    [2.0, 2.0, 2.0, 2.0],
    [3.0, 3.0, 3.0, 3.0]
], dtype=tf.float32)

# points_per_unit: integer scalar
points_per_unit = 4

# margin: float scalar
margin = 0.5

ARGS = {
    "xmin": xmin,
    "xmax": xmax,
    "points_per_unit": points_per_unit,
    "margin": margin
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — 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
randint Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cambridge-mlg/dpconvcnp/dpconvcnp/random.py
code served (permissive licence) · get_code("ab59bc2f0e44676a")
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 tensorflow as tf

# Set random seed for reproducibility
tf.random.set_seed(0)

# Create a random seed tensor (required by tf.random.split)
# Seed shape is typically [2] for stateless operations
seed = tf.constant([0, 0], dtype=tf.int32)

# Define shape of output tensor - using distinct dimensions for clarity
shape = tf.TensorShape([2, 4])

# Define minval and maxval as int32 tensors
minval = tf.constant(0, dtype=tf.int32)
maxval = tf.constant(10, dtype=tf.int32)

ARGS = {
    "shape": shape,
    "seed": seed,
    "minval": minval,
    "maxval": maxval,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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
randperm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cambridge-mlg/dpconvcnp/dpconvcnp/random.py
code served (permissive licence) · get_code("8be80e3138ed7072")
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 tensorflow as tf

# Set seed for reproducibility
tf.random.set_seed(0)

# Create a TensorFlow seed (stateless RNG requires a seed tensor of shape [2])
seed = tf.constant([0, 1], dtype=tf.int32)

# Create shape for output tensor
shape = tf.TensorShape([2, 4])

# Create maxval tensor (upper bound for random permutations)
maxval = tf.constant(10, dtype=tf.int32)

ARGS = {
    "shape": shape,
    "seed": seed,
    "maxval": maxval,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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
randu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cambridge-mlg/dpconvcnp/dpconvcnp/random.py
code served (permissive licence) · get_code("ff3dd7bfa7e09fbf")
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 tensorflow as tf

# Create a random seed using TensorFlow's random seed tensor
initial_seed = tf.constant([1, 2], dtype=tf.int32)

# Create shape for output tensor
output_shape = tf.TensorShape([2, 4])

# Create minval and maxval tensors with matching dtype
minval = tf.constant(0.0, dtype=tf.float32)
maxval = tf.constant(1.0, dtype=tf.float32)

ARGS = {
    'shape': output_shape,
    'seed': initial_seed,
    'minval': minval,
    'maxval': maxval,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 8 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-22.

Repositories linked to this paper

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

Abstract

Many high-stakes applications require machine learning models that protect user privacy and provide well-calibrated, accurate predictions. While Differential Privacy (DP) is the gold standard for protecting user privacy, standard DP mechanisms typically significantly impair performance. One approach to mitigating this issue is pre-training models on simulated data before DP learning on the private data. In this work we go a step further, using simulated data to train a meta-learning model that combines the Convolutional Conditional Neural Process (ConvCNP) with an improved functional DP mechanism of Hall et al. [2013] yielding the DPConvCNP. DPConvCNP learns from simulated data how to map private data to a DP predictive model in one forward pass, and then provides accurate, well-calibrated predictions. We compare DPConvCNP with a DP Gaussian Process (GP) baseline with carefully tuned hyperparameters. The DPConvCNP outperforms the GP baseline, especially on non-Gaussian data, yet is much faster at test time and requires less tuning.

For agents

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

get_harvested_code_for_paper("2406.08569")
get_code_for_paper("2406.08569")
have("2406.08569")

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

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

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

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

Connect an agent — have() is free.