Decentralized Multi-Level Compositional Optimization Algorithms with Level-Independent Convergence Rate

Hongchang GaoAISTATS 2024

Abstract

Multi-level compositional optimization is a critical framework for modern machine learning paradigms such as meta-learning and training complex neural architectures. However, these problems are notoriously difficult to solve in decentralized settings due to gradient bias, the "curse of levels," and communication-induced consensus errors. This paper introduces two novel decentralized algorithms: DSMCGDM and DSMCVRG. Both methods achieve level-independent convergence rates, ensuring that the depth of the composition does not exponentially degrade performance. We provide theoretical guarantees and empirical evidence on multi-step Model-Agnostic Meta-Learning (MAML) tasks, demonstrating that our approaches significantly outperform existing decentralized baselines.

Introduction

Many contemporary machine learning tasks can be formulated as stochastic multi-level compositional optimization (multi-level SCO) problems. In these scenarios, the objective function is a nested sequence of functions: $f_K(f_{K-1}(...f_1(x)...))$. Examples include multi-step meta-learning, training graph neural networks, and optimizing models with batch normalization layers.

When these problems are distributed across a network of devices that can only communicate locally, three major hurdles arise:

  1. The Bias Challenge: The non-linearity of inner functions makes simple random gradient samples biased. Standard optimization techniques often fail to converge unless this bias is meticulously managed.
  2. The Curse of Levels: Most existing algorithms suffer from convergence rates that slow down exponentially as the number of nested levels ($K$) increases.
  3. The Decentralized Bottleneck: Real-world distributed systems introduce consensus errors. Maintaining synchronization across the network while handling the complexity of multi-level functions is a significant challenge.

Prior solutions often relied on impractical operations like gradient clipping or projection to maintain stability, which are difficult to tune in practice.

Proposed Algorithms

We introduce two decentralized algorithms that leverage gradient tracking to synchronize information across the network while addressing the unique challenges of multi-level SCO.

DSMCGDM: Momentum-Based Compositional Descent

The Decentralized Stochastic Multi-level Compositional Gradient Descent with Momentum (DSMCGDM) algorithm utilizes a momentum-based approach combined with a "STORM-like" moving average to estimate the values of inner functions. This method achieves a convergence rate of $O(\epsilon^{-4})$, matching the standard rate for non-compositional decentralized SGD. Momentum acts as a stabilizer, mitigating noise from both the nested structure and peer-to-peer communication.

DSMCVRG: Variance-Reduced Compositional Gradient

The Decentralized Stochastic Multi-level Compositional Variance-Reduced Gradient (DSMCVRG) algorithm takes a more aggressive approach by applying variance reduction directly to the compositional gradient. Crucially, it avoids applying variance reduction to every intermediate Jacobian matrix, which eliminates the need for impractical clipping or projection operations. This strategic application of variance reduction allows DSMCVRG to achieve a faster convergence rate of $O(\epsilon^{-3})$.

Experimental Evaluation

We evaluated the proposed algorithms on multi-step Model-Agnostic Meta-Learning (MAML) tasks, a representative multi-level optimization problem.

Experimental Setup

  • Tasks: We used a regression task (sinewave adaptation) and a classification task (Omniglot handwritten character recognition).
  • Network Topologies: Experiments were conducted on Ring Graphs and Random Graphs (Erdos-Renyi) to simulate various decentralized communication environments.
  • Scalability: We tested the algorithms with varying numbers of devices to observe the effects of network scale.

Results and Discussion

The experimental results confirm the theoretical advantages of the proposed methods. Both DSMCGDM and DSMCVRG significantly outperformed standard Decentralized SGD (DSGD) in terms of both convergence speed and final loss.

Comparison of loss curves for DSGD, DSMCGDM, and DSMCVRG across different graph topologies (Ring and Random) and task components (Support and Query).

As illustrated in Figure 6, DSMCVRG consistently achieves the fastest convergence, validating its superior $O(\epsilon^{-3})$ theoretical rate. Furthermore, the experiments demonstrated that increasing the number of devices (e.g., from 4 to 8) accelerated convergence, showing that these algorithms effectively leverage the computational power of the decentralized network.

A key insight from our work is that decentralized communication does not inherently ruin the convergence order of multi-level problems. By combining function estimation with gradient tracking, the depth of the composition ($K$) only affects the constant coefficient of the rate, not the exponent.

Conclusion and Future Work

This paper presents the first decentralized algorithms for multi-level compositional optimization with level-independent convergence rates. By avoiding impractical operations and strategically applying variance reduction and momentum, we provide robust tools for large-scale distributed learning.

Future research directions include extending the theoretical analysis to strongly convex objective functions, adapting the algorithms for directed or time-varying network topologies, and developing asynchronous versions of these methods to further improve efficiency in heterogeneous hardware environments.

Summary updated

BibTeX
@inproceedings{gao2024decentralized,
  author = {Hongchang Gao},
  title = {{Decentralized Multi-Level Compositional Optimization Algorithms with Level-Independent Convergence Rate}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure