SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.06679 · 2019

Generative Models for Effective ML on Private, Decentralized Datasets

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; 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/1911.06679.json · badge: /api/ran/1911.06679.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
tensorflow/federated canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
adaptive_clip_noise_params Ran
ran on a synthesized input
tensorflow/federated/tensorflow_federated/python/aggregators/differential_privacy.py
code served (permissive licence) · get_code("743db060f22b2c34")
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
import numpy as np

# Based on the function signature and implementation, we need:
# - noise_multiplier: float
# - expected_clients_per_round: float
# - clipped_count_stddev: Optional[float]

ARGS = {
    "noise_multiplier": 0.5,
    "expected_clients_per_round": 100.0,
    "clipped_count_stddev": None,
}
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 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
estimate_wrapped_gaussian_stddev Ran
ran on a synthesized input
tensorflow/federated/tensorflow_federated/python/aggregators/modular_clipping.py
code served (permissive licence) · get_code("7c56380675f7c9e3")
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 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 tensorflow as tf
import math

# Create sample values as a TensorFlow tensor
# The function expects values that can be flattened and reshaped
values = tf.constant([
    [0.5, 1.2, 2.3, 1.8],
    [0.8, 1.5, 2.1, 1.9]
], dtype=tf.float32)

# Define clip bounds
clip_lower = 0.0
clip_upper = 3.0

ARGS = {
    "values": values,
    "clip_lower": clip_lower,
    "clip_upper": clip_upper,
}
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 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
fast_walsh_hadamard_transform Ran
ran on a synthesized input
tensorflow/federated/tensorflow_federated/python/aggregators/hadamard.py
code served (permissive licence) · get_code("74f52a4a9d3443b5")
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 2, dtype family float, shape (2, 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 math
import tensorflow as tf
import numpy as np

class TensorShapeError(ValueError):
    pass

def fast_walsh_hadamard_transform(x):
    """Applies the fast Walsh-Hadamard transform.

  See https://en.wikipedia.org/wiki/Fast_Walsh%E2%80%93Hadamard_transform.

  This method uses a composition of existing TensorFlow operations to implement
  the transform.

  The input must be a rank-2 tensor with shape `[a, b]`, where `b` must be a
  power of two, not required to be statically known. The transform will be
  applied for each of the `a` dimensions. That is, the returned tensor y has
  shape `[a, b]` where `y[i, :]` is the product `x[i, :]*H`, where `H` is the
  (normalized) Hadamard matrix.

  Args:
    x: A tensor of shape `[a, b]`.

  Returns:
    A transformed tensor of shape `[a, b]`.

  Raises:
    TensorShapeError: If the input is not rank 2 tensor, or if the second
      dimension is statically known and is not a power of two.
    tf.errors.InvalidArgumentError: If the second dimension is not statically
      known and is not a power of two. Note that in graph execution, this error
      is not raised during the execution of the Python function, but during
      execution of the resulting computation.
  """
    x = tf.convert_to_tensor(x)
    if x.shape.ndims != 2:
        raise TensorShapeError(f'Number of dimensions of x must be 2. Shape of x: {x.shape}')
    original_x_shape = x.shape.as_list()
    dim = x.shape.as_list()[-1]
    if dim is None:
        dim = tf.shape(x)[-1]
        log2 = tf.cast(tf.math.round(tf.math.log(tf.cast(dim, tf.float32)) / tf.math.log(2.0)), tf.int32)
        with tf.control_dependencies([tf.debugging.assert_equal(dim, tf.math.pow(2, log2), message='The dimension of x must be a power of two.Provided dimension is: %s' % dim)]):
            x = tf.identity(x)
    else:
        if not (dim and dim & dim - 1 == 0):
            raise TensorShapeError(f'The dimension of x must be a power of two. Provided dimension is: {dim}')
        log2 = int(math.ceil(math.log2(dim)))
        if dim == 1:
            return tf.identity(x)
    h_2x2 = tf.constant([[1.0, 1.0], [1.0, -1.0]], dtype=x.dtype)
    permutation = tf.constant([0, 2, 1])

    def _hadamard_step(x, dim):
        """A single step in the fast Walsh-Hadamard transform."""
        x_shape = x.shape.as_list()
        x = tf.reshape(x, [-1, 2])
        x = tf.matmul(x, h_2x2)
        x = tf.reshape(x, [-1, dim // 2, 2])
        x = tf.transpose(x, perm=permutation)
        x.set_shape(x_shape)
        return x

    def _fwht(x, dim, log2):
        x = tf.reshape(x, [-1, 2, dim // 2])
        index = tf.constant(0)
        cond = lambda i, x: tf.less(i, log2)
        body = lambda i, x: [i + 1, _hadamard_step(x, dim)]
        _, x = tf.while_loop(cond, body, [index, x])
        return x
    x = tf.cond(tf.equal(dim, 1), lambda: tf.identity(x), lambda: _fwht(x, dim, log2))
    x = tf.reshape(x, [-1, dim])
    x /= tf.sqrt(tf.cast(dim, x.dtype))
    x.set_shape(original_x_shape)
    return x


# Create a simple 2D tensor with batch size 2 and dimension 4 (power of 2)
x_value = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

ARGS = {
    'x': x_value
}
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
inflated_l2_norm_bound Ran
ran on a synthesized input
tensorflow/federated/tensorflow_federated/python/aggregators/discretization.py
code served (permissive licence) · get_code("a93ebbc383daefa0")
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 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 tensorflow as tf

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

ARGS = {
    "l2_norm_bound": 2.5,
    "gamma": 0.1,
    "beta": 0.5,
    "dim": 8,
}
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 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
modular_clip_by_value Ran
ran on a synthesized input
tensorflow/federated/tensorflow_federated/python/aggregators/modular_clipping.py
code served (permissive licence) · get_code("65c9f24a1a06cade")
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 1, dtype family float, shape (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 tensorflow as tf
import numpy as np

# Create sample tensors for testing modular_clip_by_value
# The function applies modular clipping to nested structures

# Simple case: single tensor
value = tf.constant([1.5, 5.2, 8.7, 12.3], dtype=tf.float32)
clip_range_lower = tf.constant(2.0, dtype=tf.float32)
clip_range_upper = tf.constant(10.0, dtype=tf.float32)

ARGS = {
    "value": value,
    "clip_range_lower": clip_range_lower,
    "clip_range_upper": clip_range_upper,
}
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 EagerTensor, ndim 1, dtype family float, shape (4,) — shape (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

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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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
adaptive_clip_noise_params 1 other paper
1 dated earlier
1811.03604 (2018-11)
Federated Learning for Mobile Keyboard Prediction
estimate_wrapped_gaussian_stddev 1 other paper
1 dated earlier
1811.03604 (2018-11)
Federated Learning for Mobile Keyboard Prediction
fast_walsh_hadamard_transform 1 other paper
1 dated earlier
1811.03604 (2018-11)
Federated Learning for Mobile Keyboard Prediction
inflated_l2_norm_bound 1 other paper
1 dated earlier
1811.03604 (2018-11)
Federated Learning for Mobile Keyboard Prediction
modular_clip_by_value 1 other paper
1 dated earlier
1811.03604 (2018-11)
Federated Learning for Mobile Keyboard Prediction

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

To improve real-world applications of machine learning, experienced modelers develop intuition about their datasets, their models, and how the two interact. Manual inspection of raw data - of representative samples, of outliers, of misclassifications - is an essential tool in a) identifying and fixing problems in the data, b) generating new modeling hypotheses, and c) assigning or refining human-provided labels. However, manual data inspection is problematic for privacy sensitive datasets, such as those representing the behavior of real-world individuals. Furthermore, manual data inspection is impossible in the increasingly important setting of federated learning, where raw examples are stored at the edge and the modeler may only access aggregated outputs such as metrics or model parameters. This paper demonstrates that generative models - trained using federated methods and with formal differential privacy guarantees - can be used effectively to debug many commonly occurring data issues even when the data cannot be directly inspected. We explore these methods in applications to text with differentially private federated RNNs and to images using a novel algorithm for differentially private federated GANs.

For agents

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

get_harvested_code_for_paper("1911.06679")
get_code_for_paper("1911.06679")
have("1911.06679")

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

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

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

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

Connect an agent — have() is free.