Modeling Temporal-Modal Entity Graph for Procedural Multimodal Machine Comprehension

Huibin Zhang, Zhengkun Zhang, Yao Zhang, Jun Wang, Yufan Li, Ning Jiang, Xin Wei, Zhenglu Yang

Modeling Temporal-Modal Entity Graph for Procedural Multimodal Machine Comprehension

Understanding procedural documents—such as recipes or DIY tutorials—requires more than just processing text or images in isolation. It demands a deep comprehension of how specific objects, or "entities," evolve through a sequence of actions. This paper introduces the Temporal-Modal Entity Graph (TMEG), a framework designed to track these entities across time and modalities to achieve state-of-the-art performance in Procedural Multimodal Machine Comprehension (M3C).

The Challenge of Procedural Understanding

Humans naturally follow instructions by visualizing the transformation of ingredients or materials. For instance, a whole strawberry in an initial step is understood to be the same entity when it appears sliced later in the process. For AI, however, this is a significant hurdle. Traditional models often treat steps as independent units or process entire images and sentences at a coarse level, failing to capture the fine-grained "state tracking" of individual objects.

Figure 1: Tracking entities like strawberries and dough across text and images over multiple steps.

The core difficulty in M3C lies in two areas: temporal relations (how an object changes over time) and cross-modal relations (linking a textual mention of an object to its visual representation). The authors argue that the "entity" is the fundamental unit of a procedure, and tracking these entities is the key to true comprehension.

The TMEG Framework

The TMEG model addresses these challenges by representing a procedural document as a heterogeneous graph where nodes represent entities and edges represent their relationships.

1. Node and Graph Construction

The model first identifies textual entities using Part-of-Speech (POS) tagging and extracts visual objects using a pre-trained Faster R-CNN. These become the nodes of the graph. The innovation lies in the construction of two specific types of edges:

  • Temporal Edges: These connect nodes representing the same entity across different chronological steps.
  • Modal Edges: These link textual descriptions to their corresponding visual objects, facilitating cross-modal grounding.

2. Reasoning and Fusion

Once the graph is built, TMEG employs a multi-head attention mechanism for graph aggregation. This allows the model to update the state of each entity node by considering its neighbors—both its past/future states and its representations in other modalities.

Figure 2: The TMEG architecture, highlighting graph construction and aggregation for multimodal reasoning.

3. Contrastive Coherence Loss

To further refine the model's ability to align text and imagery, the researchers introduced a contrastive coherence loss. This training objective encourages the model to maximize the similarity between a step's textual description and its correct visual counterpart while minimizing similarity with incorrect pairings.

Experimental Evaluation

The TMEG framework was evaluated on two primary benchmarks:

  • RecipeQA: A dataset of ~20k recipes used to test visual cloze, coherence, and ordering tasks.
  • CraftQA: A new, more complex dataset introduced by the authors, consisting of ~27k craft tutorials from Instructables. CraftQA presents a greater challenge due to its diverse vocabulary and higher image density per tutorial.

Key Results and Insights

TMEG consistently outperformed strong baselines like VisualBERT and MLMM-Trans. On RecipeQA, TMEG achieved an average accuracy of 69.73%, compared to VisualBERT's 65.91%. On the more difficult CraftQA, it reached 49.54% accuracy.

A critical finding from the ablation studies was that temporal edges (tracking an object over time) are more vital for performance than modal edges. This suggests that the primary bottleneck in machine comprehension of procedures is tracking the state of an object over time, rather than simply linking text to images. Notably, TMEG even surpassed human performance on the "Visual Ordering" task in RecipeQA, though a gap remains in "Visual Cloze" tasks.

Conclusion

The Temporal-Modal Entity Graph represents a shift toward more granular, entity-centric AI models for procedural tasks. By explicitly modeling the temporal and multimodal life cycle of objects, TMEG provides a robust foundation for understanding complex human instructions. Future research aims to extend this framework to video-based tutorials, where entity states change continuously, further pushing the boundaries of multimodal machine intelligence.

Summary updated

BibTeX
@inproceedings{zhang2022modeling,
  author = {Huibin Zhang and Zhengkun Zhang and Yao Zhang and Jun Wang and Yufan Li and Ning Jiang and Xin Wei and Zhenglu Yang},
  title = {{Modeling Temporal-Modal Entity Graph for Procedural Multimodal Machine Comprehension}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.84},
}
Figure