Abstract
We present a distributed algorithm that enables a group of robots to collaboratively optimize the parameters of a deep neural network model while communicating over a mesh network. Each robot only has access to its own data and maintains its own version of the neural network, but eventually learns a model that is as good as if it had been trained on all the data centrally. No robot sends raw data over the wireless network, preserving data privacy and ensuring efficient use of wireless bandwidth. At each iteration, each robot approximately optimizes an augmented Lagrangian function, then communicates the resulting weights to its neighbors, updates dual variables, and repeats. Eventually, all robots' local network weights reach a consensus. For convex objective functions, we prove this consensus is a global optimum. We compare our algorithm to two existing distributed deep neural network training algorithms in (i) an MNIST image classification task, (ii) a multi-robot implicit mapping task, and (iii) a multi-robot reinforcement learning task. In all of our experiments our method out performed baselines, and was able to achieve validation loss equivalent to centrally trained models.
Introduction
In traditional multi-robot systems, training a shared neural network typically relies on a centralized architecture where every robot streams its local sensor data to a central leader or cloud server. This approach introduces significant bottlenecks: high bandwidth requirements for streaming raw data (e.g., LiDAR or high-resolution video), privacy concerns in sensitive environments, and a lack of robustness due to the single point of failure at the central server.
To address these issues, we introduce DiNNO (Distributed Neural Network Optimization), a leaderless algorithm that allows a swarm of robots to reach a consensus on model weights that is as accurate as centralized training without ever sharing raw sensor data.
Methodology
DiNNO is built upon the Consensus Alternating Direction Method of Multipliers (CADMM). The primary challenge in applying ADMM to deep learning is the "primal update" step, which traditionally requires exact minimization of a complex, non-convex objective function. DiNNO overcomes this through:
- Approximate Primal Updates: Instead of full local training, each robot performs a small number of steps (typically 2 to 10) of a stochastic optimizer like Adam on its local data.
- Augmented Lagrangian Objective: The local training objective is modified with a dual variable and a quadratic penalty term. This mathematically "pulls" local weights toward the neighborhood average, enforcing consensus across the mesh.
- Seamless Integration: By utilizing standard stochastic first-order methods, DiNNO integrates directly with modern deep learning frameworks like PyTorch.
Experimental Evaluation
We evaluated DiNNO across three distinct domains to test its versatility:
- MNIST Classification: Partitioned heterogeneously so that individual robots only see specific digits, forcing collaboration to learn the full dataset.
- Neural Implicit Mapping: Using the CubiCasa5K dataset, robots must learn a building's 2D layout from disparate, local LiDAR scans.
- Multi-Agent Reinforcement Learning (MARL): A predator-prey task in the PettingZoo environment requiring continuous-state coordination.
Key Results and Insights
DiNNO demonstrated superior performance and robustness compared to standard distributed baselines like Distributed Stochastic Gradient Descent (DSGD) and Distributed Stochastic Gradient Tracking (DSGT).
- Performance Parity: In the MNIST task, DiNNO achieved a 98.5% validation accuracy, matching the centralized baseline and significantly outperforming DSGD, which suffered from high variance.
- Topological Robustness: As shown in the results across different graph types (Complete, Cycle, Random), DiNNO maintains high performance even in "thin" networks with low connectivity (low Fiedler values).
- Coherent Mapping: In implicit mapping, DiNNO was the only distributed method capable of reconciling disparate viewpoints into a faithful global map. Baselines often produced fragmented or blurred results.
- Efficient Communication: Sharing model weights is far more bandwidth-efficient than raw data streams, and the decentralized nature ensures no single point of failure exists.
Conclusion and Future Work
DiNNO provides a robust, privacy-preserving framework for collaborative robot learning. While highly effective, future research will address the communication overhead of sharing full network weights through compression or sparsification techniques. Additionally, extending the framework to handle dynamic network topologies and more complex 3D environments, such as those used in Neural Radiance Fields (NeRFs), remains a priority.
Summary updated