VisionLAN
VisionLAN recognizes scene text with a vision model that learns language context from occluded characters.
Documents and OCR · 701 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
- Documents and OCR
- Parameters
- 32.8M
- Operations
- 701
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV 2021
- Cited by
- 187 (as of 26 October 2026)
- Authors
- Yuxin Wang, Hong-Tao Xie, Shan-Cheng Fang and others
- License
- Apache-2.0
- 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
- m21397
- Graph hash
- a9697835cbc000b69ab8c42be49e6194fce490cbb6414cda122cd3a1eaaaec5b
- Skeleton hash
- dfefa6e30aabc4c455b10dde5106f1e24eef6dcbdb775f913001c17c472002c9
- Architecture hash
- 9886141212c388a7ecf20a6b852228a8459d59bf7a9276784d04bce070533d4e
- Diagram SHA-256
- 150eeeba9f6aa88ebf4466ceac7d6b7eb129845d8f40760efceef98335c74b31
- 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
VisionLAN (Visual Language Modeling Network) is a scene text recognizer that gives the vision model itself the language ability that earlier recognizers took from a separate language model. The paper argues that a separate language model adds computation that grows with the length of the word.
The network has three parts: a backbone, a Masked Language-aware Module (MLM) and a Visual Reasoning Module (VRM). During training, the MLM takes the visual features and the index of one character and generates a mask map that occludes that character in the features. The mask is learned from word-level annotations alone, through losses for predicting the masked character and the other characters. The VRM, built from transformer units and a parallel prediction layer, then predicts the whole word from the occluded features, using the other characters in the visual context. At test time the MLM is removed and only the VRM is used for recognition.
The paper uses ResNet45 as the backbone and recognizes 37 characters: a-z, 0-9 and an end-of-sequence symbol. Training runs in two steps, a language-free step and a language-aware step in which the mask occludes the feature map. The paper reports that VisionLAN improves speed by at least 39% (11.5 ms against 19 ms and 43.2 ms) without extra parameters. It also introduces the Occlusion Scene Text (OST) dataset of 4832 occluded images, on which it reports that VisionLAN improves the baseline model by 7.3% on average.
Key idea. VisionLAN trains a vision model to recognize words from feature maps with one character occluded, so it learns linguistic context without a separate language model.
- VisionLAN
- Visual Language Modeling Network
- scene text recognition
- STR
- From Two to One
- Masked Language-aware Module
- Visual Reasoning Module
- Occlusion Scene Text
- text recognition
- OCR
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2021onenewscenetext,
title={From Two to One: A New Scene Text Recognizer with Visual Language Modeling Network},
author={Yuxin Wang and Hongtao Xie and Shancheng Fang and Jing Wang and Shenggao Zhu and Yongdong Zhang},
year={2021},
eprint={2108.09661},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2108.09661},
}