SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.21622 · 2026

Local Synaptic Rules Can Implement a SIGReg Gradient Without Backpropagation

Martin Andrews

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 2 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 4 failures of our instrument; 1 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/2607.21622.json · badge: /api/ran/2607.21622.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
mdda/biological-sigreg canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
l1_forward Ran
ran, honoured the contract we drafted
mdda/biological-sigreg/biological_model.py
code served (permissive licence) · get_code("c0c6a1f21a36429f")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 3) 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 jax
import jax.numpy as jnp

# Set seed for reproducibility
import numpy as np
np.random.seed(0)

# Define small tensors for testing
batch_size = 2
n_input = 4
n_neurons = 3

# W: [C, n_input] = [3, 4] weight matrix
W = jnp.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8],
    [0.9, 1.0, 1.1, 1.2]
], dtype=jnp.float32)

# x: [batch, n_input] = [2, 4] input
x = jnp.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=jnp.float32)

# b: [C,] = [3,] bias (optional)
b = jnp.array([0.1, 0.2, 0.3], dtype=jnp.float32)

ARGS = {
    "W": W,
    "x": x,
    "b": b
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
local_gain Ran
ran, violated the contract we drafted
mdda/biological-sigreg/biological_model.py
code served (permissive licence) · get_code("e716c46c43a46acb")
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 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 torch
import numpy as np

torch.manual_seed(0)

# The function 'local_gain' takes a single parameter 'p' and computes p * (1.0 - p)
# p should be a tensor or array-like object representing firing probabilities
# Probabilities should be in range [0, 1]

# Create a small tensor representing firing probabilities
p = torch.rand(2, 4)  # Shape: (2, 4) - batch size 2, 4 units

ARGS = {
    "p": p
}
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 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
make_clusters Ran
ran; our contract draft was wrong, not the code
mdda/biological-sigreg/experiments/synthetic_clusters.py
code served (permissive licence) · get_code("5ee826aab42e8379")
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 jax
import jax.numpy as jnp
import jax.random

# Create a PRNG key for JAX
key = jax.random.PRNGKey(0)

ARGS = {
    "key": key,
    "n_per_class": 2,
    "n_classes": 3,
    "D": 4,
    "signal_dims": 2,
    "within_std": 0.6,
    "noise_std": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — 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
paired_stream Ran
ran; our contract draft was wrong, not the code
mdda/biological-sigreg/experiments/mnist_multilayer.py
code served (permissive licence) · get_code("4365bb36a9931c2c")
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 jax
import jax.numpy as jnp
import jax.random

# Set seed for reproducibility
key = jax.random.PRNGKey(0)

# Create small synthetic dataset
n_samples = 24
n_features = 4
n_classes = 10

# Generate X: (24, 4) array of random features
key, subkey = jax.random.split(key)
X = jax.random.normal(subkey, (n_samples, n_features))

# Generate Y: class labels ensuring we have samples for each class
# Distribute 24 samples across 10 classes (some classes get 2-3 samples)
Y = jnp.array([0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 0, 1, 2, 3])

# Create arguments dictionary
ARGS = {
    "key": jax.random.PRNGKey(42),
    "X": X,
    "Y": Y,
    "noise_sigma": 0.1,
    "n_runs": 2,
    "n_classes": 10,
    "with_replacement": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — 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
paired_stream Ran
ran on a synthesized input
mdda/biological-sigreg/experiments/synthetic_clusters.py
code served (permissive licence) · get_code("20fd1ad22220c1a2")
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 jax
import jax.numpy as jnp
import jax.random

# Set up a minimal valid input for paired_stream

# Create a JAX random key
key = jax.random.PRNGKey(0)

# Create small sample data: 30 samples, 4 features
n_samples = 30
feature_dim = 4
X = jax.random.normal(key, (n_samples, feature_dim))

# Create labels: 3 classes, 10 samples each (balanced)
Y = jnp.array([0]*10 + [1]*10 + [2]*10, dtype=jnp.int32)

# Noise parameter
noise_sigma = 0.1

# Number of runs
n_runs = 10

ARGS = {
    "key": key,
    "X": X,
    "Y": Y,
    "noise_sigma": noise_sigma,
    "n_runs": n_runs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — 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
propensity Ran
ran, honoured the contract we drafted
mdda/biological-sigreg/biological_model.py
code served (permissive licence) · get_code("fab50c27361743e1")
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 ArrayImpl, 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 jax
import jax.numpy as jnp

def propensity(u):
    """p_i = σ(u_i)  — instantaneous firing probability of neuron i.

    Biologically: the sigmoid maps membrane potential → firing probability.
    At u=0, p=0.5 (maximally uncertain / most plastic).
    Near saturation |u|>>0 the neuron is locked on or off.
    """
    return jax.nn.sigmoid(u)


# Create a small membrane potential array (batch_size=2, num_neurons=4)
u = jnp.array([
    [-2.0, -0.5, 0.0, 1.5],
    [0.5, -1.0, 2.0, 0.0]
], dtype=jnp.float32)

ARGS = {
    "u": u
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
random_stream Ran
ran; our contract draft was wrong, not the code
mdda/biological-sigreg/experiments/mnist_multilayer.py
code served (permissive licence) · get_code("f9bd7a60982d3ab9")
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 jax
import jax.numpy as jnp
import numpy as np

# Set seed for reproducibility
jax.config.update('jax_platform_name', 'cpu')

# Create small synthetic data
np.random.seed(0)
n_samples = 40
n_features = 4
n_classes = 10

# Create X: (n_samples, n_features)
X = jnp.array(np.random.randn(n_samples, n_features).astype(np.float32))

# Create Y: balanced class labels across n_classes
Y = jnp.array(np.array([i % n_classes for i in range(n_samples)]))

# Create key for JAX random number generation
key = jax.random.PRNGKey(0)

# Set parameters
noise_sigma = 0.1
n_runs = 2
n_classes = 10

ARGS = {
    "key": key,
    "X": X,
    "Y": Y,
    "noise_sigma": noise_sigma,
    "n_runs": n_runs,
    "n_classes": n_classes,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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
random_stream Ran
ran; our contract draft was wrong, not the code
mdda/biological-sigreg/experiments/synthetic_clusters.py
code served (permissive licence) · get_code("5081f62a5195a12d")
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 jax
import jax.numpy as jnp
import numpy as np

# Construct tiny test data
np.random.seed(0)

# X: sequence of inputs, shape (batch, features)
X = jnp.array(np.random.randn(2, 4), dtype=jnp.float32)

# Y: labels (not used in the function body, but required by signature)
Y = jnp.array([0, 1], dtype=jnp.int32)

# key: JAX random key
key = jax.random.PRNGKey(0)

# noise_sigma: standard deviation for noise
noise_sigma = 0.1

ARGS = {
    "key": key,
    "X": X,
    "Y": Y,
    "noise_sigma": noise_sigma,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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
load_mnist Not yet run
unverified (harvested, no recorded run)
mdda/biological-sigreg/experiments/mnist_multilayer.py
code served (permissive licence) · get_code("b41d0bf43e00d078")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

We prove that two canonical local synaptic learning rules, the potentiation arm of spike-timing-dependent plasticity (STDP + ) and homeostatic plasticity (instantiated here via flashlight granule-cell-like neurons), together can implement the exact gradient of a SIGReg-like self-supervised learning objective. The equivalence requires no gradient calculations, no global error signals, no weight transport, and no label information: the only inputs are pre-and post-synaptic firing rates, local firing statistics, and the temporal contiguity of natural sensory streams. On a synthetic clustering task designed to probe whether class structure can be recovered from temporal ordering of inputs alone, ordered presentation raised cluster separation (CSR) to 2.49 while random ordering left it near baseline (0.83), a roughly threefold (∼3.5σ) separation attributable solely to input ordering. On temporally ordered MNIST, a two-layer network trained entirely with these rules achieved 87.3% linear-probe accuracy, showing that the mechanism functions end-to-end.

For agents

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

get_harvested_code_for_paper("2607.21622")
get_code_for_paper("2607.21622")
have("2607.21622")

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

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

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

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

Connect an agent — have() is free.