{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/layoutlmv3-pre-training-for-document-ai-with","title":"LayoutLMv3: Pre-training for Document AI with Unified Text and Image Masking","arxiv_id":"2204.08387","date":"2022-04-18","proceeding":null,"authors":["Yupan Huang","Tengchao Lv","Lei Cui","Yutong Lu","Furu Wei"],"abstract":"Self-supervised pre-training techniques have achieved remarkable progress in Document AI. Most multimodal pre-trained models use a masked language modeling objective to learn bidirectional representations on the text modality, but they differ in pre-training objectives for the image modality. This discrepancy adds difficulty to multimodal representation learning. In this paper, we propose \\textbf{LayoutLMv3} to pre-train multimodal Transformers for Document AI with unified text and image masking. Additionally, LayoutLMv3 is pre-trained with a word-patch alignment objective to learn cross-modal alignment by predicting whether the corresponding image patch of a text word is masked. The simple unified architecture and training objectives make LayoutLMv3 a general-purpose pre-trained model for both text-centric and image-centric Document AI tasks. Experimental results show that LayoutLMv3 achieves state-of-the-art performance not only in text-centric tasks, including form understanding, receipt understanding, and document visual question answering, but also in image-centric tasks such as document image classification and document layout analysis. The code and models are publicly available at \\url{https://aka.ms/layoutlmv3}.","url_abs":"https://arxiv.org/abs/2204.08387v3","url_pdf":"https://arxiv.org/pdf/2204.08387v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"layoutlmv3-pre-training-for-document-ai-with","repo_url":"https://github.com/microsoft/unilm/tree/master/layoutlmv3","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"layoutlmv3-pre-training-for-document-ai-with","repo_url":"https://github.com/huggingface/transformers","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"layoutlmv3-pre-training-for-document-ai-with","repo_url":"https://github.com/MindSpore-scientific-2/code-14/tree/main/layoutlmv3","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"layoutlmv3-pre-training-for-document-ai-with","repo_url":"https://github.com/pwc-1/Paper-9/tree/main/layoutlmv3","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null}],"tasks":[{"task_slug":"document-ai","task_name":"Document AI"},{"task_slug":"document-image-classification","task_name":"Document Image Classification"},{"task_slug":"document-layout-analysis","task_name":"Document Layout Analysis"},{"task_slug":"entity-linking","task_name":"Entity Linking"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"key-information-extraction","task_name":"Key Information Extraction"},{"task_slug":"key-value-pair-extraction","task_name":"Key-value Pair Extraction"},{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"masked-language-modeling","task_name":"Masked Language Modeling"},{"task_slug":"named-entity-recognition-ner","task_name":"Named Entity Recognition (NER)"},{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"semantic-entity-labeling","task_name":"Semantic entity labeling"},{"task_slug":"visual-question-answering-1","task_name":"Visual Question Answering"},{"task_slug":"visual-question-answering","task_name":"Visual Question Answering (VQA)"},{"task_slug":"cross-modal-alignment","task_name":"cross-modal alignment"},{"task_slug":"document-image-classification","task_name":"document-image-classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/document-ai-on-ephoie","task":"Document AI","dataset":"EPHOIE","model":"LayoutLMv3","rank_in_archive_order":1,"of":1,"metrics":{"Average F1":"99.21"},"uses_additional_data":false},{"leaderboard":"/sota/document-image-classification-on-rvl-cdip","task":"Document Image Classification","dataset":"RVL-CDIP","model":"LayoutLMV3Large","rank_in_archive_order":4,"of":31,"metrics":{"Accuracy":"95.93%","Parameters":"368M"},"uses_additional_data":false},{"leaderboard":"/sota/document-image-classification-on-rvl-cdip","task":"Document Image Classification","dataset":"RVL-CDIP","model":"LayoutLMv3BASE","rank_in_archive_order":9,"of":31,"metrics":{"Accuracy":"95.44%","Parameters":"133M"},"uses_additional_data":false},{"leaderboard":"/sota/document-layout-analysis-on-publaynet-val","task":"Document Layout Analysis","dataset":"PubLayNet val","model":"LayoutLMv3-B","rank_in_archive_order":5,"of":15,"metrics":{"Figure":"0.970","List":"0.955","Overall":"0.951","Table":"0.979","Text":"0.945","Title":"0.906"},"uses_additional_data":false},{"leaderboard":"/sota/entity-linking-on-ec-funsd","task":"Entity Linking","dataset":"EC-FUNSD","model":"LayoutLMv3 (large)","rank_in_archive_order":5,"of":8,"metrics":{"F1":"78.14"},"uses_additional_data":false},{"leaderboard":"/sota/entity-linking-on-ec-funsd","task":"Entity Linking","dataset":"EC-FUNSD","model":"LayoutLMv3 (base)","rank_in_archive_order":8,"of":8,"metrics":{"F1":"67.47"},"uses_additional_data":false},{"leaderboard":"/sota/key-information-extraction-on-cord","task":"Key Information Extraction","dataset":"CORD","model":"LayoutLMv3 Large","rank_in_archive_order":3,"of":9,"metrics":{"F1":"97.46"},"uses_additional_data":false},{"leaderboard":"/sota/key-information-extraction-on-ephoie","task":"Key Information Extraction","dataset":"EPHOIE","model":"LayoutLMv3","rank_in_archive_order":1,"of":1,"metrics":{"Average F1":"99.21"},"uses_additional_data":false},{"leaderboard":"/sota/key-value-pair-extraction-on-rfund-en","task":"Key-value Pair Extraction","dataset":"RFUND-EN","model":"LayoutLMv3","rank_in_archive_order":7,"of":13,"metrics":{"key-value pair F1":"57.66"},"uses_additional_data":false},{"leaderboard":"/sota/key-value-pair-extraction-on-sibr","task":"Key-value Pair Extraction","dataset":"SIBR","model":"LayoutLMv3_base_chinese","rank_in_archive_order":4,"of":7,"metrics":{"key-value pair F1":"73.51"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-ner-on-cord-r","task":"Named Entity Recognition (NER)","dataset":"CORD-r","model":"LayoutLMv3","rank_in_archive_order":3,"of":4,"metrics":{"F1":"82.72"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-ner-on-funsd-r","task":"Named Entity Recognition (NER)","dataset":"FUNSD-r","model":"LayoutLMv3","rank_in_archive_order":2,"of":4,"metrics":{"F1":"78.77"},"uses_additional_data":false},{"leaderboard":"/sota/relation-extraction-on-funsd","task":"Relation Extraction","dataset":"FUNSD","model":"LayoutLMv3 large","rank_in_archive_order":4,"of":9,"metrics":{"F1":"80.35"},"uses_additional_data":false},{"leaderboard":"/sota/semantic-entity-labeling-on-ec-funsd","task":"Semantic entity labeling","dataset":"EC-FUNSD","model":"LayoutLMv3 (large)","rank_in_archive_order":4,"of":8,"metrics":{"F1":"83.88"},"uses_additional_data":false},{"leaderboard":"/sota/semantic-entity-labeling-on-ec-funsd","task":"Semantic entity labeling","dataset":"EC-FUNSD","model":"LayoutLMv3 (base)","rank_in_archive_order":8,"of":8,"metrics":{"F1":"82.30"},"uses_additional_data":false},{"leaderboard":"/sota/semantic-entity-labeling-on-funsd","task":"Semantic entity labeling","dataset":"FUNSD","model":"LayoutLMv3 Large","rank_in_archive_order":5,"of":15,"metrics":{"F1":"92.08"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2204.08387","atlas_url":"https://app.syntology.ai/?focus=2204.08387","mcp":null,"developers":"https://syntology.ai/developers","held":true,"reason":"arxiv_id_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"agent_calls":[{"tool":"get_citation_path","arguments":{"paper_1":"2204.08387"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"2204.08387\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"2204.08387"},"call":"get_concepts_for_paper(arxiv_id=\"2204.08387\")"}],"by_repo":[{"repo":"microsoft/unilm","kind":"official","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":4,"harvested_for":["2002.12804","2106.08254","2203.00555","2601.23174"],"harvested_for_calls":[{"arxiv_id":"2002.12804","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2002.12804"},"call":"get_harvested_code_for_paper(arxiv_id=\"2002.12804\")"},{"arxiv_id":"2106.08254","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2106.08254"},"call":"get_harvested_code_for_paper(arxiv_id=\"2106.08254\")"},{"arxiv_id":"2203.00555","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2203.00555"},"call":"get_harvested_code_for_paper(arxiv_id=\"2203.00555\")"},{"arxiv_id":"2601.23174","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2601.23174"},"call":"get_harvested_code_for_paper(arxiv_id=\"2601.23174\")"}]},{"repo":"huggingface/transformers","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":4,"harvested_for":["1706.03762","1910.03771","2006.03654","2010.01057"],"harvested_for_calls":[{"arxiv_id":"1706.03762","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"1706.03762"},"call":"get_harvested_code_for_paper(arxiv_id=\"1706.03762\")"},{"arxiv_id":"1910.03771","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"1910.03771"},"call":"get_harvested_code_for_paper(arxiv_id=\"1910.03771\")"},{"arxiv_id":"2006.03654","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2006.03654"},"call":"get_harvested_code_for_paper(arxiv_id=\"2006.03654\")"},{"arxiv_id":"2010.01057","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2010.01057"},"call":"get_harvested_code_for_paper(arxiv_id=\"2010.01057\")"}]},{"repo":"MindSpore-scientific-2/code-14","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"pwc-1/Paper-9","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["1909.13719"],"harvested_for_calls":[{"arxiv_id":"1909.13719","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"1909.13719"},"call":"get_harvested_code_for_paper(arxiv_id=\"1909.13719\")"}]}],"by_repo_harvested_for_is":"harvested_for: the arXiv ids (as Syntology's graph holds them) of every paper whose samples Syntology's graph links to this repository, in arXiv-id order, complete; the page names the first 3 and says how many more. A link only: it does not say the papers are the same work, that one copied the other, or that the code implements this paper's method; harvested_for_calls gives the get_harvested_code_for_paper call for each arXiv-shaped id among them","by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"a6bc301be55d55b807755fc99b0704f23b3154b7d61d7092b35344c9ed87a660","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}