A Mathematics-Inspired Learning-to-Optimize Framework for Decentralized Optimization

Yutong He, Qiulin Shang, Xinmeng Huang, Jialin Liu, Kun Yuan · DOI

Abstract

Most decentralized optimization algorithms are handcrafted. While endowed with strong theoretical guarantees, these algorithms generally target a broad class of problems, thereby not being adaptive or customized to specific problem features. This paper studies data-driven decentralized algorithms trained to exploit problem features to boost convergence. Existing learning-to-optimize methods typically suffer from poor generalization or prohibitively vast search spaces. In addition, the vast search space of communicating choices and final goal to reach the global solution via limited neighboring communication cast more challenges in decentralized settings. To resolve these challenges, this paper first derives the necessary conditions that successful decentralized algorithmic rules need to satisfy to achieve both optimality and consensus. Based on these conditions, we propose a novel Mathematics-inspired Learning-to-optimize framework for Decentralized optimization (MiLoDo). Empirical results demonstrate that MiLoDo-trained algorithms outperform handcrafted algorithms and exhibit strong generalizations. Algorithms learned via MiLoDo in 100 iterations perform robustly when running 100,000 iterations during inferences. Moreover, MiLoDo-trained algorithms on synthetic datasets perform well on problems involving real data, higher dimensions, and different loss functions.

Introduction

In decentralized optimization, multiple computing nodes collaborate to solve a global objective function by communicating only with their immediate neighbors. Traditional approaches rely on handcrafted algorithms such as EXTRA or Exact-Diffusion. While these methods offer robust theoretical guarantees, they are often "one-size-fits-all" solutions that fail to exploit specific data distributions or problem features, leading to suboptimal convergence rates.

Learning-to-Optimize (L2O) offers a promising alternative by training neural networks to act as optimizers. However, applying L2O to decentralized environments introduces significant hurdles: memory bottlenecks from algorithm unrolling, vast search spaces for communication strategies, and the critical requirement of reaching a global consensus. Without structural guidance, black-box neural networks often fail to ensure that all nodes eventually agree on a single optimal solution.

The MiLoDo Framework

To address these challenges, the MiLoDo (Mathematics-inspired Learning-to-optimize for Decentralized optimization) framework moves away from purely black-box learning. Instead, it embeds fundamental mathematical constraints directly into the neural network's architecture.

Structured Update Rules

Rather than tasking a Long Short-Term Memory (LSTM) network with predicting updates from scratch, MiLoDo uses the LSTM to learn specific "preconditioners" and "mixing weights" within a mathematically derived primal-dual framework. This narrows the search space and ensures the learned rules remain grounded in optimization theory.

Fixed-Point and Consensus Guarantees

The framework is built upon derived necessary conditions for optimality and consensus. A key theoretical contribution (Theorem 2) proves that if a MiLoDo-trained algorithm converges, it is guaranteed to reach the true primal and dual optimal solutions. This provides a theoretical safety net rarely found in standard L2O methods.

Empirical Performance and Convergence

MiLoDo was evaluated across a variety of tasks, including synthetic LASSO and Logistic Regression, as well as real-world datasets like BSDS500, MNIST, and CIFAR-10.

Convergence comparison of MiLoDo against state-of-the-art handcrafted and learned decentralized optimization algorithms.

As shown in the figure above, MiLoDo (represented by the purple line) significantly outperforms both handcrafted baselines (like Prox-ED and PG-EXTRA) and other learned methods. It achieves a 1.5x to 2x speedup in convergence and reaches much lower relative error levels. Furthermore, the framework demonstrates a 2x speedup in the consensus rate, meaning nodes agree on the solution much faster than with traditional methods.

Generalization and Stability

A standout feature of MiLoDo is its remarkable generalization capability. Most L2O models are unstable if run for more iterations than they were trained for. In contrast, MiLoDo-trained algorithms are stable even when run for 1,000x more iterations (e.g., training for 100 iterations and inferring for 100,000). Additionally, models trained on simple synthetic problems with 300 variables successfully generalize to solve problems with 30,000 variables and different loss functions.

Conclusion and Future Work

MiLoDo bridges the gap between theoretically sound handcrafted algorithms and high-performance data-driven optimizers. While it currently faces limitations regarding topology generalization—where models trained on one network shape (like a ring) may not transfer perfectly to another—it sets a new standard for efficient decentralized optimization. Future research will explore incorporating Graph Neural Networks (GNNs) to make the framework topology-agnostic.

Summary updated

BibTeX
@misc{he2024mathematics,
  author = {Yutong He and Qiulin Shang and Xinmeng Huang and Jialin Liu and Kun Yuan},
  title = {{A Mathematics-Inspired Learning-to-Optimize Framework for Decentralized Optimization}},
  year = {2024},
  eprint = {2410.01700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.01700},
}
Figure