TLDR: This research paper surveys the transformative impact of large language models (LLMs) on Document AI (DAI). It categorizes DAI tasks into understanding and generation, detailing how LLMs integrate multimodal (text, visual, layout) and multilingual capabilities through prompt engineering and unified encoding. The paper also highlights the role of retrieval-augmented methods in enhancing LLM performance by incorporating external knowledge. Finally, it outlines future directions, including the development of AI agents and specialized foundation models for document processing.
Documents are fundamental to both research and industry, serving as diverse formats for conveying information. Document AI (DAI) is an exciting field that uses natural language processing and computer vision to automate tasks related to documents. Historically, DAI relied on rule-based or learning-based methods, which were often expensive and time-consuming. However, the emergence of large language models (LLMs) has dramatically transformed DAI, offering more efficient and scalable solutions. This shift, particularly with decoder-only LLMs, has led to significant advancements in how we understand and generate document content.
This comprehensive survey explores the evolution of DAI, highlighting current research and future possibilities for LLMs in this domain. It delves into key advancements and challenges across multimodal, multilingual, and retrieval-augmented DAI, and also suggests future research avenues, including agent-based approaches and specialized document foundation models. For a deeper dive into the technical details, you can read the full research paper here: Document Intelligence in the Era of Large Language Models: A Survey.
Understanding and Generating Document Content
DAI tasks are broadly categorized into understanding and generation. Understanding tasks focus on extracting and analyzing information from existing documents, such as identifying key information (Key Information Extraction or KIE), analyzing document structure (Document Layout Analysis or DLA), determining sentiment (Document Sentiment Analysis), or categorizing documents (Document Classification). Generation tasks involve creating new content or responses based on documents, including summarizing documents (Document Summarization or DS), generating new content (Document Content Generation or DCG), or answering questions (Question Answering or QA).
Multimodal Document AI
Modern documents often contain more than just text; they include visual elements like figures, handwriting, and specific layouts. Multimodal DAI integrates these various information sources – text, visuals, and layout – for a more complete understanding. Approaches typically fall into two categories: prompt/instruction-based methods, which guide LLMs with carefully designed prompts that incorporate layout information, and unified encoding approaches, which integrate text, spatial coordinates, and visual features into a single, shared representation.
For instance, in Document Layout Analysis, LLMs are adapted to understand document hierarchy and layout semantics through layout-aware prompts or by integrating text and visual features into a unified model. Key Information Extraction benefits from prompt-based methods that include bounding boxes or geometric formats, and unified encoding that combines multiple modalities into robust hidden vectors. Document Classification leverages LLMs with descriptive prompts for zero-shot or few-shot generalization, and unified encoding models that integrate text, layout, and images to improve accuracy, sometimes even processing document images directly without traditional Optical Character Recognition (OCR).
In multimodal generation, LLMs are used to create new information. Document Question Answering can be enhanced by vision-language LLMs that process scanned documents without explicit OCR, or by unified encoding approaches that support end-to-end QA. Document Summarization now uses visually-enriched and structure-aware methods, and techniques to handle very long or multiple documents. Document Content Generation focuses on automatically creating structured layouts and textual content, with methods like layout synthesis and multimodal document synthesis that unify vision, text, and layout.
Multilingual Document AI
The global nature of information means DAI must handle thousands of languages beyond English. While English-centric LLMs often struggle with linguistic and cultural nuances, LLMs trained on vast multilingual datasets show great promise. Multilingual prompt-based approaches explore LLMs’ zero-shot capabilities across languages, often outperforming smaller, fine-tuned models, especially when prompts are in English. In-context learning with non-English examples can also boost performance, though consistency remains a challenge.
Multilingual training strategies involve adapting LLMs for specific languages by incorporating curated document collections or optimizing tokenizers. Techniques like reinforcement learning with AI feedback (RLAIF) and direct preference optimization (DPO) are used to align models with cultural and linguistic preferences. Addressing language interference, a phenomenon where training on many languages can degrade performance, is tackled through multi-stage training and parameter-efficient methods like LoRA. Achieving effective cross-lingual alignment, where models understand relationships between languages, is also a key focus, often through contrastive learning or leveraging parallel data.
Retrieval-Augmented Paradigm
The retrieval-augmented paradigm significantly enhances LLMs by allowing them to retrieve and incorporate reliable external knowledge. This helps overcome limitations like outdated training data and limited domain expertise. In DAI, this means integrating various document modalities, such as text, tables, and images, into the retrieval process.
Text-based retrieval augmentation provides LLMs with precise contextual information, improving tasks like Key Information Extraction, Document Summarization, and Question Answering. It’s particularly valuable for long-context DAI tasks, where methods like RAPTOR (recursive abstractive processing for tree-organized retrieval) integrate information from tree structures to improve holistic document understanding. Multimodal retrieval augmentation goes further by using images, charts, and tables as retrieval targets. Heuristic approaches use different parsing tools for various modalities, while advanced vision-language models (VLMs) enable end-to-end multimodal retrieval, reducing information loss and error accumulation.
Also Read:
- The Rise of Autonomous AI: A Deep Dive into Agentic Multimodal Large Language Models
- Optimizing Document Information Extraction for Repetitive Enterprise Tasks
Future Directions for Document AI
The future of DAI is moving towards sophisticated AI agents. Document LLM agents, or DocAgents, are envisioned as intelligent systems capable of managing document understanding and generation tasks with human-like expertise. This involves developing collaborative DocAgent frameworks, where multi-agent systems work together, leveraging domain-specific knowledge, external tools, and human input. These frameworks will need enhanced reasoning, better handling of complex document layouts, and efficient information retrieval capabilities.
Another promising direction is the development of DocAgent foundation models. While general-purpose LLMs exist, domain-specific knowledge and cross-modal alignment remain challenges. Future work will focus on creating high-quality, paired datasets that capture text, visual elements, and layout dynamics, using template-based information extraction, and incorporating domain-specific question-answer agents to verify and refine multimodal data. These advancements aim to create an end-to-end solution for complex document processing tasks.


