Embedding of FRPN in CNN architecture

Alberto Rossi, Markus Hagenbuchner, Franco Scarselli, Ah Chung Tsoi

Abstract

Modern Convolutional Neural Networks (CNNs) typically rely on a fixed depth, which remains static regardless of input complexity. This paper introduces the Convolutional-Fully Recursive Perceptron Network (C-FRPN), an architecture that replaces fixed-depth layers with recursive ones that iterate until reaching a stable equilibrium. By leveraging dynamic unfolding and weight sharing, C-FRPN effectively adapts its depth to the input, outperforming standard CNNs with identical parameter counts, particularly in resource-constrained environments.

Introduction

In deep learning, the depth of a network is a critical meta-parameter usually determined through trial and error. Once trained, this depth is fixed; a simple image and a highly complex one pass through the same number of layers. While deeper networks generally offer better performance, they come at the cost of increased parameters and memory usage.

Previous attempts to address this, such as Recurrent Convolutional Neural Networks (RCNNs), utilize a fixed number of iterations for recursive layers. The authors argue that such approaches remain too rigid. They propose a model where the network unfolds dynamically, iterating only as much as necessary to reach a stable numerical state for a specific input.

Methodology: The C-FRPN Architecture

The C-FRPN extends the Fully Recursive Perceptron Network (FRPN) into the spatial domain of computer vision. The core innovation lies in the recursive processing block.

The C-FRPN Layer

Instead of a standard forward pass, a C-FRPN layer takes the output of the previous layer (the static input) and concatenates it with its own output from the previous iteration (the state). This combined representation is then processed through shared convolutional filters.

The C-FRPN architecture integrates recursive blocks into a standard convolutional pipeline, allowing for dynamic depth through state feedback.

Dynamic Unfolding and Weight Sharing

The layer performs convolutions repeatedly until the "state" (the feature maps) converges. Convergence is defined as the point where the Euclidean distance between the current and previous state falls below a threshold (0.1). Because the same convolutional filters are used in every iteration, the model gains the representational power of a very deep network without increasing the total number of trainable weights. This effectively creates a variable-depth network that adapts to the "richness" of the input.

Experimental Evaluation

The researchers evaluated the C-FRPN against baseline CNNs on three distinct benchmarks:

  • CIFAR-10: 60,000 small natural images across 10 classes.
  • SVHN (Street View House Numbers): Real-world house number images.
  • ISIC (International Skin Imaging Collaboration): A specialized medical dataset for melanoma prediction.

Key Results and Insights

Efficiency through Recursion

The most striking insight is that C-FRPN allows a "small" network to act like a "large" one. By reusing weights through iteration, the model achieves higher accuracy than a standard CNN with the exact same parameter count across all tested datasets.

The "Small Model" Advantage

The performance gap between C-FRPN and standard CNNs is most pronounced when the total number of parameters is low. As shown in the comparative training curves, the advantage of recursion becomes increasingly significant as the model size decreases from 672K to 17K weights.

Comparison of training accuracy between baseline CNNs and C-FRPN across various parameter counts, demonstrating a significant performance gap in low-parameter regimes.

In the CIFAR-10 tests, a C-FRPN with only 17K parameters significantly outperformed a baseline CNN of the same size, narrowing the performance gap toward much larger models. This suggests C-FRPN is an ideal architecture for edge devices or mobile applications where memory is strictly limited.

Discussion and Limitations

While C-FRPN offers substantial memory savings, it introduces a trade-off in computational latency. Because the network must iterate multiple times per layer until convergence, the total inference time may be higher than a standard feed-forward pass.

Furthermore, convergence is not mathematically guaranteed for every possible input. To prevent infinite loops, the authors implemented a "hard cap" of 8 iterations. Future work will focus on understanding the specific role each recursive layer plays and developing methods to guarantee stability without relying on arbitrary iteration caps.

Conclusion

The C-FRPN demonstrates that recursive weight sharing and dynamic unfolding can significantly improve the parameter efficiency of convolutional networks. By allowing the network to determine its own depth based on input complexity, C-FRPN provides a robust alternative to fixed-depth architectures, particularly for applications requiring high performance within a small memory footprint.

Summary updated

BibTeX
@inproceedings{rossi2020embedding,
  author = {Alberto Rossi and Markus Hagenbuchner and Franco Scarselli and Ah Chung Tsoi},
  title = {{Embedding of FRPN in CNN architecture}},
  booktitle = {ESANN},
  year = {2020},
  url = {https://openreview.net/forum?id=nuT4tYrL-F2},
}
Figure