Selectively Generalizing Plans for Problem-Solving

TL;DR

This paper tackles the problem of "plan explosion" in AI problem-solvers, where storing too many generalized solutions (macros) can actually slow down performance. The authors introduce MORRIS, a system that selectively learns only the useful parts of solutions, using two criteria: frequency of use (s-macros) and effectiveness in solving difficult subproblems (t-macros). This selective learning approach significantly improves problem-solving efficiency compared to systems that store all possible generalized solutions.

What Problem Does This Paper Address?

Machine learning systems that learn from experience by generalizing past solutions (plans) to improve future performance face a significant challenge: the "plan explosion" paradox. As a system solves more problems, it accumulates a vast library of generalized plans, or "macros." Searching through this ever-growing library to find the most relevant macro for a new problem can become as computationally expensive as solving the problem from scratch. In extreme cases, this can lead to performance degradation, making the learning system worse than a non-learning one. This paper investigates this degradation problem in STRIPS-like systems and proposes a solution through selective learning.

Methods

The paper introduces MORRIS, a heuristic problem-solver that selectively learns plan fragments. MORRIS distinguishes between two types of learned knowledge:

  • S-Macros (Scripts): These are operator sequences that are frequently used. MORRIS identifies common subsequences across newly acquired solutions and the existing library. A limit is maintained on the number of s-macros, and least-used ones are pruned to keep the set manageable.
  • T-Macros (Tricks): These are operator sequences that are particularly helpful in solving difficult subproblems. MORRIS uses a heuristic evaluation function, Hdiff, to estimate the progress an operator or macro makes towards solving current goals. Hdiff considers the number and criticality of remaining goals. T-macros are generated for solutions that involve overcoming difficult subproblems or re-ordering interacting goals, which often result in low initial heuristic ratings but are crucial for eventual success.

MORRIS employs a best-first search strategy, guided by Hdiff. When a solution is found, it's analyzed to extract s-macros and t-macros.

Datasets

The paper describes experiments conducted in a simulated "robot world" with 26 operators. This world is similar to the STRIPS experimental domain but is richer, featuring multiple rooms, doors, objects, and interactions like pushing boxes, using tools, and manipulating lights. Sample problems included tasks like navigating rooms, manipulating objects, and solving problems with interacting goals. The experiments used a series of 25 problems.

Key Insights and Ideas

  • The "Plan Explosion" is Real: Storing all generalized solutions can overwhelm a system, negating the benefits of learning.
  • Selective Learning is Crucial: Not all learned knowledge is equally valuable. MORRIS's success hinges on its ability to identify and retain only the most useful plan fragments.
  • Frequency vs. Difficulty: MORRIS uses two distinct criteria for learning: how often a plan fragment is used (s-macros) and how effectively it solves hard problems (t-macros). This dual approach captures different aspects of useful knowledge.
  • T-Macros as "Heuristic Boosters": T-macros are particularly effective because they capture solutions to tricky situations that might otherwise mislead a heuristic search. By providing a better estimate for these difficult paths, t-macros prevent the system from getting stuck in local optima or exploring unproductive branches for too long.
  • Balancing Knowledge and Search: MORRIS aims to strike a balance between relying on stored knowledge (macros) and performing explicit search. This prevents the system from becoming overly reliant on potentially flawed heuristics or bogged down by an excessive number of learned rules.

Key Results

MORRIS demonstrated significant performance improvements over a less-selective learner (MAX) and a non-learning system.

  • Reduced Search Space: MORRIS evaluated fewer branches and nodes compared to MAX, indicating a more efficient exploration of the problem space.
  • Faster Problem Solving: For many problems, MORRIS found solutions much faster than MAX. In some cases, MAX was even slower than the non-learning system due to its extensive macro-evaluation.
  • Effective T-Macros: The paper highlights that t-macros were particularly instrumental in solving more complex problems, especially those involving interacting goals, where they helped overcome initial heuristic misjudgments.
  • S-Macros' Contribution: While s-macros were more frequently useful, they provided less dramatic gains compared to t-macros. Occasionally, the overhead of checking s-macros even slowed MORRIS down slightly.

Limitations and Future Work

  • Limitations: The paper acknowledges that the experimental results are based on a specific robot world and a limited set of problems, suggesting that more extensive experiments are needed for broader validation. The authors also note that MORRIS doesn't fully analyze why an interaction occurred when generating t-macros, relying on a slightly weaker form of generalization to ensure applicability.
  • Future Work: The authors suggest improving MORRIS by having it explicitly reason about the utility of control knowledge to guide its learning process. They believe that as machine learning matures, understanding "what is worth learning" will become increasingly important.

Summary updated

BibTeX
@inproceedings{1985selectively,
  title = {{Selectively Generalizing Plans for Problem-Solving}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1985},
}
Figure