ODGR: Online Dynamic Goal Recognition

Matan Shamir, Osher Elhadad, Matthew E. Taylor, Reuth Mirsky

TL;DR

This paper introduces "Online Dynamic Goal Recognition" (ODGR), a new problem formulation that allows for real-time recognition of an agent's goals, even when those goals change dynamically. They propose a transfer learning-based algorithm, GATLing, that significantly outperforms existing methods in dynamic navigation environments by adapting to new goals efficiently.

What Problem Does This Paper Address?

Traditional Goal Recognition (GR) methods often assume a fixed, predefined set of goals. This is a significant limitation in real-world scenarios where an agent's objectives can emerge or change over time. Furthermore, existing Reinforcement Learning (RL)-based GR approaches struggle with scalability when the number of possible goals is large, as they often require training a separate policy for each goal, which is computationally expensive and time-consuming. This paper addresses this gap by proposing "Online Dynamic Goal Recognition" (ODGR), which explicitly handles changing goals and aims for efficient recognition in dynamic environments.

Methods

The core of the paper is the formulation of the Online Dynamic Goal Recognition (ODGR) problem. This formulation generalizes existing GR problems by introducing the concept of dynamic goals that can change over time. The authors then propose a general algorithm called Goal Adaptation using Transfer Learning (GATLing). GATLing operates in three phases:

  1. Domain Learning Phase: This phase involves learning a domain theory and training base policies for a predefined set of "base goals" using standard RL techniques (like Q-learning).
  2. Goals Adaptation Phase: When new, "dynamic goals" are introduced, GATLing leverages transfer learning from the pre-trained base policies to quickly adapt and create new policies for these dynamic goals. This is crucial for minimizing adaptation time.
  3. Inference Phase: Given an observation trace of an actor, GATLing uses the most updated domain theory and dynamic policies to infer the most likely goal. This phase is designed to be fast.

For the implementation, GATLing uses Q-learning for policy learning and explores different methods for aggregating Q-functions from base policies to create dynamic policies, including Weighted Average, Softmax, and Max aggregation. They also investigate distance metrics for comparing trajectories to dynamic goals.

Datasets

The paper does not explicitly mention using pre-existing datasets for training or evaluation. Instead, they implement and evaluate their approach in a custom simple navigational domain without obstacles, using the Gym MiniGrid environment (Chevalier-Boisvert et al., 2023) as a case study. They create two experimental setups within this domain: one with a smooth environment and another that breaks this smoothness property.

Key Insights and Ideas

  • Dynamic Goals are Crucial: The paper strongly emphasizes that real-world scenarios often involve dynamic goals, and existing GR methods are ill-equipped to handle this. ODGR is presented as a necessary step towards more robust GR systems.
  • Transfer Learning for Efficiency: The core idea of GATLing is to leverage transfer learning to avoid costly re-training for every new goal. This significantly reduces the "Goals Adaptation Time," making the system more responsive.
  • Adaptability Outperforms Static Approaches: The experimental results highlight that dynamic approaches (like GATLing) significantly outperform static ones in environments where goals can change, underscoring the importance of adaptability.
  • Heuristic Aggregation Works: The paper demonstrates that even heuristic methods for aggregating Q-functions (like Softmax and Weighted Average) can effectively create policies for dynamic goals, leading to accurate recognition.

Key Results

  • Superior Performance in Dynamic Environments: In their navigational domain experiments, GATLing significantly outperformed the baseline GRAQL (a state-of-the-art GR approach) in terms of accuracy, precision, recall, and F-score, especially when dealing with dynamic goals.
  • Reduced Adaptation Time: GATLing achieved a dynamic goal policy construction time of approximately 1.56 seconds on average (on a GPU), compared to GRAQL's significantly longer time of 485.45 seconds for learning a single goal. This highlights the efficiency gains from transfer learning.
  • High Accuracy: For partial observation traces (0.1, 0.3, and 0.5), GATLing consistently achieved high accuracy (often 1.0 ± 0.0) and other metrics, demonstrating its effectiveness.
  • Dynamic Approach Dominance: The dynamic approach (GATLing) consistently outperformed the static approach across various metrics, reinforcing the paper's central argument.

Limitations and Future Work

  • Aggregation Techniques: The authors acknowledge that their proposed aggregation techniques might struggle in domains with rapid changes in Q-values.
  • Continuous Spaces: Extending the current approach to continuous state and action spaces is noted as a challenge.
  • Domain Specificity: While GATLing is presented as a general algorithm, its current implementation and evaluation are limited to simple 2D navigational domains.
  • Future Work: The paper suggests exploring more robust aggregation techniques, extending the framework to continuous domains, and investigating its applicability to more complex environments. They also anticipate the need for faster goal learning as data-driven GR systems evolve.

Summary updated

BibTeX
@inproceedings{shamir2024odgr,
  author = {Matan Shamir and Osher Elhadad and Matthew E. Taylor and Reuth Mirsky},
  title = {{ODGR: Online Dynamic Goal Recognition}},
  booktitle = {Finding the Frame @ RLC},
  year = {2024},
  url = {https://openreview.net/forum?id=q8zrfiAr24},
}
Figure