Towards Hyperparameter-Agnostic DNN Training via Dynamical System Insights

Carmel Fiscko, Aayushya Agarwal, Yihan Ruan, Soummya Kar, Larry T. Pileggi, Bruno SinopoliarXiv 2023 · DOI

Introduction

The "Hyperparameter Hell" of deep learning is a significant bottleneck in model development. Success often depends on finding the optimal learning rate, weight decay, and momentum through computationally expensive grid searches or Bayesian optimization. These settings are rarely transferable across different architectures or datasets. Standard optimizers typically rely on "open-loop" schedulers that do not account for the actual loss landscape, leading to slow convergence or "overshooting" critical regions where gradients change rapidly, such as the zero-crossing of activation functions.

Methodology: ECCO-DNN

To address these challenges, we introduce ECCO-DNN (Equivalent Circuit Controlled Optimization for DNNs). This approach treats neural network training as a gradient flow ODE (Ordinary Differential Equation) and employs a specialized discretization strategy inspired by transient circuit simulation.

Adaptive Step Sizes and Feedback

ECCO-DNN utilizes Local Truncation Error (LTE) to dynamically adjust step sizes ($\Delta t$). If the calculated error for a potential step is too high, the step size is reduced; if the error is low, it is increased. This "closed-loop" feedback mechanism ensures the optimizer adapts to the local geometry of the loss function.

Activation-Specific Limiting

A key innovation is the "limiting" step designed for activation functions like ReLU, Tanh, and Sigmoid. These functions exhibit high rates of gradient change near zero. ECCO-DNN ensures the optimizer does not "jump over" these critical regions, preventing premature saturation or instability.

Effect of activation-limiting on parameter convergence across iterations.

Experimental Evaluation

ECCO-DNN was evaluated on standard benchmarks including MNIST and CIFAR-10/100 across various architectures (ResNet, LeNet, SeNet), as well as a real-world time-series regression task using LSTMs for household power consumption.

Results and Stability

ECCO-DNN matched or exceeded the test accuracy of optimally tuned Adam, SGD, and RMSProp. Notably, on the LSTM task where optimal hyperparameters were unknown, ECCO-DNN achieved a Mean Square Error of 0.0247 out-of-the-box, while standard optimizers often failed or required extensive tuning.

Comparison of optimization stability between standard ODE solvers and ECCO-DNN.

In reliability tests, 0% of ECCO-DNN runs failed, compared to failure rates of 11% to 60% for Adam and SGD in random search experiments.

Discussion

The most striking feature of ECCO-DNN is its hyperparameter-agnostic nature. While traditional optimizers are fragile, ECCO-DNN's performance remains stable even when its single tolerance parameter ($\eta$) is varied by three orders of magnitude. By treating the network as a dynamical system and incorporating topology-aware feedback, ECCO-DNN eliminates the need for exhaustive hyperparameter sweeps.

Limitations

The primary trade-off is a 15-20% increase in per-epoch runtime due to LTE calculations and activation limit checks. However, this is offset by the elimination of the time required for hyperparameter tuning. Future work will focus on reducing this computational overhead and exploring second-order dynamical systems.

Summary updated

BibTeX
@misc{fiscko2023towards,
  author = {Carmel Fiscko and Aayushya Agarwal and Yihan Ruan and Soummya Kar and Larry T. Pileggi and Bruno Sinopoli},
  title = {{Towards Hyperparameter-Agnostic DNN Training via Dynamical System Insights}},
  year = {2023},
  eprint = {2310.13901},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.13901},
}
Figure