https://www.mdu.se/

mdu.sePublications
Planned maintenance
A system upgrade is planned for 17/11-2026, at 12:00-13:00. During this time DiVA will be unavailable.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Evaluating AI Agent prompting and fine-tuning strategies for structured data extraction from industrial PDFs
Mälardalen University.
Mälardalen University, Faculty of Engineering and Health Sciences, Department of Computer Science & Engineering.ORCID iD: 0000-0003-3802-4721
Mälardalen University, Faculty of Engineering and Health Sciences, Department of Computer Science & Engineering.ORCID iD: 0000-0002-7305-7169
Volvo Construction Equipment.
Show others and affiliations
2026 (English)In: Array, E-ISSN 2590-0056, Vol. 31, article id 101118Article in journal (Refereed) Published
Abstract [en]

Industrial environments generate large volumes of heterogeneous, unstructured PDF documents, such as material certificates, making reliable automated data extraction a methodological challenge. Traditional LLM-based pipelines often struggle with noisy OCR output, inconsistent layouts, and schema variability, leading to unstable outputs and reduced accuracy. This study addresses the problem of designing a robust, consistent extraction pipeline capable of operating across diverse document structures under both limited and scaled domain-specific supervision regimes. We propose a coordinated multi-agent framework integrating layout-aware OCR processing, expert-guided prompt engineering, systematic prompt refinement, controlled synthetic dataset expansion, and parameter-efficient adaptation via LoRA. The architecture includes specialised agents for raw text extraction, dataset preparation, prompt optimisation, LoRA configuration search, output processing, and structured evaluation, forming an iterative workflow that improves stability and reduces error propagation. Structural compliance and retrieval accuracy are evaluated separately using binomial modelling with Wilson confidence intervals. Zero-shot, few-shot, and LoRA fine-tuned LLMs are assessed across commercial and open-weight models. Results show that few-shot prompting enables rapid structural alignment under low-resource conditions, while fine-tuning effectiveness depends on supervision diversity. Merged supervision, defined as fine-tuning on combined original and synthetic certificates (FT-Merged), substantially outperforms limited-scale LoRA adaptation. Under FT-Merged, Mistral 7B achieves 97.05% retrieval accuracy with near-perfect structural compliance, approaching commercial reliability. GPT-4o and DeepSeek Chat achieve approximately 99% accuracy without task-specific fine-tuning. Cross-domain validation confirms structural generalisation, and runtime-cost analysis highlights trade-offs between accuracy, latency, financial cost, and deployment control. Overall, robust industrial extraction emerges from coordinated architectural orchestration rather than model choice alone. © 2026

Place, publisher, year, edition, pages
Elsevier BV , 2026. Vol. 31, article id 101118
Keywords [en]
AI Agent, Data extraction, Large language models, Unstructured sources, Cost accounting, Cost benefit analysis, Extraction, Iterative methods, Mergers and acquisitions, Multi agent systems, Text processing, Tuning, Fine tuning, Industrial environments, Language model, Large language model, Retrieval accuracy, Structured data, Tuning strategy, Unstructured source, Economic and social effects
National Category
Natural Language Processing
Identifiers
URN: urn:nbn:se:mdh:diva-78789DOI: 10.1016/j.array.2026.101118ISI: 001847277300001Scopus ID: 2-s2.0-105046726576OAI: oai:DiVA.org:mdh-78789DiVA, id: diva2:2094112
Available from: 2026-08-21 Created: 2026-08-21 Last updated: 2026-08-21Bibliographically approved

Open Access in DiVA

No full text in DiVA

Other links

Publisher's full textScopushttps://www.scopus.com/pages/publications/105046726576?origin=resultslist

Authority records

Ahmed, Mobyen UddinBarua, Shaibal

Search in DiVA

By author/editor
Billah, MasumAhmed, Mobyen UddinBarua, Shaibal
By organisation
Mälardalen UniversityDepartment of Computer Science & Engineering
In the same journal
Array
Natural Language Processing

Search outside of DiVA

GoogleGoogle Scholar

doi
urn-nbn

Altmetric score

doi
urn-nbn
Total: 265 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf