Compositional ADAM: An Adaptive Compositional Solver

Rasul Tutunov, Minne Li, Jun Wang, Haitham Bou-AmmararXiv 2020

Introduction

In modern machine learning, many complex tasks—ranging from reinforcement learning and portfolio optimization to meta-learning—cannot be framed as simple empirical risk minimization. Instead, they involve compositional optimization, where the objective function is a composition of two or more expected values. While the ADAM optimizer has become the standard for non-compositional deep learning due to its adaptive learning rates, it lacks the mechanisms to handle the bias inherent in nested expectations. This paper introduces C-ADAM, the first adaptive optimization algorithm designed specifically for these nested structures.

The Compositional Optimization Challenge

Standard optimization problems typically minimize a single expectation, $\min_x \mathbb{E}[\ell(x, \xi)]$. In contrast, compositional problems take the form: $$\min_x f(\mathbb{E}[g(x, \xi)])$$ Here, $f$ is a function of an inner expectation. This structure is notoriously difficult because a stochastic sample of the inner function $g(x, \xi)$ does not provide an unbiased estimate of the gradient for the entire composition. Simple stochastic gradient descent (SGD) fails to converge efficiently in these scenarios without specialized corrections.

C-ADAM: Bridging ADAM and Compositional Structures

The authors propose C-ADAM (Compositional ADAM), which integrates the adaptive "magic" of ADAM with compositional smoothing techniques. The algorithm introduces two key technical components:

  1. Auxiliary Variables ($y_t$ and $z_t$): These variables maintain moving averages to track and smooth the estimates of the inner expectation and its Jacobian. This smoothing effectively mitigates the bias introduced by the nested structure.
  2. Adaptive Smoothing: C-ADAM incorporates ADAM’s signature moving averages of gradients ($m_t$) and squared gradients ($v_t$) to adjust learning rates for each parameter dynamically.

One of the paper's most significant conceptual contributions is the formal proof that Model-Agnostic Meta-Learning (MAML) is a special case of compositional optimization. By reframing MAML as a nested expectation problem, the authors provide a rigorous theoretical foundation for applying C-ADAM to meta-learning tasks.

Theoretical Advancements

The authors provide a rigorous convergence analysis for C-ADAM, proving that it reaches a stationary point with a query complexity of $\mathcal{O}(\delta^{-2.25})$. This result is particularly notable as it improves upon the $\mathcal{O}(\delta^{-3})$ complexity found in previous non-adaptive compositional solvers.

Table 1: Comparison of query complexities for reaching a $\delta$-stationary point. C-MAML (C-ADAM applied to meta-learning) achieves a superior convergence rate compared to existing algorithms.

Empirical Evaluation

C-ADAM was evaluated across three distinct domains to demonstrate its versatility and efficiency:

  • Portfolio Optimization: Using real-world financial data from the CRSP, C-ADAM was tested on 100-portfolio and 25-portfolio datasets. It reached the optimality gap significantly faster than baselines like SCGD or ASC-PG.
  • Few-Shot Meta-Learning: On the Omniglot and MiniImagenet datasets, C-ADAM (implemented as C-MAML) consistently outperformed standard MAML (using ADAM or SGD). The algorithm showed steeper accuracy improvement curves and higher final test accuracy, particularly in challenging 1-shot, 20-way classification tasks.
Figure 3: Performance comparison of C-ADAM against various baselines across portfolio optimization (a-h) and meta-learning benchmarks (i-l). C-ADAM (blue line) consistently demonstrates faster convergence and lower loss across all tasks.

Key Insights and Conclusion

C-ADAM represents a significant step forward in adaptive optimization for complex objectives. By correctly handling dependencies and correlations across nested functions, it achieves state-of-the-art sample efficiency. While the current work focuses on two-level nesting, the success of C-ADAM suggests that adaptive compositional solvers could be further generalized to multi-level nesting and broader applications in robust reinforcement learning and multi-player games.

Summary updated

BibTeX
@misc{tutunov2020compositional,
  author = {Rasul Tutunov and Minne Li and Jun Wang and Haitham Bou-Ammar},
  title = {{Compositional ADAM: An Adaptive Compositional Solver}},
  year = {2020},
  eprint = {2002.03755},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03755},
}
Figure