Towards Few-shot Entity Recognition in Document Images: A Graph Neural Network Approach Robust to Image Manipulation
Prashant Krishnan, Zilong Wang, Yangkun Wang, Jingbo Shang
TL;DR
This work tackles few-shot entity recognition in document images, where coordinate-based layout cues are vulnerable to affine manipulations. It introduces LAGER, which integrates topological token relations as graphs atop a pre-trained layout-aware LM (LayoutLMv2 or LayoutLMv3) and processes them with a Graph Attention Network to produce enhanced embeddings for sequence labeling. Across FUNSD and CORD, LAGER variants consistently outperform strong baselines in few-shot settings and show superior robustness to shifting, rotation, and scaling of images. The approach offers a practical and data-efficient enhancement for document image understanding, with plans to release code and extend the framework to additional backbones and semantic relations.
Abstract
Recent advances of incorporating layout information, typically bounding box coordinates, into pre-trained language models have achieved significant performance in entity recognition from document images. Using coordinates can easily model the absolute position of each token, but they might be sensitive to manipulations in document images (e.g., shifting, rotation or scaling), especially when the training data is limited in few-shot settings. In this paper, we propose to further introduce the topological adjacency relationship among the tokens, emphasizing their relative position information. Specifically, we consider the tokens in the documents as nodes and formulate the edges based on the topological heuristics from the k-nearest bounding boxes. Such adjacency graphs are invariant to affine transformations including shifting, rotations and scaling. We incorporate these graphs into the pre-trained language model by adding graph neural network layers on top of the language model embeddings, leading to a novel model LAGER. Extensive experiments on two benchmark datasets show that LAGER significantly outperforms strong baselines under different few-shot settings and also demonstrate better robustness to manipulations.
