PCN_PredNetBpE
A convolutional classifier whose layers trade predictions and errors over cycles, like cortex.
Image classification · 430 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 17.3M
- Operations
- 430
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- NeurIPS 2018
- Cited by
- 46 (as of 17 October 2026)
- Authors
- Kuan Han, Haiguang Wen, Yizhen Zhang and others
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m2094
- Graph hash
- 5b382554d61457fabd117e2b5daeff3b5c4b7225f24da72741d71a71c9b01023
- Skeleton hash
- e05aecf1f9ac22c54f0d140c6c1b35fa73018b64c17905e0d3f3244924a9b047
- Architecture hash
- e21f00b0a1bb4f50a2ff9d256d836911eaede6ab952e0885b19114d712ac5e3b
- Diagram SHA-256
- b8da676f60daccce61a3c1210599b98512fec32b53afda54445278080be1e9f2
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
PCN_PredNetBpE is architecture E, the 13-layer ImageNet model at 224 by 224.
PCN, the Deep Predictive Coding Network with local recurrent processing, is an image classifier built on a neuroscience theory: its layers exchange top-down predictions and bottom-up prediction errors instead of running feedforward only. Adjacent layers interact locally and recurrently to refine representations towards minimization of layer-wise prediction errors. The appeal is that, when unfolded over time, the recurrent processing gives rise to an increasingly deeper hierarchy of non-linear transformation, allowing a shallow network to dynamically extend itself into an arbitrarily deep network.
Within each recurrent block the higher-layer representation generates a prediction of the lower layer through feedback connections, and the error of that prediction updates the higher layer by gradient descent on the squared prediction error. Feedforward and feedback connections are regular convolutions and transposed convolutions with a kernel size of 3, and bypass connections are 1 by 1 convolutions that merge the lower-layer representation back in after the cycles. The update rate is a learnable and non-negative parameter separately defined for each filter in each recurrent block. The number of cycles of recurrent processing, T, is varied from 1 to 5, and T of 0 gives the feedforward plain counterpart.
The traced member is PCN-E, the ImageNet architecture of 13 layers at 224 by 224, whose first layer is a regular convolution with a kernel size of 7, a padding of 3, a stride of 2 and 64 output channels. With 5 cycles, PCN-E-5 slightly under-performs ResNet-50 but outperforms ResNet-34, while using fewer layers and parameters than both of them. The gain from more cycles comes without increasing the number of layers or parameters, by simply running computation for longer time on the same network. A side effect the authors highlight is that the spatial distribution of the prediction error highlights the apparently most salient part of the input image. The authors' code is built on Pytorch, with one script that trains the ImageNet model under its default setting.
Key idea. A convolutional classifier whose adjacent layers run cycles of predictive coding, feedback predictions against feedforward errors, so a shallow network behaves like a deeper one.
- PCN
- Predictive Coding Network
- predictive coding
- Deep Predictive Coding Network
- local recurrent processing
- PredNetBpE
- PCN-E
- image classification
- ImageNet
- recurrent CNN
- feedback
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{han2018deeppredictivecodingnetwork,
title={Deep Predictive Coding Network with Local Recurrent Processing for Object Recognition},
author={Kuan Han and Haiguang Wen and Yizhen Zhang and Di Fu and Eugenio Culurciello and Zhongming Liu},
year={2018},
eprint={1805.07526},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1805.07526},
}