All models

LayoutLMv3-Base-Explicit

Multimodal document Transformer pre-trained with unified text and image masking.

Documents and OCR · 579 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (14 KB)

Open in a new tab

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

Parameters
125.9M
Operations
579
Framework
PyTorch
Recurrent
No
Published
2022
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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1569
Graph hash
d69bf824914d9f676839f1a60e0a45f14cd6c76108b8a211efac80a32c530c65
Skeleton hash
8cde1505dab6561a7e8b091dc2b5d016ce4ad227858a2f1c564f2ed6c2028918
Architecture hash
1b04e613eda10e89ebba47e23d0bad5c63bf6226c21ac80f636d1129d063ed37
Diagram SHA-256
9f7f97af85d9e58019037bd1b26d9d629f70d910c199116a0cc99a66fb0ae2e7
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

About this model's family

LayoutLMv3 is a multimodal Transformer for Document AI, pre-trained with unified text and image masking. It simplifies LayoutLMv2 by feeding the page through patch embeddings, as in ViT, instead of a CNN backbone. Pre-training combines three objectives: masked language modeling, masked image modeling and word-patch alignment. The alignment objective asks the model to predict whether the image patch belonging to a text word has been masked, which is how it learns to tie the two modalities together.

The paper reports state-of-the-art results on text-centric tasks such as form understanding, receipt understanding and document visual question answering, and on image-centric tasks such as document image classification and layout analysis. Both traced members are the question-answering head, LayoutLMv3ForQuestionAnswering, so the graph ends in a pair of span logits. One preprocessing quirk: text is tokenized with byte-pair encoding rather than WordPiece.

Key idea. LayoutLMv3 pre-trains one multimodal Transformer for Document AI with unified text and image masking plus a word-patch alignment objective, replacing LayoutLMv2's CNN backbone with ViT-style patch embeddings.

  • LayoutLMv3
  • LayoutLM
  • document AI
  • document question answering
  • DocVQA
  • form understanding
  • layout analysis
  • multimodal document transformer

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.