AIToday
Large Language ModelsOpen-Source AIr/MachineLearningPublished: Sep 3, 2026, 16:01 JST2 min read

C++ PCN library nears backprop accuracy

C++ PCN library nears backprop accuracy

Key takeaway

  • A C++ library called Deepity tests Predictive Coding Networks.

  • It reached 97.73% accuracy on MNIST in 59.5s.

  • That is close to PyTorch backprop's 98.27% in about 70s.

3 Key Points

  1. What happened

    A developer built Deepity, a C++ machine learning library, to test Predictive Coding Networks (PCNs), an alternative to backpropagation. On MNIST (50 epochs), Deepity's DKPPCN achieved 97.73% test accuracy in 59.5s, close to PyTorch backprop's 98.27% in ~70s.

  2. Why it matters

    Naive PCN implementations are slow, but this version closes the performance gap with backprop on CPU, suggesting PCNs could be practical for continual learning where backprop struggles.

  3. What to watch

    The developer plans to port Deepity's kernels to CUDA to scale up the architecture and test continual learning scenarios.

Ask the AI about this article →

Context & Analysis

The article introduces Deepity, a C++ library developed over the past month to explore Predictive Coding Networks (PCNs), which are biologically plausible and promising for continual learning. However, naive PCN implementations are slow, limiting their practical use. By incorporating recent research and algorithmic caching to skip redundant computations during inference, the developer achieved near-backprop performance on a CPU, a significant milestone for PCN viability.

This result positions PCNs as a credible alternative to backpropagation, especially for continual learning, where standard backpropagation is known to struggle. The accuracy gap on MNIST is small: 97.73% versus 98.27%, with Deepity even training faster (59.5s versus ~70s). While MNIST is a simple benchmark, the achievement suggests that with further optimization, such as CUDA porting, PCNs might scale to more complex tasks.

The developer's immediate focus is scaling up the architecture and testing continual learning, which could reveal whether PCNs offer real advantages in that domain. For business readers, this matters as it hints at more efficient, human-like learning algorithms that could eventually lead to AI systems that adapt without forgetting, though such applications remain speculative at this stage.

FAQ

What is Deepity?
Deepity is a local C++ machine learning library built to test alternative credit assignment algorithms, specifically Predictive Coding Networks.
How did Deepity perform on MNIST?
Deepity's DKPPCN achieved 97.73% test accuracy in 59.5 seconds, compared with PyTorch backprop's 98.27% in about 70 seconds.
What are the next steps for Deepity?
The developer plans to port the kernels to CUDA to scale up the architecture and test its capabilities in continual learning scenarios.
r/MachineLearningRead Original Article

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Meta's Muse Spark 1.3 matches GPT-5.6-Sol, claims #3 modelLatent Space · 3h ago
  • CABiNet vs YOLO26-sem on UAVid: Accuracy, Compute, and GPU Latencyr/MachineLearning · 3h ago
  • Meta says Muse Spark 1.3 catches up with OpenAI, AnthropicSiliconANGLE AI · 6h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleMeta says Muse Spark 1.3 catches up with OpenAI, Anthropic