HPFF: Hierarchical Locally Supervised Learning with Patch Feature Fusion

Junhao Su, Chenghao He, Feiyu Zhu, Xiaojie Xu, Dongzhi Guan, Chenyang Si

Abstract

Traditional deep learning relies on end-to-end backpropagation (BP) for training, but it suffers from drawbacks such as high memory consumption and a lack of biological plausibility. Recent advancements have introduced locally supervised learning (LSL), which divides networks into modules with isolated gradients. However, this approach can lead to performance lag due to limited interaction between modules, and auxiliary networks add memory overhead. To overcome these limitations, we propose HPFF, a model that performs hierarchical locally supervised learning and patch-level feature computation. Hierarchical Locally Supervised Learning (HiLo) enables the network to learn features at different granularity levels, while Patch Feature Fusion (PFF) reduces GPU memory usage by splitting input features into patches. Experiments on CIFAR-10, STL-10, SVHN, and ImageNet demonstrate that HPFF significantly outperforms previous approaches, consistently achieving state-of-the-art performance.

Introduction

Deep neural networks typically utilize End-to-End Backpropagation (BP). While effective, BP is constrained by "update locking"—where layers must wait for a full forward and backward pass before updating—and high memory requirements for storing intermediate activations. Locally Supervised Learning (LSL) offers a decentralized alternative by training isolated modules with local auxiliary classifiers. However, LSL often suffers from "shortsightedness," where early layers discard complex features necessary for later stages, leading to a performance gap compared to BP.

The HPFF Framework

HPFF addresses the limitations of LSL through two core innovations: Hierarchical Locally Supervised Learning (HiLo) and Patch Feature Fusion (PFF).

1. Hierarchical Locally Supervised Learning (HiLo)

Standard LSL trains modules in isolation, which often leads to "greedy" early layers that solve local tasks too well while discarding features needed later. HiLo introduces a two-level hierarchy to foster communication:

  • Independent Level: Standard local modules with their own Independent Auxiliary Networks (IAN).
  • Cascade Level: Overlapping "cascade modules" that span two adjacent local modules, supervised by Cascade Auxiliary Networks (CAN).

This overlapping structure forces adjacent modules to share information. Analysis shows that HiLo lowers early-layer local accuracy to levels similar to BP, effectively preserving better features for the final classifier.

Comparison of training architectures: (a) End-to-End training, (b) Standard supervised local learning, and (c) The proposed HPFF method featuring hierarchical local modules (IAN and CAN).

2. Patch Feature Fusion (PFF)

To solve the memory overhead of auxiliary networks, PFF splits feature maps into $n \times n$ patches. These patches are processed sequentially through the auxiliary network, and the results are averaged. This "patch-wise" approach drastically reduces the peak GPU memory footprint and acts as a regularizer, encouraging the network to identify patterns consistent across the entire image.

Experimental Results

We evaluated HPFF across several benchmarks, including CIFAR-10, STL-10, SVHN, and ImageNet.

Accuracy and Generalization

HPFF is designed as a "plug-and-play" strategy. When integrated with existing LSL methods like PredSim, DGL, and InfoPro, it consistently yields significant accuracy gains. For instance, on CIFAR-10 with a ResNet-110 architecture, HPFF reduced the test error of the InfoPro method from 13.22% to 8.96%.

Accuracy comparison across three datasets. HPFF consistently improves the performance of existing local learning baselines (PredSim, DGL, and InfoPro).

Memory Efficiency

A key advantage of HPFF is its efficiency. On ResNet-110, HPFF achieved memory savings of 73.7% to 79.5% compared to standard backpropagation. By utilizing PFF, the auxiliary networks become highly efficient, allowing for the training of deeper models on limited hardware.

Conclusion

HPFF successfully addresses the "shortsightedness" and memory overhead of locally supervised learning. By introducing hierarchical communication and patch-based processing, it brings local learning performance much closer to end-to-end backpropagation while maintaining superior efficiency. Future work will explore "Forward Gradient Learning" to further enhance biological plausibility and eliminate backpropagation entirely.

Code available at: https://github.com/Zeudfish/HPFF

Summary updated

BibTeX
@inproceedings{su2024hpff,
  author = {Junhao Su and Chenghao He and Feiyu Zhu and Xiaojie Xu and Dongzhi Guan and Chenyang Si},
  title = {{HPFF: Hierarchical Locally Supervised Learning with Patch Feature Fusion}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=8P0nHf5yfh},
}
Figure