HieraMamba: Video Temporal Grounding via Hierarchical Anchor-Mamba Pooling

Joungbin An, Kristen Grauman · DOI

Introduction

Finding a specific five-second moment in a two-hour movie is the ultimate "needle in a haystack" problem for computer vision. This task, known as Video Temporal Grounding (VTG), requires a model to understand a natural language query (e.g., "When did the detective pull the note from the shelf?") and pinpoint the exact start and end times in an untrimmed video.

Researchers from UT Austin have introduced HieraMamba, a hierarchical architecture designed to handle the dual challenges of long-form video: maintaining global context while preserving fine-grained temporal detail, all without the prohibitive computational costs of traditional Transformers.

The Challenge of Long-Form Video

Current VTG methods face a significant "granularity vs. efficiency" trade-off. Standard Transformers scale quadratically ($O(N^2)$) with sequence length, making them impractical for hour-long videos. To mitigate this, many models resort to naive downsampling or sliding windows.

Comparison of HieraMamba against traditional downsampling and sliding window approaches for video temporal grounding.

As shown in Figure 1, downsampling often discards the fine-grained details necessary for short queries, while sliding windows fragment the global context needed to understand long-range narratives. HieraMamba addresses this by providing hierarchical, linear-time grounding, building a multi-scale memory that navigates from broad layouts to precise motions.

Methods: Hierarchical Anchor-Mamba Pooling

The core innovation of HieraMamba is the Anchor-MambaPooling (AMP) block, which performs "content-aware abstraction" rather than simple frame removal.

Overview of the HieraMamba architecture, including the AMP block and the dual contrastive loss functions (ACC and SPC).

Anchor-MambaPooling (AMP) Block

The AMP block (Figure 3b) utilizes several key components:

  • Anchor Interleaving: The model generates "anchor tokens" that summarize local segments. These anchors are interleaved with original video features, allowing information flow between fine-grained frames and coarse-grained summaries.
  • Global-Local Encoding: The architecture uses Hydra (a bidirectional Mamba variant) to capture long-range global context with linear complexity ($O(N)$). This is complemented by a lightweight local Transformer focusing on short-range patterns.
  • Hierarchical Stacking: By stacking multiple AMP blocks, the model constructs a "Video Pyramid." Lower layers handle high-resolution, short-term details, while upper layers represent abstract, long-term context.

Dual Contrastive Objectives

To refine these representations, HieraMamba employs two specialized losses (Figure 3c):

  1. Anchor-Conditioned Contrastive (ACC) Loss: A self-supervised loss forcing anchors to faithfully represent their local window while remaining distinct from distant video segments.
  2. Segment-Pooled Contrastive (SPC) Loss: A supervised loss aligning the language query with specific ground-truth video segments, enhancing the discriminative power of the learned features.

Experimental Evaluation

HieraMamba was evaluated on three major long-video benchmarks:

  • Ego4D-NLQ: Egocentric videos of daily activities (avg. 8.3 mins).
  • MAD (v1 & v2): Full-length movies (avg. 110 mins) with audio-description-based queries.
  • TACoS: Cooking videos (avg. 4.8 mins) featuring complex, overlapping activities.

Key Results

HieraMamba established a new state-of-the-art across these benchmarks:

  • Ego4D-NLQ: Achieved 25.66% Average Recall, outperforming the previous best (DeCafNet) by 1.22%.
  • MAD-v2: Reached 18.05% Average Recall, a significant +2.80% improvement over the strongest baseline (SnAG).
  • Efficiency: For 100-minute videos, HieraMamba requires approximately 2.5x fewer FLOPs than a global Transformer baseline while delivering superior accuracy.

Discussion and Future Work

The success of HieraMamba highlights that Mamba’s linear-time selective scanning is uniquely suited for VTG, allowing models to process entire video contexts that are inaccessible to Transformers. Furthermore, learned "content-aware" anchors prove far superior to simple pooling by preserving salient information across the hierarchy.

Future work may explore joint end-to-end training with video backbones and "adaptive anchor generation," where the model dynamically allocates anchors based on the level of action or information density in specific video regions.

Summary updated

BibTeX
@inproceedings{an2026hieramamba,
  author = {Joungbin An and Kristen Grauman},
  title = {{HieraMamba: Video Temporal Grounding via Hierarchical Anchor-Mamba Pooling}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=WYVEqAEE3P},
}
Figure