InstAP: Instance-Aware Vision-Language Pre-Train for Spatial-Temporal Understanding

Ashutosh Kumar, Rajat Saini, Jingjing Pan, Mustafa Erdogan, Mingfang Zhang, Betty Le Dem, Norimasa Kobori, Quan Kong

TL;DR

InstAP introduces an instance-aware vision-language pre-training framework that bridges the gap between global scene understanding and fine-grained object tracking in space and time. Supported by InstVL, a new large-scale dataset featuring dual-granularity (holistic and instance-level) annotations, InstAP achieves state-of-the-art performance on both fine-grained video grounding and zero-shot global video retrieval.

What Problem Does This Paper Address?

Current Vision-Language Pre-training (VLP) models (like CLIP or VideoPrism) are exceptionally good at holistic scene understanding. If you show them a video, they can easily tell you it's "a person making a smoothie in a kitchen." However, because they are trained primarily on global video-caption pairs, they struggle with fine-grained, instance-level reasoning.

If a caption mentions specific entities—such as "a black flexible spatula" or "a jar with a yellow label"—traditional models fail to precisely localize these objects across space and time. They lack spatial-temporal grounding, meaning they cannot reliably map specific textual phrases to their corresponding visual trajectories. Previous attempts to fix this usually "graft" pre-trained object detectors onto a frozen VLP model post-hoc, which inherits detector errors and fails to learn truly unified representations.

Methods

The authors introduce InstAP (Instance-Aware Pre-training), a framework that embeds instance awareness directly into the pre-training phase.

Figure 1. Conceptual overview of the InstAP framework and InstVL dataset. Left: InstVL features dual-granularity video annotations: holistic Global Captions and entity-grounded Trajectory Instance Captions. Right: InstAP fuses global and instance-level features via Global-Local Cross Attention, optimizing through joint Global and Instance-Aware Alignment objectives.

The architecture relies on a multi-task learning objective consisting of two main pillars:

  1. Self-Supervised Masked Video Modeling: The visual encoder (a ViT-L) is trained via a student-teacher framework (using a frozen CLIP-ViT as the teacher). Instead of reconstructing raw pixels, the student regresses high-level semantic features on unmasked tokens, guided by an attention-based masking strategy that prioritizes informative regions.
  2. Instance-Aware Global-Local Alignment: To learn fine-grained relationships, the model uses a Trajectory RoI Encoder to extract features from specific object bounding boxes or video trajectories. These local features are fused with the global scene context using a Global-Local Cross Attention mechanism (Attention Pool).

Crucially, the model optimizes a specialized Instance Video-Text Contrastive (VTC) loss. Because multiple objects within the same video often have overlapping descriptions, standard contrastive learning would mistakenly treat them as negative pairs. InstAP solves this by explicitly masking out potential false negatives originating from the same video or image during contrastive pairing.

Figure 3. Our instance-aware alignment mechanism. Instance features (Query Q) from a Trajectory RoI Encoder (fω) are fused with global context (Key K, Value V ) via an Attention Pool to create an instance-aware embedding. This embedding is contrasted with text features (eε). The loss forces the model to match positive pairs (V1T 1) while contrasting against negatives from different videos (V2T 1/V2T 2) and masking potential false-negative pairs from the same video (V1T 2), enforcing fine-grained discrimination (Eq. 8).

Datasets

To power this framework, the authors curated InstVL, a massive, general-domain dataset with dual-granularity annotations:

  • Scale: 2 million images (sourced from LAION-400M and COYO) and 50,000 video clips (sourced from HDVILA).
  • Annotations: Each sample contains a single holistic scene caption alongside multiple dense, grounded instance descriptions mapped to 2D bounding boxes (images) or spatial-temporal trajectories (videos).
  • Pipeline: The dataset was built using an automated pipeline combining GroundingDINO (for open-vocabulary detection), SAM2 (for instance tracking), and a large vision-language model (GPT-4o) to generate free-form textual descriptions, followed by human verification.

For evaluation, the authors tested InstAP on standard zero-shot video retrieval benchmarks including MSR-VTT, DiDeMo, MSVD, LSMDC, and ActivityNet, alongside their own curated InstVL Test Suite.

Key Insights and Ideas

  • Local Pre-training Boosts Global Understanding: A key finding is that learning fine-grained, instance-level alignments actually improves the model's capacity for global scene understanding. InstAP doesn't sacrifice the forest for the trees; it understands the forest better because it looks at the trees.
  • Data Scaling vs. Algorithmic Alignment: Simply exposing a standard model to dense annotations isn't enough. When the authors trained a baseline model (UMT-L) on the exact same InstVL dataset by treating instance captions as standard global text, its performance degraded due to task interference. InstAP's explicit global-local architectural alignment is what unlocks the performance gains.
  • Sharper Visual Attention: Qualitative visualizations show that InstAP develops highly localized, crisp attention maps around specific textual mentions, whereas global-only models exhibit diffuse, scattered attention across the entire scene.
Figure 4. InstAP tends to attend more closely to caption-relevant regions (e.g., ‘dubai plate 61062’) than the global-only base- line [29], which often exhibits diffuse or misaligned attention.

Key Results

  • Instance-Level Retrieval: On the InstVL-1K video instance retrieval benchmark, InstAP achieved a remarkable 60.63% T2V R@1, drastically outperforming state-of-the-art models like VideoPrism (40.86%) and standard UMT-L (26.38%).
  • Zero-Shot Generalization: InstAP set new state-of-the-art zero-shot text-to-video retrieval records on MSR-VTT (41.1% R@1) and DiDeMo (54.0% R@1).
  • Visual Grounding: When evaluated on bounding box regression, InstAP significantly outperformed baselines. On the challenging video split, it boosted the strict IoU@90 metric from 14.44% to 25.13%, proving it encodes highly precise spatial-temporal coordinates.

Limitations and Future Work

The authors conducted an error analysis on 1,500 instance-retrieval failures and identified three primary bottlenecks:

  1. Multi-Instance Confusion (44.6% of errors): The model still struggles to differentiate highly similar objects under heavy visual clutter or occlusion.
  2. Limited Visual Evidence (24.6% of errors): Small-scale objects or background-dominant crops provide too little signal for accurate grounding.
  3. Cross-Sample Semantic Matches (13.1% of errors): Ambiguities arise when different videos contain identical or highly similar fine-grained instances.

Future work will likely focus on improving robustness against heavy occlusion and scaling up the spatial-temporal resolution to better capture tiny, fast-moving objects.

Summary updated

BibTeX
@inproceedings{kumar2026instap,
  author = {Ashutosh Kumar and Rajat Saini and Jingjing Pan and Mustafa Erdogan and Mingfang Zhang and Betty Le Dem and Norimasa Kobori and Quan Kong},
  title = {{InstAP: Instance-Aware Vision-Language Pre-Train for Spatial-Temporal Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=F6U0BcVrDp},
}
Figure