Abstract
Metareasoning—the process by which an agent decides how to allocate its limited computational resources—is a critical component of bounded rationality. While often employed to enhance efficiency, the underlying computational complexity of metareasoning itself has remained largely unexamined. This paper formally defines three fundamental metareasoning problems: allocating time to anytime algorithms, evaluating potential actions, and disambiguating world states. We demonstrate that even under highly restrictive conditions, these problems are generally NP-complete or PSPACE-hard, suggesting that the control layer of an intelligent agent can be as complex as the primary task it seeks to optimize.
Introduction
In artificial intelligence, agents are frequently constrained by "bounded rationality," meaning they lack the infinite time or memory required to compute optimal solutions. Metareasoning serves as a decision-theoretic control layer, selecting which deliberation or information-gathering actions are most valuable. However, a fundamental paradox arises: if the process of deciding "what to think about" is itself computationally expensive, the benefits of metareasoning may be negated. This research establishes the formal complexity of these control problems.
Allocating Anytime Algorithm Time
One of the most common metareasoning tasks is deciding how to distribute a fixed time budget $N$ across multiple "anytime" algorithms. These algorithms provide increasingly better solutions the longer they run, characterized by a "performance profile."
The authors prove that even if performance profiles are perfectly predictable (deterministic), the allocation problem is NP-complete, reducible from the Knapsack problem. While the problem is solvable in polynomial time if all profiles are concave (exhibiting diminishing returns from the start), real-world algorithms often feature "setup phases" or discrete jumps in performance, as seen in Figure 1. These non-concavities immediately trigger computational hardness.
Action Evaluation and State Disambiguation
Beyond time allocation, agents must often decide which potential actions to evaluate or which environmental uncertainties to resolve.
Action Evaluation
When an agent has time to evaluate only a subset of possible actions, it must choose the most promising ones to "test." Even when evaluation trees are shallow and outcomes are simple (e.g., -1, 0, or 1), the problem of selecting the optimal set of actions to evaluate is NP-hard.
State Disambiguation
In scenarios where an agent is uncertain about the true state of the world, it must choose a sequence of queries to maximize expected utility. The paper distinguishes between static choice (deciding all queries in advance) and dynamic choice (deciding the next query based on previous results). Dynamic disambiguation is shown to be PSPACE-hard, placing it in a significantly higher complexity class than NP. This implies that finding an optimal strategy for "clearing up confusion" is one of the most taxing challenges a bounded agent faces.
Complexity Hierarchy
The paper establishes a clear hierarchy of hardness for metareasoning tasks:
- Performance Profile Allocation: NP-complete.
- Action Evaluation: NP-hard.
- State Disambiguation: NP-hard for restricted cases; PSPACE-hard for general dynamic strategies.
Conclusion
The findings suggest that metareasoning is not a "free lunch." Because the optimal allocation of deliberation is often intractable, agents must rely on heuristics or approximation algorithms. The research highlights the "infinite regress" problem: if metareasoning is hard, should an agent metareason about its metareasoning? While theoretically possible, the authors suggest that practical AI design must focus on fast, approximately optimal control strategies rather than searching for the elusive perfect allocation.
Summary updated