Introduction
Deep learning has become a powerful tool for learning "policies"—sets of rules that guide an agent's actions in complex environments like robotics or logistics. However, these neural networks often function as "black boxes," making it difficult to understand the reasoning behind their decisions. While existing research has focused on explaining single classifications (e.g., why an image was labeled a certain way), planning tasks involve a sequence of interdependent decisions. This paper introduces a formal framework for generating minimal, human-readable explanations for entire sequences of actions in a planning task.
The Challenge of Sequential Planning
Explaining a single step in a plan is often insufficient. For example, if an AI agent withdraws cash at an ATM before heading to a toll booth, an explanation for the first step ("Why go to the ATM?") must account for the future requirement of the toll booth. We need to identify the specific properties of the initial state—such as "no cash" and "toll booth requires cash"—that triggered the entire chain of events. As the sequence of actions grows, the mathematical complexity of finding a "minimal explanation" typically explodes. This research addresses that complexity by proving that sequence explanations can be decomposed into a series of manageable single-decision checks.
Methods: Forward Decomposition
The authors utilize the concept of Abductive Explanations, which are defined as the smallest set of facts about a state that guarantees the AI will make the same decision, regardless of other details.
The core technical contribution is Forward Decomposition (Theorem 1). The authors prove that explaining a sequence of $n$ actions can be broken down into $n$ individual explanation problems. Instead of solving one massive, intractable model for the entire plan, the algorithm checks each step sequentially.
Key components of the approach include:
- Greedy Search (Algorithm 1): A method that starts with the full state and iteratively removes facts. If the AI's action sequence remains unchanged without a specific fact, that fact is discarded as irrelevant.
- MIP Encoding: The neural network (specifically Action Schema Networks, or ASNets) is translated into a Mixed-Integer Programming (MIP) model. This allows the use of high-performance solvers like Gurobi to formally prove whether a partial state is a sufficient explanation.
- ELU Activation Handling: The researchers developed specific mathematical encodings for Exponential Linear Units (ELU) to ensure compatibility with the MIP solver.
Experimental Setup
The framework was evaluated on four standard AI planning domains:
- Blocksworld: Stacking blocks to reach a target configuration.
- Gripper: A robot moving objects between rooms.
- n-Puzzle: The classic sliding tile puzzle.
- Parking: Maneuvering cars into designated spots.
These policies were trained using the ASNet architecture, which is specifically designed for relational planning tasks.
Key Results
The experiments demonstrated that the proposed method is both efficient and effective at uncovering the logic behind neural policies.
- Conciseness: The "minimal explanations" were significantly smaller than the full input state. In many instances, only 20-40% of the state variables were necessary to justify the plan.
- Efficiency and Scalability: The Forward Decomposition algorithm was 5 to 10 times faster than naive approaches. It successfully generated explanations for plans up to 41 steps long in the Gripper domain, involving over 1,400 calls to the MIP solver.
- Irrelevance Discovery: The algorithm effectively identified "distractor" information. For example, in Blocksworld, it correctly showed that the AI ignored blocks not involved in the current stacking task.
- Bias Exposure: The explanations can reveal if a network has learned flawed logic, such as basing a decision on irrelevant environmental factors (e.g., weather) rather than task-critical state variables.
Discussion and Future Work
While the decomposition significantly improves performance, the underlying MIP solver remains a potential bottleneck for very large or dense neural networks. Currently, the framework assumes a deterministic environment and a symbolic model of the world. Future work aims to extend this logic to stochastic environments where actions may have uncertain outcomes and to support more complex planning languages featuring conditional effects.
Summary updated