arXiv:2610.26362cs.AIOct 2026

Manuscript Offprint

arXiv:2610.26362

GAIDA: Generative AI for Human-in-the-Loop Document Annotation

Islam Mesabah, Ali Elhosary, Priyabanta Sandulu, Darko Obradovic, Sebastian J. Vollmer

Islam Mesabah 1,2^{1,2}[0000-0002-2298-2127], Ali Elhosary 2^{2}[0009-0007-5694-5694], Priyabanta Sandulu 1,2^{1,2}[0009-0003-9284-5093]

Darko Obradovic 1,2^{1,2}[0009-0002-2681-5649]

, and Sebastian J. Vollmer 1,2^{1,2}[0000-0003-2831-1401]

1^{1} German Research Center for Artificial Intelligence (DFKI),

2^{2} RPTU Kaiserslautern-Landau,

Kaiserslautern, Germany

islam.mesabah@dfki.de

Abstract. Document annotation is a fundamental yet labor-intensive step in building document information extraction systems. While Optical Character Recognition (OCR) and Large Language Models (LLMs) can automate parts of this process, we argue that annotation systems should be judged not by how completely they remove human effort, but by how effectively they redirect it toward review and correction. We propose a modular human-in-the-loop architecture that integrates OCR-based extraction, LLM-based semantic pre-annotation, and human validation in a single editable workflow, and present GAIDA, a research prototype serving as its reference implementation. GAIDA supports interchangeable OCR engines, LLM backends, and prompt configurations, and enables stage-specific measurement of annotation effort. In an initial single-annotator, stage-specific study on the FUNSD scanned-form and WildReceipt retail-receipt benchmarks, OCR assistance reduced region-creation and transcription time by up to 80.9%, and reviewing LLM pre-annotations reduced semantic-labeling time by up to 73.7%, despite imperfect pre-annotations of 78.86% and 86.98% Micro F1 on FUNSD and WildReceipt, respectively. Finally, we reuse the same implementation, adapting only OCR and prompt configuration, to build and openly release AraReceipt, a manually annotated dataset of 100 Arabic receipt images labeled with 25 key-information classes. The results indicate that imperfect automated outputs provide practical value when presented as editable suggestions under human control.

Keywords: Generative AI · Large Language Models · Human-in-the-Loop · Document Annotation · Document Information Extraction · Optical Character Recognition · Arabic Information Extraction

1 Introduction

Document information extraction transforms semi-structured documents into structured representations for downstream systems. Building high-quality annotated datasets remains a bottleneck [28, 30]: identifying regions, transcribing

I. Mesabah et al.

content, assigning labels, and validating output is slow and prone to inconsistency under complex layouts [13, 12].

OCR and LLMs can restructure, not merely accelerate, this process: OCR localizes and transcribes text automatically, after which an LLM proposes semantic labels for human validation, shifting the annotator's role from creation to verification [18, 29]. Model accuracy alone does not determine practical value; usefulness also depends on the correction effort created by OCR errors, prompt design, model choice, and the review interface. Studying these factors requires a common modular architecture in which individual components can be exchanged while the surrounding annotation workflow and human-review process remain fixed.

To operationalize this architecture, we developed GAIDA 3^{3}, a research prototype that serves as its reference implementation. GAIDA integrates OCR-based extraction, LLM-based semantic pre-annotation, and human validation within the open-source Label Studio 4^{4} annotation environment. GAIDA rests on the premise that annotation systems should be judged by how effectively they redirect human effort toward review, not by how completely they remove it. We evaluate GAIDA in two complementary document settings: FUNSD [9] represents noisy forms whose labels often depend on relations between regions, whereas WildReceipt [21] represents dense retail receipts with a substantially more fine-grained field schema. We also reuse the same architecture to construct and publicly release AraReceipt 5^{5}, a dataset of 100 Arabic receipt images derived from ReceiptSense [2] and annotated using a 25-class schema. Accordingly, we position this work as a system-and-resource contribution accompanied by an initial single-annotator feasibility study; a controlled multi-annotator evaluation is left to future work.

This paper addresses four research questions:

– RQ1: To what extent does OCR assistance reduce region-creation and transcription time, and how much localization/recognition error remains for human correction?

– RQ2: How sensitive is semantic pre-annotation quality to model choice and prompt design under a fixed workflow?

– RQ3: Does reviewing LLM-generated pre-annotations reduce semantic-labeling time relative to manual assignment?

– RQ4: Which components and configurations must be adapted to apply GAIDA to Arabic receipts?

Contributions: (1) a modular human-in-the-loop annotation architecture, together with GAIDA, a research prototype that serves as its reference implementation and supports interchangeable OCR and LLM components; (2) initial stage-specific evidence that OCR assistance reduces region-creation and transcription time, while LLM pre-annotations reduce semantic-labeling time; (3) a

3^{3} https://github.com/islammesabah/gaida

4^{4} https://labelstud.io/

5^{5} https://huggingface.co/datasets/IslamMesabah/AraReceipt sensitivity analysis showing that model choice affects pre-annotation quality far more than prompt elaboration, and that more prescriptive prompting does not consistently help (Sect. 4.4); and (4) AraReceipt, a manually annotated, publicly released Arabic dataset of 100 images and 25 classes, showing architectural reuse with language-specific configuration only.

References (30)