atlas

Research map / Architectures and efficiency / Attention and transformers

DocMamba: Efficient Document Pre-training with State Space Model

AAAI 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DocMamba, a purely state-space-model (bidirectional Mamba) encoder for visually-rich document understanding that uses a Segment-First Bidirectional Scan, achieving SOTA-level F1 on FUNSD/CORD/SROIE with linear cost and length extrapolation.

Problem

Transformer-based VrDU pre-trained models have quadratic self-attention cost, limiting efficiency and the ability to process long, text-dense documents; it is unexplored whether SSMs like Mamba can work for VrDU.

Approach

Adapt Mamba to 2-D document layouts by scanning tokens segment-by-segment (layout-analysis segments, each scanned in Y-then-X order) in a bidirectional manner, using text and 2-D layout embeddings without 1-D position embeddings, and pre-training with MLM using variable batch sizes by sequence length.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use DocMamba instead of LayoutLMv3Document understanding models · FUNSDF1: 90.3 -> 91.7Helped
use DocMamba instead of LayoutLMv3Document understanding models · CORDF1: 96.6 -> 97.0Helped
use DocMamba instead of LayoutLMv2Receipt understanding models · SROIEF1: 96.3 -> 96.8Helped
use DocMamba instead of TILTReceipt understanding models · SROIEF1: 97.7 -> 96.8Hurt
replace SFBS with WFBS (ablation)DocMamba · FUNSDF1: 91.7 -> 80.8Hurt
limit pre-training input length to 512 instead of using variable lengths (ablation)DocMamba · FUNSDF1: 91.7 -> 90.8Hurt
limit pre-training input length to 512 instead of using variable lengths (ablation)DocMamba · CORDF1: 97.0 -> 96.6Hurt
limit pre-training input length to 512 instead of using variable lengths (ablation)DocMamba · SROIEF1: 96.8 -> 96.8No clear effect
increase test input length (ablation)DocMamba_512 · HRDoc-HardF1Helped
use DocMamba instead of LayoutLMv3Document understanding models · HRDoc-Hard, input length 2,560GPU memory savings: 88.3%Helped
use DocMamba instead of LayoutLMv3Document understanding models · HRDoc-Hard, input length 4096inference speed: 2.4 timesHelped

Surprising findings

Limitations

Experimental setup

Datasets: IIT-CDIP Test Collection 1.0 FUNSD CORD SROIE HRDoc

Benchmarks: FUNSD CORD SROIE HRDoc

Metrics: entity-level F1 GPU memory usage frames per second F1 vs input length

Baselines: BERT RoBERTa Mamba LayoutLM BROS LiLT SelfDoc UDoc TILT DocFormer XYLayoutLM LayoutLMv2

Builds on: Mamba Vim LayoutLMv3 BERT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy