Analyze and Design Network Architectures by Recursion Formulas

Yilin Liao, Hao Wang, Zhaoran Liu, Haozhe Li, Xinggao LiuarXiv 2021 · OpenReview

TL;DR

This paper proposes a novel approach to designing neural network architectures by analyzing and manipulating their underlying recursion formulas. By treating recursion formulas as the core mathematical representation of network structure, the authors derive a new architecture that improves upon ResNet's performance on CIFAR and ImageNet datasets.

What Problem Does This Paper Address?

The field of deep learning, particularly in image recognition, has seen a rapid proliferation of new convolutional neural network (CNN) architectures. While skip-connections and shortcuts have been instrumental in enabling deeper and more effective networks (like ResNet), the fundamental principles guiding the design of these architectures remain somewhat empirical. The authors aim to bridge this gap by proposing a more principled, mathematically-driven method for designing network architectures, focusing on the "recursion formulas" that define how information flows through the network. They hypothesize that the key differences between architectures can be captured by these formulas and that by understanding and manipulating them, novel and improved architectures can be systematically designed.

Methods

The core of this paper lies in analyzing CNN architectures through the lens of their recursion formulas. The authors first derive the recursion formulas for traditional CNNs and residual networks (ResNets). They then employ partial derivative analysis to understand how information propagates through these networks, visualizing the paths information takes.

The key innovation is a methodology for designing new architectures based on these recursion formulas. Instead of relying solely on empirical experimentation, the authors propose starting with desired mathematical properties or recursion formulas and then constructing an architecture that embodies them. This is illustrated with a case study where they modify the recursion formula of ResNet to incorporate a specific structure that encourages stronger paths. This leads to a new architecture, which they then evaluate.

Datasets

The paper uses the following datasets for training and evaluation:

  • CIFAR-10
  • CIFAR-100
  • ImageNet

Key Insights and Ideas

  • Recursion Formulas as Architectural Blueprints: The paper argues that the fundamental differences between network architectures can be precisely captured by their recursion formulas. This provides a powerful mathematical framework for understanding and designing networks.
  • Partial Derivatives for Path Analysis: Using partial derivatives of outputs with respect to intermediate layer outputs reveals the propagation paths within a network. This technique helps to understand how information flows and where potential bottlenecks or redundancies might exist.
  • Shortcut Connections as "+1" in Recursion: The authors highlight that the addition of "1" in the ResNet recursion formula (representing the identity shortcut) is crucial for its effectiveness, enabling information to propagate more directly and leading to improved performance.
  • Designing Architectures from Formulas: The proposed methodology shifts the design paradigm from empirical trial-and-error to a more systematic, mathematically-driven approach. By defining desired recursion formulas, one can directly construct architectures with specific desired properties.
  • Memory Capacity in Blocks: The derived recursion formulas for the new architecture suggest that blocks possess a form of "memory capacity," being influenced not only by the immediately preceding block but also by the one before that.

Key Results

The paper demonstrates significant performance improvements with their newly designed architecture.

  • On CIFAR-10 and CIFAR-100, the "s" suffixed versions of ResNet (e.g., ResNet18s, ResNet34s) consistently outperformed their baseline ResNet counterparts. For instance, ResNet50s achieved 95.29% top-1 accuracy on CIFAR-10, compared to ResNet50's 95.00%.
  • The Friedman test confirmed the statistical significance of these improvements, showing that the new architectures generally performed better than the original ResNets.
  • The proposed architecture also demonstrated generality and compatibility with other popular network backbones like SEResNet, ResNeXt, and Res2NeXt, leading to performance gains across these models as well.

Limitations and Future Work

  • Computational Complexity: While the new architecture shows improved accuracy, the paper acknowledges that additional cross-layer connections might increase the number of parameters. The focus of this work was on the design process and ideas, not necessarily on parameter reduction.
  • Broader Theoretical Framework: The authors express a desire to further develop the theoretical system of using mathematics to solve neural network problems, aiming to make AI research more mathematical and theoretical, moving beyond extensive experimental exploration.
  • New Architectures: They suggest that this formula-driven approach can lead to the emergence of more novel network architectures in the future.
  • Broader Impact Concerns: The paper touches upon the potential negative societal impacts of increasingly accurate image recognition, such as privacy breaches and increased surveillance.

Summary updated

Abstract

The effectiveness of shortcut/skip-connection has been widely verified, which inspires massive explorations on neural architecture design. This work attempts to find an effective way to design new network architectures. It is discovered that the main difference between network architectures can be reflected in their recursion formulas. Based on this, a methodology is proposed to design novel network architectures from the perspective of mathematical formulas. Afterwards, a case study is provided to generate an improved architecture based on ResNet. Furthermore, the new architecture is compared with ResNet and then tested on ResNet-based networks. Massive experiments are conducted on CIFAR and ImageNet, which witnesses the significant performance improvements provided by the architecture.
BibTeX
@misc{liao2021analyze,
  author = {Yilin Liao and Hao Wang and Zhaoran Liu and Haozhe Li and Xinggao Liu},
  title = {{Analyze and Design Network Architectures by Recursion Formulas}},
  year = {2021},
  eprint = {2108.08689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.08689},
}
Figure