Manuscript Offprint

arXiv:2610.22842

VTrajEmbed: Aligning Text with Video Object Trajectories via Spatiotemporal Embeddings

Ruizhi Chen, Zining Fan, Yudi Guo, Jiang Liu, Zhiyu Lin, Zhongjiang He, Shouqian Shi, Hao Sun

Ruizhi Chen1,∗^{1,*}, Zining Fan2,∗^{2,*}, Yudi Guo3,∗^{3,*}, Jiang Liu1,4^{1,4}, Zhiyu Lin1^{1}, Zhongjiang He1^{1}, Shouqian Shi3,†^{3,\dagger}, Hao Sun1,†^{1,\dagger}

1^{1}Xingchen AGI Lab, China Telecom Artificial Intelligence Technology (Beijing) Co., Ltd., 2^{2}Peking University, 3^{3}Nanjing University, 4^{4}Xi'an Jiaotong University

Fine-grained alignment between text and video object trajectories is a core challenge in multimodal understanding. Existing embedding models excel at global retrieval, yet their single global representation entangles multiple objects and their spatiotemporal dynamics, limiting direct object-level grounding. To address this issue, we propose VTrajEmbed, an embedding model that decomposes a video into object trajectories and aligns each trajectory embedding with text for object-level grounding through retrieval. Our main contributions: (1) Slow-Fast Trajectory Encoding, a dual-branch architecture that establishes trajectory representations by densely sampling low-resolution frames for high-frequency motion cues and sparsely selecting high-resolution frames for scene context, aggregated by a shared LLM backbone; (2) Mask-Guided Contrastive Learning, a training objective built upon these representations that couples an intra-group loss and a batch-level bidirectional loss under a relation mask, excluding unverified relations and preventing confirmed matches from becoming false negatives; (3) Text2Traj-Bench, a trajectory-level text-video benchmark with model-assisted construction and human-verified query-trajectory relations. Experimental results show that VTrajEmbed-5B improves text-to-trajectory and trajectory-to-text R@1 over Qwen3-VL-Embedding-8B by 15.48 and 18.05 percentage points, respectively, and achieves 49.48% average R@1 across five global retrieval benchmarks, compared with 42.86% for Qwen3-VL-Embedding-8B.

Correspondence: Shouqian Shi and Hao Sun

Date: October 13, 2026

1 Introduction

Multimodal embedding models have become a key technique for mapping data from different modalities into a unified semantic space. The contrastive vision-language pretraining paradigm Radford et al. (2021); Zhai et al. (2023) has learned high-quality alignment on large-scale image-text pairs, and video embedding models further incorporate temporal dynamics into unified representations Zhu et al. (2024); Li et al. (2026b), achieving notable progress in video-level retrieval. However, this success relies on the premise of compressing an entire video into a single semantic unit, and when the task shifts from “does this video match this sentence” to “which object in the scene corresponds to this description,” the granularity limitation of embedding models becomes apparent.

Real-world applications such as autonomous driving, robotic manipulation, and digital content moderation Zitkovich et al. (2023); Sima et al. (2024); Li et al. (2026a) demand object-level alignment. In the static-image domain, FG-CLIP Xie et al. (2026) and ObjEmbed Fu et al. (2026) achieve region-text matching through fine-grained annotation or object-level decomposition, yet these advances do not extend to video: general-purpose video embedding models typically compress multiple objects and their dynamics into a single global representation Zhou et al. (2026), and training signals remain sample-level without object-level positive or negative examples. Video grounding tasks introduce spatiotemporal supervision Gu et al. (2025); Gao et al. (2026a) but output localized tubes rather than a shared text-trajectory embedding space. A concurrent work Chen et al. (2026) similarly leverages ego-trajectory similarity as training-only supervision, yet still produces single-vector representations without object-level alignment. How to equip embedding models with object-level alignment while keeping learned representations useful for broader video-level retrieval remains an open problem.

To address these challenges, we propose VTrajEmbed, an embedding model that uses object trajectories as the basic alignment unit, mapping object-level visual representations and text into a shared semantic space. Given a video and a user query, VTrajEmbed first uses a lightweight query parser to extract textual descriptions of the referenced objects, which serve as prompts for a segmentation-and-tracking model to generate candidate trajectories. Each trajectory is then encoded through a Slow-Fast dual-branch architecture, where dense low-resolution observations capture object appearance and motion, while sparse high-resolution frames provide scene context. A shared language-model backbone aggregates the trajectory features and separately encodes the original query, producing embeddings for similarity-based retrieval. For training, a mask-guided contrastive objective learns from confirmed query-trajectory matches and

∗^{*}Equal contribution., †\daggerCorresponding authors.

mismatches while excluding unverified relations. To provide relation supervision and evaluate object-level alignment, we construct Text2Traj-Bench, a model-assisted benchmark with human-verified query-trajectory relations. Unlike query-conditioned proposal generation in deployment, Text2Traj-Bench generates candidates from fixed category prompts and freezes each video's candidate pool before query generation, ensuring that all trajectory-level evaluations use the same query-independent candidates while the associated verified relations define relevance for object-centric video retrieval. Our main contributions:

  • A Slow-Fast trajectory encoding architecture that captures high-frequency motion features via low-resolution dense sampling and scene context via high-resolution sparse sampling.

  • A mask-guided contrastive learning objective that enables object-level training, coupling local discrimination and bidirectional batch retrieval under a query-trajectory relation mask.

  • A model-assisted, human-verified benchmark that couples within-video evaluation with dense within-video and sparse cross-video relation annotations.

  • VTrajEmbed-5B achieves 69.67% text-to-trajectory and 66.34% trajectory-to-text R@1, substantially outperforming Qwen3-VL-Embedding-8B (54.19% and 48.29%). In the global retrieval evaluation, its trajectory-derived representations average 49.48% R@1 across five widely used datasets, versus 42.86% for the same baseline.

References (100)

  • Qwen3-VL Technical Report
  • A short note on the kinetics-700 human action dataset (opens arXiv in a new tab)
  • TraVEL: Trajectory-Guided Video Embedding Learning for Driving-Video Retrieval
  • Yolo-world: Real-time open-vocabulary object detection
  • Goal: Global-local object alignment learning
  • Transferring Image-CLIP to video-text retrieval via temporal relations
  • Mask to reconstruct: Cooperative semantics completion for video-text retrieval
  • Llmdet: Learning strong open-vocabulary object detectors under the supervision of large language models
  • ObjEmbed: Towards universal multimodal object embeddings
  • Mammalps: A multi-view video behavior monitoring dataset of wild mammals in the swiss alps
  • Omniground: A comprehensive spatio-temporal grounding benchmark for real-world complex scenarios
  • Mixture-of-Thought-Tokens: Unifying perception and reasoning for free-form multimodal grounding (opens arXiv in a new tab)
  • Knowing your target: Target-aware transformer makes better spatio-temporal video grounding
  • jina-embeddings-v4: Universal embeddings for multimodal multilingual retrieval
  • Adaptive evidential learning for temporal-semantic robustness in moment retrieval
  • Powerful language model unlocks richer cross-modality representation
  • Towards trustworthy multimodal moderation via policy-aligned reasoning and hierarchical labeling
  • Ovtr: End-to-end open-vocabulary multiple object tracking with transformer
  • Grounded language-image pre-training
  • A unified framework for state-of-the-art multimodal retrieval and ranking (opens arXiv in a new tab)
  • Referdino: Referring video object segmentation with visual grounding foundations
  • Mm-embed: Universal multimodal retrieval with multimodal llms
  • Vlm-fo1: Bridging the gap between high-level reasoning and fine-grained perception in vlms (opens arXiv in a new tab)
  • Marrying dino with grounded pre-training for open-set object detection
  • Simple open-vocabulary object detection
  • Grounding multimodal large language models to the world
  • COVTrack: Continuous open-vocabulary tracking via adaptive multi-cue fusion
  • A unified vision model for open-world object detection and understanding (opens arXiv in a new tab)
  • Drivelm: Driving with graph visual question answering
  • Human-centric spatiotemporal video grounding with visual transformers
  • Multimodal code-switching: Interleaving visual objects into language for explicit object-level alignment (opens arXiv in a new tab)
  • PixCLIP: Towards fine-grained vision-language understanding via any-granularity pixel-text alignment
  • FG-CLIP 2: A bilingual fine-grained vision-language alignment model
  • Sigmoid loss for language image pre-training
  • Bridging modalities: Improving universal multimodal retrieval by multimodal large language models
  • Regionclip: Region-based language-image pretraining
  • MegaPairs: Massive data synthesis for universal multimodal retrieval
  • WeMM-Embedding: WeChat Multi-Modal Embedding Technical Report
  • Extending video-language pretraining to n-modality by language-based semantic alignment
  • Rt-2: Vision-language-action models transfer web knowledge to robotic control
  • Related symbols are grouped by role; meanings that depend on context are stated explicitly
  • Detailed encoder operations and training-data construction are described separately in Appendices C and D
  • The learning rate follows a linear decay schedule from its initial value to zero, with no warm-up (warmup_steps=0)
  • Complete trajectory
  • For example, a query about a man in a white suit and a woman in a black dress walking together yields two appearance prompts
  • Subsequent description or query rejection does not alter the frozen pool
  • Bounding boxes are extracted from nonempty masks and mapped to the original image coordinates
  • Preselection uses evenly spaced indices in the ordered Fast observations, including endpoints when more than one frame is selected and using the first observation when only one is selected
  • Keep the first frame
  • The representative condition applies to the final retained set: a chain of pairwise merges that later deletes a representative would not provide the same guarantee
  • Low-resolution full frames are processed with a per-frame pixel budget $P_f = 65{,}536$
  • The original feature width at each tap is 1024
  • This frozen 2560-dimensional appearance feature is denoted $a_t\in \mathbb{R}^{2560}$, matching the main-text notation
  • Degenerate boxes are discarded, so areas are positive
  • It produces full-frame token banks $X_t^s$ with $N_t$ spatial tokens
  • Pruning changes the temporal attention mass as well as the number of frames; Lemma 1 explicitly includes this effect
  • The visual slot embedding is $W_{\mathrm{in}}z_i + \delta_{\mathrm{step}}$, where $W_{\mathrm{in}}$ denotes LayerNorm followed by a linear projection from the fused feature width to $H_{\mathrm{LM}}$
  • The text pass uses only the text prompt above and reads $h_e$ at the text readout
  • The logit scale starts at $\ell = \log(1/0.05)$, so the initial inverse temperature is $\exp(\ell) = 20$ and the temperature is 0.05
  • LoRA adapters of rank 8, scaling parameter 16, and dropout 0.05 are inserted in the query and value projections of the last eight layers
  • For each expression-centered training sample, the batch constructor targets four trajectory records
  • Compute metrics on original observations, before encoder sampling:
  • Identity checking outside $G_b$ is necessary because overlap inside the annotated interval cannot rule out later identity switches
  • The box width and height are independently multiplied by scale factors in [0.9, 1.1]
  • The query's required predicates must be supported by the approved facts, including their temporal scope
  • A source contributes to the annotated branch only when it actually supplies object tubes or when such tubes have been separately annotated
  • An identical encoded trajectory may occur in several source groups; separately perturbed inputs remain distinct records
  • Across different videos, box IoU is undefined as an identity test, and different video IDs do not prove semantic mismatch
  • Using only the source set $\mathcal{P}_b$ in that numerator while admitting additional matching records into its denominator would incorrectly penalize those records
  • A row or column with positives but no confirmed negatives contributes zero
  • The stages follow Section 3.3: Trajectory Curation, Verified Description, and Relation Construction
  • default prompts
  • Observation count, temporal coverage, contiguous support, box area, and abrupt position or scale changes assist review rather than automatically determine acceptance
  • Duplicate and fragment review consolidates confirmed redundant trajectories while preserving distinct objects and nonredundant fragments as separate candidates
  • Unresolved identity pairs remain separate candidates and are flagged for relation review rather than deleted to make text queries unique
  • We distinguish the LLM proposal $\widehat{Y}(e,r)$, the final annotation $\bar{Y}(e,r)$, and the unobserved true semantic relation $Y(e,r)$
  • walks at some point
  • Benchmark admission establishes a unique target trajectory and provides confirmed relations for within-video discrimination
  • Mined query-trajectory pairs receive LLM relation proposals, while individual human verification determines the confirmed relations in the core relation graph
  • Independent auditing and traceable release records document annotation reliability and construction provenance
  • The admission and selection events satisfy
  • Both factors must be measured on the same source subset; within-video R@1 on the screened benchmark cannot replace the conditional accuracy measured on that subset
  • The features of frames excluded at runtime are reference quantities for analysis, not additional computation in the deployed model
  • It is not the actual pruned input
  • A large $\eta$ makes the resulting guarantee weak, as it should
  • For the fixed candidate assume
  • The constants and errors may depend on the candidate; the ranking argument uses their maximum over the fixed candidate pool
  • The bound separates perturbing a feature from changing the frequency with which its representative enters attention
  • This argument needs bounded projections and a stable feature domain, and does not claim that the constants are small in every trained model
  • Actual frame sizes, resampling overhead, ROI reuse, and caching across candidates must be included in measured end-to-end cost
  • The Fast frame limit remains 32; the Slow preselection budget is one to four, and the actual retained count can be smaller
  • Indices refer to the records actually included in that comparison; repeated records retain their multiplicities
  • Its semantic interpretation assumes that the included labels correctly identify matching and non-matching inputs
  • For every comparison above, $\log(1+1/m_A)E_A\leq \mathcal{L}_A$
  • The strict-loss threshold follows by contraposition
  • The constant cannot be increased without additional assumptions: take $m_A$ positives and one negative, all with score zero
  • Their positive and negative sets are
  • For example, this covers a batch with no local negatives
  • With $\lambda_g, \lambda_{\mathrm{bi}}>0$, the objective
  • Identical query-input pairs have tied scores: the derivative with respect to that shared score sums the occurrence derivatives