Introduction
Traditional AI planning systems often operate under a "closed world" assumption, where a complete sequence of actions is generated based on perfect knowledge before execution begins. However, real-world environments—such as urban navigation or errand running—are inherently dynamic and unpredictable. In these domains, goals are frequently blocked by unforeseen circumstances, such as a closed storefront or a lack of immediate resources.
The challenge lies in how a system should handle these suspended goals. Constant polling of the environment to check for changed conditions is computationally prohibitive. This paper introduces Opportunistic Memory, a framework designed to allow agents to "notice" opportunities to fulfill suspended goals as a low-overhead byproduct of environmental perception.
The Opportunistic Memory Framework
The proposed model integrates planning, memory indexing, and perception into a unified process. It consists of four primary stages:
- Planning-time Suspension: When a goal cannot be immediately achieved, the planner analyzes its preconditions to identify "non-normative" features. These are unique environmental cues—such as specific locations or rare resources—that would signal a viable opportunity for goal fulfillment.
- Episodic Memory Indexing: Suspended goals are stored in episodic memory and indexed by these identified features. For instance, a goal to purchase a specific item is linked to the concept of the relevant retail outlet.
- Execution-time Parsing: As the agent navigates the world, it employs a parser (such as the DMAP marker-passing parser) to recognize environmental features. Because suspended goals are indexed by these same features, the act of recognizing a location or object automatically triggers the activation of the associated goal.
- Opportunity Evaluation: Upon reactivation, the system performs a quick utility check to determine if the opportunity is worth pursuing relative to the current agenda.
Experimental Domains
The framework was implemented and tested in two distinct simulated environments:
- TRUCKER: A route-scheduling system for a delivery service in a simulated map of Chicago. It manages dynamic pickup and delivery requests, allowing the system to optimize routes on the fly as it encounters new opportunities.
- RUNNER: A more complex errand-planning simulation where the agent must balance multiple goals (e.g., commuting, shopping) under various resource and temporal constraints.
Key Insights
The core innovation of this research is the conceptualization of recognition as indexing. By using the same memory structures for both world-parsing and goal storage, the system eliminates the need for dedicated monitoring processes. "Noticing" an opportunity becomes a zero-overhead side effect of the agent's standard perceptual processing.
Furthermore, the paper highlights the importance of a Taxonomy of Opportunities. It argues that indexing should focus on "special" or "rare" features rather than "normative" ones (like having money), as rare features have higher predictive power for identifying specific, actionable opportunities.
Results and Future Directions
In the TRUCKER domain, the system successfully demonstrated "learning from opportunity" by optimizing routes when it noticed future pickup locations during current tasks. In the RUNNER domain, the system successfully recalled suspended goals (like buying groceries) only when passing relevant stores, without active monitoring.
While effective, the system's performance is tied to the sophistication of its world-parsing capabilities. If the agent fails to recognize a specific landmark, the memory link will not fire. Future work aims to expand the taxonomy of opportunity types and improve the integration of opportunistic goals with complex resource-conflict resolution strategies.
Summary updated