NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

MSLKANet: A Multi-Scale Large Kernel Attention Network for Scene Text Removal

Guangtao LyuarXiv 2022

TL;DR

This paper introduces MSLKANet, a novel single-stage network for removing text from natural images while seamlessly filling in the background. By incorporating multi-scale large kernel attention (MSLKA) and large kernel spatial pyramid pooling (LKSPP), MSLKANet effectively captures long-range dependencies and global context, leading to state-of-the-art performance in scene text removal.

What Problem Does This Paper Address?

Scene text removal, the task of erasing text from images and replacing it with plausible background information, is crucial for applications like privacy protection, scene text retrieval, and image editing. While deep learning has significantly advanced this field, existing methods often struggle with capturing the global context and large receptive fields necessary for accurate text removal and natural background inpainting. Many approaches focus on cropped image patches, losing valuable global information, or rely on complex multi-stage pipelines. This paper aims to address this gap by proposing an end-to-end network that effectively leverages global information and large receptive fields for improved scene text removal.

Methods

The core of MSLKANet is its innovative architecture designed to capture both local and global image information. The network is built upon a U-Net style encoder-decoder structure with skip connections. Two key novel components are introduced:

  • Multi-Scale Large Kernel Attention (MSLKA): This module enhances the network's ability to understand long-range dependencies between text regions and their backgrounds. It achieves this by decomposing standard convolutions into depth-wise dilated convolutions with varying dilation rates. This allows for capturing information at multiple scales and granularities, effectively bridging the gap between local features and global context.
  • Large Kernel Spatial Pyramid Pooling (LKSPP): Inspired by Spatial Pyramid Pooling (SPP) and Atrous Spatial Pyramid Pooling (ASPP), LKSPP uses decomposed large kernel convolutions instead of depthwise separable atrous convolutions. This allows it to perceive more spatial information while maintaining large receptive fields and computational efficiency. It effectively fuses multi-scale information and contributes to better background reconstruction.

The training of MSLKANet utilizes a combination of reconstruction loss, perceptual loss (using VGG-16 features), and style loss, aiming to ensure both pixel-level accuracy and high-level semantic and stylistic consistency.

Datasets

The paper evaluates MSLKANet on two benchmark datasets:

  • SCUT-EnsText: A dataset containing 2,749 training images and 813 test images collected from real-world scenes.
  • SCUT-Syn: A synthetic dataset with 8,000 training images and 800 testing images.

The authors also demonstrate the generalization ability of their model on the SBMnet dataset for general object removal, indicating its potential beyond just text.

Key Insights and Ideas

  • Global context is paramount: The paper strongly emphasizes that ignoring global information is a significant limitation in existing scene text removal methods. Their findings, supported by experiments showing improvements when training on full images versus cropped ones, highlight the importance of a holistic view of the image.
  • Large kernels for long-range dependencies: The introduction of MSLKA demonstrates that large kernel convolutions, when combined with multi-scale attention, are highly effective in capturing relationships across larger image regions, which is crucial for understanding complex backgrounds and text placements.
  • Efficient multi-scale feature fusion: LKSPP offers an efficient way to integrate multi-scale information by cleverly decomposing large kernel convolutions, leading to better spatial perception without excessive computational overhead.
  • Generalization beyond text: The successful application of MSLKANet to general object removal on the SBMnet dataset suggests that the underlying principles of capturing global context and multi-scale features are transferable to other image manipulation tasks.

Key Results

MSLKANet achieves state-of-the-art performance on both synthetic and real-world datasets.

  • Quantitative improvements: On the SCUT-EnsText dataset, MSLKANet achieved a PSNR of 35.27 and an MSSIM of 97.27, outperforming previous methods. Similarly, on the SCUT-Syn dataset, it achieved a PSNR of 41.40 and an MSSIM of 98.58.
  • Qualitative improvements: Visual comparisons show that MSLKANet generates results with fewer color discrepancies, less blurriness, and cleaner backgrounds compared to other state-of-the-art methods. It is particularly effective at removing multi-scale texts.
  • Ablation studies: Experiments confirm the effectiveness of the proposed MSLKA and LKSPP modules, showing significant improvements over a baseline model when each component is added.

Limitations and Future Work

  • Handling blended text: The paper acknowledges that MSLKANet still struggles with texts that are heavily blended into the environment, making them difficult to distinguish from the background.
  • Specular text removal: Erasing specular text (text reflected on shiny surfaces) remains a challenge.
  • Integration with existing methods: The authors note that integrating their proposed blocks into existing, potentially older, architectures can be difficult due to their inherent design. They suggest that future work could focus on developing more adaptable integration strategies or rebuilding existing methods with their proposed architectural elements.

Summary updated

Abstract

Scene text removal aims to remove the text and fill the regions with perceptually plausible background information in natural images. It has attracted increasing attention due to its various applications in privacy protection, scene text retrieval, and text editing. With the development of deep learning, the previous methods have achieved significant improvements. However, most of the existing methods seem to ignore the large perceptive fields and global information. The pioneer method can get significant improvements by only changing training data from the cropped image to the full image. In this paper, we present a single-stage multi-scale network MSLKANet for scene text removal in full images. For obtaining large perceptive fields and global information, we propose multi-scale large kernel attention (MSLKA) to obtain long-range dependencies between the text regions and the backgrounds at various granularity levels. Furthermore, we combine the large kernel decomposition mechanism and atrous spatial pyramid pooling to build a large kernel spatial pyramid pooling (LKSPP), which can perceive more valid pixels in the spatial dimension while maintaining large receptive fields and low cost of computation. Extensive experimental results indicate that the proposed method achieves state-of-the-art performance on both synthetic and real-world datasets and the effectiveness of the proposed components MSLKA and LKSPP.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SCUT-EnsTextMSLKANetPSNR35.27+0.62 vs baselineScene Text Removal
Source quote
L165: MSLKANet(Ours) │ 35.27 │ 97.27 │ 0.0012 │ 1.6647 │ 0.0129 │ 0.0076 │ 51.3 │ 3.8 │ 7.0
SCUT-SynMSLKANetPSNR41.40+2 vs baselineScene Text Removal
Source quote
L190: MSLKANet │ 41.40 │ 98.58 │ 0.0001 │ 0.9976 │ 0.0026 │ 0.0003 │ 9.62M
SCUT-EnsTextMSLKANetMSSIM97.27Scene Text Removal
Source quote
L165: MSLKANet(Ours) │ 35.27 │ 97.27 │ 0.0012 │ 1.6647 │ 0.0129 │ 0.0076 │ 51.3 │ 3.8 │ 7.0
SCUT-SynMSLKANetMSSIM98.58Scene Text Removal
Source quote
L190: MSLKANet │ 41.40 │ 98.58 │ 0.0001 │ 0.9976 │ 0.0026 │ 0.0003 │ 9.62M
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
SCUT-EnsTextPSSTRNet baselinePSNR34.65Scene Text Removal
Source quote
L163: PSSTRNet │ 34.65 │ 96.75 │ 0.0014 │ 1.7161 │ 0.0135 │ 0.0074 │ 47.7 │ 5.1 │ 9.3
SCUT-SynPERT baselinePSNR39.40Scene Text Removal
Source quote
L186: PERT │ 39.40 │ 97.87 │ 0.0002 │ 1.4149 │ 0.0045 │ 0.0006 │ 14.00M
BibTeX
@misc{lyu2022mslkanet,
  author = {Guangtao Lyu},
  title = {{MSLKANet: A Multi-Scale Large Kernel Attention Network for Scene Text Removal}},
  year = {2022},
  eprint = {2211.06565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.06565},
}
Figure