Enhancing Convolutional Neural Networks with Higher-Order Numerical Difference Methods

Qi Wang, Zijun Gao, Mingxiu Sui, Taiyuan Mei, Xiaohan Cheng, Iris Li

Abstract

Recent theoretical advancements have characterized Residual Networks (ResNets) as discrete approximations of Ordinary Differential Equations (ODEs). However, standard ResNet architectures typically rely on the Forward Euler method, the simplest first-order numerical scheme, which may limit their representational accuracy. This paper introduces TM-ResNet, an architecture that replaces the standard stacking scheme with a higher-order Taylor multi-step numerical method. By utilizing information from multiple previous states, TM-ResNet reduces truncation error and improves performance across standard image benchmarks. Our experiments on CIFAR-10, CIFAR-100, and SVHN demonstrate that TM-ResNet consistently outperforms traditional ResNets, often achieving higher accuracy with fewer parameters.

Introduction

In the evolution of deep learning, Residual Networks (ResNets) marked a significant milestone by enabling the training of extremely deep architectures through skip connections. Despite their success, the design of these connections has largely remained empirical. A burgeoning field of research now views the forward pass of a ResNet as a discretization of a continuous ODE. Under this lens, a standard residual block—defined as $x_{i+1} = x_i + F(x_i)$—is mathematically equivalent to the Forward Euler method.

While the Forward Euler method is computationally efficient, it is a first-order approximation with relatively high truncation error. In classical numerical analysis, higher-order methods are preferred for their precision and stability. This paper investigates whether these mathematical principles can be leveraged to design more effective neural network architectures, leading to the development of the Taylor Multi-Step ResNet (TM-ResNet).

Methodology

From ODEs to Taylor Multi-Step Methods

The core innovation of this work lies in the transition from a single-step first-order discretization to a multi-step higher-order approach. The authors derive a linear multi-step method based on Taylor series expansions. Unlike the standard ResNet, which only considers the current state ($t_l$) to calculate the next ($t_{l+1}$), the TM-ResNet incorporates information from the current state and two preceding states ($t_{l-1}$ and $t_{l-2}$).

Mathematically, this shift reduces the local truncation error from $O( au^2)$ in standard ResNets to $O( au^3)$ in TM-ResNets. This higher-order accuracy allows the network to approximate the underlying continuous mapping more precisely.

The TM-ResNet Architecture

The TM-ResNet is built upon the Pre-Activation ResNet (PreActResNet) framework but modifies the transition logic between blocks. Because a multi-step method requires historical data to function, a standard sequential stack cannot start immediately. To resolve this, the authors implemented a "Boot TM-block." This specialized component consists of three initial standard residual blocks that generate the necessary starting states. Once these initial values are established, the network switches to the Taylor multi-step logic for the remainder of its depth.

Experimental Results

The researchers evaluated TM-ResNet against standard PreActResNet models across several benchmark datasets, focusing on accuracy and parameter efficiency.

Performance Benchmarks

  • CIFAR-10: TM-ResNet-36 achieved an accuracy of 93.44%, notably higher than the 90.94% achieved by PreActResNet-34. Remarkably, the TM-ResNet achieved this while utilizing fewer parameters (21,035k vs. 21,270k).
  • CIFAR-100: The benefits of higher-order methods became even more apparent at greater depths. TM-ResNet-86 reached 76.50% accuracy, surpassing the much deeper PreActResNet-101, which reached 75.35%.
  • SVHN and YouTube Face Dataset: The model demonstrated robust generalization on real-world digit recognition and facial keypoint detection, confirming that the benefits of the Taylor multi-step approach are not limited to specific image classification tasks.

Scaling and Efficiency

As networks scale to extreme depths, the TM-ResNet maintains its competitive edge. At the highest tier tested, TM-ResNet-137 (94.14% on CIFAR-10) outperformed PreActResNet-152 (93.68%). These results suggest that the higher-order stacking scheme provides a more efficient way to increase model capacity than simply adding more layers.

Discussion and Key Insights

The Value of Mathematical Rigor

The success of TM-ResNet highlights that the "memory" inherent in multi-step methods allows for a more consistent flow of information. By treating the network as a sophisticated numerical solver, we can reduce the empirical trial-and-error typically associated with architecture search.

Parameter vs. Computational Efficiency

One of the most significant findings is that architectural topology—specifically how layers interact—can be more important than raw parameter count. TM-ResNet proves that we can achieve superior results by optimizing the mathematical logic of the connections rather than just increasing the width or depth of the model.

Limitations and Future Directions

Despite the clear accuracy gains, the multi-step approach introduces new considerations:

  1. Memory Usage: Storing previous activations ($t_{l-1}, t_{l-2}$) increases the memory footprint during the forward pass, which may impact hardware requirements for very large models.
  2. Latency: While parameter-efficient, the computational overhead and actual wall-clock time for training and inference require further granular study.
  3. Broad Application: Future work should investigate whether these higher-order principles can be applied to other architectures, such as Transformers, where residual connections also play a critical role in gradient flow.

Conclusion

By bridging the gap between classical numerical analysis and modern deep learning, TM-ResNet offers a principled approach to architecture design. The transition to higher-order Taylor multi-step methods provides a significant boost in accuracy and parameter efficiency, suggesting that the future of neural network design may lie in more sophisticated mathematical discretizations of continuous functions.

Summary updated

BibTeX
@inproceedings{wang2024enhancing,
  author = {Qi Wang and Zijun Gao and Mingxiu Sui and Taiyuan Mei and Xiaohan Cheng and Iris Li},
  title = {{Enhancing Convolutional Neural Networks with Higher-Order Numerical Difference Methods}},
  booktitle = {ICBASE},
  year = {2024},
  doi = {10.1109/icbase63199.2024.10762728},
}
Figure