SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.10792 · 2018

Stochastic Gradient Push for Distributed Deep Learning

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 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 9 have no contract verdict; 0 failures of our instrument; 5 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/1811.10792.json · badge: /api/ran/1811.10792.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
facebookresearch/stochastic_gradient_push canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
adelnabli/acid community (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
VhalPurohit/290s reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran, honoured the contract we drafted
VhalPurohit/290s/gossip_sgd.py
pointer only (licence: NOASSERTION) · get_code("ac9e01d5a81fc218")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, VhalPurohit/290s (NOASSERTION). 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.

add_weight_decay Ran
ran on a synthesized input
adelnabli/acid/utils/net_utils.py
code served (permissive licence) · get_code("c5377f5726a15290")
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 torch.nn as nn

torch.manual_seed(0)

# Create a simple model with various parameter types
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Conv layer (will have weight decay applied)
        self.conv = nn.Conv2d(3, 4, kernel_size=3)
        # Batch norm (bias and scale should skip weight decay)
        self.bn = nn.BatchNorm2d(4)
        # Linear layer (will have weight decay applied)
        self.linear = nn.Linear(4, 2)
        # Another bias term
        self.bias_only = nn.Parameter(torch.randn(2))
    
    def forward(self, x):
        return x

model = SimpleModel()

# Define the arguments
ARGS = {
    'model': model,
    'weight_decay': 0.01,
    'skip_list': ()
}
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 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
compute_algebraic_connectivity Ran
ran on a synthesized input
adelnabli/acid/utils/graph_utils.py
code served (permissive licence) · get_code("14e905ad950e92b5")
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 float64, ndim 0, 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 numpy as np
import scipy.linalg

# Create a small Laplacian matrix
# A Laplacian matrix is symmetric and positive semi-definite
# For a simple graph with 3 nodes, we can construct a valid Laplacian

# Degree matrix (diagonal)
D = np.array([[2, 0, 0],
              [0, 2, 0],
              [0, 0, 2]], dtype=float)

# Adjacency matrix (symmetric)
A = np.array([[0, 1, 1],
              [1, 0, 1],
              [1, 1, 0]], dtype=float)

# Laplacian L = D - A
L = D - A

ARGS = {
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
compute_graph_resistance Ran
ran on a synthesized input
adelnabli/acid/utils/graph_utils.py
code served (permissive licence) · get_code("6fc8a02c499df11c")
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 float64, ndim 0, 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 numpy as np
import scipy.linalg

class Graph:
    """Minimal graph object with edges attribute."""
    def __init__(self, edges, num_nodes):
        self.edges = edges
        self.num_nodes = num_nodes

# Create a small graph with 4 nodes
num_nodes = 4
edges = [(0, 1), (1, 2), (2, 3), (0, 3)]

# Create a simple graph object
G = Graph(edges, num_nodes)

# Create a Laplacian matrix for a 4-node graph
# Using a simple cycle graph: 0-1-2-3-0
# Degree matrix - adjacency matrix
A = np.array([
    [0, 1, 0, 1],
    [1, 0, 1, 0],
    [0, 1, 0, 1],
    [1, 0, 1, 0]
], dtype=float)

D = np.diag(np.sum(A, axis=1))
L = D - A

ARGS = {
    "L": L,
    "G": G
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
compute_laplacian Ran
ran on a synthesized input
adelnabli/acid/utils/graph_utils.py
code served (permissive licence) · get_code("58454b216bad91b4")
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 (4, 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

class Graph:
    """Stand-in Graph class with world_size and nodes."""
    def __init__(self, world_size, edges):
        self.world_size = world_size
        self.nodes = {}
        # Initialize nodes with neighbor lists
        for i in range(world_size):
            self.nodes[i] = {'N_i': []}
        
        # Add edges (undirected)
        for i, j in edges:
            if j not in self.nodes[i]['N_i']:
                self.nodes[i]['N_i'].append(j)
            if i not in self.nodes[j]['N_i']:
                self.nodes[j]['N_i'].append(i)

# Create a small graph with 4 nodes
world_size = 4
edges = [(0, 1), (1, 2), (2, 3), (3, 0)]
G = Graph(world_size, edges)

# Communication rate
rate_com = 0.5

ARGS = {
    'G': G,
    'rate_com': rate_com
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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 (4, 4) — shape (4, 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
compute_multiplicative_coef_lr Ran
ran on a synthesized input
adelnabli/acid/utils/net_utils.py
code served (permissive licence) · get_code("11c7e3c59a515397")
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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "k_step": 100,
    "n_step_tot": 1000,
    "n_epoch_if_1_worker": 10,
    "lr": 0.1,
    "world_size": 4,
    "batch_size": 128,
    "dataset_name": "CIFAR10",
    "return_function": False
}
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 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
create_dict_result Ran
ran on a synthesized input
adelnabli/acid/utils/logs_utils.py
code served (permissive licence) · get_code("6f82f2364c4b825c")
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 torch
import numpy as np
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a mock args object
class ArgsStandIn:
    def __init__(self):
        self.path_logs = "/some/path/logs"
        self.learning_rate = 0.001
        self.batch_size = 32
        self.epochs = 10
        self.model_name = "test_model"
        self.optimizer = "adam"

args = ArgsStandIn()

# Create a mock filestore that returns values for Worker #grad / #comm keys
filestore = MagicMock()
def filestore_get(key):
    if "Worker" in key and "#grad / #comm" in key:
        return "100 / 50"
    return None
filestore.get = filestore_get

# Simple scalar values
world_size = 4
n_nodes = 2
cuda_device = 0
total_time = 125.7  # seconds
correct = 950
len_data = 1000
percent = 95.0
id_run = "run_2024_001"

ARGS = {
    "args": args,
    "filestore": filestore,
    "world_size": world_size,
    "n_nodes": n_nodes,
    "cuda_device": cuda_device,
    "total_time": total_time,
    "correct": correct,
    "len_data": len_data,
    "percent": percent,
    "id_run": id_run,
}
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
create_model Ran
ran on a synthesized input
adelnabli/acid/utils/net_utils.py
code served (permissive licence) · get_code("165c8ba03b498eae")
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 torch.nn as nn
import torchvision

torch.manual_seed(0)

ARGS = {
    'model_name': 'resnet18',
    'dataset_name': 'CIFAR10'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — 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
gather_previous_data Ran
ran on a synthesized input
adelnabli/acid/utils/logs_utils.py
code served (permissive licence) · get_code("61f497b58bf5182d")
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 csv
from io import StringIO

# Create a mock CSV reader by simulating what csv.DictReader produces
csv_data = StringIO("""name,age,city
Alice,30,NYC
Bob,25,LA
Charlie,35,Chicago""")

reader = csv.DictReader(csv_data)

ARGS = {
    "reader": reader
}
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 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
print_training_evolution Ran
ran on a synthesized input
adelnabli/acid/utils/logs_utils.py
code served (permissive licence) · get_code("465e03a81b60ff44")
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 logging
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a mock logger with an info method
log = MagicMock()
log.info = MagicMock()

# Create a small loss tensor
loss = torch.tensor([0.45], requires_grad=True)

# Create a logger that actually works for testing
logger = logging.getLogger("test_logger")
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
logger.addHandler(handler)

ARGS = {
    "log": logger,
    "nb_grad_local": 100,
    "nb_com_local": 50,
    "n_batch_per_epoch": 100,
    "rank": 0,
    "t_beg": 1000.0,
    "t_last_epoch": 1050.5,
    "loss": loss,
    "epoch": 5
}
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
accuracy Not yet run
unverified (harvested, no recorded run)
facebookresearch/stochastic_gradient_push/gossip_sgd.py
pointer only (licence: NOASSERTION) · get_code("5a80b1ca6739b208")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/stochastic_gradient_push (NOASSERTION). 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. No invocation recorded.

data_loader Not yet run
unverified (harvested, no recorded run)
adelnabli/acid/utils/data_utils.py
code served (permissive licence) · get_code("553014d88e2fdc2b")
How it ran

no invocation recorded.

init_momentum_var Not yet run
unverified (harvested, no recorded run)
adelnabli/acid/utils/acid_utils.py
code served (permissive licence) · get_code("f7ac7056fa97da5c")
How it ran

no invocation recorded.

test_data Not yet run
unverified (harvested, no recorded run)
adelnabli/acid/utils/data_utils.py
code served (permissive licence) · get_code("685ef5ebed3e922f")
How it ran

no invocation recorded.

train_data Not yet run
unverified (harvested, no recorded run)
adelnabli/acid/utils/data_utils.py
code served (permissive licence) · get_code("b5814cb3e05c8509")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 14 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
accuracy 80 other papers
9 dated earlier, 2 the same month, 69 later
1307.0414 (2013-07)
Challenges in Representation Learning: A report on three machine learning contests
1412.6553 (2014-12)
Speeding-up Convolutional Neural Networks Using Fine-tuned CP-Decomposition
1503.02531 (2015-03)
Distilling the Knowledge in a Neural Network
and 77 more not named here

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

Distributed data-parallel algorithms aim to accelerate the training of deep neural networks by parallelizing the computation of large mini-batch gradient updates across multiple nodes. Approaches that synchronize nodes using exact distributed averaging (e.g., via AllReduce) are sensitive to stragglers and communication delays. The PushSum gossip algorithm is robust to these issues, but only performs approximate distributed averaging. This paper studies Stochastic Gradient Push (SGP), which combines PushSum with stochastic gradient updates. We prove that SGP converges to a stationary point of smooth, non-convex objectives at the same sub-linear rate as SGD, and that all nodes achieve consensus. We empirically validate the performance of SGP on image classification (ResNet-50, ImageNet) and machine translation (Transformer, WMT'16 En-De) workloads. Our code will be made publicly available.

For agents

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

get_harvested_code_for_paper("1811.10792")
get_code_for_paper("1811.10792")
have("1811.10792")

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

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

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

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

Connect an agent — have() is free.