NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Effective Search Heuristics

Pat LangleyIJCAI 1983

In the field of Artificial Intelligence, search remains a fundamental mechanism for problem-solving. However, a significant gap exists between a "novice" agent, which relies on exhaustive, blind search strategies like breadth-first search, and an "expert" agent, which utilizes heuristics to prune irrelevant paths. Pat Langley’s SAGE.2 system addresses this gap by providing a framework for the automated acquisition of search heuristics through practice.

The Challenge of Heuristic Acquisition

An expert problem solver does not merely search; they recognize patterns that suggest which moves are likely to lead to a solution. The primary challenge in building such systems is determining how an agent can observe its own performance and deduce why specific actions were successful while others were errors. Previous attempts at learning heuristics often struggled with disjunctive rules (logic requiring "OR" conditions) or lacked the robustness to handle noisy data. SAGE.2 was designed as a general-purpose learner capable of refining its strategy across diverse puzzle domains.

The SAGE.2 Architecture

SAGE.2 is implemented as a production system—a set of "if-then" rules that govern behavior. The system evolves from a novice to an expert through three integrated mechanisms:

  1. Weighted Search: Initially, all legal moves are assigned equal weight, resulting in a breadth-first search. As the system identifies successful rules, it increases their weights, biasing future searches toward these proven strategies.
  2. Credit and Blame Assignment: To learn, the system must distinguish between "good" and "bad" moves. It employs two methods for this:
  3. Post-hoc Analysis: After reaching a goal, it labels moves on the solution path as positive and off-path moves as negative.
  4. Internal Heuristics: The system uses domain-independent logic to identify errors mid-search, such as detecting loops or reaching states from which no solution is possible.
  5. The Discrimination Process: This is the core learning engine. When SAGE.2 identifies a successful move and a corresponding mistake from the same state, it compares the "selection context" (the state during the good move) with the "refection context" (the state during the bad move). By identifying the specific differences between these contexts, SAGE.2 creates more restrictive, specialized rules that avoid previous errors.

Experimental Evaluation

The SAGE.2 system was evaluated across five distinct symbolic logic domains:

  • Tower of Hanoi: A classic disk-stacking puzzle.
  • Slide-Jump Puzzle: A coin-positioning task.
  • Tiles and Squares: A sliding tile puzzle.
  • Mattress Factory: A complex scheduling and personnel logic puzzle.
  • Piaget’s Length Seriation: A task involving the ordering of blocks by height.

Key Insights and Results

SAGE.2 demonstrated a remarkable ability to refine its search behavior through experience. In the Tower of Hanoi task, the system's first attempt required 56 moves to find a solution. By its fourth attempt, SAGE.2 had refined its production rules to the point of achieving the solution in the minimum number of moves with zero false steps.

Beyond simple efficiency, the system showed evidence of generality and scaling. Heuristics learned on a 3-disk Tower of Hanoi were successfully applied to solve a 4-disk version. Furthermore, in the "Tiles and Squares" puzzle, SAGE.2 demonstrated goal-state transfer; by representing the goal state within its working memory, it could apply learned strategies to problems with entirely different initial and target configurations.

Unlike many contemporary systems that focused on generalization (finding commonalities among all good moves), SAGE.2’s focus on discrimination (finding what makes a good move different from a bad one) allowed it to learn complex, disjunctive heuristics. Its reliance on statistical weighting also made it robust against occasional errors in credit assignment.

Limitations and Future Directions

While SAGE.2 proved effective across multiple domains, it faced challenges in transferring knowledge when the fundamental structure of a puzzle changed significantly. Additionally, while the puzzles tested were logically rigorous, they do not match the complexity of high-level games like Chess. Langley suggested that future iterations should incorporate "subgoals," allowing the system to apply its credit-assignment logic to smaller milestones within a larger problem, which would significantly enhance its power in long-form tasks.

Summary updated

BibTeX
@inproceedings{langley1983learning,
  author = {Pat Langley},
  title = {{Learning Effective Search Heuristics}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1983},
}
Figure