Papers › LAPDoc: Layout-Aware Prompting for Documents

LAPDoc: Layout-Aware Prompting for Documents

15 Feb 2024arXiv:2402.09841archive 2025-07-28

Marcel Lamott, Yves-Noel Weweler, Adrian Ulges, Faisal Shafait, Dirk Krechel, Darko Obradovic

Recent advances in training large language models (LLMs) using massive amounts of solely textual data lead to strong generalization across many domains and tasks, including document-specific tasks. Opposed to that there is a trend to train multi-modal transformer architectures tailored for document understanding that are designed specifically to fuse textual inputs with the corresponding document layout. This involves a separate fine-tuning step for which additional training data is required. At present, no document transformers with comparable generalization to LLMs are available That raises the question which type of model is to be preferred for document understanding tasks. In this paper we investigate the possibility to use purely text-based LLMs for document-specific tasks by using layout enrichment. We explore drop-in modifications and rule-based methods to enrich purely textual LLM prompts with layout information. In our experiments we investigate the effects on the commercial ChatGPT model and the open-source LLM Solar. We demonstrate that using our approach both LLMs show improved performance on various standard document benchmarks. In addition, we study the impact of noisy OCR and layout errors, as well as the limitations of LLMs when it comes to utilizing document layout. Our results indicate that layout enrichment can improve the performance of purely text-based LLMs for document understanding by up to 15% compared to just using plain document text. In conclusion, this approach should be considered for the best model choice between text-based LLM or multi-modal document transformers.

PaperPDF

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

No code repository is listed for this paper in the archive or in Syntology's graph.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Key Information ExtractionNatural Language InferenceQuestion AnsweringVisual Question Answering (VQA)document understanding

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Key Information Extraction SROIE ChatGPT 3.5 SpatialFormat Accuracy 77.0 #5 of 5 Archive leaderboard report
Natural Language Inference TabFact ChatGPT 3.5 SpatialFormat Accuracy 70.1 #1 of 1 Archive leaderboard report
Question Answering WebSRC ChatGPT 3.5 SpatialFormat F1 80.7 #1 of 1 Archive leaderboard report
Question Answering WikiTableQuestions ChatGPT 3.5 SpatialFormat Accuracy 47.7 #1 of 2 Archive leaderboard report
Visual Question Answering (VQA) DocVQA ChatGPT 3.5 with LAPDoc Prompt (SpatialFormat) ANLS 79.8 #1 of 1 Archive leaderboard report
Visual Question Answering (VQA) InfographicVQA ChatGPT 3.5 with LAPDoc Prompt (SpatialFormat) ANLS 54.9 #9 of 21 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections