Distributed Conjugate Gradient Method via Conjugate Direction Tracking

Ola Shorinwa, Mac Schwager

TL;DR

The authors introduce DC-Grad, a fully decentralized algorithm that brings the speed of the Conjugate Gradient (CG) method to distributed optimization. By using a "conjugate direction tracking" mechanism, individual agents can converge to a global optimum using only local data and peer-to-peer communication, outperforming standard distributed methods in communication efficiency on dense networks.

What Problem Does This Paper Address?

In distributed optimization, a network of agents (like a swarm of robots or a cluster of sensors) tries to minimize a global objective function that is the sum of their individual, local functions. The catch? No single agent sees the whole picture, and there is no central "boss" to coordinate them.

While Distributed Gradient Descent is a common solution, it is often slow and requires "diminishing step-sizes" (getting smaller over time) to actually reach the exact optimum. The Conjugate Gradient (CG) method is a classic "accelerated" technique in centralized optimization that is much faster than standard gradient descent. However, CG is notoriously difficult to decentralize because it relies on "conjugate directions"—mathematical paths that require global information to calculate.

Existing distributed CG attempts often require restrictive network shapes (like a ring) or a central hub. This paper seeks to bridge that gap, creating a CG-based method that works on any connected network without a central controller.

Methods

The authors propose DC-Grad (Distributed Conjugate Gradient). Its architecture relies on three main components:

  1. Local CG Updates: Each agent computes its own local gradient and a local "conjugate direction" using standard schemes like Fletcher-Reeves or Polak-Ribière.
  2. Conjugate Direction Tracking: This is the core innovation. Because local directions don't naturally lead to the global optimum, agents use dynamic average consensus to track the average of all conjugate directions across the network.
  3. Uncoordinated Step-Sizes: Unlike many distributed algorithms that require every agent to use the exact same step-size, DC-Grad allows agents to use different, constant step-sizes, making it more robust for real-world heterogeneous hardware.

The algorithm essentially replaces the "gradient tracking" found in modern first-order methods (like DIGing) with "conjugate direction tracking," allowing the network to mimic the behavior of a centralized nonlinear CG solver.

Datasets

The paper evaluates the algorithm using simulated benchmarks common in the control and optimization community:

  • Distributed State Estimation: A network of 50 agents attempting to estimate a 10-dimensional state (e.g., the location of a target) from noisy local measurements using a least-squares approach.
  • Distributed Robust Least Squares: A variation of the above using the Huber loss function, which is less sensitive to outliers. This tests the algorithm's performance on non-quadratic (but still convex) problems.

The authors tested these on various network topologies, ranging from sparsely connected graphs to fully connected (dense) networks.

Key Insights and Ideas

  • The "Fixed Point" Problem: The authors provide a clever proof by contradiction showing why a simple distributed version of CG fails. In short, because an agent's local gradient isn't zero at the global optimum, a standard CG update would keep pushing the agent away from the solution. Tracking the average direction fixes this "drift."
  • Communication vs. Computation Trade-off: DC-Grad requires slightly more local computation (to calculate the $\beta$ parameter for conjugacy) compared to simpler gradient methods. However, it significantly reduces the number of communication rounds needed to reach high accuracy.
  • Density Matters: The "aha" moment in the results is that the advantage of DC-Grad scales with network connectivity. In dense networks, the consensus on the conjugate direction happens quickly, allowing the CG acceleration to shine.

Key Results

  • Communication Efficiency: In densely connected networks ($\kappa = 1.0$), DC-Grad achieved the lowest communication overhead (measured in Megabytes exchanged) compared to baselines like DIGing-ATC, C-ADMM, and ABm.
  • Convergence Speed: On fully connected networks, DC-Grad reached a high-accuracy threshold ($10^{-13}$ error) in significantly fewer iterations than its competitors.
  • Robustness: The algorithm successfully handled the Huber loss function, proving it works for general smooth convex optimization, not just simple quadratic problems.
  • Sparse Performance: On very sparse graphs, DC-Grad performs similarly to other state-of-the-art first-order methods (like DIGing), meaning there is little "penalty" for using it even if the network isn't dense.

Limitations and Future Work

  • Theoretical Scope: The current convergence proof is limited to smooth, convex functions. While CG is often applied to non-convex problems (like training neural networks), the theoretical guarantees for DC-Grad in those settings remain an open question.
  • Step-Size Selection: In simulations, the authors used a "golden-section search" to find the best step-size. In a real-world deployment, finding an optimal step-size in a fully decentralized way without extra communication overhead is a practical challenge.
  • Linear Convergence: Preliminary analysis suggests the algorithm converges linearly, but a formal characterization of the exact convergence rate compared to other accelerated methods is flagged for future research.

Summary updated

BibTeX
@inproceedings{shorinwa2024distributed,
  author = {Ola Shorinwa and Mac Schwager},
  title = {{Distributed Conjugate Gradient Method via Conjugate Direction Tracking}},
  booktitle = {ACC},
  year = {2024},
  doi = {10.23919/acc60939.2024.10644588},
}
Figure