Benchmarking Predictive Coding Networks -- Made Simple

Luca Pinchetti, Chang Qi, Oleh Lokshyn, Gaspard Olivers, Cornelius Emde +7 more
7/1/2024
cs.LGcs.CV

Official code: liukidar/pcx (108 stars, Apache-2.0, last commit 2026-03-28).

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

View on arXivView PDF

Code Implementations(1)

liukidar/pcxOfficial100%
Apache-2.0

Predictive Coding JAX-based library

10813Shell, PythonJul 15, 20226 months agoApache-2.0

Similar Papers

Cite this paper

@article{pinchetti2024benchmarking,
  title  = {Benchmarking Predictive Coding Networks -- Made Simple},
  author = {Luca Pinchetti and Chang Qi and Oleh Lokshyn and Gaspard Olivers and Cornelius Emde and Mufeng Tang and Amine M'Charrak and Simon Frieder and Bayar Menzat and Rafal Bogacz and Thomas Lukasiewicz and Tommaso Salvatori},
  year   = {2024},
  eprint = {2407.01163},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.01163v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.01163.svg)](https://codeofpaper.com/paper/2407.01163)

Discussion