Exploring the hierarchical structure of human plans via program generation
Authors: Carlos G. Correa, Sophia Sanborn, Mark K. Ho, Frederick Callaway, Nathaniel D. Daw, Thomas L. Griffiths
Abstract
Human behavior is inherently hierarchical, resulting from the decomposition of a task into subtasks or an abstract action into concrete actions. However, behavior is typically measured as a sequence of actions, which makes it difficult to infer its hierarchical structure. In this paper, we explore how people form hierarchically-structured plans, using an experimental paradigm that makes hierarchical representations observable: participants create programs that produce sequences of actions in a language with explicit hierarchical structure. This task lets us test two well-established principles of human behavior: utility maximization (i.e. using fewer actions) and minimum description length (MDL; i.e. having a shorter program). We find that humans are sensitive to both metrics, but that both accounts fail to predict a qualitative feature of human-created programs, namely that people prefer programs with reuse over and above the predictions of MDL. We formalize this preference for reuse by extending the MDL account into a generative model over programs, modeling hierarchy choice as the induction of a grammar over actions. Our account can explain the preference for reuse and provides the best prediction of human behavior, going beyond simple accounts of compressibility to highlight a principle that guides hierarchical planning.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Discovery of hierarchical representations for efficient planningMomchil S. Tomov, Samyukta Yagati, Agni Kumar et al. · 2018 · bioRxiv · cited 98 times · Not summarized yet
Discovery of hierarchical representations proposes a Bayesian account of how people identify useful abstractions for planning, which this paper cites.
Abstract
We propose that humans spontaneously organize environments into clusters of states that support hierarchical planning, enabling them to tackle challenging problems by breaking them down into sub-problems at various levels of abstraction. People constantly rely on such hierarchical presentations to accomplish tasks big and small – from planning one’s day, to organizing a wedding, to getting a PhD – often succeeding on the very first attempt. We formalize a Bayesian model of hierarchy discovery that explains how humans discover such useful abstractions. Building on principles developed in the robotics literature, the model predicts that hierarchy discovery should be sensitive to the topologica…
-
Learning a Hierarchical Planner from Humans in Multiple GenerationsLeonardo Hernandez Cano, Yewen Pu, Robert D. Hawkins et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 2 times · Not summarized yet
Learning a Hierarchical Planner from Humans in Multiple Generations develops a program-learning system with a library of task decompositions and a hierarchical planner.
Abstract
A typical way in which a machine acquires knowledge from humans is by programming. Compared to learning from demonstrations or experiences, programmatic learning allows the machine to acquire a novel skill as soon as the program is written, and, by building a library of programs, a machine can quickly learn how to perform complex tasks. However, as programs often take their execution contexts for granted, they are brittle when the contexts change, making it difficult to adapt complex programs to new contexts. We present natural programming, a library learning system that combines programmatic learning with a hierarchical planner. Natural programming maintains a library of decompositions, con…
-
Optimal Behavioral HierarchyAlec Solway, Carlos Diuk, N. Córdova et al. · 2014 · PLoS Comput. Biol. · cited 178 times · Not summarized yet
Optimal Behavioral Hierarchy gives a mathematical account of choosing useful action hierarchies, a related foundation cited by this paper.
Abstract
Human behavior has long been recognized to display hierarchical structure: actions fit together into subtasks, which cohere into extended goal-directed activities. Arranging actions hierarchically has well established benefits, allowing behaviors to be represented efficiently by the brain, and allowing solutions to new tasks to be discovered easily. However, these payoffs depend on the particular way in which actions are organized into a hierarchy, the specific way in which tasks are carved up into subtasks. We provide a mathematical account for what makes some hierarchies better than others, an account that allows an optimal hierarchy to be identified for any set of tasks. We then present r…
-
Looking deeper into the algorithms underlying human planning.Ionatan Kuperwajs, Evan M. Russek, M. Mattar et al. · 2025 · Trends in Cognitive Sciences · cited 6 times · Not summarized yet
Looking deeper into the algorithms underlying human planning reviews computational accounts of human planning, including search methods and normative models.
Abstract
Humans possess a remarkable ability to form sophisticated multi-step plans even in complex environments. In this review article, we consider efforts that attempt to characterize the mechanisms underlying human planning using a computational framework, primarily focusing on methods that search a tree of possible solutions. These studies range from experimental probes for heuristics that people employ while thinking ahead to normative models for reducing the computational costs of planning. Additionally, we examine the recent successes of artificial intelligence in the domain of planning and how these innovations can be applied to better understand human sequential decision-making. As examples…
-
Representational efficiency outweighs action efficiency in human program inductionS. Sanborn, David D. Bourgin, Michael Chang et al. · 2018 · Annual Meeting of the Cognitive Science Society · cited 10 times · Not summarized yet
Representational efficiency outweighs action efficiency studies how people learn hierarchical representations through program induction and compares representational with action efficiency.
Abstract
The importance of hierarchically structured representations for tractable planning has long been acknowledged. However, the questions of how people discover such abstractions and how to define a set of optimal abstractions remain open. This problem has been explored in cognitive science in the problem solving literature and in computer science in hierarchical reinforcement learning. Here, we emphasize an algorithmic perspective on learning hierarchical representations in which the objective is to efficiently encode the structure of the problem, or, equivalently, to learn an algorithm with minimal length. We introduce a novel problem-solving paradigm that links problem solving and program ind…
-
The successor representation subserves hierarchical abstraction for goal-directed behaviorSven Wientjes, Clay B. Holroyd · 2023 · bioRxiv · cited 5 times · Not summarized yet
The successor representation subserves hierarchical abstraction investigates how people form abstract subtasks, focusing on community structure and successor representations.
Abstract
Humans have the ability to craft abstract, temporally extended and hierarchically organized plans. For instance, when considering how to make spaghetti for dinner, we typically concern ourselves with useful “subgoals” in the task, such as cutting onions, boiling pasta, and cooking a sauce, rather than particulars such as how many cuts to make to the onion, or exactly which muscles to contract. A core question is how such decomposition of a more abstract task into logical subtasks happens in the first place. Previous research has shown that humans are sensitive to a form of higher-order statistical learning named “community structure”. Community structure is a common feature of abstract tasks…
-
An algorithmic account for how humans efficiently learn, transfer, and compose hierarchically structured decision policiesJing-Jing Li, Anne G. E. Collins · 2024 · Cognition · cited 4 times · Not summarized yet
An algorithmic account studies how people learn, transfer, and compose hierarchical decision policies, using a large-scale human decision task.
Abstract
Learning structures that effectively abstract decision policies is key to the flexibility of human intelligence. Previous work has shown that humans use hierarchically structured policies to efficiently navigate complex and dynamic environments. However, the computational processes that support the learning and construction of such policies remain insufficiently understood. To address this question, we tested 1,026 human participants, who made over 1 million choices combined, in a decision-making task where they could learn, transfer, and recompose multiple sets of hierarchical policies. We propose a novel algorithmic account for the learning processes underlying observed human behavior. We …
-
Computational evidence for hierarchically structured reinforcement learning in humansM. Eckstein, A. Collins · 2019 · Proceedings of the National Academy of Sciences of the United States of America · cited 88 times · Not summarized yet
Computational evidence tests whether human behavior reflects hierarchical reinforcement learning using experiments with structured subtasks.
Abstract
Humans have the fascinating ability to achieve goals in a complex and constantly changing world, still surpassing modern machine-learning algorithms in terms of flexibility and learning speed. It is generally accepted that a crucial factor for this ability is the use of abstract, hierarchical representations, which employ structure in the environment to guide learning and decision making. Nevertheless, how we create and use these hierarchical representations is poorly understood. This study presents evidence that human behavior can be characterized as hierarchical reinforcement learning (RL). We designed an experiment to test specific predictions of hierarchical RL using a series of subtasks…
Prior work it builds on
-
Plans and the Structure of BehaviorA. Battersby · 1968 · Journal of the Operational Research Society · cited 1,941 times · Not summarized yet
Plans and the Structure of Behavior is cited as earlier work on plans and the organization of behavior.
-
Human Priors in Hierarchical Program InductionMark K. Ho, S. Sanborn, Frederick Callaway et al. · 2018 · cited 7 times · Not summarized yet
Human Priors in Hierarchical Program Induction is cited as prior work on human preferences in hierarchical program induction.
-
Interplay of approximate planning strategiesQ. Huys, Níall Lally, P. Faulkner et al. · 2015 · Proceedings of the National Academy of Sciences of the United States of America · cited 219 times · Not summarized yet
Interplay of approximate planning strategies is cited in a paper examining how people plan hierarchically.
-
Tracking human skill learning with a hierarchical Bayesian sequence modelN. Éltető, D. Németh, K. Janacsek et al. · 2022 · bioRxiv · cited 28 times · Not summarized yet
Tracking human skill learning models reaction times in a sequence-learning task, applying hierarchical Bayesian modeling to a different aspect of human behavior.
Abstract
Humans can implicitly learn complex perceptuo-motor skills over the course of large numbers of trials. This likely depends on our becoming better able to take advantage of ever richer and temporally deeper predictive relationships in the environment. Here, we offer a novel characterization of this process, fitting a non-parametric, hierarchical Bayesian sequence model to the reaction times of human participants’ responses over ten sessions, each comprising thousands of trials, in a serial reaction time task involving higher-order dependencies. The model, adapted from the domain of language, forgetfully updates trial-by-trial, and seamlessly combines predictive information from shorter and lo…
-
People Infer Recursive Visual Concepts from Just a Few ExamplesB. Lake, Steven T. Piantadosi · 2019 · Computational Brain & Behavior · cited 45 times · Not summarized yet
People Infer Recursive Visual Concepts from Just a Few Examples uses Bayesian program learning to infer generative programs, but studies visual concepts rather than plans.
Abstract
Machine learning has made major advances in categorizing objects in images, yet the best algorithms miss important aspects of how people learn and think about categories. People can learn richer concepts from fewer examples, including causal models that explain how members of a category are formed. Here, we explore the limits of this human ability to infer causal “programs”—latent generating processes with nontrivial algorithmic properties—from one, two, or three visual examples. People were asked to extrapolate the programs in several ways, for both classifying and generating new examples. As a theory of these inductive abilities, we present a Bayesian program learning model that searches t…
Papers that cite it
-
From Coarse to Fine: Self-Adaptive Hierarchical Planning for LLM AgentsHao-Ran Tan, Ze-Yu Zhang, Chen Ma et al. · 2026 · Annual Meeting of the Association for Computational Linguistics · cited 2 times · Not summarized yet
From Coarse to Fine proposes adaptive hierarchical planning for LLM agents, varying plan detail to match task complexity.
Abstract
Large language model-based agents have recently emerged as powerful approaches for solving dynamic and multi-step tasks. Most existing agents employ planning mechanisms to guide long-term actions in dynamic environments. However, current planning approaches face a fundamental limitation that they operate at a fixed granularity level. Specifically, they either provide excessive detail for simple tasks or insufficient detail for complex ones, failing to achieve an optimal balance between simplicity and complexity. Drawing inspiration from the principle of \textit{progressive refinement} in cognitive science, we propose \textbf{AdaPlan-H}, a self-adaptive hierarchical planning mechanism that mi…
-
Why Do LLM-based Web Agents Fail? A Hierarchical Planning PerspectiveMohamed Aghzal, Gregory J. Stein, Zi-Yu Yao · 2026 · Annual Meeting of the Association for Computational Linguistics · cited 13 times · Not summarized yet
Why Do LLM-based Web Agents Fail? analyzes web-agent planning and execution across hierarchical levels, rather than human plan generation.
Abstract
Large language model (LLM) web agents are increasingly used for web navigation but remain far from human reliability on realistic, long-horizon tasks. Existing evaluations focus primarily on end-to-end success, offering limited insight into where failures arise. We propose a hierarchical planning framework to analyze web agents across three layers (i.e., high-level planning, low-level execution, and replanning), enabling process-based evaluation of reasoning, grounding, and recovery. Our experiments show that structured Planning Domain Definition Language (PDDL) plans produce more concise and goal-directed strategies than natural language (NL) plans, but low-level execution remains the domin…
-
Structuring the environment nudges participants toward hierarchical over shortest path planning.Valeria Simonelli, D. Nuzzi, G. Lancia et al. · 2025 · Consciousness and Cognition · cited 2 times · Not summarized yet
Structuring the environment tests whether environmental organization shifts people toward hierarchical rather than shortest-path planning.
Abstract
Effective planning is crucial for navigating complex environments and achieving goals efficiently. In this study, we investigated how environmental structure influences the selection of planning strategies. Forty-two participants navigated a space station to collect colored spheres, with environments either structured (spheres grouped by color) or unstructured (spheres scattered randomly). We tested three types of plans: hierarchical (grouping spheres by color), shortest path (minimizing travel distance), and neutral (none of the above). By manipulating environmental structure, we were able to nudge participants toward a preference for hierarchical planning in structured environments, while …
-
Cognitive maps are generative programsMarta Kryven, Cole Wyeth, Aidan Curtis et al. · 2025 · Annual Meeting of the Cognitive Science Society · cited 2 times · Not summarized yet
Cognitive maps are generative programs proposes representing predictable environments as programs that exploit redundancy for resource-efficient planning.
Abstract
Making sense of the world and acting in it relies on building simplified mental representations that abstract away aspects of reality. This principle of cognitive mapping is universal to agents with limited resources. Living organisms, people, and algorithms all face the problem of forming functional representations of their world under various computing constraints. In this work, we explore the hypothesis that human resource-efficient planning may arise from representing the world as predictably structured. Building on the metaphor of concepts as programs, we propose that cognitive maps can take the form of generative programs that exploit predictability and redundancy, in contrast to direc…
-
Reuse of learned subtask representations during human planningL. C. U. Seak, Lennart Luettgau, M. Eckstein et al. · 2026 · bioRxiv · preprint, not peer reviewed · Not summarized yet
Reuse of learned subtask representations tests whether people reuse learned subtasks during planning, using behavioral and MEG experiments.
Abstract
The notion of a compositional reuse of previously learned problem solutions predicts that the human brain should reinstate such learned subtask representations during planning. Here, we test this in a value-ranking task implemented in an online and a magnetoencephalography (MEG) experiment, respectively. Participants first learned pairwise rankings and subsequently solved problems where these learned rankings could either be reused or required reordering. Behaviourally, in the online experiment, we show the availability of a reusable subtask structure improved accuracy, with computational modelling indicating a greater weighting of subtask-level value when participants could avail of this le…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 4 November 2026.