arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.04085cs.CVcs.AI
收藏

DocSAM:通过查询分解与异构混合学习实现统一文档图像分割

DocSAM: Unified Document Image Segmentation via Query Decomposition and Heterogeneous Mixed Learning

Institute of Automation of Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学)

Xiao-Hui Li, Fei Yin, Cheng-Lin Liu

AI总结:

本文提出统一文档图像分割框架DocSAM,通过查询分解和异构混合学习联合处理版面分析、文本分割和表格识别等任务,在准确性、效率和适应性上超越现有方法。

摘要:

文档图像分割对于文档分析与识别至关重要,但由于文档格式和分割任务的多样性,该任务仍具挑战性。现有方法通常分别处理这些任务,导致泛化能力有限和资源浪费。本文提出了DocSAM,一个基于Transformer的统一框架,旨在处理多种文档图像分割任务,如文档版面分析、多粒度文本分割和表格结构识别,通过将这些任务建模为实例分割与语义分割的组合。具体而言,DocSAM采用Sentence-BERT将每个数据集中的类别名称映射为与实例查询维度相匹配的语义查询。这两组查询通过注意力机制进行交互,并与图像特征进行交叉注意力,以预测实例分割和语义分割掩码。实例类别通过计算实例查询与语义查询之间的点积,并对分数进行softmax归一化来预测。因此,DocSAM可以在异构数据集上联合训练,在增强鲁棒性和泛化能力的同时减少计算和存储资源。综合评估表明,DocSAM在准确性、效率和适应性方面超越了现有方法,凸显了其在推进各种应用中文档图像理解与分割的潜力。代码可在https://github.com/xhli-git/DocSAM获取。

英文摘要:

Document image segmentation is crucial for document analysis and recognition but remains challenging due to the diversity of document formats and segmentation tasks. Existing methods often address these tasks separately, resulting in limited generalization and resource wastage. This paper introduces DocSAM, a transformer-based unified framework designed for various document image segmentation tasks, such as document layout analysis, multi-granularity text segmentation, and table structure recognition, by modelling these tasks as a combination of instance and semantic segmentation. Specifically, DocSAM employs Sentence-BERT to map category names from each dataset into semantic queries that match the dimensionality of instance queries. These two sets of queries interact through an attention mechanism and are cross-attended with image features to predict instance and semantic segmentation masks. Instance categories are predicted by computing the dot product between instance and semantic queries, followed by softmax normalization of scores. Consequently, DocSAM can be jointly trained on heterogeneous datasets, enhancing robustness and generalization while reducing computational and storage resources. Comprehensive evaluations show that DocSAM surpasses existing methods in accuracy, efficiency, and adaptability, highlighting its potential for advancing document image understanding and segmentation across various applications. Codes are available at https://github.com/xhli-git/DocSAM.

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

↑