Manuscript Offprint

arXiv:2609.02204

TAME: Temporal-Aware Mixture-of-Experts for Text-Video Retrieval

Uicheol Jung, Juyoung Hong, Hojung Kwon, Yukyung Choi

Abstract

Text–Video Retrieval (TVR) retrieves videos that match a natural-language query, but extending image–text models such as CLIP to videos is fundamentally limited by the lack of temporal modeling. Videos exhibit frame-wise heterogeneity in appearance and motion, and compressing all frames into a single representation often obscures temporal structure and semantic transitions. To address this, we propose Temporal-Aware Mixture-of-Experts for Text-Video Retrieval (TAME), a CLIP-based framework that jointly models frame-level structure and temporal relations. First, we integrate sparse Mixture-of-Experts (MoE) layers into both CLIP encoders and apply frame-consistent routing on the vision branch so that experts specialize according to frame-level visual patterns while preserving the original vision-language alignment. Second, we introduce Frame–Temporal (FT) tokens that aggregate global cross-frame information and feed it back to each frame, enabling the visual encoder to capture long-range temporal dependencies without harming local details. Third, we design a Cross-Temporal Interaction and Aggregation (CTIA) module that refines frame-wise sentence–video similarities through staged temporal filtering and fusion. Experiments on standard TVR benchmarks show that TAME consistently improves over CLIP-based baselines. On MSR-VTT, it improves R@1 by 4.0 over CLIP4Clip, and also achieves consistent gains on DiDeMo, MSVD, LSMDC, and ActivityNet. The code is available at https://github.com/sejong-rcv/TAME.

1. Introduction

With the explosive growth of video content across social platforms, entertainment services, and multimedia archives, the ability to retrieve relevant videos from natural-language queries, known as Text-Video Retrieval (TVR), has become increasingly critical. Unlike traditional metadata-based search, TVR demands fine-grained multimodal understanding, where both visual signals and linguistic semantics must be aligned at the appropriate spatiotemporal granularity. This

capability is essential for applications such as content recommendation, video understanding, and large-scale retrieval systems deployed in industrial settings.

Recent TVR research has been accelerated by CLIP-style dual encoders [1], which leverage strong image–text alignment learned from large-scale contrastive pretraining. Previous studies [2–4] demonstrate that transferring image–text representations to the video domain provides a powerful foundation for retrieval. However, as illustrated in Fig. 1(a), conventional CLIP-based approaches aggregate all frame embeddings into a single video representation, relying primarily on mean pooling. This strategy overlooks temporal structure, compresses heterogeneous frame-level patterns, and provides no mechanism to adaptively weight frames based on semantic relevance. Consequently, CLIP-based models struggle to fully capture the temporal progression and semantic variability that characterize videos.

Recent and representative studies [5–9] attempt to mitigate this issue by introducing temporal aggregation/attention, cross-frame token interaction, or token selection/clustering modules. Yet, these approaches still rely on a single dense encoder pathway, forcing all frames through the same feature transformation. This architectural bottleneck limits representational capacity and prevents the model from adapting to heterogeneous visual patterns—such as static versus dynamic scenes, background shifts, or object composition changes across frames. The lack of specialization becomes more pronounced as video content becomes more visually diverse.

To address these challenges, we propose Temporal-Aware Mixture-of-Experts for Text-Video Retrieval (TAME), a unified framework designed to capture frame-level variability and improve temporal aggregation for retrieval. As illustrated in Fig. 1(b), TAME replaces dense FFNs in both the text and vision encoders with sparse Mixture-of-Experts (MoE) layers, enabling frame-consistent expert routing that expands representational diversity while preserving CLIP alignment. Importantly, extending MoE to the text encoder supports semantic specialization on the language side, allowing the model to capture diverse linguistic patterns and maintain balanced cross-modal capacity. In addition, we introduce Frame–Temporal (FT) tokens that propagate compact

Figure

Figure 1. Comparison between previous method and ours. (a) Previous methods encode all frames with a single encoder and average them uniformly, which overlooks temporal dependency and frame importance. (b) Our TAME performs frame-wise expert routing to model visual diversity and employs Cross-Temporal Interaction and Aggregation (CTIA) to adaptively weight and integrate frame representations according to their temporal context, yielding a robust video-level feature.

temporal context across frames while keeping patch-level spatial structure intact, and we design a Cross-Temporal Interaction and Aggregation (CTIA) module that refines frame-sentence similarity into a coherent video-level score.

Our key contributions are summarized as follows:

  1. Sparse Mixture-of-Experts architecture tailored for TVR. We introduce a sparse MoE framework specifically tailored for Text–Video Retrieval. By integrating MoE layers into both the text and visual encoders and adopting frame-consistent routing, the model captures heterogeneous frame-level visual patterns that are difficult to model using a single shared encoder.

  2. Frame-Temporal tokens for lightweight temporal propagation. We propose FT tokens that encode compact temporal context and interact with frame and patch embeddings, enabling the model to share temporal information across frames without modifying spatial token structure.

  3. Sentence-conditioned cross-temporal aggregation. To address temporal inconsistency introduced by frame-wise expert routing, we propose a Cross-Temporal Interaction and Aggregation (CTIA) module that refines frame-sentence similarity into a coherent video-level representation.

  4. Consistent performance gains across TVR benchmarks. Evaluation on MSR-VTT, DiDeMo, MSVD, LSMDC, and ActivityNet shows that the proposed architecture consistently improves over CLIP-based baselines.

Ultimately, TAME retains CLIP's strong vision-language alignment while resolving its inherent temporal limitations, achieving more precise and resilient text-video matching.

References (50)