Publications / 2026 / HFF

Hyperspherical Forward-Forward with Prototypical Representations

Shalini Sarode1,2, Brian Bernhard Moser1, Joachim Folz1, Federico Raue1, Tobias Christian Nauen1,2, Stanislav Frolov1, Andreas Dengel1,2

1DFKI · Smart Data & Knowledge Services  ·  2RPTU Kaiserslautern–Landau

Pdf
Hyperspherical Forward-Forward with Prototypical Representations — teaser figure
tl;dr — We fix Forward-Forward's slow inference by replacing per-class passes with a single forward pass through hyperspherical prototype matching. Thus, we achieve 40× faster inference with competitive accuracy.

Abstract

The Forward-Forward (FF) algorithm presents a compelling, bio-inspired alternative to backpropagation. However, while efficient in training, it has a computationally prohibitive inference process that requires a separate forward pass for every class that is evaluated. In this work, we introduce the Hyperspherical Forward-Forward (HFF), a novel reformulation that resolves this critical bottleneck. Our core innovation is to reframe the local objective of each layer from a binary goodness-of-fit task to a direct multi-class classification problem within a hyperspherical feature space. We achieve this by learning a set of class-specific, unit-norm prototypes that act as geometric anchors and implicit negatives. This architectural innovation preserves the benefits of local training while enabling weight update and inference in a single forward pass, making it >40x faster than the original FF algorithm. Our method is simple to implement, scales effectively to modern convolutional architectures, and achieves superior accuracy on standard image classification benchmarks, closing the gap with backpropagation. Most notably, we are among the first greedy local-learning methods to report over 25% top-1 accuracy on ImageNet-1k, and 65.96% with transfer learning.

For more information see the paper pdf.

Citation

If you use this work, please cite our paper:

BibTeX
@misc{sarode2026hff,
  title = {Hyperspherical Forward-Forward with Prototypical Representations},
  author = {Shalini Sarode and Brian Moser and Joachim Folz and Federico Raue
            and Tobias Nauen and Stanislav Frolov and Andreas Dengel},
  year = {2026},
  eprint = {2605.00082},
  archivePrefix = {arXiv},
  primaryClass = {cs.LG},
}

Authors · 7