Abstract
Traditional Goal-oriented Script Generation (GOSC) models typically produce instructions as flat, linear lists. This approach often fails for complex tasks, leading to repetitive or incoherent steps. This paper introduces Hierarchical Script Generation (HSG), a framework that incorporates an intermediate layer of subgoals. By forcing models to "take a break" and define high-level objectives before detailing specific steps, the researchers significantly improved the logical structure, diversity, and human-readability of generated scripts. Evaluations on a new, large-scale Instructables dataset and wikiHow demonstrate the superiority of hierarchical modeling over flat baselines.
Introduction: The Challenge of Complex Planning
When humans plan complex tasks, such as obtaining a Ph.D., we naturally organize information into a hierarchy. We identify major milestones—like publishing research, passing exams, and defending a thesis—before determining the granular steps required for each. Standard AI models, however, struggle with these long-range dependencies. Without a structural "big picture," they often lose track of the original goal, resulting in instructions that drift or loop.
The authors argue that subgoals are essential for organizing procedural knowledge. By ignoring this layer, current models miss a crucial component of human-like planning. This research investigates how explicitly modeling these intermediate goals can guide the generation process more effectively.
Methodology and Data
The researchers proposed two primary strategies for Hierarchical Script Generation using a fine-tuned T5-base model:
- Interleaving Generation: The model generates a subgoal followed immediately by its associated steps, alternating until the task is complete. This keeps the model "centered" on the current sub-task.
- Top-down Generation: The model first outlines the entire set of high-level subgoals and then fills in the fine-grained steps for each.
To overcome the lack of labeled subgoal data, the team developed an unsupervised segmentation and labeling pipeline using sentence embeddings and clustering to discover task structures automatically. They tested their approach on wikiHow and a massive new dataset: Instructables. This new resource contains over 107,000 scripts and 1.4 million steps, focusing on complex DIY projects like circuitry and workshop crafts that demand multi-stage planning.
Key Results and Insights
The hierarchical approach (HSG) consistently outperformed flat baselines across both automatic and human metrics. The "Interleaving" strategy emerged as the top performer, suggesting that generating subgoals in close proximity to their steps provides the most effective guidance.
Human judges showed a strong preference for hierarchical scripts, choosing them 70% of the time for the complex Instructables dataset. Key findings include:
- The "Break" Benefit: Defining a subgoal reduces the cognitive load on the model, leading to better performance on the subsequent steps.
- Complexity Scaling: The benefits of hierarchy were most pronounced in complex engineering and craft projects, where flat lists often failed to maintain coherence.
- Improved Diversity: HSG models produced more varied content and were less prone to the repetitive loops common in standard text generation.
Limitations and Future Directions
While HSG marks a significant step forward, some challenges remain. Models occasionally exhibit "hallucinations," such as repeating the main goal as a subgoal or confusing domains (e.g., treating explosive "Black Powder" as a culinary ingredient). Furthermore, this study focused on a two-level hierarchy; real-world tasks often involve deeper, multi-layered structures. Future work will explore extending these hierarchical models to handle even more complex, multi-level planning scenarios to further embed structural "common sense" into AI generation.
Summary updated