File size: 4,165 Bytes
5408e3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
license: mit
task_categories:
- video-text-retrieval
- text-to-video
language:
- en
tags:
- video-retrieval
- generative-retrieval
- semantic-ids
- text-to-video
size_categories:
- 10K<n<100K
---

# GRDR-TVR: Generative Recall, Dense Reranking for Text-to-Video Retrieval

This dataset contains the pre-extracted video features and trained model checkpoints for the GRDR (Generative Recall, Dense Reranking) framework for efficient Text-to-Video Retrieval (TVR).

## πŸ“„ Paper

**Generative Recall, Dense Reranking: Learning Multi-View Semantic IDs for Efficient Text-to-Video Retrieval**

*Conference: SIGIR 2026*

[Paper PDF](https://arxiv.org/abs/XXXX.XXXXX) | [Code Repository](https://github.com/JasonCoderMaker/GRDR)

## πŸ“Š Dataset Overview

This dataset includes three main components:

### 1. InternVideo2 Features (~3.4GB)
Pre-extracted video features using InternVideo2 encoder for four benchmark datasets:
- **MSR-VTT**: 10,000 videos (932MB)
- **ActivityNet**: 20,000 videos (1.1GB)
- **DiDeMo**: 10,464 videos (916MB)
- **LSMDC**: 1,000 movies, 118,081 clips (424MB)

**Feature Details:**
- Dimension: 512-d embeddings
- Format: Pickle files (`.pkl`) with `{video_id: embedding}` mappings
- Extraction: InternVideo2 (InternVL-2B) with temporal pooling

### 2. GRDR Model Checkpoints (~2GB)
Trained GRDR models (T5-small based) for all four datasets:
- **MSR-VTT**: 494MB
- **ActivityNet**: 498MB  
- **DiDeMo**: 504MB
- **LSMDC**: 478MB

**Checkpoint Components:**
- `best_model.pt` - Complete model checkpoint
- `best_model.pt.model` - T5 encoder-decoder weights
- `best_model.pt.videorqvae` - Video RQ-VAE quantizer
- `best_model.pt.code` - Pre-computed semantic IDs
- `best_model.pt.centroids` - Codebook centroids
- `best_model.pt.embedding` - Learned embeddings
- `best_model.pt.start_token` - Start token embeddings

**Model Architecture:**
- Base: T5-small (60M parameters)
- Codebook size: 128/96/200 (dataset-dependent)
- Max code length: 3
- Training: 3-phase progressive training

### 3. Xpool Reranker Checkpoints (~7.2GB)
Pre-trained reranker models for dense reranking stage:
- **MSR-VTT**: msrvtt9k_model_best.pth (1.8GB)
- **ActivityNet**: actnet_model_best.pth (1.8GB)
- **DiDeMo**: didemo_model_best.pth (1.8GB)
- **LSMDC**: lsmdc_model_best.pth (1.8GB)

**Reranker Details:**
- Architecture: CLIP-based (ViT-B/32)
- Purpose: Fine-grained reranking of recalled candidates
- Format: PyTorch checkpoint files (`.pth`)

## πŸ“‚ Repository Structure

```
GRDR-TVR/
β”œβ”€β”€ README.md                          # This file
β”œβ”€β”€ download_features.py               # Python download utility
β”œβ”€β”€ download_checkpoints.sh            # Bash download script
β”‚
β”œβ”€β”€ InternVideo2/                      # Video Features (3.4GB)
β”‚   β”œβ”€β”€ actnet/
β”‚   β”‚   └── actnet_internvideo2.pkl
β”‚   β”œβ”€β”€ didemo/
β”‚   β”‚   └── didemo_internvideo2.pkl
β”‚   β”œβ”€β”€ lsmdc/
β”‚   β”‚   └── lsmdc_internvideo2.pkl
β”‚   └── msrvtt/
β”‚       └── msrvtt_internvideo2.pkl
β”‚
β”œβ”€β”€ GRDR/                              # GRDR Checkpoints (2GB)
β”‚   β”œβ”€β”€ actnet/best_model/
β”‚   β”œβ”€β”€ didemo/best_model/
β”‚   β”œβ”€β”€ lsmdc/best_model/
β”‚   └── msrvtt/best_model/
β”‚
└── Xpool/                             # Reranker Checkpoints (7.2GB)
    β”œβ”€β”€ actnet_model_best.pth
    β”œβ”€β”€ didemo_model_best.pth
    β”œβ”€β”€ lsmdc_model_best.pth
    └── msrvtt9k_model_best.pth
```

## πŸ“ License

This dataset is released under the MIT License. See [LICENSE](LICENSE) for details.

The video datasets (MSR-VTT, ActivityNet, DiDeMo, LSMDC) are subject to their original licenses. This repository only provides pre-extracted features, not the original videos.

## πŸ™ Acknowledgments

- **InternVideo2**: We thank the authors of InternVideo2 for their excellent video encoder
- **Xpool**: The reranker architecture is based on X-POOL
- **Datasets**: MSR-VTT, ActivityNet Captions, DiDeMo, and LSMDC benchmark creators


**Dataset Version**: 1.0  
**Last Updated**: January 2026  
**Maintained by**: [@JasonCoderMaker](https://huggingface.co/JasonCoderMaker)