LayoutLLM: Layout Instruction Tuning with Large Language Models for Document Understanding

Chuwei Luo, Yufan Shen, Zhaoqing Zhu, Qi Zheng, Zhi Yu, Cong Yao

arXiv:2404.05225 · 2026-07-27 공개 · arXiv · PDF

llm fine-tuning mllm instruction-tuning document-understanding document-layout layout-instruction-tuning layout-aware-pre-training

Abstract

Recently, leveraging large language models (LLMs) or multimodal large language models (MLLMs) for document understanding has been proven very promising. However, previous works that employ LLMs/MLLMs for document understanding have not fully explored and utilized the document layout information, which is vital for precise document understanding. In this paper, we propose LayoutLLM, an LLM/MLLM based method for document understanding. The core of LayoutLLM is a layout instruction tuning strategy, which is specially designed to enhance the comprehension and utilization of document layouts. The proposed layout instruction tuning strategy consists of two components: Layout-aware Pre-training and Layout-aware Supervised Fine-tuning. To capture the characteristics of document layout in Layout-aware Pre-training, three groups of pretraining tasks, corresponding to document-level, region-level and segment-level information, are introduced. Furthermore, a novel module called layout chain-of-thought (LayoutCoT) is devised to enable LayoutLLM to focus on regions relevant to the question and generate accurate answers. LayoutCoT is effective for boosting the performance of document understanding. Meanwhile, it brings a certain degree of interpretability, which could facilitate manual inspection and correction. Experiments on standard benchmarks show that the proposed LayoutLLM significantly outperforms existing methods that adopt open-source 7B LLMs/MLLMs for document understanding.

한국어 요약

한 줄 요약

LayoutLLM은 문서 레이아웃 정보를 효과적으로 학습하는 레이아웃 인스트럭션 튜닝 전략을 제안한 문서 이해 모델이다.

핵심 기여도

핵심 아이디어

기존 문서 이해 모델은 문서 레이아웃 정보를 제대로 학습하지 못해 정확도에 한계가 있었다. LayoutLLM은 레이아웃 인식 사전 학습과 레이아웃 인식 감독 미세 조정을 통해 문서의 글로벌 및 로컬 정보를 모두 학습한다. 특히, 레이아웃 인식 사전 학습에서는 문서 수준, 영역 수준, 세그먼트 수준의 3가지 태스크를 통해 레이아웃 구조를 학습하며, 이는 기존의 단순 텍스트 입력 방식과 달리 문서의 구조적 특성을 포착한다. 레이아웃 인식 감독 미세 조정 단계에서는 LayoutCoT 모듈을 도입하여 질문 분석, 관련 영역 집중, 해답 생성의 3단계를 거쳐 해답을 생성하며, 이는 해석성과 정확도를 동시에 향상시킨다.

기술적 접근법

주요 결과

의의 및 한계

LayoutLLM은 문서 레이아웃 정보를 효과적으로 학습하는 새로운 튜닝 전략을 제안하여, 문서 이해 분야에서의 성능을 크게 향상시켰다. 특히, LayoutCoT 모듈은 해답 생성 과정의 해석성을 제공하며, 수작업 검토 및 수정이 가능하다는 장점이 있다. 그러나, 모델은 여전히 오픈소스 7B 규모의 LLM/MLLM에 의존하며, 더 큰 모델이나 다양한 문서 유형에 대한 일반화 능력은 추가 연구가 필요하다. 또한, 레이아웃 정보가 복잡한 문서에서는 성능 저하가 발생할 수 있다.

실용적 활용

LayoutLLM은 문서 기반 질의응답, 정보 추출, 자동 문서 분석 등 다양한 문서 처리 작업에 적용 가능하다. 특히, 레이아웃 정보가 중요한 계약서, 보고서, 영수증 등에서 높은 정확도와 해석성을 제공하여, 금융, 법률, 행정 등 산업 분야에서 실용적 활용이 기대된다.