Abstract
This paper formalizes the "Planning while Learning" (PwL) framework, addressing scenarios where an agent must achieve a specific goal within an environment governed by unknown but bounded rules. We explore the computational complexity of both generating and verifying plans in these systems. While finding a guaranteed plan is shown to be NP-hard, verifying the validity of a proposed plan remains efficient (polynomial time) for most practical system classes. These results provide a theoretical foundation for human-in-the-loop AI systems, where human experts propose strategies and automated systems provide rigorous verification.
Introduction
In classical AI planning, agents typically operate under the assumption of perfect environmental knowledge—every action has a predictable outcome. Conversely, pure machine learning often focuses on exploration without the immediate pressure of a critical goal. Safra and Tennenholtz bridge this gap by introducing the Planning while Learning (PwL) framework.
In a PwL system, an agent must navigate an environment where the underlying rules (transition functions) are unknown but belong to a known set of possibilities. This is analogous to a medical professional treating a trauma patient: while the exact internal injuries are unknown, the set of potential conditions is bounded. Every diagnostic test or treatment serves a dual purpose—providing information about the patient's state (learning) while moving them toward stability (planning).
The PwL Framework
The authors define a PwL system through several key components:
- The Model: The environment possesses a set of possible behaviors. Only one behavior is active, but the agent must deduce which one through interaction.
- The Plan: Unlike a simple sequence of actions, a plan in this context is a decision tree. The agent’s next move is conditioned on the entire history of observations and transitions encountered so far.
- System Categorization: The research classifies systems based on their scale:
- Moderate: Polynomial number of states and behaviors.
- Quasi-Moderate: Exponential number of states (reflecting real-world complexity) but a polynomial number of possible behaviors.
- General: Exponential number of both states and behaviors.
Key Insights: The Verification Gap
The central contribution of this work is the distinction between the complexity of synthesis and verification. The authors identify a significant "Verification Gap" that has profound implications for AI safety and design.
The Intractability of Discovery
Theorem 5.1 proves that finding a "satisfactory" plan—one that guarantees success across all possible environmental behaviors—is NP-hard, even for Moderate systems. This suggests that creating a general-purpose algorithm to autonomously generate foolproof plans in uncertain environments is computationally unfeasible for complex systems.
The Tractability of Verification
In contrast, Theorems 4.3 and 4.4 demonstrate that verifying a plan is surprisingly efficient. For Moderate and Quasi-Moderate systems, a computer can check if a proposed plan is foolproof in polynomial time. This is possible because learning is monotonic; in a system with $s$ possible behaviors, the agent can only encounter a "surprising" observation that narrows down the possibilities at most $s-1$ times. This allows for a concise representation of plans as compact tables of histories.
The "Missouri Program"
These results provide theoretical support for the "Missouri Program" of AI development. Named after the "Show Me" state, this approach suggests a division of labor: human experts (or heuristic-based AI) suggest a plan, and the formal AI system rigorously checks it for potential failures. Because verification is computationally "easy" (P) while discovery is "hard" (NP), this collaborative model maximizes the strengths of both human intuition and machine rigor.
Multi-Agent Robustness
The framework also extends to multi-agent scenarios. The authors show that even when an agent is uncertain about a competitor's starting position or specific objectives, verification remains efficient as long as the range of possible behaviors remains bounded. This suggests that the PwL framework is robust enough to handle adversarial or cooperative multi-agent dynamics.
Limitations and Future Directions
While the paper establishes a strong theoretical baseline, it notes several areas for expansion:
- Binary Success: The current model focuses on plans that guarantee success. Future work is needed to address "fractional" success or probabilistic guarantees (e.g., a plan that works 99% of the time).
- Finite Behaviors: The assumption of a finite set of behaviors excludes continuous state spaces or environments where rules evolve dynamically over time.
- Autonomous Bottlenecks: The NP-hardness of plan discovery remains a hurdle for fully autonomous systems. Future research may focus on approximation algorithms or heuristics that can bridge the gap between intractability and practical application.
Summary updated