SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.01163 · 2024

Benchmarking Predictive Coding Networks -- Made Simple

arXiv · PDF · Open in the Atlas

Code that ran

1 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 0 have no contract verdict; 1 failure of our instrument; 4 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/2407.01163.json · badge: /api/ran/2407.01163.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
liukidar/pcax canonical (classifier label)
classifier basis: census
1 ran · 4 no recorded run
FunctionStatusWhere it lives
get Ran
ran; our contract draft was wrong, not the code
liukidar/pcax/pcx/core/_parameter.py
code served (permissive licence) · get_code("ef147485fa96660c")
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 ConcreteParam. 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
from typing import Any

# Define the metaclass and base class from the function signature
class _BaseParamMeta(type):
    """Simplified metaclass for testing"""
    pass

class BaseParam(metaclass=_BaseParamMeta):
    """Base parameter class"""
    def __init__(self, value: Any = None):
        self._value = value
    
    def get(self):
        raise NotImplementedError()
    
    def set(self, value):
        raise NotImplementedError()
    
    def __bool__(self):
        raise TypeError('To prevent accidental errors parameters can not be used as Python bool.')

class ConcreteParam(BaseParam):
    """Concrete implementation of BaseParam for testing"""
    def __init__(self, value: Any = None):
        super().__init__(value)
    
    def get(self):
        return self._value
    
    def set(self, value):
        self._value = value

# Test case 1: Pass a BaseParam instance
param_with_value = ConcreteParam(jnp.array([1.0, 2.0, 3.0, 4.0]))

# Test case 2: Pass a raw value (not a BaseParam)
raw_value = jnp.array([5.0, 6.0, 7.0, 8.0])

# Define the get function that will be tested
def get(x: Any | BaseParam) -> Any:
    """Return the value encapsulated in the input argument if it is a BaseParam, otherwise return the input argument itself."""
    if isinstance(x, BaseParam):
        return x.get()
    else:
        return x

# Create ARGS dictionary with both cases
ARGS = {
    'x': param_with_value
}
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 ConcreteParam — a ConcreteParam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ConcreteParam 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
set Not yet run
unverified (harvested, no recorded run)
liukidar/pcax/pcx/core/_parameter.py
code served (permissive licence) · get_code("0545d71beb4c90a5")
How it ran

no invocation recorded.

tree_apply Not yet run
unverified (harvested, no recorded run)
liukidar/pcax/pcx/core/_tree.py
code served (permissive licence) · get_code("42d08fbc0f0f6974")
How it ran

no invocation recorded.

tree_extract Not yet run
unverified (harvested, no recorded run)
liukidar/pcax/pcx/core/_tree.py
code served (permissive licence) · get_code("c7c2bfc670d2e421")
How it ran

no invocation recorded.

tree_inject Not yet run
unverified (harvested, no recorded run)
liukidar/pcax/pcx/core/_tree.py
code served (permissive licence) · get_code("865cc5225e790ed7")
How it ran

no invocation recorded.

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, 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 5 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

In this work, we tackle the problems of efficiency and scalability for predictive coding networks (PCNs) in machine learning. To do so, we propose a library, called PCX, that focuses on performance and simplicity, and use it to implement a large set of standard benchmarks for the community to use for their experiments. As most works in the field propose their own tasks and architectures, do not compare one against each other, and focus on small-scale tasks, a simple and fast open-source library and a comprehensive set of benchmarks would address all these concerns. Then, we perform extensive tests on such benchmarks using both existing algorithms for PCNs, as well as adaptations of other methods popular in the bio-plausible deep learning community. All this has allowed us to (i) test architectures much larger than commonly used in the literature, on more complex datasets; (ii)~reach new state-of-the-art results in all of the tasks and datasets provided; (iii)~clearly highlight what the current limitations of PCNs are, allowing us to state important future research directions. With the hope of galvanizing community efforts towards one of the main open problems in the field, scalability, we release code, tests, and benchmarks. Link to the library: https://github.com/liukidar/pcx

For agents

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

get_harvested_code_for_paper("2407.01163")
get_code_for_paper("2407.01163")
have("2407.01163")

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

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

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

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

Connect an agent — have() is free.