High-Fidelity Document Stain Removal via A Large-Scale Real-World Dataset and A Memory-Augmented Transformer
Not on the map. Why?
Abstract (arXiv)
Document images are often degraded by various stains, significantly impacting their readability and hindering downstream applications such as document digitization and analysis. The absence of a comprehensive stained document dataset has limited the effectiveness of existing document enhancement methods in removing stains while preserving fine-grained details. To address this challenge, we construct StainDoc, the first large-scale, high-resolution (2145×2245) dataset specifically designed for document stain removal. StainDoc comprises over 5,000 pairs of stained and clean document images across multiple scenes. This dataset encompasses a diverse range of stain types, severities, and document backgrounds, facilitating robust training and evaluation of document stain removal algorithms. Furthermore, we propose StainRestorer, a Transformer-based document stain removal approach. StainRestorer employs a memory-augmented Transformer architecture that captures hierarchical stain representations at part, instance, and semantic levels via the DocMemory module. The Stain Removal Transformer (SRTransformer) leverages these feature representations through a dual attention mechanism: an enhanced spatial attention with an expanded receptive field, and a channel attention captures channel-wise feature importance. This combination enables precise stain removal while preserving document content integrity. Extensive experiments demonstrate StainRestorer's superior performance over state-of-the-art methods on the StainDoc dataset and its variants StainDocMark and StainDocSeal, establishing a new benchmark for document stain removal. Our work highlights the potential of memory-augmented Transformers for this task and contributes a valuable dataset to advance future research.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 36 of its 72 references that are in the map. First posted on arXiv 30 Oct 2024.
Builds on
36 of 72 references.
References · 36
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,177
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2021SwinIR: Image Restoration Using Swin Transformercited by 1,887
- 2021Restormer: Efficient Transformer for High-Resolution Image Restorationcited by 1,627
- 2021Uformer: A General U-Shaped Transformer for Image Restorationcited by 866
- 2022Activating More Pixels in Image Super-Resolution Transformercited by 438
- 2016Synthetic Data for Text Localisation in Natural Imagescited by 396
- 2023Explicit Visual Prompting for Low-Level Structure Segmentationscited by 114
- 2023A Comparative Study of Image Restoration Networks for General Backbone Network Designcited by 57
- 2023M6Doc: A Large-Scale Multi-Format, Multi-Type, Multi-Layout, Multi-Language, Multi-Annotation Category Dataset for Modern Document Layout Analysiscited by 46
24 more
- 2020DE-GAN: A Conditional Generative Adversarial Network for Document Enhancementcited by 44
- 2021DocTr: Document Image Transformer for Geometric Unwarping and Illumination Correctioncited by 39
- 2019Document Rectification and Illumination Correction using a Patch-based CNNcited by 38
- 2023DocDiff: Document Enhancement via Residual Diffusion Modelscited by 37
- 2023High-Resolution Document Shadow Removal via A Large-Scale Real-World Dataset and A Frequency-Aware Shadow Erasing Netcited by 36
- 2023CoordFill: Efficient High-Resolution Image Inpainting via Parameterized Coordinate Queryingcited by 34
- 2022DocEnTr: An End-to-End Document Image Enhancement Transformercited by 28
- 2024Depth-aware Test-Time Training for Zero-shot Video Object Segmentationcited by 27
- 2024DocRes: A Generalist Model Toward Unifying Document Image Restoration Taskscited by 27
- 2020SiENet: Siamese Expansion Network for Image Extrapolationcited by 18
- 2024Dual-Hybrid Attention Network for Specular Highlight Removalcited by 18
- 2023Explicit Visual Prompting for Universal Foreground Segmentationscited by 17
- 2022Text-DIAE: A Self-Supervised Degradation Invariant Autoencoders for Text Recognition and Document Enhancementcited by 16
- 2023Deep Unrestricted Document Image Rectificationcited by 16
- 2022UDoc-GAN: Unpaired Document Illumination Correction with Background Light Priorcited by 15
- 2024SMAFormer: Synergistic Multi-Attention Transformer for Medical Image Segmentationcited by 14
- 2024Test-Time Intensity Consistency Adaptation for Shadow Detectioncited by 11
- 2023DocDeshadower: Frequency-Aware Transformer for Document Shadow Removalcited by 9
- 2023Enlighten Anything: When Segment Anything Model Meets Low-Light Image Enhancementcited by 8
- 2023Memory augment is All You Need for image restorationcited by 8
- 2024ForgeryTTT: Zero-Shot Image Manipulation Localization with Test-Time Trainingcited by 8
- 2021End-to-End Unsupervised Document Image Blind Denoisingcited by 7
- 2021Enhance to Read Better: A Multi-Task Adversarial Network for Handwritten Document Image Enhancementcited by 7
- 2023Encoding Enhanced Complex CNN for Accurate and Highly Accelerated MRIcited by 3
Built on by
Citing papers per year: 2024: 4; 2025: 6; 2026: 2.
12 papers.
- 2025Visual Text Processing: A Comprehensive Review and Unified Evaluationcited by 19
- 2024Image Fusion for Cross-Domain Sequential Recommendationcited by 17
- 2024Prompt Categories Cluster for Weakly Supervised Semantic Segmentationcited by 16
- 2024Image Augmentation Agent for Weakly Supervised Semantic Segmentationcited by 15
- 2024Underwater Image Restoration via Polymorphic Large Kernel CNNscited by 14
- 2025LensNet: An End-to-End Learning Framework for Empirical Point Spread Function Modeling and Lensless Imaging Reconstructioncited by 6
- 2026Statistical Characteristic-Guided Denoising for Rapid High-Resolution Transmission Electron Microscopy Imagingcited by 3
- 2025DLEN: Dual Branch of Transformer for Low-Light Image Enhancement in Dual Domainscited by 2
- 2025TextMamba: Scene Text Detector with Mambacited by 2
- 2025Contrastive Prompt Clustering for Weakly Supervised Semantic Segmentationcited by 1
- 2025Forestpest-YOLO: A High-Performance Detection Framework for Small Forestry Pestscited by 0
- 2026DocPure: Prompt-Free Unified Document Restoration via Degradation-Aware Structure-Guided Wavelet Modulationcited by 0
- 2026DocPure: Prompt-Free Unified Document Restoration via Degradation-Aware Structure-Guided Wavelet Modulation10 Aug 2026
- 2026Statistical Characteristic-Guided Denoising for Rapid High-Resolution Transmission Electron Microscopy Imaging19 Mar 2026
- 2025TextMamba: Scene Text Detector with Mamba7 Dec 2025
- 2025Forestpest-YOLO: A High-Performance Detection Framework for Small Forestry Pests1 Oct 2025
- 2025Contrastive Prompt Clustering for Weakly Supervised Semantic Segmentation23 Aug 2025
- 2025LensNet: An End-to-End Learning Framework for Empirical Point Spread Function Modeling and Lensless Imaging Reconstruction3 May 2025
- 2025Visual Text Processing: A Comprehensive Review and Unified Evaluation30 Apr 2025
- 2025DLEN: Dual Branch of Transformer for Low-Light Image Enhancement in Dual Domains21 Jan 2025
- 2024Image Fusion for Cross-Domain Sequential Recommendation31 Dec 2024
- 2024Image Augmentation Agent for Weakly Supervised Semantic Segmentation29 Dec 2024
- 2024Underwater Image Restoration via Polymorphic Large Kernel CNNs24 Dec 2024
- 2024Prompt Categories Cluster for Weakly Supervised Semantic Segmentation18 Dec 2024