X-Pool
A CLIP-based text-video retrieval model that pools video frames with attention weights set by the text.
Multimodal · 980 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Multimodal
- Parameters
- 152.6M
- Operations
- 980
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2022
- Cited by
- 238 (as of 29 October 2026)
- Authors
- Satya Krishna Gorti, Noel Vouitsis, Junwei Ma and others
- Source
- GitHub: layer6ai-labs/xpool
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m21518
- Graph hash
- d3ed54a6c8b30c6d6ca18606bb03c66ba6cc57aed6878bf345285520ab5ddf3b
- Skeleton hash
- 84a42d05421efd824c50e03f6fe26e82b564c11d324b8305d6ffb1b231e2177a
- Architecture hash
- 0fadd43eb45f258c1c5a187dbe0b7c92d5705664421ca877606fc1b80983a454
- Diagram SHA-256
- 1ffca6d107d313d4a506ea701ce2218500386aa0867c266c5ca16fe3252f6b5d
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
X-Pool is a text-video retrieval model in which the text decides how a video's frames are pooled into a single video representation. The paper's premise is that a text describes only part of a video and is most semantically similar to certain frames within it. Text-agnostic aggregation such as mean-pooling or self-attention over the frames is, the authors argue, likely to encode misleading visual information not described in the given text.
The model starts from CLIP: its ViT-B/32 image encoder embeds each frame and its transformer text encoder embeds the text. The core mechanism is a scaled dot product attention in which the text attends to its most semantically similar frames. Value-projected frame embeddings are weighted by those attention scores, and the aggregated video embedding passes through a fully connected layer with a residual connection before it is compared with the text embedding. In the paper's experiments, 12 frames are sampled uniformly from every video and resized to 224x224.
The paper evaluates on three benchmark datasets, MSRVTT, MSVD and LSMDC, and reports a relative improvement of up to 12% in Recall at 1 over earlier results. It attributes its gains over CLIP4Clip, which also uses CLIP as a backbone, to text-conditioned pooling in place of text-agnostic pooling. The paper also reports that X-Pool remains robust as the number of scene transitions in a video grows, while mean-pooling deteriorates.
Key idea. X-Pool lets a text attend to its most semantically similar video frames and pools the frames with those attention weights, in place of text-agnostic mean-pooling or self-attention.
- x-pool
- xpool
- text-video retrieval
- video retrieval
- cross-modal attention
- text-conditioned pooling
- language-video attention
- video-text matching
- msrvtt
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{gorti2022xpoolcrossmodallanguagevideoattention,
title={X-Pool: Cross-Modal Language-Video Attention for Text-Video Retrieval},
author={Satya Krishna Gorti and Noel Vouitsis and Junwei Ma and Keyvan Golestan and Maksims Volkovs and Animesh Garg and Guangwei Yu},
year={2022},
eprint={2203.15086},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2203.15086},
}