Learning responsibility allocations for multi-agent interactions: A differentiable optimization approach with control barrier functions

Isaac Remy, David Fridovich-Keil, Karen Leung

TL;DR

This paper introduces a data-driven framework to quantify "responsibility" in multi-agent interactions, such as lane-changing in traffic. By combining Control Barrier Functions (CBFs) with differentiable optimization, the authors can infer from raw trajectory data how much each agent is willing to deviate from their preferred path to ensure collective safety.

What Problem Does This Paper Address?

When humans interact—whether walking through a crowd or driving on a highway—we follow unspoken social norms. We intuitively decide who should yield and who should proceed. For autonomous vehicles, capturing these nuances is difficult.

Existing approaches usually fall into two camps: "Black-box" deep learning models that are powerful but uninterpretable, or handcrafted "model-based" rules that are transparent but often too rigid to handle complex real-world edge cases. This paper seeks a middle ground. It asks: Can we mathematically define and then "learn" the allocation of responsibility between agents directly from data?

Methods

The authors define responsibility as an agent's inclination to deviate from their "desired" control (their ideal path) to satisfy a safety constraint (avoiding a collision).

The core of their approach involves three main components:

  1. CBF Safety Filters: They use Control Barrier Functions (CBFs) to define a "safe set" of possible actions. A safety filter takes an agent's desired (but potentially dangerous) command and projects it onto the nearest safe action.
  2. Weighted Optimization: They modify the standard safety filter by adding a "responsibility" weight ($\gamma$). If an agent has a low $\gamma$, the "cost" of deviating from their path is low, meaning they are more "responsible" for avoiding the collision.
  3. Differentiable Optimization: To find the right $\gamma$ values from a dataset, the authors treat the entire optimization problem as a layer in a neural network. Using tools like JAX, they can calculate gradients through the optimization solver, allowing them to "train" the responsibility parameters to match observed human behavior.

A standout feature is the introduction of Symmetric Responsibility. This ensures the model treats interactions identically regardless of which agent is labeled "Agent 1" or "Agent 2," which significantly improves data efficiency.

Datasets

The researchers evaluated their method on:

  • Synthetic Datasets: 1D and 2D simulations involving 2 to 6 agents using simple physics (integrator dynamics) to verify that the algorithm could recover known "ground truth" responsibility values.
  • Traffic-Weaving Dataset: Real-world data from human drivers in a simulator performing high-stakes lane swaps. This dataset is particularly challenging because it contains diverse driving styles and no explicit "right-of-way" rules.

Key Insights and Ideas

  • Responsibility as an Interpretable Lens: Instead of just predicting where a car will go, this model tells you why—specifically, how the burden of safety was shared at any given moment.
  • Symmetry is a Superpower: By mathematically enforcing that responsibility shouldn't depend on arbitrary agent indexing, the model requires much less data to reach high accuracy.
  • Dynamic Responsibility: The paper shows that responsibility isn't a fixed trait; it changes. For example, a car might take zero responsibility while cruising but suddenly take high responsibility once it initiates a lane change and needs to accommodate a faster vehicle.
  • The "Yielding" Signal: The model successfully captured the "social bias" in the traffic data, noting that slower cars typically yield to faster ones overtaking from behind.

Key Results

  • High Accuracy: In synthetic tests, the estimated responsibility values converged to the ground truth within just a few training epochs.
  • Real-Time Potential: The authors demonstrated that calculating the loss and gradients scales linearly with batch size, suggesting the method could eventually be used for real-time monitoring of human-robot interactions.
  • Qualitative Validation: On the traffic-weaving data, the model produced intuitive results. For instance, it correctly identified that a car becomes "more responsible" (more willing to brake/swerve) after it has overtaken another vehicle and is trying to merge back in.

Limitations and Future Work

  • The "Desired Control" Assumption: Currently, the model requires knowing what the agent wanted to do before they had to avoid a collision. In the real world, we only see the final "safe" action. The authors used handcrafted heuristics for this, but they suggest using generative models to learn "desired" policies in the future.
  • Multimodality: The current model is deterministic. In scenarios where two drivers reach a stalemate (both waiting for the other to go), the model struggles. A probabilistic version is needed to handle these "either/or" social outcomes.
  • Scalability: While symmetric responsibility is efficient for 2-6 agents, the number of permutations grows factorially, which could become a bottleneck for very crowded environments (like a busy pedestrian plaza).

Summary updated

BibTeX
@inproceedings{remy2025learning,
  author = {Isaac Remy and David Fridovich-Keil and Karen Leung},
  title = {{Learning responsibility allocations for multi-agent interactions: A differentiable optimization approach with control barrier functions}},
  booktitle = {ACC},
  year = {2025},
  doi = {10.23919/acc63710.2025.11107831},
}
Figure