Knowledge-Guided Short-Context Action Anticipation in Human-Centric Videos

Sarthak Bhagat, Simon Stepputtis, Joseph Campbell, Katia SycaraarXiv 2023

TL;DR

This paper introduces a neuro-symbolic approach to long-term action anticipation that excels even when given very short video context (e.g., just the first 5-10% of a clip). By augmenting a Transformer’s attention mechanism with a symbolic knowledge graph that understands object "affordances"—what actions an object can participate in—the model outperforms existing state-of-the-art methods by up to 9% on benchmark datasets.

What Problem Does This Paper Address?

Predicting what a human will do next in a video is a cornerstone of proactive AI, with applications ranging from smart video editing to assistive robotics. However, most current models, particularly Transformers, rely on a "long context window"—they need to see a significant portion of the preceding activity to make accurate guesses about the future.

When context is scarce (e.g., seeing only the first few seconds of someone starting to cook), standard models often fail because they lack the "common sense" to know which objects in the scene are relevant for future steps. This paper tackles the challenge of short-context, long-term action anticipation: predicting a sequence of future actions and their durations based on a tiny sliver of observed video.

Methods

The authors propose a three-step pipeline that integrates symbolic reasoning into a deep learning architecture, as illustrated in the overview below:

Figure 1. Overview of our proposed Knowledge Guided Action Anticipation approach.
  1. Neuro-Symbolic Extraction: The system uses an object detector to identify items in the frame. These items are then mapped to a Knowledge Graph (KG). This graph doesn't just list objects; it links them to their affordances (e.g., a tomato is "cuttable") and the tools required (e.g., a knife). An iterative graph-search process expands these initial detections into a latent representation of all relevant concepts in the scene.
  2. Infer Rectification: These graph-based representations are passed through LSTMs to generate "rectification matrices" ($R_e$ and $R_d$).
  3. Knowledge-Guided Future Transformer (FUTR): The core model is based on the Future Transformer architecture. The authors modify the standard multi-head attention mechanism by injecting the rectification matrices. Essentially, the symbolic knowledge acts as a "boost" or "suppressor," forcing the Transformer to pay more attention to visual features that correspond to objects with relevant affordances for future actions.

Datasets

The model was evaluated on two standard long-term action anticipation benchmarks:

  • 50Salads: Contains 50 videos of salad preparation with 17 fine-grained action labels.
  • Breakfast: A larger dataset featuring 10 different breakfast-related activities (like making coffee or pancakes) with 48 fine-grained action labels.

Key Insights and Ideas

  • Affordances as a Prior: The "aha moment" here is that visual features alone aren't enough for short-context prediction. By knowing that a "bowl" can "contain dough," the model can prioritize the bowl in its attention even if the person is currently just stirring a pan.
  • Attention Rectification: Instead of just concatenating knowledge features, the authors directly modify the attention weights. This ensures the symbolic knowledge guides the interpretation of visual data rather than just acting as an extra input.
  • Anticipating the Unused: As shown in the heatmaps (Figure 3), the model learns to focus on objects that aren't currently being used but are likely to be used soon. For example, while a user is stirring dough, the model's attention is already "boosting" the bowl because it knows the dough will eventually need to be poured into it.
Figure 3. Heatmaps showing how attention is boosted for relevant future objects like the bowl.

Key Results

The proposed method consistently outperformed the baseline FUTR model and other competitors (like Video-Llama) across various observation/prediction ratios ($\alpha/\beta$).

  • Quantitative: On the 50Salads dataset, the model achieved a frame-wise accuracy improvement of up to 9% over the state-of-the-art when observing only 10% of the video. On the Breakfast dataset, it showed a more modest but consistent improvement of about 1%.
  • Qualitative: In head-to-head comparisons (Figure 2), the knowledge-guided model correctly predicted complex end-of-sequence actions like "put dough in bowl," whereas the baseline model failed to recognize the transition.
Figure 2. Example of our method on the Breakfast dataset, observing 10% (green hues) and predicting another 30% (blue hues).

Limitations and Future Work

  • Knowledge Graph Dependency: The method relies on a pre-defined, domain-specific knowledge graph. Expanding this to open-world scenarios where the KG might be incomplete or noisy remains a challenge.
  • Dataset Specificity: While the model performs exceptionally well on 50Salads, the gains on the Breakfast dataset were smaller. This might be due to the higher complexity and variety of actions in the Breakfast dataset, suggesting that the symbolic "boost" might need to be more adaptive.
  • Future Directions: The authors suggest that future work could involve automatically learning these knowledge graphs from large-scale text corpora or utilizing Large Language Models (LLMs) to dynamically generate affordance relations at run-time.

Summary updated

Abstract

This work focuses on anticipating long-term human actions, particularly using short video segments, which can speed up editing workflows through improved suggestions while fostering creativity by suggesting narratives. To this end, we imbue a transformer network with a symbolic knowledge graph for action anticipation in video segments by boosting certain aspects of the transformer's attention mechanism at run-time. Demonstrated on two benchmark datasets, Breakfast and 50Salads, our approach outperforms current state-of-the-art methods for long-term action anticipation using short video context by up to 9%.
BibTeX
@misc{bhagat2023knowledge,
  author = {Sarthak Bhagat and Simon Stepputtis and Joseph Campbell and Katia Sycara},
  title = {{Knowledge-Guided Short-Context Action Anticipation in Human-Centric Videos}},
  year = {2023},
  eprint = {2309.05943},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.05943},
}
Figure