Abstract
Multi-agent safe systems have become an increasingly important area of study as we can now easily have multiple AI-powered systems operating together. In such settings, we need to ensure the safety of not only each individual agent, but also the overall system. In this paper, we introduce a novel multi-agent safe learning algorithm that enables decentralized safe navigation when there are multiple different agents in the environment. This algorithm makes mild assumptions about other agents and is trained in a decentralized fashion, i.e. with very little prior knowledge about other agents' policies. Experiments show our algorithm performs well with the robots running other algorithms when optimizing various objectives.
Introduction
In multi-agent systems, such as fleets of autonomous rovers or swarms of delivery drones, safety is a critical requirement. However, maintaining safety in a decentralized setting—where agents can observe each other but lack knowledge of others' internal policies—is a significant challenge. Most existing safe reinforcement learning algorithms either rely on a centralized controller, which does not scale well, or focus solely on individual agent safety, neglecting the risk of inter-agent collisions. This research addresses the problem of ensuring both individual safety (e.g., avoiding hazardous terrain) and joint safety (e.g., avoiding collisions) in continuous environments with limited communication.
Methodology: Multi-agent Safe Q-Learning
The proposed Multi-agent Safe Q-Learning algorithm integrates several key components to achieve decentralized safety:
Gaussian Processes for Safety Modeling
The algorithm employs Gaussian Processes (GPs) to model the environment's reward function. Safety is defined as maintaining a reward above a specific threshold. By utilizing the GP's confidence bounds, agents can identify "safe" regions with high mathematical certainty.
Decomposed Safety and Intent Inference
Safety is decomposed into individual safety (based on the agent's own state) and joint safety (based on the collective configuration of all agents). To handle the unknown policies of others, the algorithm performs real-time intent inference. It assumes other agents follow a combination of Optimism in the Face of Uncertainty (OFU) and Boltzmann exploration. By observing movements, the agent uses Bayesian inference to estimate the internal parameters of its peers.
Returnability
To prevent agents from entering "dead ends," the planning mechanism ensures that for every action taken, there exists a high-probability path back to a known safe state.
Experimental Evaluation
The algorithm was evaluated in two primary simulated environments:
- Mars Rover Exploration: Utilizing real-world surface data from the HiRISE mission, rovers navigated terrain where low-altitude regions were designated as unsafe.
- Quadcopter Collaboration: A 3D simulation where two quadcopters must maintain a specific distance to successfully carry an item; drifting too far apart constitutes a joint safety violation.
Key Results
The Multi-agent Safe Q-Learning algorithm demonstrated superior performance across several metrics:
- Enhanced Safety: In the Mars rover task, the proposed agent significantly reduced "jointly unsafe" incidents compared to Naive, Bayesian, and standard Safe Q-learning baselines.
- Optimized Performance: By accurately modeling others' intent, the agent avoids excessive caution. It achieved higher cumulative rewards by identifying efficient paths that more "naive" safe agents would avoid.
- Scalability and Efficiency: The algorithm maintains linear time complexity relative to the number of actions, making it suitable for real-time robotics applications.
Discussion and Future Work
While the algorithm effectively manages immediate joint safety, it currently lacks long-term look-ahead capabilities to avoid future collisions resulting from current safe moves. Additionally, the model assumes a shared reward function among agents, which may not apply to competitive scenarios. Future research will focus on validating these findings on physical robotic hardware to account for real-world sensor noise and latency.
Summary updated