IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i16p2668-d1727864.html
   My bibliography  Save this article

Prunability of Multi-Layer Perceptrons Trained with the Forward-Forward Algorithm

Author

Listed:
  • Mitko Nikov

    (Faculty of Electrical Engineering and Computer Science, University of Maribor, SI-2000 Maribor, Slovenia)

  • Damjan Strnad

    (Faculty of Electrical Engineering and Computer Science, University of Maribor, SI-2000 Maribor, Slovenia)

  • David Podgorelec

    (Faculty of Electrical Engineering and Computer Science, University of Maribor, SI-2000 Maribor, Slovenia)

Abstract

We explore the sparsity and prunability of multi-layer perceptrons (MLPs) trained using the Forward-Forward (FF) algorithm, an alternative to backpropagation (BP) that replaces the backward pass with local, contrastive updates at each layer. We analyze the sparsity of the weight matrices during training using multiple metrics, and test the prunability of FF networks on the MNIST, FashionMNIST and CIFAR-10 datasets. We also propose FFLib—a novel, modular PyTorch-based library for developing, training and analyzing FF models along with a suite of FF-based architectures, including FFNN, FFNN+C and FFRNN. In addition to structural sparsity, we describe and apply a new method for visualizing the functional sparsity of neural activations across different architectures using the HSV color space. Moreover, we conduct a sensitivity analysis to assess the impact of hyperparameters on model performance and sparsity. Finally, we perform pruning experiments, showing that simple FF-based MLPs exhibit significantly greater robustness to one-shot neuron pruning than traditional BP-trained networks, and a possible 8-fold increase in compression ratios while maintaining comparable accuracy on the MNIST dataset.

Suggested Citation

  • Mitko Nikov & Damjan Strnad & David Podgorelec, 2025. "Prunability of Multi-Layer Perceptrons Trained with the Forward-Forward Algorithm," Mathematics, MDPI, vol. 13(16), pages 1-23, August.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:16:p:2668-:d:1727864
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/16/2668/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/16/2668/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:16:p:2668-:d:1727864. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.