TextMamba: Scene Text Detector with Mamba

Qiyan Zhao, Yue Yan, Da-Han Wang
12/7/2025
cs.CVcs.AI

No official code found. Best implementation: ErikZ719/TextMamba (9 stars, last commit 2026-02-11).

Abstract

In scene text detection, Transformer-based methods have addressed the global feature extraction limitations inherent in traditional convolution neural network-based methods. However, most directly rely on native Transformer attention layers as encoders without evaluating their cross-domain limitations and inherent shortcomings: forgetting important information or focusing on irrelevant representations when modeling long-range dependencies for text detection. The recently proposed state space model Mamba has demonstrated better long-range dependencies modeling through a linear complexity selection mechanism. Therefore, we propose a novel scene text detector based on Mamba that integrates the selection mechanism with attention layers, enhancing the encoder's ability to extract relevant information from long sequences. We adopt the Top\_k algorithm to explicitly select key information and reduce the interference of irrelevant information in Mamba modeling. Additionally, we design a dual-scale feed-forward network and an embedding pyramid enhancement module to facilitate high-dimensional hidden state interactions and multi-scale feature fusion. Our method achieves state-of-the-art or competitive performance on various benchmarks, with F-measures of 89.7\%, 89.2\%, and 78.5\% on CTW1500, TotalText, and ICDAR19ArT, respectively. Codes will be available.

View on arXivView PDF

Code Implementations(1)

ErikZ719/TextMambaCommunity55%

[IJCNN 25] TextMamba: Scene Text Detector with Mamba

90C++, CudaMay 16, 20258 months ago

Similar Papers

Cite this paper

@article{zhao2025textmamba,
  title  = {TextMamba: Scene Text Detector with Mamba},
  author = {Qiyan Zhao and Yue Yan and Da-Han Wang},
  year   = {2025},
  eprint = {2512.06657},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.06657v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.06657.svg)](https://codeofpaper.com/paper/2512.06657)

Discussion