[Paper Review] TS2-Net: Token Shift and Selection Transformer for Text-Video Retrieval
TS2-Net proposes a novel Transformer-based video encoder with token shift and selection modules to enhance fine-grained spatial-temporal representation for text-video retrieval. By dynamically shifting and selecting informative tokens across frames and spatial patches, it improves modeling of subtle movements and small objects, achieving state-of-the-art performance on MSRVTT, VATEX, LSMDC, ActivityNet, and DiDeMo.
Text-Video retrieval is a task of great practical value and has received increasing attention, among which learning spatial-temporal video representation is one of the research hotspots. The video encoders in the state-of-the-art video retrieval models usually directly adopt the pre-trained vision backbones with the network structure fixed, they therefore can not be further improved to produce the fine-grained spatial-temporal video representation. In this paper, we propose Token Shift and Selection Network (TS2-Net), a novel token shift and selection transformer architecture, which dynamically adjusts the token sequence and selects informative tokens in both temporal and spatial dimensions from input video samples. The token shift module temporally shifts the whole token features back-and-forth across adjacent frames, to preserve the complete token representation and capture subtle movements. Then the token selection module selects tokens that contribute most to local spatial semantics. Based on thorough experiments, the proposed TS2-Net achieves state-of-the-art performance on major text-video retrieval benchmarks, including new records on MSRVTT, VATEX, LSMDC, ActivityNet, and DiDeMo.
Motivation & Objective
- To address the limitation of existing video encoders in capturing fine-grained spatial-temporal details such as subtle movements and small objects.
- To improve video representation in text-video retrieval by enabling dynamic, adaptive processing of video tokens across time and space.
- To design a video encoder that enhances local semantics without relying on fixed architecture or pre-trained backbones.
- To achieve state-of-the-art performance across multiple benchmarks including MSRVTT, VATEX, LSMDC, ActivityNet, and DiDeMo.
Proposed method
- Introduces a token shift module that swaps whole spatial token features between adjacent frames to preserve complete representations and capture local motion.
- Employs a token selection module that identifies and retains top-K most informative tokens based on correlation with [CLS] tokens and spatial-temporal context.
- Uses a learnable selection network to estimate token importance, focusing on local spatial semantics and salient visual entities.
- Applies frame-wise similarity aggregation to align text and video representations at a fine-grained level.
- Optimizes the model using video-language contrastive learning to align text and video embeddings in a shared space.
- Adapts the standard Transformer architecture to support dynamic token manipulation while maintaining sequence integrity.
Experimental results
Research questions
- RQ1Can dynamic token shifting across frames improve modeling of subtle temporal movements in video representations?
- RQ2Can selective attention on spatial-temporal tokens enhance recognition of small or salient visual objects in text-video retrieval?
- RQ3Does combining token shift and selection lead to consistent performance gains across diverse text-video retrieval benchmarks?
- RQ4How does TS2-Net compare to strong baselines like CLIP4Clip and QB-Norm in handling fine-grained visual and motion cues?
- RQ5To what extent does the proposed method generalize across datasets with varying visual complexity and query types?
Key findings
- TS2-Net achieves new state-of-the-art performance on MSRVTT, VATEX, LSMDC, ActivityNet-Caption, and DiDeMo, with gains of up to 1.5% in R@1 on VATEX and 1.5% in MeanR on LSMDC.
- On a challenging subset of MSR-VTT with 103 queries emphasizing small objects and subtle movements, TS2-Net achieves 79.6 R@1, significantly outperforming CLIP4Clip’s 39.8.
- The ablation study confirms that both token shift and token selection modules independently improve retrieval accuracy, validating their individual contributions.
- TS2-Net surpasses QB-Norm on VATEX and LSMDC even without using inverted softmax during inference, indicating stronger intrinsic representation learning.
- Qualitative results show the model correctly retrieves videos containing small objects like 'microphone' and subtle actions like 'talking' or 'hand rubbing'.
- The model demonstrates robust generalization across diverse datasets, including those with complex captions and long-form videos.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.