Introduction
While Vision Transformers (ViTs) have fundamentally transformed the landscape of computer vision, they remain largely "black boxes." Understanding the internal reasoning of these models is critical for safety, reliability, and optimization. However, most interpretability research has focused on static images, leaving the temporal complexities of video—such as motion trajectories, object permanence, and dynamic interactions—largely unexplored.
This paper introduces Video Transformer Concept Discovery (VTCD), a novel framework designed to identify the high-level spatiotemporal concepts that video transformers use to make decisions. By analyzing diverse models, the authors demonstrate that video transformers often converge on a "universal" set of internal reasoning mechanisms, regardless of their specific training objectives.
The VTCD Framework
VTCD moves beyond pixel-level analysis to identify meaningful spatiotemporal segments. The framework is built upon three primary pillars:
1. Tubelet Proposals
To capture the temporal nature of video, VTCD clusters the model’s internal features using the SLIC algorithm to create "tubelets." These are spatiotemporal segments that represent the specific regions and timeframes the model attends to, providing a more granular view than raw pixels or static frames.
2. Concept Clustering via CNMF
Recurring concepts (e.g., "a hand moving" or "a container") are identified by grouping tubelets across a large dataset. The authors utilize Convex Non-negative Matrix Factorization (CNMF) for this task. Unlike standard NMF, CNMF is capable of handling the negative activation values frequently found in transformer architectures, allowing for a more accurate clustering of internal representations.
3. Concept Randomized Importance Sampling (CRIS)
Determining which discovered concepts are actually influential is challenging because transformers are often robust to small perturbations. The authors developed CRIS, which masks large, random groups of concepts and observes the resulting drop in model performance. This approach provides a robust ranking of concept importance, distinguishing between incidental background features and critical decision-making drivers.
Universal Concepts and the "Rosetta" Effect
A key contribution of this work is the introduction of Rosetta Concepts. By measuring the overlap (mIoU) of internal representations across different models, the authors found that models trained for disparate tasks—such as supervised action recognition versus self-supervised learning—often develop identical internal concepts. For example, a model may independently develop a "hand-tracking" concept even if it was never explicitly supervised to recognize hands, provided that tracking hands is useful for its primary task.
Furthermore, the study reveals a consistent Universal Hierarchy across layers:
- Early Layers: Focus on a "spatiotemporal basis," capturing basic spatial and positional information.
- Middle Layers: Begin to track specific objects and detect physical events like collisions.
- Deep Layers: Handle complex reasoning, such as maintaining the identity of an object even when it is fully occluded.
Experimental Results
The authors evaluated VTCD across several benchmarks, including TCOW Kubric (object permanence), Something-Something-v2 (temporal reasoning), and DAVIS’16 (segmentation).
Model Optimization and Pruning
One of the most striking findings was that interpretability can lead directly to better performance. By using VTCD to identify and prune the least important 33% of attention heads in a VideoMAE model, the authors achieved a 4.3% increase in accuracy on the SSv2 dataset. This pruning also reduced computational costs (GFLOPs) by 33%, suggesting that many transformer heads are redundant or even introduce noise.
Zero-Shot Segmentation
VTCD also demonstrated utility in downstream tasks. By selecting discovered concepts that overlapped with target objects, the authors achieved a 68.1 mIoU on the DAVIS'16 segmentation task when combined with Segment Anything (SAM). This was achieved despite the underlying video models not being trained for segmentation, highlighting the richness of the discovered concepts.
Limitations and Future Work
Despite its success, VTCD faces certain limitations. The SLIC clustering requires manual tuning of a "compactness" hyperparameter for different models, and the method struggles to capture concepts that are spatially distributed rather than localized. Additionally, calculating "Rosetta" scores across a large number of models is computationally intensive.
Future research will focus on automating hyperparameter selection and leveraging these insights to develop "concept-bottleneck" video models—architectures that are inherently interpretable by design without sacrificing performance.
Summary updated