Skip to main content
QUICK REVIEW

[Paper Review] Exploring the hierarchical structure of human plans via program generation

Carlos G. Correa, Sophia Sanborn|arXiv (Cornell University)|Nov 30, 2023
Software Engineering ResearchComputer Science4 citations
TL;DR

This paper investigates how humans generate hierarchically-structured plans by having participants create programs in a programming-like task with explicit hierarchical structure. It finds that people prefer program reuse beyond what minimum description length (MDL) predicts, and proposes a generative model based on grammar induction that explains this preference, outperforming utility maximization and MDL alone.

ABSTRACT

Human behavior is often assumed to be hierarchically structured, made up of abstract actions that can be decomposed 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 with observable hierarchical representations: 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 better predictions of human behavior, going beyond simple accounts of compressibility to highlight a principle that guides hierarchical planning.

Motivation & Objective

  • To investigate how humans form hierarchically-structured plans in novel settings where internal representations are not directly observable.
  • To test whether human plan generation is guided by utility maximization (fewer actions) or minimum description length (shorter programs).
  • To identify qualitative features of human programs that cannot be explained by MDL or utility maximization alone.
  • To formalize a preference for subroutine reuse as a prior belief in a generative model of hierarchical planning.
  • To develop and evaluate a grammar induction model that jointly infers a grammar over abstract actions and a plan using those actions.

Proposed method

  • Participants created hierarchical programs in a Lightbot-like environment, where actions could be grouped into reusable subroutines.
  • The study compared human-generated programs against predictions from utility maximization (minimizing action count) and MDL (minimizing program length).
  • A generative model was developed that models hierarchy choice as grammar induction, incorporating a prior bias toward reuse of frequently used subroutines.
  • The model uses recursive program generation with subroutines that can call themselves, and includes special cases for post-goal actions and recursive subroutines.
  • Programs were generated from execution traces using a greedy trace rewriting algorithm that maximizes subroutine reuse, with constraints on minimum length and usage.
  • A* search with a heuristic combining Manhattan distance and minimum spanning tree cost was used to efficiently find execution traces.

Experimental results

Research questions

  • RQ1How do humans generate hierarchical plans in novel, non-practiced settings?
  • RQ2To what extent do people optimize for program length (MDL) or action count (utility maximization) when creating hierarchical programs?
  • RQ3Are there qualitative features of human programs—such as reuse of subroutines—that cannot be explained by MDL or utility maximization alone?
  • RQ4Can a generative model based on grammar induction, with a prior favoring reuse, better predict human program structure than MDL or utility models?
  • RQ5What role does prior experience with subroutine usage play in shaping hierarchical plan structure?

Key findings

  • Participants preferred shorter programs and fewer actions, indicating sensitivity to both MDL and utility maximization.
  • Despite this, participants consistently reused subroutines more than predicted by MDL or utility, indicating a qualitative preference for reuse beyond compressibility.
  • The proposed grammar induction model with a reuse-biased prior outperformed both MDL and utility maximization in predicting human program structures.
  • The model successfully captured complex patterns such as recursive subroutines and post-goal actions that reduce overall program length.
  • 78% of participant programs and 94% of programs shared by at least one other participant were successfully generated by the model’s program corpus.
  • The heuristic used in A* search, combining Manhattan distance and minimum spanning tree cost, ensured monotonicity and optimality in trace search.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.