
layoutlmv3 (document question answering)
Documents and OCR579 ops125.9M params
Multimodal document Transformer pre-trained with unified text and image masking.
Documents and OCR · 579 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.
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.
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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.