Robustness Evaluation of Transformer-based Form Field Extractors via Form Attacks

Le Xue, Mingfei Gao, Zeyuan Chen, Caiming Xiong, Ran Xu
10/8/2021
cs.CVcs.AI
transformer-attention

Official code: makcedward/nlpaug (4,664 stars, Jupyter Notebook, MIT, last commit 2024-06-24).

Abstract

We propose a novel framework to evaluate the robustness of transformer-based form field extraction methods via form attacks. We introduce 14 novel form transformations to evaluate the vulnerability of the state-of-the-art field extractors against form attacks from both OCR level and form level, including OCR location/order rearrangement, form background manipulation and form field-value augmentation.

Show full abstract

We conduct robustness evaluation using real invoices and receipts, and perform comprehensive research analysis. Experimental results suggest that the evaluated models are very susceptible to form perturbations such as the variation of field-values (~15% drop in F1 score), the disarrangement of input text order(~15% drop in F1 score) and the disruption of the neighboring words of field-values(~10% drop in F1 score). Guided by the analysis, we make recommendations to improve the design of field extractors and the process of data collection.

View on arXivView PDF

Code Implementations(1)

makcedward/nlpaugOfficial100%
MIT

Data augmentation for NLP

4,664470Jupyter Notebook, PythonMar 21, 20192 years agoMIT
adversarial-attacksadversarial-exampleaiartificial-intelligenceaugmentation+5 more

Similar Papers

Cite this paper

@article{xue2021robustness,
  title  = {Robustness Evaluation of Transformer-based Form Field Extractors via Form Attacks},
  author = {Le Xue and Mingfei Gao and Zeyuan Chen and Caiming Xiong and Ran Xu},
  year   = {2021},
  eprint = {2110.04413},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.04413}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.04413.svg)](https://codeofpaper.com/paper/2110.04413)

Discussion