PM3-KIE: A Probabilistic Multi-Task Meta-Model for Document Key Information Extraction

Birgit Kirsch, Héctor Allende-Cid, Stefan RüpingACL 2025

Introduction

Extracting structured data from "visually rich documents" (VRDs)—such as invoices, contracts, and registration forms—is a cornerstone of business process automation. Current research typically follows one of two paths: fine-grained token classification, which excels at capturing spatial cues by labeling individual words, or coarse-grained entity extraction, which focuses on generating key-value pairs and logical dependencies.

However, a significant gap exists between these approaches. Token-level models often lack global consistency, while entity-level models, particularly Large Language Models (LLMs), can hallucinate or fail to ground their outputs in the document text. Furthermore, standard systems often ignore "business rules," such as cardinality constraints (e.g., an invoice must have exactly one total amount). PM3-KIE addresses these challenges by unifying both paradigms within a probabilistic framework that enforces structural and semantic consistency.

Methodology: The PM3-KIE Architecture

PM3-KIE is a lightweight reasoning layer designed to sit atop existing "black-box" extraction models. Its architecture integrates three primary components to refine raw model outputs into high-fidelity structured data.

The PM3-KIE architecture integrates coarse-grained and fine-grained model outputs using Probabilistic Soft Logic and LLM validation.
  1. Probabilistic Soft Logic (PSL): Instead of rigid "hard" logic, PM3-KIE employs PSL to model relationships between document mentions (tokens) and final fields (entities). It defines weighted rules—for instance, "if a token is predicted as a Date, the corresponding entity should also be a Date"—allowing the model to resolve conflicts between different base predictors.
  2. Schema Consistency Rules: The model incorporates domain-specific constraints, such as cardinality. By enforcing that a field is mandatory (exactly 1) or optional (0 or 1), PM3-KIE prevents common errors where models omit required fields or produce redundant extractions.
  3. LLM-as-a-Judge: To mitigate semantic errors, the system utilizes an LLM (e.g., GPT-4o mini) to score candidate extractions. This score acts as an additional "vote" within the PSL framework, helping to identify when an extracted value (like a date or price) is semantically implausible.

Because the meta-model only processes the outputs of other models, it is computationally efficient, capable of being trained on a standard CPU in minutes.

Experimental Setup

The model was evaluated on two public benchmarks:

  • DeepForm: Complex political advertisement invoices with nine target fields.
  • FARA: Semi-structured foreign agent registration forms with six target fields.

Experiments focused on In-Distribution (ID) and Out-of-Distribution (OOD) performance across varying training sizes (10 to 200 samples) to assess robustness in low-resource settings.

Key Results and Discussion

PM3-KIE consistently outperformed state-of-the-art baselines, including LayoutLMv3, LiLT, and fine-tuned GPT-3.5, as well as standard stacked ensembles.

Performance comparison of PM3-KIE against state-of-the-art baselines across different datasets and distributions.

The model achieved a statistically significant 2% average improvement in F1 score. On the DeepForm dataset, document-level accuracy reached 58.27%, a 5% increase over the best baseline. This improvement is particularly notable in OOD scenarios and small training sets (e.g., 10 samples), where traditional deep learning models often struggle to generalize.

A key insight from this work is that LLMs are often more effective as "judges" than as primary extractors. While they may struggle with precise text localization in complex layouts, they excel at identifying when an extracted string "looks wrong." By using them as a validation layer, PM3-KIE leverages their semantic strengths while grounding the final output in the document's actual text via the PSL framework.

Limitations and Future Work

As a meta-model, PM3-KIE is inherently dependent on its base models; if no base model identifies a candidate, the meta-model cannot recover it. Additionally, the system currently operates under a "closed-world" assumption, requiring a fixed schema. Future research may explore extending the model to "open-world" extraction or integrating direct human-in-the-loop feedback into the probabilistic layer to further enhance reliability.

Summary updated

BibTeX
@inproceedings{kirsch2025pm,
  author = {Birgit Kirsch and Héctor Allende-Cid and Stefan Rüping},
  title = {{PM3-KIE: A Probabilistic Multi-Task Meta-Model for Document Key Information Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure