Take a Break in the Middle: Investigating Subgoals towards Hierarchical Script Generation

Xinze Li, Yixin Cao, Muhao Chen, Aixin Sun

Introduction

Goal-oriented script generation is the task of producing a sequence of steps to achieve a specific objective. Traditional language models often struggle with complex, long-form tasks, producing "flat" linear sequences that can become repetitive or lose logical coherence. This research argues that AI needs to mimic human cognitive processes by thinking in hierarchies. By defining high-level subgoals before diving into specific steps, models can produce more coherent and human-like instructions.

Methodology: Hierarchical Script Generation (HSG)

The core contribution of this work is the Hierarchical Script Generation (HSG) framework. Rather than generating a flat list of steps, the model is trained to generate an intermediate layer of subgoals (Goal $\rightarrow$ Subgoals $\rightarrow$ Steps).

The hierarchical structure breaks down a complex goal (e.g., obtaining a Ph.D.) into manageable subgoals and their corresponding steps.

The authors implemented this using an Interleaving strategy. The model generates a subgoal, then its specific steps, then the next subgoal, and so on. This approach allows the model to "take a break" at logical boundaries, using special <section> tokens to refocus on the high-level plan. This mimics "online" planning, where a person decides on the next major milestone before figuring out the immediate details.

Datasets

The study evaluates the HSG framework on two large-scale datasets:

  • wikiHow: An extension of existing datasets where section headers are utilized as subgoals.
  • Instructables: A newly introduced dataset crawled from the DIY project site. With over 100,000 scripts, Instructables offers longer, more professional, and more complex tasks than wikiHow, providing a challenging "stress test" for hierarchical reasoning.

Results and Evaluation

The hierarchical approach consistently outperformed flat baselines (GOSC) in both automated metrics and human trials.

Human preference results show that the hierarchical method is significantly preferred over the flat baseline, especially on complex tasks.

Key Findings:

  • Human Preference: In head-to-head comparisons, human evaluators preferred HSG-generated scripts 70% of the time for the Instructables dataset and 59% of the time for wikiHow.
  • Diversity and Soundness: HSG improved the Distinct-3 metric (measuring text non-repetitiveness) from 92.5 to 94.5 on Instructables.
  • Logical Flow: Evaluators rated generated subgoals as "helpful to achieve the goal" in 70% of wikiHow cases, confirming the model's ability to capture underlying task structures.

Conclusion

By incorporating subgoals, AI models can bridge the gap between high-level planning and low-level execution. While challenges remain—such as occasional repetition in subgoal titles or a lack of deep "world knowledge" for specialized domains—the HSG framework demonstrates that hierarchical decomposition is a vital step toward more capable AI advisors. Future work will look into multi-level hierarchies and multi-modal integration to further ground these scripts in physical reality.

Summary updated

BibTeX
@inproceedings{li2023take,
  author = {Xinze Li and Yixin Cao and Muhao Chen and Aixin Sun},
  title = {{Take a Break in the Middle: Investigating Subgoals towards Hierarchical Script Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.644},
}
Figure