Abstract
Inferring complex, history-dependent task specifications from human demonstrations is a significant challenge in robotics, particularly when demonstrations are noisy or unsuccessful. This paper introduces a novel framework that combines the Principle of Maximum Causal Entropy (MCE) with Binary Decision Diagrams (BDDs) to learn non-Markovian Boolean task specifications. By leveraging BDDs for state-space compression, the authors transform an exponentially difficult inference problem into one that scales polynomially, enabling robust learning in stochastic environments.
Introduction
In traditional Inverse Reinforcement Learning (IRL), rewards are typically assumed to depend only on the current state. However, many real-world tasks are non-Markovian, requiring an understanding of temporal logic (e.g., "visit A then B, but never C"). Learning these specifications is hindered by two primary obstacles:
- The Curse of History: Accounting for temporal dependencies usually requires "unrolling" the environment over time, leading to an exponential explosion in the state space.
- Stochasticity: Real-world environments involve noise (e.g., an agent slipping). Models that assume perfect optimality often misinterpret environmental noise as intentional behavior.
While Maximum Entropy approaches have been used to handle noise, they often fail in stochastic settings by assuming the agent has non-causal knowledge of the future. This work addresses these gaps by modeling agents that make decisions based only on past and present information.
Methodology
The proposed pipeline integrates formal methods with probabilistic machine learning through several key innovations:
Maximum Causal Entropy (MCE)
Unlike standard MaxEnt, MCE models an agent whose decisions are conditioned strictly on the history of states and actions. This provides a more realistic and robust estimation of task likelihood in unpredictable environments.
BDD-based Compression
The "secret sauce" of this approach is representing the time-unrolled environment and task logic as a Reduced Ordered Binary Decision Diagram (BDD). The authors prove that for tasks monitorable by finite automata, the BDD size grows linearly with time, effectively bypassing the curse of history. These BDDs serve as efficient computation graphs for Bellman backups.
SAT-based Trace Encoding
To evaluate real-world demonstrations against the compressed BDD, the system uses SAT solvers to identify sequences of environmental "coin flips" (stochastic events) consistent with the observed data.
Experimental Evaluation
The method was evaluated using a Stochastic Gridworld benchmark. The environment consists of various tile types, including "lava" (red) and "recharge" (yellow). The agent faces a 1/32 chance of "slipping" in a random direction regardless of the chosen action.
Demonstrations included a set of six unlabeled traces, some of which were "failed" attempts where the agent repeatedly slipped and could not complete the task within the time horizon.
Key Results
- Learning from Failure: Due to the causal nature of the model, the system correctly inferred that an agent intended to avoid lava even if it eventually fell into it due to environmental slips. It successfully recognizes the intent behind the struggle.
- Computational Efficiency: In the gridworld experiments, the BDD-based policy computation was significantly more compact than explicit state-space approaches. For a 10-step horizon, an explicit product required over 2,500 states, while the BDD remained at only 577 nodes for complex tasks.
- Accuracy: The causal model correctly identified the true task specification ($\phi^*$) as the most likely candidate. In contrast, a non-causal baseline model ranked the true task as the least likely because it could not account for the agent's inability to predict future slips.
Conclusion and Future Work
This work demonstrates that combining MCE with BDDs allows for the efficient inference of complex logic-based tasks from noisy data. Future research will focus on expanding the "concept class" to allow the system to discover new logic formulas autonomously, refining prior probabilities to prevent overfitting with sparse data, and extending the BDD approach to continuous state spaces common in robotics.
Summary updated