Learning to select computations

Frederick Callaway, Sayan Gul, Paul M. Krueger, Thomas L. Griffiths, Falk Lieder

Abstract

Intelligent agents must manage limited computational resources by deciding which internal computations are most valuable. This paper introduces Bayesian Metalevel Policy Search (BMPS), a domain-general algorithm that learns to optimize an agent's thought process. By framing metareasoning as a Metalevel Markov Decision Process and using Bayesian Optimization to weight key features like the Value of Perfect Information, BMPS achieves near-optimal performance across diverse tasks, significantly outperforming standard Deep Reinforcement Learning and myopic heuristics.

Introduction: The Challenge of Rational Metareasoning

In both artificial and biological systems, computational resources are finite. A truly intelligent agent must be selective about its "thoughts," balancing the potential for better decision-making against the cost of the time spent thinking. This is the core problem of rational metareasoning.

Theoretically, an agent should select computations that maximize the Value of Computation (VOC). However, calculating the true VOC is often more computationally expensive than the original problem itself (NP-hard). Existing approaches typically rely on myopic heuristics, which only look one step ahead and often stop prematurely, or hard-coded approximations that fail to generalize across different domains.

The BMPS Framework

The authors frame metareasoning as a Metalevel Markov Decision Process (nMDP). In this framework, internal computations are treated as actions, and the reward is the eventual real-world payoff minus the cost of deliberation.

The core of the proposed approach, BMPS, approximates the VOC using a weighted combination of four key features:

  1. $VOI_1$ (Myopic Value): The expected benefit of performing exactly one more computation.
  2. $VPI$ (Value of Perfect Information): The maximum possible benefit if all uncertainty were resolved.
  3. $VPI_{sub}$: The value of perfect information for a specific subset of relevant variables.
  4. $Cost$: The immediate resource cost of the computation.
The expected increase in reward for a sequence of computations is bounded between the myopic VOI1 and the VPI.

A critical insight of this work is the "Bound Insight": the value of a sequence of thoughts is almost always bounded between the myopic value ($VOI_1$) and the value of perfect information ($VPI$). By searching for a policy within these bounds using Bayesian Optimization, BMPS can learn a high-performing strategy with very few samples.

Experimental Evaluation

The authors evaluated BMPS across several scenarios, ranging from simple binary predictions to complex planning tasks and a realistic emergency management simulation involving tornado evacuations. BMPS was compared against several baselines, including myopic "meta-greedy" heuristics, standard Deep Q-Networks (DQN), and the theoretically optimal policy.

Metareasoning performance of BMPS compared to other strategies across varying computation costs.

Key Results and Insights

  • Near-Optimality and Scaling: In meta-decision-making tasks, BMPS achieved 99.1% of the performance of the optimal policy. Unlike myopic strategies, BMPS maintained its advantage as the complexity (number of options or tree depth) increased.
  • Efficiency over Deep RL: BMPS significantly outperformed DQN. While the DQN struggled to learn the nuances of the metalevel MDP even after 200,000 episodes, BMPS found near-optimal policies in fewer than 10 iterations.
  • Practicality: In the tornado scenario, BMPS proved that "thinking about what to simulate" leads to better outcomes than uniform allocation, even when accounting for the overhead of the metareasoning algorithm itself.

Conclusion

BMPS represents a significant step toward general-purpose rational metareasoning. By leveraging the bounds of computation value and efficient Bayesian Optimization, it provides a scalable way for agents to learn how to think effectively. Future work may explore learning these features via Deep RL for even more complex environments or using BMPS to model human cognitive processes.

Summary updated

BibTeX
@inproceedings{callaway2018learning,
  author = {Frederick Callaway and Sayan Gul and Paul M. Krueger and Thomas L. Griffiths and Falk Lieder},
  title = {{Learning to select computations}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=dMXYb_-Th2U},
}
Figure