NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Multi-agent Behaviors from Distributed and Streaming Demonstrations

Shicheng Liu, Minghui Zhu

Understanding why agents behave the way they do is a critical challenge in Multi-Agent Systems (MAS), especially for tasks involving imitation and coordination. Typically, this is handled via Inverse Reinforcement Learning (IRL), where a learner attempts to recover an expert's underlying reward function. However, real-world MAS deployments present three major hurdles that traditional IRL struggles to overcome:

  1. Distributed Data: There is rarely a central authority; demonstration data is often scattered across different nodes or agents.
  2. Streaming Data: Data frequently arrives in a continuous sequence, requiring "online" learning rather than processing a pre-collected, static batch.
  3. Hidden Constraints: Experts do not merely maximize rewards; they also obey strict constraints (e.g., avoiding collisions or restricted zones). Learning a reward function without accounting for these constraints leads to flawed, unsafe behavior models.

Existing methods, such as Distributed Inverse Constrained Reinforcement Learning (D-ICRL), rely on a "double-loop" architecture. They solve a full reinforcement learning problem (the inner loop) for every single update of the reward/constraint estimate (the outer loop). This approach is computationally prohibitive for streaming data, where new observations arrive long before the previous computation finishes.

The MA-BIRDS Framework

To address these bottlenecks, researchers propose MA-BIRDS (Multi-Agent Behavior Inference from Distributed and Streaming demonstrations), a novel framework designed to infer both rewards and constraints in real-time.

The MA-BIRDS framework processing streaming demonstrations from multiple experts to distributed learners.

The core technical innovations of MA-BIRDS include:

  • Distributed Online Bi-level Optimization: The problem is formulated as a bi-level task. The outer-level estimates the reward parameters, while the inner-level learns the cost/constraint weights and the resulting policy.
  • Single-Loop Update: Unlike previous double-loop methods, MA-BIRDS updates both the reward and constraint parameters simultaneously—only once per data observation. This single-loop structure is what makes it viable for fast-streaming data.
  • Gradient Approximation: To avoid the heavy computational cost of calculating exact second-order derivatives (Hessians) required by bi-level gradients, the authors derive a first-order gradient approximation. This is significantly faster to compute while remaining theoretically sound.
  • Consensus-Based Learning: Learners communicate with their immediate neighbors over a time-varying network. By using a weighted average of their neighbors' parameters, all learners eventually agree on the same reward and constraint models, even though each only observes a fraction of the total data.

Experimental Setup & Key Insights

The algorithm was evaluated in two primary environments: a discrete grid-world ("Evasion from Patrolled Area") where learners infer the logic of patrollers avoiding obstacles, and a high-fidelity continuous-space drone simulation in Gazebo, which tested the algorithm's ability to handle complex physics and continuous state-action spaces.

A key theoretical insight from the paper is the use of Local Regret for Non-Convexity. Standard "regret" is difficult to minimize for non-linear reward functions (like those parameterized by neural networks). The authors instead use "local regret," focusing on the gradient norms of recent loss functions, providing a more practical metric for online non-convex optimization. Furthermore, by treating the inner-level RL problem through its dual lens, they transform the difficult task of "finding constraints" into a convex optimization problem over the weights of the cost features.

Key Results

MA-BIRDS demonstrated significant improvements in both speed and performance:

  • Massive Speedup: In the drone simulation, MA-BIRDS was roughly 6 to 7 times faster per iteration than the double-loop baseline (DLM) and significantly faster than "Follow the Leader" (FTL) approaches.
  • Performance Parity: Despite operating in a distributed manner on streaming data, MA-BIRDS achieved Success Rates (SR) and Constraint Violation Rates (CVR) comparable to centralized "batch" methods that have access to all data at once. In the drone task, it reached an impressive ~97% success rate.
Performance metrics (FPR, FNR, CVR, SR) over streaming demonstrations, comparing MA-BIRDS learners against baselines.

The authors also provide formal proofs guaranteeing that the learners achieve consensus and that the average local regret decreases at a sub-linear rate, ensuring long-term convergence.

Limitations and Future Work

While highly effective, the framework has a few limitations. First, it assumes that constraints are a linear combination of predefined cost features. Non-linear cost functions can make the problem ill-defined, which the authors plan to explore in future relaxations. Second, the method relies heavily on these predefined features; automating their discovery from raw data remains an open challenge. Finally, the framework assumes experts are cooperative and rational—adversarial or misleading demonstrations would result in an incorrect inferred model.

Summary updated

BibTeX
@inproceedings{liu2023learning,
  author = {Shicheng Liu and Minghui Zhu},
  title = {{Learning Multi-agent Behaviors from Distributed and Streaming Demonstrations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Ou1VRZ4j4y},
}
Figure