SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.15752 · NeurIPS · 2022

Constrained Predictive Coding as a Biologically Plausible Model of the Cortical Hierarchy

Siavash Golkar, Yanis Bahroun, Anirvan Sengupta, Dmitri Chklovskii, Tiberiu Tesileanu

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 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 3 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2210.15752.json · badge: /api/ran/2210.15752.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
ttesileanu/bio-cpca canonical (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
dkl_gaussian Ran
ran on a synthesized input
ttesileanu/bio-cpca/src/ncpca/utils/distances.py
code served (permissive licence) · get_code("280cbc1825fb3bdc")
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 two Gaussian distributions
# Each Gaussian is represented as (mean, covariance_matrix)

# Gaussian 1: mean of shape (4,), covariance of shape (4, 4)
mean1 = np.array([0.0, 0.1, 0.2, 0.3])
cov1 = np.array([
    [1.0, 0.1, 0.0, 0.0],
    [0.1, 1.2, 0.05, 0.0],
    [0.0, 0.05, 0.9, 0.1],
    [0.0, 0.0, 0.1, 1.1]
])

# Gaussian 2: mean of shape (4,), covariance of shape (4, 4)
mean2 = np.array([0.05, 0.15, 0.25, 0.35])
cov2 = np.array([
    [1.1, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.1, 0.0],
    [0.0, 0.1, 1.2, 0.05],
    [0.0, 0.0, 0.05, 0.95]
])

gauss1 = (mean1, cov1)
gauss2 = (mean2, cov2)

ARGS = {
    "gauss1": gauss1,
    "gauss2": gauss2
}
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
dkl_symm_gaussian Ran
ran on a synthesized input
ttesileanu/bio-cpca/src/ncpca/utils/distances.py
code served (permissive licence) · get_code("94a189e723b4de03")
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
from typing import Tuple

# Create two Gaussian distributions represented as (mean, covariance_matrix) tuples
# Dimension: 4 (to keep it small but non-trivial)

# Gaussian 1: mean and covariance matrix
mean1 = np.array([1.0, 2.0, 3.0, 4.0])
cov1 = np.array([
    [2.0, 0.1, 0.0, 0.0],
    [0.1, 2.5, 0.1, 0.0],
    [0.0, 0.1, 3.0, 0.1],
    [0.0, 0.0, 0.1, 2.0]
])

# Gaussian 2: mean and covariance matrix
mean2 = np.array([1.5, 2.5, 3.5, 4.5])
cov2 = np.array([
    [2.2, 0.05, 0.0, 0.0],
    [0.05, 2.6, 0.05, 0.0],
    [0.0, 0.05, 3.1, 0.05],
    [0.0, 0.0, 0.05, 2.1]
])

gauss1 = (mean1, cov1)
gauss2 = (mean2, cov2)

ARGS = {
    "gauss1": gauss1,
    "gauss2": gauss2
}
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
fit_gaussian Ran
ran on a synthesized input
ttesileanu/bio-cpca/src/ncpca/utils/distances.py
code served (permissive licence) · get_code("d9069d57c5785b3d")
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 numpy as np
from typing import Optional, Tuple

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

# Create a small sample dataset with shape (batch=2, features=4)
x = np.random.randn(2, 4).astype(np.float32)

# Create arguments dict with all parameters
ARGS = {
    "x": x,
    "max_dim": None,
}
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 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
resize_and_crop Not yet run
unverified (harvested, no recorded run)
ttesileanu/bio-cpca/src/ncpca/utils/preprocess.py
code served (permissive licence) · get_code("d54b11d7a042cff2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 3 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
resize_and_crop 1 other paper
1 dated earlier
1902.04601 (2019-02)
Contrastive Variational Autoencoder Enhances Salient Features

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

Predictive coding (PC) has emerged as an influential normative model of neural computation, with numerous extensions and applications. As such, much effort has been put into mapping PC faithfully onto the cortex, but there are issues that remain unresolved or controversial. In particular, current implementations often involve separate value and error neurons and require symmetric forward and backward weights across different brain regions. These features have not been experimentally confirmed. In this work, we show that the PC framework in the linear regime can be modified to map faithfully onto the cortical hierarchy in a manner compatible with empirical observations. By employing a disentangling-inspired constraint on hidden-layer neural activities, we derive an upper bound for the PC objective. Optimization of this upper bound leads to an algorithm that shows the same performance as the original objective and maps onto a biologically plausible network. The units of this network can be interpreted as multi-compartmental neurons with non-Hebbian learning rules, with a remarkable resemblance to recent experimental findings. There exist prior models which also capture these features, but they are phenomenological, while our work is a normative derivation. Notably, the network we derive does not involve one-to-one connectivity or signal multiplexing, which the phenomenological models required, indicating that these features are not necessary for learning in the cortex. The normative nature of our algorithm in the simplified linear case allows us to prove interesting properties of the framework and analytically understand the computational role of our network's components. The parameters of our network have natural interpretations as physiological quantities in a multi-compartmental model of pyramidal neurons, providing a concrete link between PC and experimental measurements carried out in the cortex.

For agents

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

get_harvested_code_for_paper("2210.15752")
get_code_for_paper("2210.15752")
have("2210.15752")

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

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

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

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

Connect an agent — have() is free.