mlsanityData to 7 Oct 2026

Transformer-Based UNet with Multi-Headed Cross-Attention Skip Connections to Eliminate Artifacts in Scanned Documents

arXiv 2306.02815 ↗First posted 5 Jun 2023cs.CV cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

The extraction of text in high quality is essential for text-based document analysis tasks like Document Classification or Named Entity Recognition. Unfortunately, this is not always ensured, as poor scan quality and the resulting artifacts lead to errors in the Optical Character Recognition (OCR) process. Current approaches using Convolutional Neural Networks show promising results for background removal tasks but fail correcting artifacts like pixelation or compression errors. For general images, Transformer backbones are getting integrated more frequently in well-known neural network structures for denoising tasks. In this work, a modified UNet structure using a Swin Transformer backbone is presented to remove typical artifacts in scanned documents. Multi-headed cross-attention skip connections are used to more selectively learn features in respective levels of abstraction. The performance of this approach is examined regarding compression errors, pixelation and random noise. An improvement in text extraction quality with a reduced error rate of up to 53.9% on the synthetic data is archived. The pretrained base-model can be easily adapted to new artifacts. The cross-attention skip connections allow to integrate textual information extracted from the encoder or in form of commands to more selectively control the models outcome. The latter is shown by means of an example application.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 27 references that are in the map. First posted on arXiv 5 Jun 2023.

Builds on

19 of 27 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
  6. 2021SwinIR: Image Restoration Using Swin Transformercited by 1,869
  7. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  8. 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,218
  9. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  10. 2021Transformers in Vision: A Surveycited by 1,009
  11. 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
  12. 2022Activating More Pixels in Image Super-Resolution Transformercited by 433
7 more
  1. 2021OCR-free Document Understanding Transformercited by 400
  2. 2019PubLayNet: largest dataset ever for document layout analysiscited by 349
  3. 2021UCTransNet: Rethinking the Skip Connections in U-Net from a Channel-wise Perspective with Transformercited by 197
  4. 2020Spelling Error Correction with Soft-Masked BERTcited by 90
  5. 2022Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restorationcited by 72
  6. 2020DE-GAN: A Conditional Generative Adversarial Network for Document Enhancementcited by 44
  7. 2022SUNet: Swin Transformer UNet for Image Denoisingcited by 43

Built on by

Not cited yet.