Information Extraction from Electricity Invoices with General-Purpose Large Language Models
Not on the map. Why?
Abstract (arXiv)
Information extraction from semi-structured business documents remains a critical challenge for enterprise management. This study evaluates the capability of general-purpose Large Language Models to extract structured information from Spanish electricity invoices without task-specific fine-tuning. Using a subset of the IDSEM dataset, we benchmark two architecturally distinct models, Gemini 1.5 Pro and Mistral-small, across 19 parameter configurations and 6 prompting strategies. Our experimental framework treats prompt engineering as the primary experimental variable, comparing zero-shot baselines against increasingly sophisticated few-shot approaches and iterative extraction strategies. Results demonstrate that prompt quality dominates over hyperparameter tuning: the F1-score variation across all parameter configurations is marginal, while the gap between zero-shot and the best few-shot strategy exceeds 19 percentage points. The best configuration (few-shot with cross-validation) achieves an F1-score of 97.61% for Gemini and 96.11% for Mistral-small, with document template structure emerging as the primary determinant of extraction difficulty. These findings establish that prompt design is the critical lever for maximizing extraction fidelity in LLM-based document processing, thereby providing an empirical framework for integrating general-purpose LLMs into business document automation.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 26 references that are in the map. First posted on arXiv 1 Apr 2026.
Builds on
19 of 26 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2023A Survey of Large Language Modelscited by 2,576
- 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,479
- 2020DocVQA: A Dataset for VQA on Document Imagescited by 1,317
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 553
- 2021OCR-free Document Understanding Transformercited by 407
7 more
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
- 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 121
- 2021DocTr: Document Image Transformer for Geometric Unwarping and Illumination Correctioncited by 39
- 2024LayoutLLM: Large Language Model Instruction Tuning for Visually Rich Document Understandingcited by 24
- 2025Smoothing Out Hallucinations: Mitigating LLM Hallucination with Smoothed Knowledge Distillationcited by 10
- 2025The Hidden Structure -- Improving Legal Document Understanding Through Explicit Text Formattingcited by 5
- 2024Unveiling the Deficiencies of Pre-trained Text-and-Layout Models in Real-world Visually-rich Document Information Extractioncited by 3
Built on by
Not cited yet.