Introduction
In the late 1980s, artificial intelligence faced a significant challenge: balancing complex, logical planning with the need for real-time reactivity in dynamic environments. Traditional planning systems were often too slow and "brittle" for real-world applications, while purely reactive systems lacked sophisticated reasoning capabilities. This paper introduces the Procedural Reasoning System (PRS), a framework designed to bridge this gap. PRS enables an agent to remain committed to long-term goals while responding nearly instantaneously to unexpected changes, a necessity for high-stakes environments like NASA’s Space Shuttle systems.
The PRS Architecture
The core of PRS is an architecture that manages "embedded reasoning"—the process by which an agent with limited computational resources decides when to deliberate and when to act. Unlike traditional planners that attempt to generate a complete sequence of actions before execution, PRS employs a more flexible structure.
As shown in the architecture diagram, the system consists of several primary components:
- Database (Beliefs): Stores current facts about the world, such as sensor readings or internal states.
- Goals: Defines the desired states the system aims to achieve.
- Knowledge Areas (KAs): These are procedural "plans" or "scripts" that describe how to achieve specific goals or react to particular situations. Each KA includes an invocation condition and a body of steps.
- Intention Structure: A dynamic set of KAs currently selected for execution.
- Interpreter (Reasoner): The central engine that manages the interaction between these components.
A key innovation is the use of metalevel reasoning. PRS includes metalevel KAs that reason about other KAs. If multiple plans are applicable to a situation, a metalevel KA can intervene to select the optimal path based on priorities or time constraints, allowing the system to "think about how to think" without becoming paralyzed by indecision.
Operational Principles
PRS operates on several key insights that distinguish it from classical AI architectures:
- Partial Planning: The system does not require a complete plan from start to finish. It commits to high-level procedures and refines subgoals during execution, allowing it to incorporate new information in real-time.
- Commitment and Filtering: The Intention Structure acts as a filter, limiting the amount of re-planning required at each step. This commitment is essential for meeting strict real-time deadlines.
- Guaranteed Reactivity: The authors provide a mathematical basis for reactivity, demonstrating that the system can be guaranteed to respond to external events within a bounded time interval, provided the event rate remains below a specific threshold.
- Bold vs. Cautious Behavior: The system's behavior can be tuned by adjusting metalevel KAs. A "bold" configuration reacts instantly using defaults, while a "cautious" configuration spends more time weighing alternatives.
Evaluation and Results
The PRS framework was evaluated using complex simulations, most notably the NASA Space Shuttle Reaction Control System (RCS). This application involved over 100 KAs and 1,000 facts to model a propulsion system.
Key results from these evaluations include:
- Robust Malfunction Handling: PRS successfully detected and recovered from various failures, including sensor faults and leaking components.
- Real-Time Performance: In the shuttle simulation, the system achieved a reactivity delay of no more than 0.2 seconds even with an event rate of 5 events per second.
- Operational Robustness: The system met critical criteria for real-time reasoning, including the ability to handle asynchronous inputs and shift focus during emergencies.
Limitations and Future Directions
While PRS represents a significant step forward, it relies heavily on pre-defined Knowledge Areas, making knowledge engineering a substantial manual task for complex domains. Furthermore, the paper notes that designing optimal algorithms to balance deliberation against time constraints remains an open research area. Future work could explore how such systems might learn new KAs or optimize metalevel decision-making through experience rather than manual coding.
Summary updated