[论文解读] High-Fidelity Document Stain Removal via A Large-Scale Real-World Dataset and A Memory-Augmented Transformer
本文提出 StainRestorer,一种基于记忆增强的 Transformer 模型,用于高保真度文档污渍去除,利用一种新颖的分层 DocMemory 模块和具备双重注意力机制的污渍去除 Transformer(SRTransformer)。该研究提出了 StainDoc,这是首个大规模、高分辨率(2145×2245)的图像数据集,包含超过 5,000 对污渍-清洁图像对,在 StainDoc 数据集上实现了最先进的性能指标:PSNR(34.191)、SSIM(0.955)和 LPIPS(0.067)。
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 imes2245$) 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 StainDoc\_Mark and StainDoc\_Seal, 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.
研究动机与目标
- 为解决当前缺乏大规模、高分辨率真实世界文档污渍去除数据集的问题,该问题限制了模型的泛化能力和性能表现。
- 开发一种深度学习模型,能够精确去除多种类型的污渍(如墨水和饮料污渍),同时保留文本、字体和图形等细粒度文档细节。
- 克服现有方法依赖手工设计特征或无法区分污渍与真实文档内容的局限性。
- 通过构建一个全面的数据集和一种具有分层特征学习能力的新架构,建立文档污渍去除任务的新基准。
提出的方法
- 作者构建了 StainDoc,一个大规模、高分辨率(2145×2245)的数据集,包含超过 5,000 对来自不同场景、污渍类型、严重程度和背景的污渍-清洁文档图像对。
- 提出了一种新颖的 DocMemory 模块,通过使用多个记忆单元,在部件、实例和语义层级上捕捉分层的污渍表征,实现多粒度特征提取。
- Stain Removal Transformer(SRTransformer)采用增强的空间注意力机制,扩大感受野,以建模污渍的长距离依赖关系和空间模式。
- 集成通道注意力机制,以突出通道级别的特征重要性,提升模型区分污渍伪影与真实文档内容的能力。
- SRTransformer 中的双重注意力机制可实现污渍的精确定位与去除,同时保持底层文本和图形元素的完整性。
- 模型在 StainDoc 数据集上进行端到端训练,并在多个变体(包括 StainDoc_Mark 和 StainDoc_Seal)上进行评估,采用 PSNR、SSIM、LPIPS 和 MAE 等标准指标。
实验结果
研究问题
- RQ1记忆增强的 Transformer 架构在捕捉文档污渍分层表征方面是否有效?
- RQ2结合空间注意力与通道注意力的双重注意力机制,是否能提升污渍去除的保真度,同时保留文档细节?
- RQ3与现有合成数据集或有限数据集相比,像 StainDoc 这样大规模的真实世界数据集在多大程度上提升了模型的泛化能力和性能表现?
- RQ4DocMemory 模块的分层结构在区分复杂污渍图案与真实文档内容方面起到了何种作用?
- RQ5DocMemory 模块与 SRTransformer 在 StainRestorer 模型整体性能中的相对贡献分别是什么?
主要发现
- StainRestorer 在 StainDoc 数据集上达到最先进性能,PSNR 为 34.191,SSIM 为 0.955,LPIPS 为 0.067,显著优于现有方法。
- 消融实验表明,若移除 DocMemory 模块,性能显著下降,PSNR 从 23.372 降至 23.019,凸显其在特征表征中的关键作用。
- 将分层的 DocMemory 替换为单层结构后,PSNR 在 StainDoc 上下降 0.255,证明了渐进式、多层级特征优化的优势。
- SRTransformer 组件至关重要:若将其替换为标准 Vision Transformer,PSNR 在 StainDoc 上下降 0.873,证实其在空间映射与污渍定位方面的有效性。
- 在 StainDoc_Mark 和 StainDoc_Seal 变体上,StainRestorer 分别取得 PSNR 34.191 和 33.298,LPIPS 均低于 0.07,表明其具有高感知质量与强鲁棒性。
- 定性结果表明,StainRestorer 能有效去除如墨水和茶渍等复杂污渍,且不引入伪影,同时保持文本可读性与图形细节完整性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。