LayoutMamba: Efficient Document Layout Analysis with Hybrid Mamba-Transformer Networks
Abstract
Document layout analysis (DLA) faces a long-standing dilemma: existing methods either capture rich local details at prohibitive computational cost (e.g., Transformer-based approaches with quadratic complexity) or achieve efficient global modeling but sacrifice fine-grained structural awareness (e.g., state-space models). This trade-off hinders deployment in resource-constrained scenarios. We present LayoutMamba, a hybrid framework that synergistically combines sparse-attention Transformers for localized feature extraction (O(n) complexity) and the recurrent state-space mechanism of Mamba for dilution-free long-range dependency modeling across the 2D document canvas. Our two-stage paradigm first uses a lightweight Transformer encoder to hierarchically distill salient local semantics; second, Mamba propagates global contextual dependencies without attention dilution, enabling precise, efficient, and scalable layout understanding. We further identify a critical yet overlooked issue in existing DLA benchmarks: the inherent low-overlap distribution bias of layout objects, which we mitigate through a novel Geometric Overlap Penalty Loss (GOPLoss), a dual-optimization objective that minimizes redundant bounding box overlaps and encourages geometrically consistent predictions. Extensive experiments on PubLayNet and D4LA show that LayoutMamba surpasses state-of-the-art AP on PubLayNet with 8x fewer parameters and maintains leading performance on D4LA, ranking top-3 among published methods, achieving an unprecedented balance between accuracy, efficiency, and scalability. Our work pioneers a cognition-inspired paradigm for document analysis, advancing practical deployment in edge computing and resource-limited environments.
Create a lesson
Metadata
- Comments
- 12 pages, 2 figures, 4 tables
Related papers
ET: Efficient Transfer from Softmax to Hybrid Attention
Shared title terminologycs.CVGuangfu Guo, Xiaoqian Lu, Linsey Pang et al.
Adapt, Label, Distill: Foundation-Model Supervision for Efficient Object Detection
Shared title terminologycs.CVZhengye Yang, Anthony Wang, Yuyang Li et al.
Spec^2R: Recovering Emergent Properties in Supervised Vision Transformers
Shared title terminologycs.CVAdam Wróbel, Jacek Tabor, Bartosz Zieliński et al.
Lyris: Layout-Guided Long Video Generation with Persistent 3D Memory
Shared title terminologycs.CVChen Wang, Jiahui Huang, Riccardo de Lutio et al.
Modern Self-Supervised Vision Transformers Are Pareidolic
Shared title terminologycs.CVZihang Lin, Huaiyuan Qin, Liangli Zhen et al.
On-Policy Codec Distillation for Efficient All-in-One Video Generation
Shared title terminologycs.CVBoyang Wang, Kevin Blackburn-Matzen, Oindrila Saha et al.