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

Hazel Doughty, Walterio Mayol‐Cuevas, Dima Damen

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.

Introduction

Assessing skill from video is a fundamental challenge in computer vision that requires fine-grained temporal understanding. Unlike simple action recognition, skill determination must distinguish between different levels of proficiency in performing the same task. A significant hurdle in this domain is the nature of long, untrimmed videos. In a typical 10-minute instructional or performance video, many segments are irrelevant to the actual skill being assessed—for instance, the time spent preparing a workspace or transitioning between sub-tasks.

Figure 1: The proposed rank-aware attention mechanism separately identifies segments indicative of high skill ("pros") and low skill ("cons") to rank videos.

Previous automated systems often relied on a uniform assumption: that skill level is consistent throughout a video. These models typically averaged features across the entire duration or sampled random snippets, failing to account for the fact that a single performer might exhibit mastery in one phase while struggling in another. To address this, we propose a model that learns to ignore "noise" and focus on specific temporal regions that differentiate a master from a novice.

Methodology: Rank-Aware Dual Attention

Our approach utilizes a Siamese Network architecture designed to take a pair of videos and determine which exhibits higher skill. The core innovation is the introduction of dual temporal attention modules and a specialized loss function.

Dual Attention Modules

Instead of a single attention mechanism, our model employs two distinct branches:

  1. High-Skill Branch ($\alpha^+$): Learns to attend to video segments that are characteristic of "pros"—smooth, efficient, or technically correct movements.
  2. Low-Skill Branch ($\alpha^-$): Learns to identify "cons"—segments showing hesitations, mistakes, or inefficient techniques.

Rank-Aware and Disparity Losses

To train these modules effectively with only video-level labels (i.e., "Video A is better than Video B"), we introduce two novel loss components:

  • Rank-Aware Loss: This function explicitly encourages the high-skill branch to find segments that support a higher ranking and the low-skill branch to find segments that justify a lower ranking.
  • Disparity Loss: Standard attention mechanisms can sometimes collapse into simple uniform averaging. The disparity loss forces the attention-weighted features to outperform a baseline uniform weighting, ensuring the model actively seeks out informative temporal regions.

Additionally, we use Multi-filter Attention within each module to capture different sub-tasks (e.g., whisking vs. flipping in a cooking task), supported by a diversity loss to ensure filters do not overlap redundantly.

Experimental Evaluation

We evaluated our model on two benchmarks:

  • EPIC-Skills: Includes tasks like surgery, dough rolling, drawing, and chopstick usage.
  • BEST (Bristol Everyday Skill Tasks): A new dataset introduced in this work, comprising 500 YouTube videos across five everyday tasks: Scrambling Eggs, Tying a Tie, Applying Eyeliner, Braiding Hair, and Origami. These videos are notably long (averaging 188 seconds) and visually diverse.

Results and Discussion

Our proposed model achieved state-of-the-art performance on both datasets, reaching 80.3% pairwise accuracy on EPIC-Skills and 81.2% on the BEST dataset. This represents a significant improvement over previous baselines (76.0% and 75.8%, respectively).

Figure 5: Ablation study showing the cumulative accuracy gains provided by each component of the proposed method across various tasks.

As shown in Figure 5, the inclusion of the rank-aware loss and disparity loss consistently improves performance across nearly all tasks. The gains are particularly pronounced in complex, long-form tasks like "Scramble Eggs" and "Apply Eyeliner," where the model improved accuracy by over 10% and 8% compared to standard ranking models. Qualitative analysis confirms that the high-skill module correctly focuses on active, skillful phases (like stirring), while the low-skill module identifies slower or preparatory actions.

Conclusion

By explicitly modeling the "pros and cons" of a performance through dual attention branches, our rank-aware model provides a more nuanced and accurate assessment of skill in long videos. While currently limited by the granularity of standard I3D features—as seen in the more modest gains in the "Surgery" task—this work paves the way for automated coaching systems that can provide targeted feedback based on identified skill-relevant segments.

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