I’m a Map! Interpretable Motion-Attentive Maps: Spatio-Temporally Localizing Concepts in Video Diffusion Transformers

Youngjun Jun, Seil Kang, Woojung Han, Seong Jae Hwang

TL;DR

While Video Diffusion Transformers (DiTs) excel at generating realistic videos from textual prompts, understanding how they translate motion-related words into pixels has remained a black box. This paper introduces IMAP (Interpretable Motion-Attentive Maps), a training-free and gradient-free method that extracts clear spatiotemporal saliency maps directly from a model's internal attention heads. By isolating specific "motion heads," IMAP precisely localizes where and when specific actions (like "running" or "lightning striking") occur within a video.

What Problem Does This Paper Address?

State-of-the-art video generation models, such as CogVideoX and HunyuanVideo, rely heavily on Multi-Modal Diffusion Transformers (MM-DiTs). Despite their impressive synthesis capabilities, we lack tools to interpret their inner workings.

Existing interpretability methods (like saliency maps) are largely designed for static images, focusing on identifying objects rather than actions. When applied to video, these methods fail to capture temporal dynamics—they can tell you where an "alpaca" is, but not when or where it is "running" or when a "lightning strike" flashes across the screen. Understanding these mechanisms is crucial for diagnosing model failures, mitigating memorization, and improving text-to-video alignment.

Methods

The authors propose a lightweight, training-free pipeline to extract spatiotemporal maps by analyzing the Query-Key (QK) and Output-Value (OV) circuits within MM-DiT blocks. The approach consists of three core steps:

  1. Layer and Timestep Selection: The authors filter out early, highly noisy diffusion timesteps where semantic features are blurry. To find the most informative transformer layers, they use the second-largest eigenvalue ($\lambda_2$) of the attention matrix as a metric for semantic richness, focusing only on layers with high $\lambda_2$ values.
  2. GramCol (Spatial Localization): Direct cross-modal matching (comparing text embeddings directly to visual tokens) often introduces artifacts. To solve this, GramCol uses QK-matching to identify a single visual token that best represents the target text concept (a "text-surrogate token"). It then computes a similarity map using the Gram matrix of visual tokens against this surrogate, ensuring sharp, positive highlights over semantically related regions.
  3. IMAP (Temporal Localization): To capture motion, the authors identify specialized "motion heads." They treat each video frame as a separate cluster and calculate a frame-wise separation score using the Calinski-Harabasz Index (CHI). Attention heads with high CHI scores exhibit large feature discrepancies across frames, meaning they are rich in temporal motion features. Aggregating GramCol maps across these top-performing motion heads yields the final Interpretable Motion-Attentive Map (IMAP).
Figure 1. Interpretable Motion-Attentive Maps (IMAP). IMAP is an interpretable map that spatially and temporally localizes any motion concept (e.g., lightning strike). Without additional training, IMAP is obtained from the features of video diffusion transformers at motion- specific attention heads. Our code is available at https://github.com/youngjun-jun/IMAP.

Datasets

The method was evaluated on two primary tasks using real-world video datasets:

  • MeViS: A large-scale video segmentation dataset with motion expressions. The authors chunked the training set into 49-frame clips and used Qwen3-VL to generate descriptive captions, creating a benchmark of 504 videos covering 150 distinct motion types to evaluate motion localization.
  • VSPW (Video Scene Parsing in the Wild): Consisting of 343 videos and 124 object classes, this dataset was used to evaluate the spatial localization capability of GramCol via zero-shot video semantic segmentation.

Key Insights and Ideas

  • The $\lambda_2$ Metric for Layer Selection: The second-largest eigenvalue ($\lambda_2$) of the attention matrix serves as an excellent proxy for feature clarity. Layers with higher $\lambda_2$ values consistently yield sharper, more interpretable saliency maps.
  • Intra-Modal Surrogates Beat Cross-Modal Matching: Instead of computing similarity across different modalities (text-to-visual), finding a visual "surrogate" for a text token and computing visual-to-visual similarity drastically reduces noise and eliminates the need for a competitive softmax over a predefined concept list.
  • Motion is Found in Discrepancy: Attention heads that show the highest statistical variance (or cluster separation) between sequential frames are precisely the heads responsible for tracking motion.
Figure 5. Visualization of Motion Localization Score (MLS) ver- sus the separation score (Calinski-Harabasz index, CHI). MLS measured from GramCol extracted across attention heads in layers L of CogVideoX-2B. Heads with higher CHI scores tend to exhibit higher MLS, with a Pearson correlation coefficient of 0.60.

Key Results

To evaluate the quality of the motion maps, the authors used a frontier LLM (OpenAI o3-pro) to score the maps across five human-aligned metrics: Spatial Localization (SL), Temporal Localization (TL), Prompt Relevance (PR), Specificity/Sparsity (SS), and Objectness/Boundary quality (OBJ).

  • Motion Localization: IMAP significantly outperformed existing baselines (including ViCLIP, DAAM, and ConceptAttention) across all three tested DiT backbones (CogVideoX-2B/5B and HunyuanVideo). For instance, on CogVideoX-5B, IMAP achieved an average score of 0.62, compared to ConceptAttention's 0.45 and Cross-Attention's 0.36.
  • Zero-Shot Video Semantic Segmentation: When applied to the VSPW dataset, GramCol achieved the highest mIoU (28.9% standalone, and 30.1% when paired with AnyUp feature upsampling) among all Video DiT interpretability methods, proving its strong spatial grounding capabilities.
Figure 6. Qualitative comparisons of motion localization results using CogVideoX-5B on the MeViS dataset

Limitations and Future Work

While GramCol and IMAP deliver state-of-the-art results for training-free DiT interpretability, their performance in zero-shot video semantic segmentation still lags behind specialized, fully-supervised segmentation models (like UniVS or DVIS++). The authors note that future work should explore how these discovered motion-attentive features can be directly leveraged to improve downstream perception tasks or provide fine-grained control during the video generation process itself.

Summary updated

BibTeX
@inproceedings{jun2026im,
  author = {Youngjun Jun and Seil Kang and Woojung Han and Seong Jae Hwang},
  title = {{I’m a Map! Interpretable Motion-Attentive Maps: Spatio-Temporally Localizing Concepts in Video Diffusion Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=TyOVu7E3gs},
}
Figure