ECCO: Equivalent Circuit Controlled Optimization

Aayushya Agarwal, Carmel Fiscko, Soummya Kar, Larry T. Pileggi, Bruno SinopoliarXiv 2022 · DOI

TL;DR

This paper introduces ECCO, a novel optimization algorithm that frames optimization as an electrical circuit simulation problem. By leveraging circuit theory, ECCO achieves faster convergence and superior robustness to hyperparameters compared to methods like Adam, particularly for neural network training.

What Problem Does This Paper Address?

Optimization is a fundamental problem in many scientific and engineering fields. While gradient descent is a common approach, its "ball rolling down a hill" analogy, while intuitive, doesn't always lead to the most efficient or robust algorithms. Existing methods like Adam, while powerful, often rely on empirical intuition rather than a deep theoretical understanding of their underlying dynamics. The authors aim to bridge this gap by exploring physics-inspired optimization, specifically by modeling the continuous-time gradient flow of an optimization problem as the transient response of an electrical circuit. This allows them to harness the rich theoretical framework and simulation techniques from circuit theory to develop more effective optimization algorithms.

Methods

The core innovation of ECCO lies in its novel framing of optimization problems as equivalent electrical circuits (ECs).

  • Gradient Flow as Circuit Dynamics: The paper first proves that component-wise scaled gradient flow can be mathematically represented as the transient response of an EC. The optimization variables become node voltages, and the scaling factors are modeled by nonlinear capacitors.
  • Circuit Control for Optimization: By drawing parallels between circuit steady-state and optimization critical points, the authors develop control strategies for the scaling matrix (Z) to accelerate convergence. This involves minimizing the "charge" in the circuit, which translates to maximizing the rate of decrease of the objective function. Two control schemes are proposed:
  • Second-Order Control: Uses the true Hessian of the objective function.
  • First-Order Control: Approximates the Hessian using only gradient information, making it suitable for applications where Hessians are expensive to compute (e.g., deep learning).
  • Error-Aware Discretization: To solve the continuous-time circuit dynamics numerically, ECCO adapts techniques from circuit simulators like SPICE. Instead of standard line search methods (like Armijo), they employ an "Error-Aware Time Step Search" (EATSS) that controls the local truncation error (LTE) and ensures monotonic decrease of the objective function. This approach aims to find a balance between accuracy and computational efficiency.

Datasets

Not discussed in the paper. The paper focuses on evaluating the proposed optimization methods on various test functions and a neural network classification task.

Key Insights and Ideas

  • Optimization as Circuit Simulation: The most striking insight is the direct equivalence between the dynamics of scaled gradient flow and the transient response of an electrical circuit. This opens up a new paradigm for understanding and designing optimization algorithms by leveraging established circuit theory.
  • Circuit Concepts for Faster Convergence: By framing optimization as charge dissipation in a circuit, the authors derive control strategies that actively shape the optimization trajectory for faster convergence. This is a departure from traditional methods that primarily focus on step size selection.
  • Robustness through Discretization: The EATSS method, inspired by circuit simulation's focus on local truncation error, provides a more stable and robust discretization strategy compared to standard line search methods, especially for explicit integration schemes.
  • Hyperparameter Insensitivity: A significant finding is ECCO's remarkable robustness to hyperparameter tuning, particularly in neural network training. This contrasts sharply with methods like Adam, which often require extensive tuning.

Key Results

  • Faster Convergence: Simulations show that ECCO consistently converges faster than baseline gradient flow, gradient descent with line search, and Adam on various convex and non-convex test functions.
  • Improved Performance on Complex Problems: ECCO demonstrates strong performance on a power systems optimization problem, finding a better local optimum with lower infeasibility than other methods.
  • Robust Neural Network Training: In training a neural network for MNIST classification, ECCO achieved comparable accuracy to Adam but with significantly less sensitivity to hyperparameter perturbations. Even with large perturbations, ECCO maintained high accuracy, while other methods struggled or diverged.
  • Computational Efficiency: The first-order ECCO variant has a per-iteration complexity comparable to gradient descent, making it computationally efficient. The EATSS discretization also did not significantly increase wall-clock time.

Limitations and Future Work

  • Hessian Requirement for Optimal Control: The second-order control scheme requires the full Hessian, which can be computationally expensive for very high-dimensional problems. The first-order approximation mitigates this but might introduce some error.
  • Future Work: The authors suggest extending ECCO to batch methods and discontinuous objective functions. They also envision the potential for building physical analog "optimizer" machines based on this circuit equivalence.

Summary updated

BibTeX
@misc{agarwal2022ecco,
  author = {Aayushya Agarwal and Carmel Fiscko and Soummya Kar and Larry T. Pileggi and Bruno Sinopoli},
  title = {{ECCO: Equivalent Circuit Controlled Optimization}},
  year = {2022},
  eprint = {2211.08478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.08478},
}
Figure