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 · DOI

Introduction

Most artificial intelligence systems today treat procedures—sequences of actions intended to achieve a goal—as "shallow" or flat structures. While a model might recognize that "making a video" involves "buying a camera," it often lacks the recursive depth to understand that "buying a camera" is itself a complex procedure requiring its own set of sub-steps, such as setting a budget or researching technical specifications. This lack of hierarchical understanding limits the ability of AI to assist users with complex tasks or to reason across different levels of granularity.

To address this, researchers from CMU and UPenn have developed a method to automatically transform flat instructional data from the web into a massive, recursive hierarchical knowledge base (KB). By leveraging the semi-structured nature of wikiHow, they have created a system capable of discovering deep procedural relationships at scale.

The Challenge of Procedural Depth

Building a large-scale procedural hierarchy presents several technical hurdles. First is the issue of scale: wikiHow contains over 110,000 articles and 1.5 million individual steps. Second is the problem of ambiguity; a step like "Set up lighting" could refer to photography, home security, or stage production depending on the overarching goal. Finally, there is the "stopping problem"—knowing when a step is a primitive action (e.g., "Go to the store") that does not require further decomposition.

Previous attempts to build such hierarchies were often restricted to narrow domains like cooking or required prohibitively expensive manual annotation. This research proposes an open-domain solution that treats hierarchy construction as a specialized paraphrase detection task.

Methodology: The Retrieve-then-Rerank Pipeline

The authors propose a recursive discovery model that links a step in one article (the "parent") to a full article elsewhere (the "child") if that article's goal matches the step's intent. To manage the computational load of comparing millions of steps, they implemented a two-stage pipeline:

  1. Candidate Retrieval: A fast "bi-encoder" model (the SP model) encodes all steps and goals into a shared vector space. Using FAISS (Facebook AI Similarity Search), the system quickly identifies the top 30 most similar goals for any given step.
  2. Context-Aware Reranking: A more sophisticated cross-encoder based on DeBERTa-large processes the step alongside the candidate goals. Crucially, this model incorporates context—the surrounding steps and the primary goal of the parent article—to disambiguate vague instructions.
  3. The Unlinkable Token: To prevent the model from forcing links where none should exist, the authors introduced an unlinkable token. If the model determines this token has the highest similarity score, it terminates the recursion, preventing the creation of nonsensical or overly granular hierarchies.

Key Insights

The Importance of Context

The research highlights that context is essential for accuracy. For instance, the step "Open your coordinates" is highly ambiguous in isolation. However, when the model knows the parent goal is "Find the End Portal in Minecraft," it can accurately link that step to the specific sub-procedure for Minecraft navigation rather than a general geography tutorial.

Linguistic Shift Across Levels

An analysis of the discovered hierarchies revealed a distinct linguistic shift. As the system moves deeper into the hierarchy, the verbs change from abstract, complex actions (e.g., decorate, prepare, organize) to concrete, physical movements (e.g., push, hold, press). This confirms that the model is successfully decomposing high-level intent into executable actions.

Experimental Results

The proposed system demonstrated significant improvements over baseline methods:

  • Matching Accuracy: The DeBERTa-based reranker achieved a Recall@1 of 55.4%, a substantial increase over the initial retrieval baseline of 35.8%.
  • Human Validation: In crowdsourced evaluations, human judges rated the model's suggested sub-procedures as "exact" or "helpful" significantly more often than those generated by baseline retrieval systems.
  • Downstream Utility: The authors tested the hierarchy on the Howto100M dataset (a collection of instructional videos). By using the discovered hierarchy to expand search queries—adding specific sub-steps to a high-level goal—the system significantly improved video retrieval accuracy. This proves that hierarchical knowledge bridges the gap between abstract human intent and the fine-grained actions depicted in video.

Conclusion and Future Directions

While the system represents a major step forward, it remains limited by the scope of its source data; if a sub-procedure is not documented on wikiHow, the model cannot discover it. Additionally, complex linguistic structures like negation ("do not use water") still pose challenges for the reranker.

Future work aims to incorporate multimodality, potentially linking text-based steps directly to video segments. This would create a comprehensive, multimodal map of human procedures, enabling AI to not only tell users what to do but show them exactly how to do it at any level of detail.

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