FLECS: Planning with a Flexible Commitment Strategy

Manuela M. Veloso, Peter Stone

Introduction

In the early 1990s, the field of artificial intelligence planning was characterized by a fundamental tension between two competing philosophies: "least-commitment" and "eager-commitment." Least-commitment planners, such as SNLP, sought to delay ordering decisions as long as possible to avoid unnecessary backtracking. Conversely, eager-commitment planners, exemplified by the PRODIGY architecture, made choices early to exploit state-based information.

In their 1995 paper published in the Journal of Artificial Intelligence Research, Manuela Veloso and Peter Stone introduced FLECS (FLExible Commitment Strategy). FLECS demonstrated that the optimal strategy is not a fixed choice between these two extremes but rather a dynamic capability to switch between them based on the specific constraints of the problem domain.

The Commitment Dilemma

The prevailing "gold standard" of the era was the least-commitment strategy. By refusing to decide the sequence of actions until absolutely necessary, these planners avoided "over-commitment"—the trap of choosing a specific path that later proves incompatible with other goals. However, this flexibility came at a cost: by delaying action ordering, these planners could not maintain a coherent "current state" of the world. Without a state, they were unable to utilize powerful heuristics to guide their search.

Eager-commitment planners, on the other hand, maintained a clear internal state, allowing them to reason about resource availability and goal satisfaction. However, they were prone to significant backtracking if an early commitment to an action sequence turned out to be incorrect. The authors observed that neither strategy was universally superior; the "best" approach was contingent upon the structure of the planning domain.

The FLECS Architecture

FLECS was built upon the PRODIGY4.0 architecture and introduced a toggle variable that allows the planner to switch between two primary modes:

  1. Subgoaling (sub): This mode emulates a delayed-commitment strategy. The planner focuses on the requirements (the "tail" of the plan) without immediately determining the execution order.
  2. Applying (app): This mode emulates an eager-commitment strategy. The planner "executes" an operator within a simulated internal state, allowing it to update its world view and reason from a new perspective.

Crucially, FLECS can change this toggle at any point—whether between different problems or even during the resolution of a single complex problem. By maintaining a simulated internal state, FLECS can check operator applicability and goal satisfaction in sub-quadratic time, providing a significant efficiency advantage over planners that do not track state.

Experimental Evaluation and Results

The authors evaluated FLECS across three artificial domains designed to highlight the strengths and weaknesses of different commitment strategies:

  • The "Light-to-Dark" Painting Domain ($D^m S^1$): In this domain, actions must follow a strict sequence (e.g., painting a surface white before painting it black). Eager commitment led to exponential time increases as goals scaled, while the delayed-commitment (subgoaling) strategy solved the problems in linear time.
  • The $D^1$-use-once Domain: Here, many operators can achieve a goal, but resources are limited (e.g., single-use brushes). In this scenario, delayed commitment exploded exponentially, while eager commitment remained linear and efficient.
  • The "Painting with Rollers" Domain: This complex domain involves irreversible actions and limited resources. Neither pure strategy could solve the problem within a 500-second limit. However, by utilizing a variable strategy—switching the toggle at the appropriate moment—FLECS identified the optimal solution in just 4 seconds.

Key Insights

The research provided several pivotal insights for the field:

  • The End of Dogma: The study debunked the notion that least-commitment is inherently superior. It clarified that "eager" strategies excel when operator choice is difficult, while "delayed" strategies are better when action ordering is the primary challenge.
  • State as a Heuristic: Maintaining an internal state is more than bookkeeping; it is a heuristic tool that reveals "threats" and opportunities invisible to plan-space planners.
  • Learning Opportunities: The sub/app toggle serves as an ideal target for machine learning, suggesting that future systems could learn to map domain characteristics to specific commitment strategies.

Conclusion

FLECS remains a landmark in AI planning for its rejection of algorithmic rigidity. By proving that flexibility in commitment is essential for efficiency across diverse domains, Veloso and Stone paved the way for more adaptive, state-aware planning systems. Future work suggested by the authors included automating the strategy-switching process through learning and extending flexibility to variable bindings rather than just action ordering.

Summary updated

BibTeX
@article{veloso1995flecs,
  author = {Manuela M. Veloso and Peter Stone},
  title = {{FLECS: Planning with a Flexible Commitment Strategy}},
  journal = {J. Artif. Intell. Res.},
  year = {1995},
  doi = {10.1613/jair.131},
}
Figure