Distributed linear-quadratic control with graph neural networks

Fernando Gama, Somayeh Sojoudi

TL;DR

This paper proposes using Graph Neural Networks (GNNs) to design distributed controllers for large-scale network systems. By leveraging the GNN's natural ability to handle local communication and its scalability, the authors provide a non-linear control framework that outperforms traditional linear distributed methods and remains stable even when the underlying system model is not perfectly known.

What Problem Does This Paper Address?

In modern engineering, we often need to control "network systems"—think of a fleet of drones, a power grid, or a swarm of robots. The gold standard for controlling linear systems is the Linear-Quadratic Regulator (LQR), which minimizes a quadratic cost (energy and error) over time.

However, standard LQR is centralized: it assumes a single "brain" can see every node's state and send commands instantly. In a massive network, this is impossible due to communication delays and the sheer computational cost. Distributed control—where each node decides its action based only on its neighbors—is the solution, but it’s notoriously difficult. Finding the optimal distributed controller is often mathematically "intractable," and even when we find linear solutions, they are frequently sub-optimal because the best distributed control law might actually be non-linear.

Methods

The authors propose parametrizing the distributed controller as a Graph Neural Network (GNN).

  1. GNN as Controller: Instead of a fixed linear matrix, the control law $\mathbf{u}(t) = \Phi(\mathbf{x}(t))$ is a GNN. Because GNNs use "graph filters" (which only require information from immediate neighbors), they are naturally distributed by design.
  2. Self-Supervised Learning: You don't need "labeled data" to train this controller. Instead, the authors use the LQR cost function itself as the loss function. They simulate the system's trajectory and use backpropagation to update the GNN weights to minimize the total quadratic cost.
  3. Stability Theory: Beyond just "training a model," the authors derive a sufficient condition for input-state stability. They show that if the GNN's filters are "small" enough (constrained by their Lipschitz constants), the resulting closed-loop system is guaranteed to be stable.
  4. Robustness Analysis: They provide a mathematical upper bound on how much the system's trajectory will deviate if the matrices describing the system (the "model") are slightly inaccurate.

Datasets

The paper uses synthetic network datasets for evaluation:

  • Random Geometric Graphs: 50 nodes placed uniformly at random in a 2D plane, with edges between the 5-nearest neighbors.
  • Scalability Tests: They train on 50-node networks and test on larger networks (up to 100 nodes) to see how well the learned control law transfers.
  • Benchmarks: They compare against the optimal centralized LQR, standard Multi-Layer Perceptrons (MLPs), and linear Graph Filters (GF).

Key Insights and Ideas

  • Weight Sharing is the Secret Sauce: Unlike other neural methods that train a separate model for every node (which doesn't scale), GNNs share weights across the whole graph. This means the number of parameters stays constant even as the network grows.
  • Non-linearity Wins: The authors found that the non-linearities in the GNN allow it to capture complex control behaviors that simple linear distributed filters miss, closing the gap toward centralized performance.
  • Stability via Regularization: The theoretical analysis suggests that penalizing the "size" (norm) of the GNN filters during training isn't just a heuristic—it directly improves the system's stability and robustness to model errors.
  • Zero-Shot Transfer: Because GNNs learn local processing rules rather than global coordinates, a controller trained on a small swarm can be deployed on a much larger swarm without retraining.

Key Results

  • Performance: The GNN-based controller achieved a normalized cost of ~1.10, significantly better than linear graph filters (~1.12) and much closer to the centralized optimal (~1.0) than other distributed methods.
  • Stability: In experiments with unstable "open-loop" systems, the GNN successfully drove the state to zero, whereas the uncontrolled system exploded.
  • Robustness: When the system model was perturbed by noise ($\epsilon$), GNNs trained with "size penalties" maintained a 100% stability rate for small perturbations, while unregularized GNNs saw stability drop to 55%.
  • Scalability: While "Distributed MLP" methods saw their costs skyrocket when moving from 50 to 100 nodes, the GNN's performance remained nearly flat, proving its effectiveness for large-scale deployment.

Limitations and Future Work

  • Centralized Training: While the execution of the controller is distributed, the training phase currently happens in a centralized simulator. The authors suggest that future work could explore fully distributed optimization algorithms (like consensus-based learning).
  • Linear Dynamics: The paper focuses on systems with linear dynamics. While many real-world systems can be linearized, extending this to inherently non-linear dynamics is a natural next step.
  • Equilibrium Points: The current work focuses on driving the system to a zero state. Future research could look into tracking moving targets or maintaining complex equilibrium points.

Summary updated

BibTeX
@article{gama2022distributed,
  author = {Fernando Gama and Somayeh Sojoudi},
  title = {{Distributed linear-quadratic control with graph neural networks}},
  journal = {Signal Processing},
  year = {2022},
  doi = {10.1016/j.sigpro.2022.108506},
}
Figure