Skip to main content
QUICK REVIEW

[Paper Review] ET-SAM: Efficient Point Prompt Prediction in SAM for Unified Scene Text Detection and Layout Analysis

Xike Zhang, Maoyuan Ye|arXiv (Cornell University)|Mar 26, 2026
Handwritten Text Recognition TechniquesComputer Science0 citations
TL;DR

ET-SAM introduces a lightweight point-decoder to generate sparse word-centered prompts, enabling faster SAM-based unified scene text detection and layout analysis with joint training on heterogeneous annotations.

ABSTRACT

Previous works based on Segment Anything Model (SAM) have achieved promising performance in unified scene text detection and layout analysis. However, the typical reliance on pixel-level text segmentation for sampling thousands of foreground points as prompts leads to unsatisfied inference latency and limited data utilization. To address above issues, we propose ET-SAM, an Efficient framework with two decoders for unified scene Text detection and layout analysis based on SAM. Technically, we customize a lightweight point decoder that produces word heatmaps for achieving a few foreground points, thereby eliminating excessive point prompts and accelerating inference. Without the dependence on pixel-level segmentation, we further design a joint training strategy to leverage existing data with heterogeneous text-level annotations. Specifically, the datasets with multi-level, word-level only, and line-level only annotations are combined in parallel as a unified training set. For these datasets, we introduce three corresponding sets of learnable task prompts in both the point decoder and hierarchical mask decoder to mitigate discrepancies across datasets.Extensive experiments demonstrate that, compared to the previous SAM-based architecture, ET-SAM achieves about 3$ imes$ inference acceleration while obtaining competitive performance on HierText, and improves an average of 11.0% F-score on Total-Text, CTW1500, and ICDAR15.

Motivation & Objective

  • Address the high latency and data-usage limitations of prior SAM-based methods for unified scene text detection and layout analysis.
  • Develop a lightweight point decoder to produce sparse word heatmaps and foreground points for prompts.
  • Enable joint training on datasets with heterogeneous text-level annotations to improve data scalability.
  • Mitigate dataset discrepancies with task prompts in both the point decoder and hierarchical mask decoder.

Proposed method

  • Replace dense pixel-level foreground sampling with a lightweight point decoder that outputs a word-centric heatmap and extracts sparse points as prompts.
  • Use a frozen SAM prompt encoder to convert these points into prompts for a hierarchical mask decoder that yields word, word-group, text-line, and paragraph masks.
  • Introduce learnable task prompts in both the point decoder and HM-Decoder to handle heterogeneous data distributions and different text granularities.
  • Employ a joint training strategy that mixes multi-level, word-level, and text-line datasets into a unified training pool with synchronized batches.
  • Train with a composite loss: L = 50*L_point + L_word + L_word_group + L_line + 0.5*L_para, where L_point is an L2 heatmap loss and the others combine BCE, Dice, and IoU-based terms.
  • During training, generate pseudo labels for text-line datasets using word heatmaps to align with word-centric supervision.

Experimental results

Research questions

  • RQ1Can sparse word-centered prompts enable SAM-based models to achieve competitive unified scene text detection and layout analysis with lower latency?
  • RQ2How can heterogeneous text annotations (word-level, line-level, multi-level) be jointly leveraged to improve data scalability and model robustness?
  • RQ3What is the impact of task prompts on the point decoder and HM-Decoder across different datasets and text granularities?
  • RQ4To what extent can a lightweight point decoder accelerate inference while maintaining performance compared to pixel-based prompt strategies?

Key findings

  • ET-SAM achieves roughly 3x inference acceleration over the Hi-SAM baseline while maintaining competitive HierText performance.
  • Joint training on mixed annotations yields significant gains on single-level benchmarks after fine-tuning (average 11.0% F-score improvement on Total-Text, CTW1500, and ICDAR15).
  • Single-level results after joint training show substantial improvements across Total-Text, CTW1500, and ICDAR15 with up to 11.0% average F-score gains.
  • Task prompts in both the point decoder and HM-Decoder improve cross-dataset adaptation and overall segmentation quality across word, text-line, and paragraph levels.
  • Replacing Hi-SAM’s dense pixel-level prompt sampling with the proposed word heatmap–based point decoder substantially reduces latency (up to ~3.6x faster in a variant) while preserving or improving key metrics.
  • The approach demonstrates strong qualitative results on curved and dense text, with some remaining paragraph-level refinement opportunities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.