Dynamical System Inspired Adaptive Time Stepping Controller for Residual Network Families

Yibo Yang, Jianlong Wu, Hongyang Li, Xia Li, Tiancheng Shen, Zhouchen Lin

Abstract

Residual Networks (ResNets) can be interpreted as discrete-time approximations of continuous dynamical systems. While standard ResNets employ a fixed step size, this work introduces a Self-adaptive Time Stepping Controller (TSC) based on an LSTM architecture. The TSC dynamically learns optimal step sizes for each layer, enhancing both accuracy and robustness. Crucially, the controller is only used during training, resulting in zero additional computational overhead during inference.

Introduction

The structural similarity between ResNets and the numerical solution of Ordinary Differential Equations (ODEs) has inspired a new perspective on deep learning. In this framework, each residual block represents a single step in the evolution of a physical system. However, traditional ResNets typically employ a fixed step size (implicitly $\Delta t = 1$). In classical numerical analysis, fixed-step methods are often suboptimal; steps that are too large induce instability, while steps that are too small may fail to capture complex transformations efficiently.

To address this, we introduce adaptive time stepping into the ResNet architecture. By allowing the network to learn its own 'evolutionary rhythm,' we can better balance stability and expressivity.

Methodology

The core of our approach is the Self-adaptive Time Stepping Controller (TSC). We model the forward pass of a ResNet as: $$\mathbf{y}_{d+1} = \mathbf{y}_d + \Delta t_d \cdot \mathcal{F}(\mathbf{y}_d, \mathbf{w}_d)$$ where $\Delta t_d$ is the step size for layer $d$, determined by the TSC.

The TSC Architecture

The TSC is implemented as an LSTM that processes the weights of the current layer to output a channel-wise step size vector. This 'self-aware' mechanism allows the controller to maintain a memory of the data's evolution across layers, ensuring smooth transitions in the feature space.

Architecture of the Time Stepping Controller (TSC) integrated into a ResNet block.

Stability and Optimization

We provide a theoretical stability analysis showing that the network's stability depends on the product of the weight matrix's spectral norm and the step size. The TSC is trained jointly with the main network using standard backpropagation. Once training is complete, the learned $\Delta t$ values are fixed, and the LSTM controller is removed, resulting in a standard ResNet with optimized, non-uniform step sizes.

Experimental Results

We evaluated the TSC-ResNet across several standard benchmarks, including CIFAR-10, CIFAR-100, and ImageNet.

Performance and Efficiency

On ImageNet, TSC-ResNet-50 achieved a top-1 error of 23.63%, a significant improvement over the 24.42% baseline. Furthermore, TSC-ResNet-101 outperformed the more complex SENet-101 while maintaining a lower parameter count and computational footprint.

Robustness to Noise

A key advantage of the adaptive approach is its inherent stability. When subjected to Gaussian noise, TSC-enabled models demonstrate significantly higher resilience compared to fixed-step baselines. The controller learns to 'dampen' layers that might otherwise amplify high-frequency noise.

Accuracy and loss performance across varying noise levels for fixed step sizes vs. TSC.

Discussion and Conclusion

Our findings suggest that the optimal step size for a ResNet is not uniform. Early layers typically benefit from smaller steps to maintain stability, while deeper layers utilize larger steps to drive final feature separation. By treating deep networks as dynamical systems, we can leverage classical numerical principles to build more robust and accurate models.

While the TSC adds complexity during the training phase, its 'zero-cost' inference makes it highly practical for deployment. Future research will explore extending this framework to other architectures like DenseNets and investigating its potential for dynamic layer skipping in resource-constrained environments.

Summary updated

BibTeX
@inproceedings{yang2020dynamical,
  author = {Yibo Yang and Jianlong Wu and Hongyang Li and Xia Li and Tiancheng Shen and Zhouchen Lin},
  title = {{Dynamical System Inspired Adaptive Time Stepping Controller for Residual Network Families}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6141},
}
Figure