Overview of DocLLM
mainDocLLM is a layout-aware generative language model designed for multimodal document understanding. Unlike traditional multimodal LLMs that rely on expensive image encoders, DocLLM incorporates spatial layout information by using bounding box information directly.
Key technical features include:
- Spatial Layout Integration: It avoids image encoders and instead uses bounding box information to capture the spatial structure of documents.
- Disentangled Attention: The model captures cross-alignment between text and spatial modalities by decomposing the transformer attention mechanism into a set of disentangled matrices.
- Infilling Pre-training: A pre-training objective that learns to infill text segments, allowing the model to handle irregular layouts and heterogeneous content common in enterprise documents (e.g., forms, invoices, receipts, and contracts).