arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.17322cs.CV

利用对比学习构建相似性引导的篡改文档数据生成管道

Leveraging Contrastive Learning for a Similarity-Guided Tampered Document Data Generation Pipeline

Mohamed Dhouib, Davide Buscaldi, Sonia Vanier, Aymen Shabou

AI总结:

本文提出利用对比学习生成高质量篡改文档图像,通过对比学习和辅助网络提升数据生成质量,有效解决数据稀缺问题。

摘要:

检测文档图像中的篡改文本是一项具有挑战性的任务,由于数据稀缺。为了解决这个问题,先前的工作尝试使用基于规则的方法生成篡改文档。然而,生成的文档往往存在种类有限和视觉质量差的问题,通常留下高度可见的伪影,这些伪影在现实世界中很少出现。这削弱了模型学习稳健、可推广特征的能力,并导致在真实数据上的性能不佳。受这一差异的启发,我们提出了一种生成高质量篡改文档图像的新方法。我们首先训练一个辅助网络来比较文本片段,利用对比学习,并采用一种新的策略来定义正样本对及其对应的负样本。我们还训练了第二个辅助网络来评估一个片段是否紧密包围了预期的字符,而不会截断字符的部分或包含相邻字符的部分。使用一个精心设计的生成管道,结合这两个网络,我们引入了一个能够生成多样、高质量篡改文档图像的框架。我们通过在由相同源图像生成的数据集上训练多个模型来评估我们的数据生成管道的有效性,这些数据集是使用我们的方法和现有方法生成的,并在相同的训练协议下进行训练。在各种开源数据集上评估这些模型,显示我们的管道在不同架构和数据集上都产生了持续的性能提升。

英文摘要:

Detecting tampered text in document images is a challenging task due to data scarcity. To address this, previous work has attempted to generate tampered documents using rule-based methods. However, the resulting documents often suffer from limited variety and poor visual quality, typically leaving highly visible artifacts that are rarely observed in real-world manipulations. This undermines the model's ability to learn robust, generalizable features and results in poor performance on real-world data. Motivated by this discrepancy, we propose a novel method for generating high-quality tampered document images. We first train an auxiliary network to compare text crops, leveraging contrastive learning with a novel strategy for defining positive pairs and their corresponding negatives. We also train a second auxiliary network to evaluate whether a crop tightly encloses the intended characters, without cutting off parts of characters or including parts of adjacent ones. Using a carefully designed generation pipeline that leverages both networks, we introduce a framework capable of producing diverse, high-quality tampered document images. We assess the effectiveness of our data generation pipeline by training multiple models on datasets derived from the same source images, generated using our method and existing approaches, under identical training protocols. Evaluating these models on various open-source datasets shows that our pipeline yields consistent performance improvements across architectures and datasets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑