The Pros and Cons: Rank-aware Temporal Attention for Skill Determination in Long Videos

Hazel Doughty, Walterio Mayol-Cuevas, Dima Damen

TL;DR

This paper introduces a novel deep learning framework for determining relative skill levels in long videos by focusing on "pros" and "cons"—specific segments indicative of high and low skill. By employing a dual-branch temporal attention mechanism and a unique rank-aware loss function, the model learns to ignore irrelevant footage and outperforms standard attention-based methods in ranking human performance across diverse daily tasks.

What Problem Does This Paper Address?

Assessing skill from video is a "fine-grained" understanding problem. While humans can easily tell who is better at scrambling eggs or tying a tie, automating this is difficult, especially in long, unedited videos.

The authors identify two major hurdles:

  1. Temporal Irrelevance: In a 10-minute tutorial, only a few moments (like the specific way a knot is looped) truly reveal the performer's expertise. Most of the video—like reaching for a bowl or adjusting a camera—is noise.
  2. Skill Variability: Skill isn't a constant state. A novice might perform one part of a task well but fail at another. Furthermore, the visual cues for "good" skill (fluidity, precision) are often different from the cues for "bad" skill (hesitation, mistakes).

Previous work often assumed skill was uniform throughout a video or relied on short, pre-trimmed clips. This paper tackles the challenge of long-form, "in-the-wild" video ranking.

Methods

The authors propose a Rank-Aware Attention Network based on a Siamese architecture. The model takes a pair of videos and determines which one shows higher skill.

The Rank-Aware Attention Network architecture, showing the dual attention branches and the combination of ranking, disparity, and rank-aware losses.

Key Components:

  • Feature Extraction: Videos are split into segments, and features are extracted using the I3D (Inflated 3D ConvNet) model.
  • Dual Attention Branches: Instead of one attention module, the network uses two:
  • High-skill branch ($s^+$): Learns to attend to segments indicative of expertise ("pros").
  • Low-skill branch ($s^-$): Learns to attend to segments indicative of poor performance ("cons").
  • Multi-filter Attention: Each module uses $K$ filters to capture different sub-tasks within a long video, regularized by a Diversity Loss to ensure filters don't all look at the same thing.
  • Rank-aware Loss: This is the core innovation. It encourages the high-skill branch to produce a higher score for the better video and the low-skill branch to focus on the deficiencies of the worse video.
  • Disparity Loss: A regularizer that forces the attention-weighted branches to outperform a simple uniform average of all video segments, preventing the model from falling into lazy local minima.

Datasets

The model was evaluated on two primary benchmarks:

  1. EPIC-Skills: A dataset containing four tasks: surgery, dough rolling, drawing, and using chopsticks.
  2. BEST (Bristol Everyday Skill Tasks): A newly introduced dataset by the authors. It consists of 500 YouTube videos (26 hours total) across five tasks: scrambling eggs, braiding hair, tying a tie, making origami cranes, and applying eyeliner. Unlike EPIC-Skills, BEST features varied environments, viewpoints, and much longer video lengths (averaging 188 seconds).

Key Insights and Ideas

  • Skill is Asymmetric: The "aha moment" here is that the evidence for being an expert isn't just the absence of mistakes. Experts perform specific actions that novices simply don't do. By training separate "pro" and "con" detectors, the model captures a more holistic view of performance.
  • Attention Needs Guidance: Standard softmax attention often struggles in ranking tasks because it doesn't know what it's looking for. The Disparity Loss acts as a crucial nudge, essentially telling the model: "If your attention mechanism isn't doing better than just averaging the whole video, you haven't learned anything yet."
  • Temporal Localization: The model successfully learns to ignore "dead air." In the scrambled eggs task, it ignores opening cupboards and focuses on the whisking and stirring—the parts where skill actually manifests.

Key Results

The proposed method achieved state-of-the-art results for relative skill determination:

  • Accuracy: It outperformed previous methods by 4.3% on EPIC-Skills and 5.4% on the new BEST dataset, reaching an average pairwise accuracy of over 80%.
  • Task-Specific Gains: On challenging tasks like "Scrambled Eggs" and "Apply Eyeliner," the rank-aware loss provided improvements of 10.4% and 8.8% respectively over simpler baselines.
  • Ablation Success: The authors demonstrated that each component of their loss function (diversity, disparity, and rank-aware) contributed to the final performance boost.
Figure 4. Ablation study of loss functions on all tasks. In general each additional loss term gives an improvement, the most significant improvement being the rank-aware loss which gives an average 5% improvement for BEST.

Limitations and Future Work

  • Feature Granularity: The authors noted that for highly technical tasks like surgery, the I3D features might not be fine-grained enough to capture the subtle differences in tool motion that define expertise.
  • Task Nuance: In tasks like Origami or Drawing, the model struggled more because almost every segment is relevant to the final outcome, making the "attention" less effective than in tasks with clear intermittent actions.
  • Future Directions: The authors suggest applying these attention segments to provide feedback to learners (e.g., "watch this specific part of the expert video") and exploring transfer learning to assess tasks the model hasn't seen during training.

Summary updated

Abstract

We present a new model to determine relative skill from long videos, through learnable temporal attention modules. Skill determination is formulated as a ranking problem, making it suitable for common and generic tasks. However, for long videos, parts of the video are irrelevant for assessing skill, and there may be variability in the skill exhibited throughout a video. We therefore propose a method which assesses the relative overall level of skill in a long video by attending to its skill-relevant parts. Our approach trains temporal attention modules, learned with only video-level supervision, using a novel rank-aware loss function. In addition to attending to task relevant video parts, our proposed loss jointly trains two attention modules to separately attend to video parts which are indicative of higher (pros) and lower (cons) skill. We evaluate our approach on the EPIC-Skills dataset and additionally annotate a larger dataset from YouTube videos for skill determination with five previously unexplored tasks. Our method outperforms previous approaches and classic softmax attention on both datasets by over 4% pairwise accuracy, and as much as 12% on individual tasks. We also demonstrate our model's ability to attend to rank-aware parts of the video.
BibTeX
@inproceedings{doughty2019pros,
  author = {Hazel Doughty and Walterio Mayol-Cuevas and Dima Damen},
  title = {{The Pros and Cons: Rank-aware Temporal Attention for Skill Determination in Long Videos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=3vjpZXtr055},
}
Figure