Up to 36x Speedup: Mask-based Parallel Inference Paradigm for Key Information Extraction in MLLMs
Xinzhong Wang, Ya Guo, Jing Li, Huan Chen, Yi Tu, Yijie Hong, Gongshen Liu, Huijia Zhu
TL;DR
The paper tackles the latency bottleneck in key information extraction (KIE) from visually-rich documents by proposing PIP, a mask-based parallel inference paradigm that decouples output slots and generates all masked tokens in a single forward pass. It introduces a two-stage training regime—mask pre-training with bidirectional attention on a large image-caption corpus, followed by KV supervised fine-tuning on a curated KV dataset—to enable effective parallel decoding. Empirically, PIP achieves 5-36× inference speedups with negligible accuracy loss and sets SOTA performance on SROIE and CORD, while remaining competitive on FUNSD. The approach is demonstrated across five public benchmarks, with attention analyses showing tokens attend to distinct visual regions, supporting scalable real-time KIE for industry deployment.
Abstract
Key Information Extraction (KIE) from visually-rich documents (VrDs) is a critical task, for which recent Large Language Models (LLMs) and Multi-Modal Large Language Models (MLLMs) have demonstrated strong potential. However, their reliance on autoregressive inference, which generates outputs sequentially, creates a significant efficiency bottleneck, especially as KIE tasks often involve extracting multiple, semantically independent fields. To overcome this limitation, we introduce PIP: a Parallel Inference Paradigm for KIE. Our approach reformulates the problem by using "[mask]" tokens as placeholders for all target values, enabling their simultaneous generation in a single forward pass. To facilitate this paradigm, we develop a tailored mask pre-training strategy and construct large-scale supervised datasets. Experimental results show that our PIP-models achieve a 5-36x inference speedup with negligible performance degradation compared to traditional autoregressive base models. By substantially improving efficiency while maintaining high accuracy, PIP paves the way for scalable and practical real-world KIE solutions.
