Efficient and Flexible Neural Network Training through Layer-wise Feedback Propagation

Leander Weber, Jim Berend, Moritz Weckbecker, Alexander Binder, Thomas Wiegand, Wojciech Samek, Sebastian Lapuschkin

Abstract

Gradient-based optimization has been a cornerstone of machine learning that enabled the vast advances of Artificial Intelligence (AI) development over the past decades. However, this type of optimization requires differentiation, and with recent evidence of the benefits of non-differentiable (e.g. neuromorphic) architectures over classical models w.r.t. efficiency, such constraints can become limiting in the future. We present Layer-wise Feedback Propagation (LFP), a novel training principle for neural network-like predictors that utilizes methods from the domain of explainability to decompose a reward to individual neurons based on their respective contributions. Leveraging these neuron-wise rewards, our method then implements a greedy approach reinforcing helpful parts of the network and weakening harmful ones. While having comparable computational complexity to gradient descent, LFP does not require gradient computation and generates sparse and thereby memory- and energy-efficient parameter updates and models. We establish the convergence of LFP theoretically and empirically, demonstrating its effectiveness on various models and datasets. Via two applications — neural network pruning and the approximation-free training of Spiking Neural Networks (SNNs) — we demonstrate that LFP combines increased efficiency in terms of computation and representation with flexibility w.r.t. choice of model architecture and objective function.

Introduction

The overwhelming success of modern AI is built on gradient-based optimization, specifically backpropagation. However, backpropagation imposes a "differentiability tax," requiring every component of the model and the objective function to be smooth and mathematically differentiable. This requirement is a major bottleneck for two primary reasons: first, it restricts the use of hardware-efficient models that utilize discrete signals, such as Spiking Neural Networks (SNNs); second, it limits training to differentiable objective functions, excluding non-smooth evaluation metrics like F1-score or Levenshtein distance.

Layer-wise Feedback Propagation (LFP) addresses these limitations by providing a flexible, gradient-free alternative. By reimagining training as a multi-agent reinforcement problem, LFP enables the optimization of non-differentiable architectures and objectives while naturally producing sparse, energy-efficient parameters.

Methodology

LFP treats individual neurons as agents that are reinforced based on their contribution to a successful outcome. Instead of calculating gradients, it determines how much a neuron contributed to a reward. The process follows three distinct steps:

  1. Forward Pass: The model processes input to generate a prediction.
  2. Feedback Propagation: Upon receiving an "initial reward" based on output quality, LFP utilizes Layer-wise Relevance Propagation (LRP)—a technique from eXplainable AI (XAI)—to decompose this global reward into "local rewards" ($r_k$) for every neuron and connection.
  3. Weight Update: Parameters are updated using a greedy, Hebbian-like rule: $d \propto |w_{j,k}| \cdot a_j \cdot r_k$. Connections that were active ($a_j$) and led to a positive reward are strengthened, while those leading to negative rewards are weakened.
The LFP training cycle: (A) Forward Pass, (B) Feedback Propagation of rewards via LRP, and (C) the local Weight Update rule.

Theoretically, the authors provide Theorem 1, which proves that for ReLU-activated networks, LFP is mathematically equivalent to weight-scaled gradient descent. This establishes a formal connection between reward-based feedback and classical optimization.

Experimental Evaluation

LFP was evaluated across a diverse range of tasks and datasets, including standard benchmarks (MNIST, CIFAR-10/100), fine-grained classification (CUB-200-2011, ISIC2019), regression (California Housing), and specific spiking neural network benchmarks.

Results and Key Insights

LFP achieves accuracies comparable to Stochastic Gradient Descent (SGD), typically within 1% on standard tasks. Its primary advantages lie in its flexibility and inherent efficiency:

  • Flexibility with Non-Differentiable Components: LFP can optimize models and objectives that are incompatible with standard gradient-based training. As illustrated in the comparison below, LFP handles non-differentiable (ND) architectures like SNNs and ND objectives "out of the box."
Comparison of Gradient-based vs. LFP-based training across various configurations of differentiable (D) and non-differentiable (ND) objectives and models.
  • Inherent Sparsity and Prunability: Because the update rule scales with weight magnitude ($|w|$), unimportant weights naturally drift toward zero. This results in models that are significantly more robust to pruning. For instance, on the CUB dataset, an LFP-trained ResNet-18 maintains higher accuracy under heavy pruning compared to gradient-trained versions.
  • SNN Performance: In spiking architectures, LFP matched or outperformed surrogate gradient methods on CIFAR-10, achieving stable convergence faster in some convolutional settings.

Conclusion

LFP represents a novel intersection of XAI and optimization, using explainability as a direct training signal. While challenges remain in scaling to Transformers and handling specific activation functions like Sigmoid, LFP provides a scalable, gradient-free paradigm for training the next generation of efficient AI models. Future research will focus on "waking up" dead neurons and extending LFP to complex attention-based architectures and reinforcement learning.

Summary updated

BibTeX
@article{weber2025efficient,
  author = {Leander Weber and Jim Berend and Moritz Weckbecker and Alexander Binder and Thomas Wiegand and Wojciech Samek and Sebastian Lapuschkin},
  title = {{Efficient and Flexible Neural Network Training through Layer-wise Feedback Propagation}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=9oToxYVOSW},
}
Figure