Performance in Practical Problem Solving

Leo B. Hartman, Josh D. Tenenberg

Introduction

In the late 1980s, AI research faced a significant challenge: many critical problems were computationally intractable (NP-hard). Standard complexity theory, which focuses on worst-case scenarios, often resulted in overly pessimistic designs. This paper argues for a shift in evaluation, proposing that AI agents should be measured by their total resource expenditure over a distribution of real-world problems rather than theoretical worst-case bounds.

Methodology: Cost Metrics and Hybrid Sequences

The authors identify a gap in AI system design where performance choices—such as heuristic selection or representation restrictions—are often based on implicit assumptions about the problem environment. To make these trade-offs explicit, they introduce a decision-theoretic approach to algorithm selection.

A key insight is that the "recognition task"—identifying the specific type or difficulty of a problem—is itself a computational task with an associated cost. A large library of specialized algorithms is only beneficial if the cost of selecting the right one does not exceed the speedup it provides.

The Subsumption Property

Central to this approach is the concept of a hybrid algorithm: a sequence of solvers ($A_1, A_2, \dots, A_n$) where each subsequent solver is more general than the last. This follows the subsumption property, where each algorithm in the chain is guaranteed to solve at least the same set of problems as its predecessor, but likely requires more resources.

The base object (an L-shape) and its simplified representations used for fast collision checking.

An agent begins with the fastest, most specialized solver. If it fails, the agent falls back to the next, more general solver in the chain. This hierarchy allows the agent to exploit "easy" instances of hard problems without incurring the overhead of a general-purpose engine.

Case Study: Robotic Motion Planning

The framework is illustrated through a motion-planning scenario where a robot must navigate an environment. The agent uses a sequence of solvers that employ increasingly detailed geometric approximations of the robot and its surroundings.

Comparison of different approximation strategies for motion planning: circular (left), polygonal (middle), and grid-based (right).

As shown in the figures, a simple circular approximation (the fastest solver) can successfully find paths in open spaces. More complex polygonal or grid-based representations are only invoked when the environment becomes constrained, ensuring that high-precision calculations are only performed when necessary.

Key Insights

  • Search Cost vs. Path Cost: Unlike the A* algorithm, which optimizes for the shortest path, this framework accounts for the "cost of the search itself," including CPU cycles and memory spent on dead ends.
  • Environmental Invariants: If the distribution of problems in an environment is stable, agents can be designed to exploit these frequencies to minimize expected resource drain.
  • Worst-Case vs. Average-Case: In practice, the "worst case" may occur rarely. An agent that optimizes for the average case across its specific environment will outperform one designed solely for theoretical bounds.

Conclusion

The paper provides a mathematical foundation for calculating the Expected Cost per Problem ($C_s(H)$). It demonstrates that hybrid algorithms are optimal when the cost of a specialized solver plus its failure risk is less than the cost of a general solver. While the framework currently assumes stationary problem distributions and relies on manual design, it lays the groundwork for future "introspective" agents capable of autonomously adjusting their control strategies to minimize resource usage.

Summary updated

BibTeX
@inproceedings{hartman1987performance,
  author = {Leo B. Hartman and Josh D. Tenenberg},
  title = {{Performance in Practical Problem Solving}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}

Loading related content...

Figure