UDBNET: Unsupervised Document Binarization Network via Adversarial Game

Amandeep Kumar, Shuvozit Ghose, Pinaki Nath Chowdhury, Partha Pratim Roy, Umapada PalarXiv 2020

TL;DR

UDBNET introduces a novel three-player adversarial game to solve document binarization without requiring paired training data. By coupling a texture augmentation network with a binarization network via a joint discriminator, the model effectively aligns synthetic noise distributions with real-world degradations, achieving state-of-the-art results on historical document datasets.

What Problem Does This Paper Address?

Document binarization—the process of separating text (foreground) from the page (background)—is a foundational step in Optical Character Recognition (OCR) and document analysis. While simple for clean documents, it becomes incredibly difficult for historical or poorly preserved ones suffering from "degradations" like ink bleed-through, stains, fading, and uneven lighting.

The current bottleneck in the field is the lack of paired training data. Deep learning models typically need a degraded image and its perfect "ground truth" binary equivalent to learn. For historical archives, creating these pairs manually is labor-intensive and often impossible. Previous unsupervised attempts tried to generate synthetic noise, but they often suffered from "domain shift": the models learned to handle artificial noise but failed when faced with the messy, unpredictable nature of real-world document decay.

Methods

The authors propose a three-player min-max adversarial game consisting of two generators and one joint discriminator.

  1. ATANet (Adversarial Texture Augmentation Network): This generator takes a clean image ($C$) and a degraded reference image ($D$). It superimposes the texture/noise of $D$ onto $C$ to create a "pseudo-degraded" image ($G$).
  2. UDBNet (Unsupervised Document Binarization Network): This is the primary tool. It takes the generated noisy image ($G$) and attempts to recover the clean version ($C$). Crucially, it is also fed real degraded images ($D$) to produce binarized outputs ($B'$).
  3. Joint Discriminator ($J_D$): This is the "third player" that enforces realism. It receives pairs of images: either (Generated Noisy $G$, Clean $C$) or (Binarized Real $B'$, Degraded Real $D$). Its job is to distinguish between these pairs.
Fig. 1. Illustration of Our proposed Framework. The yellow highlighted region highlights our contribution over Bhunia et al. [14]. We have two networks: ATANet which takes Clean image C and Degraded image D as inputs and generates noisy degraded image G. On the other hand, UDBNet tries to get back the clean image from the generated noisy G. Thus, (C, G) acts as pseudo paired data to train the binarization network. Also, We feed degraded image D as an input to UDBNet and get the corresponding binarized image(B′). Then, we concat the image pairs (G, C) and (B′, D) and feed into joint discriminator to couple both ATANet and UDBNet. This enforces the UDBNet to generalize better for real degraded images

By training these three components together, the UDBNet is forced to treat real degraded images and synthetically noisy images as coming from the same distribution. This "adversarial game" continues until the joint discriminator can no longer tell the difference, effectively bridging the gap between synthetic and real-world noise.

Datasets

The model was trained and evaluated using the DIBCO (Document Image Binarization Contest) series, which are the industry standard for this task:

  • Training: DIBCO 2009, 2013, and H-DIBCO 2012, 2014.
  • Evaluation: H-DIBCO 2016 and DIBCO 2011.
  • Preprocessing: Images were resized into $256 \times 256$ patches and augmented via rotation to increase dataset diversity.

Key Insights and Ideas

  • Distribution Alignment: The core "aha moment" is realizing that binarization is essentially a domain adaptation problem. Instead of just training a binarizer on fake noise, the authors use the joint discriminator to ensure the relationship between clean and noisy images is consistent across both synthetic and real domains.
  • Content Consistency: Unlike previous models (like TANet) that were "content-unaware," UDBNET uses a content loss to ensure that when ATANet adds noise, it doesn't accidentally alter the underlying text.
  • Pseudo-Paired Data: The framework creates a virtuous cycle: as ATANet gets better at generating challenging, realistic noise, UDBNet gets better at removing it.

Key Results

UDBNET outperformed existing state-of-the-art (SOTA) methods across multiple metrics, including F-Measure (accuracy), PSNR (signal quality), and DRD (visual distortion).

  • Quantitative: On the H-DIBCO 2016 dataset, UDBNET achieved an F-Measure of 93.4%, surpassing the previous best unsupervised method (Bhunia et al.) at 92.3% and the supervised DeepOtsu at 91.4%.
  • Qualitative: As seen in the results, UDBNET is significantly better at preserving faint character strokes and ignoring heavy bleed-through compared to earlier methods.
Qualitative comparison showing UDBNET's superior ability to handle heavy degradation compared to previous methods.

Detailed performance metrics against a wide array of classical and deep learning baselines are summarized in the paper's quantitative tables: Table showing quantitative results on H-DIBCO 2016 and DIBCO 2011 datasets.

Table showing quantitative results on H-DIBCO 2016 and DIBCO 2011 datasets.

Limitations and Future Work

While the paper demonstrates impressive results, a few areas remain for exploration:

  • Training Complexity: Three-player GANs are notoriously difficult to balance and can be computationally expensive to train compared to simpler architectures.
  • Extreme Degradation: While it handles stains and bleed-through well, the paper does not deeply explore cases of physical document damage (like holes or missing fragments) where the "content" itself is partially lost.
  • Future Directions: The authors suggest that this adversarial framework could be adapted for other document processing tasks, such as watermark removal or document de-warping.

Summary updated

BibTeX
@misc{kumar2020udbnet,
  author = {Amandeep Kumar and Shuvozit Ghose and Pinaki Nath Chowdhury and Partha Pratim Roy and Umapada Pal},
  title = {{UDBNET: Unsupervised Document Binarization Network via Adversarial Game}},
  year = {2020},
  eprint = {2007.07075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.07075},
}
Figure