Understanding Video Transformers via Universal Concept Discovery

Matthew Kowal, Achal Dave, Rares Ambrus, Adrien Gaidon, Konstantinos G. Derpanis, Pavel Tokmakov

TL;DR

Video Transformer Concept Discovery (VTCD) is the first unsupervised framework for explaining the inner workings of video transformers through human-interpretable, spatiotemporal "concepts." The authors reveal that diverse video models share "Rosetta concepts"—universal representations like object tracking that emerge regardless of the training task—and demonstrate that pruning unimportant attention heads can simultaneously reduce computation by 33% and improve accuracy by over 4%.

What Problem Does This Paper Address?

While deep learning has revolutionized video understanding, these models remain "black boxes." We know they work, but we don't fully understand how they reason about time and space. Previous "concept-based" interpretability research—which explains model decisions using high-level ideas like "wheels" or "water"—has focused almost exclusively on static images.

Videos introduce a temporal dimension that makes identifying these concepts significantly harder. A "collision" isn't just a texture; it's a dynamic event occurring over multiple frames. Furthermore, the self-attention mechanism in transformers is notoriously robust to small perturbations, meaning traditional methods for ranking concept importance (like masking a single concept and measuring the performance drop) often fail to produce meaningful results.

Methods

The authors introduce VTCD, a three-step pipeline for peeling back the layers of video transformers:

  1. Tubelet Proposals: Instead of using random crops or pixel-level segments, VTCD uses SLIC clustering directly in the model's feature space to generate "spatiotemporal tubelets." This ensures the proposals align with the information the model is actually processing.
  2. Concept Clustering: To group these tubelets into high-level concepts across different videos, the authors employ Convex Non-negative Matrix Factorization (CNMF). This is a crucial adaptation, as standard NMF cannot handle the negative activations produced by the GeLU non-linearities common in transformers.
  3. Concept Randomized Importance Sampling (CRIS): To overcome the transformer's robustness, CRIS masks a high percentage of concepts in parallel across all layers and heads. By averaging the performance impact over thousands of random mask samples, it accurately ranks which concepts the model truly relies on.
Figure 2. Video Transformer Concept Discovery (VTCD) takes a dataset of videos, X, as input and passes them to a model, f[1,l] (shown in yellow). The set of video features, Z, are then parsed into spatiotemporal tubelet proposals, T (shown in red), via SLIC clustering in the feature space. Finally, tubelets are clustered across the videos to discover high-level units of network representation - concepts, C (right).

Additionally, the authors propose a method to identify Rosetta Concepts: units of representation that are shared across different models (e.g., a supervised model vs. a self-supervised one) by measuring the spatiotemporal overlap of their discovered concepts.

Datasets

The study evaluates VTCD across several diverse benchmarks:

  • TCOW Kubric: A synthetic, photo-realistic dataset designed for tracking objects through complex occlusions.
  • Something-Something-v2 (SSv2): A large-scale dataset of real-world human-object interactions (e.g., "dropping something into something") where temporal reasoning is essential.
  • DAVIS’16: A standard benchmark for video object segmentation (VOS) used to validate the practical utility of the discovered concepts.

Key Insights and Ideas

  • The Universal Processing Hierarchy: Regardless of the task, video transformers seem to follow a consistent logic: early layers encode a spatiotemporal basis (positional cues), middle layers identify objects and events (like collisions), and deep layers perform high-level reasoning (like tracking an object while it's hidden inside a container).
  • Emergent Universality: The "Rosetta" analysis shows that object-centric representations—like tracking a hand or a moving fruit—emerge naturally even in models that were never explicitly trained to track objects, such as self-supervised or video-language models.
  • Redundancy is an Opportunity: The discovery that many attention heads are unimportant or even counter-productive suggests that transformers are often over-parameterized for specific tasks.
Figure 1. Heatmap predictions of the TCOW model [66] for track- ing through occlusions (top), together with concepts discovered by our VTCD (bottom). We can see that the model encodes po- sitional information in early layers, identifies containers and col- lision events in mid-layers and tracks through occlusions in late layers. Only one video is shown, but the discovered concepts are shared between many dataset samples (see video for full results).

Key Results

  • Efficiency & Accuracy Boost: By using VTCD to prune the least important 33% of attention heads in a VideoMAE model, the authors achieved a 4.3% increase in accuracy on SSv2 while reducing computational costs (GFLOPs) by 33%.
  • High Fidelity: Attribution curves demonstrate that VTCD identifies concepts that are significantly more "faithful" to the model's actual decision-making process compared to gradient-based or random-crop baselines.
  • Zero-Shot Segmentation: Unsupervised concepts discovered by VTCD can be used for video object segmentation. When paired with the Segment Anything Model (SAM), these concepts achieved a strong 68.1 mIoU on DAVIS’16, proving they capture high-quality object boundaries.
Figure 6. A sample Rosetta concept found in four models trained for different tasks. Interestingly, we find object-centric represen- tations in all the models (see video for full results).

Limitations and Future Work

The authors acknowledge a few hurdles:

  • Hyperparameter Sensitivity: The SLIC "compactness" parameter currently requires manual tuning for different models.
  • Spatial Localization: Because SLIC enforces connectivity, the method struggles to capture concepts that are not spatially localized (e.g., global lighting changes).
  • Computational Scaling: Mining Rosetta concepts becomes exponentially more expensive as the number of models being compared increases.

Future work may explore whether these discovered mechanisms can be used to "distill" intuitive physics into smaller, more efficient models or to diagnose biases in deployment.

Summary updated

BibTeX
@inproceedings{kowal2024understanding,
  author = {Matthew Kowal and Achal Dave and Rares Ambrus and Adrien Gaidon and Konstantinos G. Derpanis and Pavel Tokmakov},
  title = {{Understanding Video Transformers via Universal Concept Discovery}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure