Constructing Procedural Graphs with Multiple Dependency Relations: A New Dataset and Baseline

Haopeng Ren, Yushi Zeng, Yi Cai, Bihan Zhou, Zetao LianACL 2023

Abstract

While AI knowledge bases have become proficient in descriptive knowledge, capturing procedural knowledge—the "how-to" of complex tasks—remains a significant challenge. Traditional methods often simplify instructions into linear flow graphs, missing the hierarchical and conditional nuances of real-world procedures. This paper introduces a novel approach to transform unstructured text into multi-dimensional procedural graphs. By identifying hierarchical sub-steps and logical constraints, the proposed model offers a more accurate representation of complex workflows. To support this research, the authors present WHPG, a new dataset derived from WikiHow that explicitly labels these intricate relationships.

Introduction

Most existing tools for procedural understanding convert instructions into simple flow graphs where one step linearly follows another. However, real-world instructions are rarely strictly sequential. They typically involve:

  1. Inclusion Dependencies: High-level actions (e.g., "Prepare the box") that encompass multiple sub-steps.
  2. Constraint Dependencies: Declarative context providing conditions (e.g., "If you can't find a box...") or describing effects.

Current models often miscategorize these sub-steps and constraints as simple "Next" actions, leading to oversimplified and often inaccurate workflows.

Comparison of traditional flow graphs versus the proposed procedural graph structure.

The WHPG Dataset

To address the lack of structured procedural data, the authors introduced the WikiHow Procedural Graph (WHPG) dataset. Focused on the "Crafts" section of WikiHow, it contains 283 procedural documents with 7,341 annotated edges. The dataset categorizes sentences into three types—Operation, Declaration, or Both—and defines three primary relation types: Next-Action, Sub-Action, and Constraint. Evaluation on additional datasets like COR (cooking) and MAM (maintenance) demonstrates the model's cross-domain generalizability.

Methodology

The researchers developed a multi-stage neural architecture designed to integrate internal sentence grammar with broader document structure.

The multi-stage neural architecture for procedural graph construction.

The architecture consists of several key components:

  • Syntactic RGCN Encoder: Utilizes a Relational Graph Convolutional Network to analyze part-of-speech and syntactic dependencies. For example, identifying "verb-object" patterns helps distinguish "Operations" from "Declarations."
  • Multi-Query Syntactic-Aware Attention: Selectively focuses on grammatical features relevant to specific node types or relations.
  • Hierarchical BERT-based Bi-GRU: Employs BERT embeddings through a two-level Gated Recurrent Unit (GRU) to capture both word-to-sentence and sentence-to-document context.
  • Structural-Aware Edge Encoder: Incorporates discourse structure features, such as sentence distance, to predict edge existence and relationship types (Next-Action, Sub-Action, or Constraint).

Key Insights and Results

The study highlights that syntactic structure is a powerful indicator of a sentence's procedural role. Imperative sentences typically signal operations, while conditional clauses often indicate constraints. By explicitly modeling hierarchies, the proposed system avoids the "Next-relation trap" where models default to linear sequences.

The model significantly outperformed strong baselines, including BERT and RoBERTa-based GCNs. On the WHPG dataset, it achieved an F1 score of 43.61% for combined edge and relation prediction—nearly doubling the performance of several baseline models. Ablation studies confirmed that both syntactic encoding and structural attention are critical for performance.

Conclusion and Future Work

While the current model represents a significant step forward, it is limited by its sentence-level granularity. It cannot yet split a single sentence containing multiple distinct actions into separate nodes. Future research will focus on "multi-grained" challenges, aiming to handle both entity-level and sentence-level dependencies simultaneously to create even more precise procedural representations.

Summary updated

BibTeX
@inproceedings{ren2023constructing,
  author = {Haopeng Ren and Yushi Zeng and Yi Cai and Bihan Zhou and Zetao Lian},
  title = {{Constructing Procedural Graphs with Multiple Dependency Relations: A New Dataset and Baseline}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.536},
}
Figure