SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.05842 · ICLR · 2024

Robust Angular Synchronization via Directed Graph Neural Networks

David Wipf, Yixuan He, Gesine Reinert, Mihai Cucuringu

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 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/2310.05842.json · badge: /api/ran/2310.05842.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
sherylhyx/gnn_sync canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
Outliers_Model Ran
ran; our contract draft was wrong, not the code
sherylhyx/gnn_sync/src/utils.py
code served (permissive licence) · get_code("153d9086c8e2e583")
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 math
import numpy as np
import scipy.sparse as sp
import networkx as nx

# Set random seed for reproducibility
np.random.seed(42)

ARGS = {
    'n': 10,
    'p': 0.3,
    'eta': 0.2,
    'style': 'gamma',
    'measurement_graph': 'ER',
    'k': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, scipy — 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
calculate_upsets Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sherylhyx/gnn_sync/src/metrics.py
code served (permissive licence) · get_code("f16e9d43c200590a")
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 Tensor, 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 numpy as np

torch.manual_seed(0)

# Create a small adjacency matrix (4x4) with some non-zero entries
# This represents connections between 4 nodes
A = torch.FloatTensor([
    [0.0, 1.5, 0.0, 2.1],
    [1.5, 0.0, 0.8, 0.0],
    [0.0, 0.8, 0.0, 1.2],
    [2.1, 0.0, 1.2, 0.0]
])

# Create score tensor with shape (num_nodes, 1)
# These represent angles for each of the 4 nodes
score = torch.FloatTensor([
    [0.5],
    [1.2],
    [2.3],
    [4.1]
])

ARGS = {
    "A": A,
    "score": score
}
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 Tensor, 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
calculate_upsets_and_confidence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sherylhyx/gnn_sync/src/metrics.py
code served (permissive licence) · get_code("35b41325b2370310")
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 torch
import numpy as np

torch.manual_seed(0)

# Create a small adjacency matrix (4x4)
# Non-zero entries indicate edges exist
A = torch.FloatTensor([
    [0.0, 1.5, 0.0, 2.1],
    [1.5, 0.0, 0.8, 0.0],
    [0.0, 0.8, 0.0, 1.2],
    [2.1, 0.0, 1.2, 0.0]
])

# Score tensor with shape (num_nodes, 1) - angles for each node
# 4 nodes, so shape (4, 1)
score = torch.FloatTensor([
    [0.5],
    [1.2],
    [0.3],
    [2.0]
])

ARGS = {
    "A": A,
    "score": score
}
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 — 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
compErrorViaMatrices Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sherylhyx/gnn_sync/src/metrics.py
code served (permissive licence) · get_code("947b6f5413f65c2b")
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

# Create small test data for the function
# x and sol should be 1D arrays of angles (in radians)
# The function converts these to rotation matrices and computes MSE between them

x = np.array([0.1, 0.2, 0.3, 0.4])  # Ground truth angles
sol = np.array([0.15, 0.25, 0.35, 0.45])  # Estimated/recovered angles

ARGS = {
    "x": x,
    "sol": sol
}
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 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
get_rotation_matrix Ran
ran, honoured the contract we drafted
sherylhyx/gnn_sync/src/snl_train.py
code served (permissive licence) · get_code("004382a85cba550f")
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 (2, 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 math
import numpy as np

# The function get_rotation_matrix takes a single parameter theta
# which is used in math.cos(theta) and math.sin(theta)
# theta should be a numeric value (float or int)

theta = math.pi / 4  # 45 degrees as a reasonable test value

ARGS = {
    "theta": theta
}
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 (2, 2) — shape (2, 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
load_data_from_memory Ran
ran; our contract draft was wrong, not the code
sherylhyx/gnn_sync/src/preprocess.py
code served (permissive licence) · get_code("deddc4458686cd82")
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 os
import pickle as pk
import tempfile

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.pkl")

# Create some sample data and pickle it
sample_data = {"key1": "value1", "key2": [1, 2, 3], "key3": {"nested": "data"}}
with open(temp_file, 'wb') as f:
    pk.dump(sample_data, f)

ARGS = {
    "root": temp_file,
    "name": None
}
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 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
spectral_baseline Ran
ran, honoured the contract we drafted
sherylhyx/gnn_sync/src/angular_baseline.py
code served (permissive licence) · get_code("3a4d82215d427f7a")
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 (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 scipy.sparse as sp
import numpy as np
import torch

torch.manual_seed(0)

# Create a small sparse connectivity matrix
# Using a 4x4 matrix for simplicity
data = np.array([1.0, 2.0, 3.0, 1.5, 2.5])
row = np.array([0, 1, 2, 0, 3])
col = np.array([1, 2, 3, 3, 1])
A = sp.csr_matrix((data, (row, col)), shape=(4, 4))

ARGS = {
    "A": A,
    "row_normalization": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — 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 (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
tangent_trim_avg Ran
ran; our contract draft was wrong, not the code
sherylhyx/gnn_sync/src/angular_baseline.py
code served (permissive licence) · get_code("e7211a3ed4246d60")
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 complex128, 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 numpy as np

# Construct arguments for tangent_trim_avg
np.random.seed(0)

# z: a single complex number (scalar)
z = np.complex128(1.0 + 1.0j)

# Z: array of complex numbers
Z = np.array([
    1.0 + 0.5j,
    0.5 + 1.0j,
    -1.0 + 0.3j,
    0.2 - 0.8j,
    1.5 + 0.1j
], dtype=np.complex128)

# p: trimming proportion (between 0 and 1)
p = 0.2

ARGS = {
    'z': z,
    'Z': Z,
    'p': p
}
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 complex128, 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
trimmed_averaging_synchronization Ran
ran, honoured the contract we drafted
sherylhyx/gnn_sync/src/angular_baseline.py
code served (permissive licence) · get_code("54a74c1af06b1397")
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 (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
from scipy import sparse

# Create a small sparse matrix to use as input
# The function expects a sparse matrix A with a toarray() method
n = 4
# Create a random antisymmetric-like structure (will be made antisymmetric in function)
A_dense = np.random.randn(n, n)
A_sparse = sparse.csr_matrix(A_dense)

ARGS = {
    "A": A_sparse,
    "epochs": 10,
    "trimp": 0.1
}
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 ndarray, 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
get_rotation Not yet run
unverified (harvested, no recorded run)
sherylhyx/gnn_sync/src/utils.py
code served (permissive licence) · get_code("912c6286c5572bc8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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
load_data_from_memory 1 other paper
1 dated earlier
2110.06623 (2021-10)
SSSNET: Semi-Supervised Signed Network Clustering

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

The angular synchronization problem aims to accurately estimate (up to a constant additive phase) a set of unknown angles θ 1 , . . . , θ n P r0, 2πq from m noisy measurements of their offsets θ i ´θj mod 2π. Applications include, for example, sensor network localization, phase retrieval, and distributed clock synchronization. An extension of the problem to the heterogeneous setting (dubbed k-synchronization) is to estimate k groups of angles simultaneously, given noisy observations (with unknown group assignment) from each group. Existing methods for angular synchronization usually perform poorly in high-noise regimes, which are common in applications. In this paper, we leverage neural networks for the angular synchronization problem, and its heterogeneous extension, by proposing GNNSYNC, a theoretically-grounded end-to-end trainable framework using directed graph neural networks. In addition, new loss functions are devised to encode synchronization objectives. Experimental results on extensive data sets demonstrate that GNNSync attains competitive, and often superior, performance against a comprehensive set of baselines for the angular synchronization problem and its extension, validating the robustness of GNNSync even at high noise levels.

For agents

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

get_harvested_code_for_paper("2310.05842")
get_code_for_paper("2310.05842")
have("2310.05842")

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

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

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

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

Connect an agent — have() is free.