VSLNet
Span-based network that locates the video segment matching a text query, using query-guided highlighting.
Video · 289 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
- Video
- Parameters
- 1.1M
- Operations
- 289
- Framework
- PyTorch
- Recurrent
- No
- Published
- ACL 2020
- Cited by
- 304 (as of 29 October 2026)
- Authors
- Hao Zhang, Aixin Sun, Wei Jing, Joey Tianyi Zhou
- Source
- GitHub: IsaacChanghau/VSLNet
- License
- MIT
- 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
- m21314
- Graph hash
- 070fa38e171933bcd06adf6e94d90d479590d99289d2234cd26aada337abbaa2
- Skeleton hash
- cc617173810c27bd89dbd0b0b224e64e77411c8c1279b48787681a83906db2f2
- Architecture hash
- c6bd6bbed649ed66f96fb79333fd9f3b16686dd77ef7677a3c464d48a8cc2773
- Diagram SHA-256
- 4f8d3f3510fc6e3eed51059bbe36e4757ad13792b6a16bbdde5eabb1d0291832
- 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
VSLNet (Video Span Localizing Network) finds the span of an untrimmed video that matches a text query, a task called natural language video localization (NLVL). Its idea comes from span-based question answering: the video features are treated like a text passage, and the target moment is regarded as the answer span. Existing solutions, the paper says, treated the task as ranking with a multimodal matching architecture or as direct regression of the span.
Video features and word embeddings share one feature encoder, a single block of four convolution layers followed by a multi-head attention layer. Context-query attention then models the interaction between the two. A span predictor built from two unidirectional LSTMs and two feed-forward layers scores the start and end boundaries. On top of this baseline, VSLNet adds query-guided highlighting (QGH), a binary classification module that predicts whether each visual feature belongs to the foreground or the background. The span search then happens within the highlighted region.
The paper reports that VSLNet performed best among all the methods it evaluated on three benchmark datasets. This model uses the RNN answer predictor; the repository later added a stacked transformers predictor head and notes that it performs better than the RNN head in general. The README also says that, for unknown reasons, the PyTorch code performs below the TensorFlow code on some datasets.
Key idea. The paper treats the input video as a text passage and solves video localization with a span-based QA network, adding query-guided highlighting to narrow the search to a highlighted region.
- VSLNet
- Video Span Localizing Network
- natural language video localization
- NLVL
- video moment localization
- span-based QA
- query-guided highlighting
- video span localization
- text-to-video localization
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2020spanbasedlocalizingnetworknatural,
title={Span-based Localizing Network for Natural Language Video Localization},
author={Hao Zhang and Aixin Sun and Wei Jing and Joey Tianyi Zhou},
year={2020},
eprint={2004.13931},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2004.13931},
}