Dolphin
Swin-encoder, mBart-decoder document parser that analyzes page layout, then parses elements in parallel.
Documents and OCR · 1,899 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
- 397.7M
- Operations
- 1,899
- Framework
- PyTorch
- Recurrent
- No
- Published
- Findings of the Association for Computational Linguistics: ACL (Findings of ACL) (arXiv 2025)
- Cited by
- 13 (as of 30 October 2026)
- Authors
- Hao Feng, Shu Wei, Xiang Fei and others
- 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
- m16180
- Graph hash
- fdc158f62e5364efb51cf4fd5c97cf1e11e40da34b0dae48cccd5f0b7871cd08
- Skeleton hash
- c0200b851180b50639f53458fb5e50ce8f6dadbdcbc2754ab51a1ab4a5307145
- Architecture hash
- 9d961526e3fa2c9cd301f94d7c395662ded8e384034b8f6dfdb63b1178a2955c
- Diagram SHA-256
- df007ac3f6c158e3e9923e8df21a1c6d0bcfbdf25cff280c38c7d52a9c37caec
- 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
Dolphin (Document Image Parsing via Heterogeneous Anchor Prompting) is a multimodal document image parsing model that follows an analyze-then-parse paradigm. It is aimed at pages whose text paragraphs, figures, formulas and tables are intertwined.
In the first stage, Dolphin generates a sequence of layout elements in reading order. In the second stage those elements serve as anchors and, coupled with task-specific prompts, are fed back to Dolphin so that their contents are parsed in parallel. Both stages use one vision-language model with shared parameters, operating on different input granularities with different prompts.
The encoder is a Swin Transformer with a window size of 7 and [2, 2, 14, 2] encoder layers. The decoder is mBart, with 10 Transformer layers and a hidden dimension of 1024. The authors initialized Dolphin with pretrained weights from Donut and trained it on a dataset they built of over 30 million samples. The paper reports 322M parameters, and on its own Dolphin-Page benchmark it reports an edit distance of 0.1283.
Key idea. Dolphin parses document images in two stages, first generating layout elements in reading order and then using them as anchors with task-specific prompts for parallel content parsing.
- Dolphin
- Document Image Parsing via Heterogeneous Anchor Prompting
- document parsing
- document image parsing
- OCR
- layout analysis
- table extraction
- formula recognition
- analyze-then-parse
- reading order
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{feng2025dolphindocumentimageparsing,
title={Dolphin: Document Image Parsing via Heterogeneous Anchor Prompting},
author={Hao Feng and Shu Wei and Xiang Fei and Wei Shi and Yingdong Han and Lei Liao and Jinghui Lu and Binghong Wu and Qi Liu and Chunhui Lin and Jingqun Tang and Hao Liu and Can Huang},
year={2025},
eprint={2505.14059},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2505.14059},
}