atlas

Research map / Detection and segmentation / Open-set and few-shot detection

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

CVPR 2025 · Detection and segmentation › Open-set and few-shot detection · approach: Interactive and referring segmentation · 5 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.

DocSAM is a transformer-based unified model that segments diverse document images (layout analysis, multi-granularity text, table structure) by decomposing tasks into instance and semantic queries, trained jointly on ~48 heterogeneous datasets.

Problem

Document image segmentation tasks (layout analysis, text detection, table structure recognition) are handled by separate specialized models, which limits generalization and wastes compute and storage.

Approach

Embed dataset class names with Sentence-BERT into semantic queries that act as class prototypes alongside learnable instance queries; instance classes come from dot-product similarity with semantic queries, turning the closed-set classifier into an open-set one so one model can train on heterogeneous datasets.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add curriculum learning (ablation)DocSAM-base · 15-dataset averagemAP: 0.3804 -> 0.3869Helped
add SimMIM pre-training (ablation)DocSAM-base · 15-dataset averagemAP: 0.3804 -> 0.1002Hurt
freeze Sentence-BERT weights (ablation)DocSAM-base · 15-dataset averagemAP: 0.3804 -> 0.3843No clear effect
add masked attention (ablation)DocSAM-base · 15-dataset averagemAP: 0.2322 -> 0.3804Helped
add query interaction (ablation)DocSAM-base · 15-dataset averagemAP: 0.2990 -> 0.3804Helped
add instance query selection (ablation)DocSAM-base · 15-dataset averagemAP: 0.3341 -> 0.3804Helped
increase model capacity to DocSAM-large (ablation)DocSAM-base · 15-dataset averagemAP: 0.3804 -> 0.3900Helped

Surprising findings

Limitations

Experimental setup

Datasets: PubLayNet M6Doc D4LA DocLayNet SCUT-CAB HJDataset CASIA-HWDB SCUT-HCCDoc FinTabNet PubTabNet TableBank CTW1500

Benchmarks: M6Doc SCUT-CAB CTW1500 Total-Text D4LA DocLayNet PubLayNet FinTabNet PubTabNet TableBank IIIT-AR-13K CHDAC-2022

Metrics: mAP mAPb mAF mIoU AP50 AP75 precision recall F-score

Baselines: Faster R-CNN Mask R-CNN Deformable DETR ISTR TransDLANet DAT SCNet VSR HierText DPText-DETR ESTextSpotter

Builds on: Mask2Former Deformable DETR SAM Sentence-BERT SimMIM

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