Inverse Reinforcement Learning (IRL) has long struggled with tasks that violate the Markov assumption—where the reward for an action depends not just on the current state, but on the history of previous actions. This paper introduces Active Task-Inference-Guided Deep Inverse Reinforcement Learning (ATIG-DIRL), a framework designed to learn reward functions for these complex, "temporally extended" tasks by combining active automaton inference with deep IRL.
The Challenge of Non-Markovian Tasks
Standard IRL algorithms typically assume that rewards are state-dependent. However, many real-world objectives are non-Markovian. For instance, a robot might only be rewarded for "entering the kitchen" if it has already "picked up the mail." Existing solutions often rely on manual feature engineering or simple memory bits, which fail when tasks involve complex logic or repeated subgoals (e.g., visit A, then B, then A again). Furthermore, passive IRL relies entirely on provided demonstrations, which may lack the critical edge cases needed to learn a robust reward function.
The ATIG-DIRL Framework
ATIG-DIRL addresses these issues through an iterative loop between two specialized modules:
- Task Inference Module: This module utilizes the L* algorithm to learn the underlying logic of a task. It strategically asks a human demonstrator "membership queries" (e.g., "Does this specific sequence of actions complete the task?") to construct a Deterministic Finite Automaton (DFA). This DFA acts as a flowchart tracking task progress.
- Reward Learning Module: Once a hypothesis DFA is established, the algorithm constructs a Product MDP, merging physical environment states with the logical states of the DFA. In this augmented state space, the task becomes Markovian. A Convolutional Neural Network (CNN) is then used to learn the reward function via Deep MaxEnt IRL, taking the environment map and DFA state as inputs.
- Feedback Loop: If the learned policy fails to meet success thresholds, the system generates "counterexamples"—sequences where the agent's success status was misidentified—and feeds them back to the Task Inference module to refine the DFA.
Experimental Evaluation
The researchers evaluated ATIG-DIRL in a simulated Task-Oriented Navigation Environment (Figure 1). This grid-based world contains various objects like buildings, trees, and barrels. The evaluation focused on three navigation tasks of increasing complexity, with the most difficult (Task #3) requiring a strict sequence of visits: $R_0 \rightarrow R_1 \rightarrow R_2 \rightarrow R_3 \rightarrow R_0$.
ATIG-DIRL was compared against two baselines: "Memoryless IRL" and "IRL-IB" (IRL augmented with simple information bits to track visited regions).
Results and Key Insights
The results demonstrate a significant performance gap in complex scenarios:
- Superior Success Rates: On the most complex task (Task #3), ATIG-DIRL achieved a 0.96 success ratio, while the IRL-IB baseline managed only 0.11, and the memoryless baseline failed entirely.
- Effective State Augmentation: The core innovation is using DFAs to transform non-Markovian history into a Markovian state. Because the DFA has distinct states for repeated visits (e.g., "First visit to kitchen" vs. "Second visit"), it handles complex logic naturally.
- Robust Generalization: By using a CNN for reward learning, the agent successfully completed tasks in 10 different randomly generated environments it had never encountered during training.
- Efficiency: The active learning approach typically required only three iterations to infer the correct task structure, minimizing the burden on the demonstrator.
Conclusion and Future Work
ATIG-DIRL provides a powerful method for learning rewards in logic-heavy, temporally extended tasks. While currently focused on discrete grid worlds, future work aims to extend this framework to continuous state spaces (such as robotic manipulation) and explore even more complex temporal logics. The method's ability to strategically query for information makes it a highly efficient alternative to passive IRL in complex domains.
Summary updated