FormNet: Structural Encoding beyond Sequential Modeling in Form Document Information Extraction
About
Sequence modeling has demonstrated state-of-the-art performance on natural language and document understanding tasks. However, it is challenging to correctly serialize tokens in form-like documents in practice due to their variety of layout patterns. We propose FormNet, a structure-aware sequence model to mitigate the suboptimal serialization of forms. First, we design Rich Attention that leverages the spatial relationship between tokens in a form for more precise attention score calculation. Second, we construct Super-Tokens for each word by embedding representations from their neighboring tokens through graph convolutions. FormNet therefore explicitly recovers local syntactic information that may have been lost during serialization. In experiments, FormNet outperforms existing methods with a more compact model size and less pre-training data, establishing new state-of-the-art performance on CORD, FUNSD and Payment benchmarks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Information Extraction | CORD (test) | F1 Score97.28 | 133 | |
| Entity extraction | FUNSD (test) | Entity F1 Score84.69 | 104 | |
| Form Understanding | FUNSD (test) | F1 Score84.69 | 73 | |
| Information Extraction | FUNSD (test) | F1 Score84.69 | 55 | |
| Semantic Entity Recognition | CORD | F1 Score97.28 | 55 | |
| Entity recognition | CORD official (test) | F1 Score97.3 | 37 | |
| Semantic Entity Recognition | FUNSD (test) | F1 Score84.7 | 37 | |
| Semantic Entity Recognition | FUNSD | EN Score84.69 | 31 | |
| Document Information Extraction | VRDU Registration Form Single | Micro-F192.12 | 28 | |
| Document Information Extraction | VRDU Registration Form Mixed Template | Micro-F190.51 | 28 |