TL;DR
This paper introduces a Bayesian model that infers the shared goal of a cooperative human-robot team by integrating both their actions and natural language instructions. The model demonstrates a strong correlation with human goal inferences, showing that verbal communication significantly speeds up and reduces uncertainty in goal understanding.
What Problem Does This Paper Address?
Cooperative tasks, whether between humans or between humans and AI, require agents to understand each other's goals and plans. This understanding is often built by observing both actions and communication. While existing work has explored how an assistant agent can infer a principal's goal, this paper tackles the problem from the perspective of a third-person observer who needs to infer the team's shared goal by observing their joint actions and any instructions given. The challenge lies in effectively combining these two modalities (actions and language) within a principled framework, especially when dealing with the inherent ambiguity in both.
Methods
The authors propose a Bayesian inverse planning framework that models a cooperating team as a single "group agent." This simplifies the problem by assuming a shared goal and a joint plan, bypassing the need for complex recursive reasoning about each agent's individual mental states.
Key components of their model include:
- Goal Prior: A uniform distribution over possible goals.
- Joint Planner: Models how agents form a plan to achieve a goal, using a Boltzmann policy that balances optimality with a degree of noise. This is implemented efficiently using adaptive A* search.
- Utterance Model: This is a novel probabilistic program that uses a large language model (GPT-3 CURIE) to generate natural language instructions. It first identifies "salient actions" from the plan and then uses these, along with few-shot examples, to condition the language model's output. This allows the model to learn how an agent might communicate a plan.
The core inference mechanism is Bayesian, updating the posterior distribution over goals as new actions and instructions are observed. They use an exact variant of Sequential Inverse Plan Search, leveraging the Gen probabilistic programming system.
Datasets
The authors created a dataset based on a multi-agent gridworld environment called "Doors, Keys, & Gems." They generated 20 stimuli, each consisting of an action trajectory and a natural language instruction. These stimuli were designed to have varying levels of goal ambiguity and were used for both human experiments and model evaluation. No pre-existing datasets were used for training or evaluation.
Key Insights and Ideas
- Multi-modal inference is crucial: Combining actions and language provides a much richer signal for goal inference than actions alone.
- Language accelerates and clarifies: Instructions significantly reduce the initial uncertainty about the team's goal, allowing for faster convergence to the true goal.
- Rational communication is key: The model assumes agents communicate rationally, meaning they convey information that is useful for achieving the shared goal, balancing informativeness with utterance cost. This assumption is critical for the observer to infer goals.
- LLMs as modular components: The paper demonstrates the utility of integrating large language models (like GPT-3) as probabilistic components within larger Bayesian inference systems, rather than treating them as monolithic black boxes.
Key Results
- High Correlation with Humans: The model's goal inferences showed a strong correlation with human judgments, with an R value of 0.965 in the "with instructions" condition and 0.925 in the "without instructions" condition.
- Instructions Improve Accuracy: At the initial judgment point, the "with instructions" condition showed significantly higher probability assigned to the true goal compared to the "actions only" condition for both humans and the model.
- Faster Convergence: Instructions lead to more rapid and less uncertain goal inference, as evidenced by tighter confidence intervals in human judgments and higher probability for the true goal earlier in the trajectory.
- Model Outperforms Actions-Only Baseline: The model's ability to infer goals from actions alone was still good, but significantly less accurate than when instructions were included.
Limitations and Future Work
- Simplification of "Group Agent": The model treats the team as a single agent, which is a simplification. Future work could explore more complex models that explicitly represent individual agent beliefs and reasoning.
- Focus on Third-Person Observer: The current work focuses on a third-person observer inferring the goal. The authors suggest extending this to an assistive agent that can use these inferences to support the principal.
- Extending to Assistive AI: A key future direction is to adapt the framework for assistive agents that infer principal goals and preferences to provide better support, potentially using approaches like "Imagined We" or by modeling the principal as jointly planning.
- More Complex Environments and Communication: Future work could explore more complex environments, richer communication protocols, and more diverse instruction styles.
Summary updated