arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.34879cs.CV
收藏

LayoutMamba:基于混合Mamba-Transformer网络的高效文档布局分析

LayoutMamba: Efficient Document Layout Analysis with Hybrid Mamba-Transformer Networks

Kehua Chen, Mingyi Chen

AI总结:

针对文档布局分析中精度与效率难以兼顾的问题,提出结合稀疏注意力Transformer与Mamba循环状态空间机制的LayoutMamba混合框架,辅以几何重叠惩罚损失缓解基准分布偏差,在两个数据集上实现精度、效率与可扩展性的平衡。

摘要:

文档布局分析(DLA)面临长期存在的两难困境:现有方法要么以高昂的计算成本捕获丰富的局部细节(例如具有二次复杂度的基于Transformer的方法),要么实现高效的全局建模但牺牲细粒度结构感知(例如状态空间模型)。这种权衡阻碍了其在资源受限场景中的部署。我们提出LayoutMamba,这是一种混合框架,协同结合稀疏注意力Transformer(用于局部特征提取,复杂度为O(n))和Mamba的循环状态空间机制(用于跨2D文档画布的无稀释长程依赖建模)。我们的两阶段范式首先使用轻量级Transformer编码器分层提取显著的局部语义;其次,Mamba传播全局上下文依赖而无注意力稀释,实现精确、高效且可扩展的布局理解。我们进一步发现现有DLA基准中一个关键但被忽视的问题:布局对象固有的低重叠分布偏差,我们通过新颖的几何重叠惩罚损失(GOPLoss)缓解该问题,这是一种双重优化目标,可最小化冗余边界框重叠并鼓励几何一致的预测。在PubLayNet和D4LA上的大量实验表明,LayoutMamba在PubLayNet上以少8倍的参数超越了最先进的平均精度(AP),并在D4LA上保持领先性能,在已发表方法中排名前三,实现了精度、效率和可扩展性之间前所未有的平衡。我们的工作开创了一种受认知启发的文档分析范式,推进了其在边缘计算和资源受限环境中的实际部署。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑