Show Me More Details: Discovering Hierarchies of Procedures from Semi-structured Web Data

Shuyan Zhou, Li Zhang, Yue Yang, Qing Lyu, Pengcheng Yin, Chris Callison-Burch, Graham Neubig

Introduction

Most AI research treats procedures—such as "how to bake a cake" or "how to fix a sink"—as shallow, linear lists of steps. In reality, procedures are inherently hierarchical: a high-level goal is composed of steps, many of which are complex procedures themselves that require further decomposition. Existing attempts to map these hierarchies often rely on expensive human annotation or are limited to narrow domains. Without this "nested" knowledge, AI systems struggle with complex reasoning, such as understanding that "setting a budget" is a necessary sub-task of "purchasing a camera," which is itself a sub-task of "making a video."

This paper introduces a method to automatically transform flat instructional data into a massive, open-domain hierarchical knowledge base (KB) of procedures. By recursively linking steps in wikiHow articles to other articles that explain those steps in detail, the authors create a deep procedural tree that significantly improves performance in downstream tasks like instructional video retrieval.

Methodology

The authors propose a retrieve-then-rerank pipeline to discover these hierarchies within wikiHow’s 110,000+ articles.

Overview of the retrieve-then-rerank pipeline for procedural hierarchy discovery.
  1. Candidate Retrieval: To handle the massive search space (1.5 million steps vs. 110k potential goal articles), the system first uses an efficient bi-encoder model (specifically the SP model or SBERT) to find the top-30 most similar article goals for a given step.
  2. Joint Reranking: The top candidates are then passed to a more powerful cross-encoder (like DeBERTa-large). Crucially, this model incorporates context—the surrounding steps and the overall goal of the parent article—to disambiguate meanings.
  3. Handling "Unlinkable" Steps: Not every step needs a sub-procedure (e.g., "Go to the store"). The authors trained the model to predict an unlinkable label when a step is either too fine-grained or when a matching article simply doesn't exist in the database.
  4. Recursive Construction: By applying this process recursively, they transform wikiHow from a collection of flat articles into a deep, hierarchical tree.

Datasets

  • wikiHow: The primary source, containing over 110k articles and 1.5M steps.
  • Labeled Step-Goal Links: The authors utilized ~21k existing hyperlinks manually inserted by wikiHow editors as a "gold standard" for training and automatic evaluation.
  • Howto100M: A massive dataset of instructional videos used for extrinsic evaluation. The authors sampled 1,000 goals and their associated videos to test if hierarchical knowledge helps in video retrieval.

Analysis and Insights

  • Contextual Disambiguation: A step like "Open your coordinates" is vague. However, if the parent goal is "Find the End Portal in Minecraft," the reranker can accurately link it to a specific Minecraft-related guide. The paper shows that including surrounding steps improves Recall@1 by about 3%.
  • Verbal Shift: Linguistic analysis of the hierarchy revealed that as you move deeper into the tree, verbs shift from "complex actions" (like decorate or build) to "primitive actions" (like push, hold, or press). This confirms that the model successfully decomposes abstract goals into physical executions.
  • Hierarchy Boosts Retrieval: In the video retrieval task, using a "filtered" hierarchy (only the most informative sub-steps) performed better than using the raw list of steps. This suggests that the KB can act as a "semantic bridge" between high-level human goals and granular actions.

Results

The best model (DeBERTa-large with context) achieved a Recall@1 of 55.4% and a Recall@10 of 71.9% on the automatic step-prediction task, significantly outperforming previous baselines like BM25.

Human evaluation results comparing different models on linkable and unlinkable steps.

In crowdsourced evaluations, the model's top-ranked sub-procedures were rated as "exact" or "helpful" matches by humans in the vast majority of cases. Furthermore, using a two-level hierarchy (Goal + Filtered Children + Filtered Grandchildren) improved the Mean Rank of retrieved videos significantly compared to using the goal alone (e.g., improving Mean Rank from 43.11 to 34.13 on the test set).

Conclusion

While the created KB provides a powerful new resource, it is limited by the coverage of wikiHow. Future work may address linguistic complexities like conditional logic and explore multimodal expansions, incorporating visual data directly into the procedural map to create a truly multimodal knowledge base.

Summary updated

BibTeX
@inproceedings{zhou2022show,
  author = {Shuyan Zhou and Li Zhang and Yue Yang and Qing Lyu and Pengcheng Yin and Chris Callison-Burch and Graham Neubig},
  title = {{Show Me More Details: Discovering Hierarchies of Procedures from Semi-structured Web Data}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.214},
}
Figure