How we are Making your Rich Documents Talk
Imagine a bustling hospital where medical records are instantly processed, allowing doctors to make quicker and more accurate diagnoses, or a manufacturing company that automatically analyzes supplier contracts to optimize costs. This is the transformative power of harnessing scanned document data in the enterprise.
While our enterprise-grade product Document AI is in private preview, we at Snowflake are pushing further, delving into the fundamental questions that drive the field of document understanding:
- How can models not only extract and interpret the textual content but exploit other visual cues, such as layout (page structure, forms, tables), non-textual elements (marks, checkboxes, figures), and style (e.g., typography, highlighting)?
- How far can we push domain generalization? Can a model trained on medical records adapt well to manufacturing diagrams or tabular information?
- How can we handle the high variability of contents and layouts in real-world documents that often lead to highly imbalanced samples within document types? These long-tailed distributions are particularly challenging where limited samples are available for model training.
We’re excited to share some of the research we’ve recently presented at ICCV, one of the leading venues for computer vision. In particular, we present a new dataset specifically designed to answer the big questions we’ve posed, as well as to further the state of the art in document understanding and the emerging area of document visual question answering.
Datasets like ours have proved one of the key engines of progress in the age of AI — focusing corporate, government, and academic research on standardized measures of progress, while developing AI technology that can handle the deep real-world nuances.
Here comes the DUDE
The Document Understanding Dataset and Evaluation (DUDE) we introduced, involves novel kinds of questions, answers, and document layouts based on various document types, sources, and dates in multiple domains (including medical, legal, technical, and financial).
For example, we introduce complex questions requiring comprehension beyond the document content, such as ‘How many text columns are there?’ or ‘Which page contains the largest table?’ These layout-navigating questions bridge the gap between Document Layout Analysis and Document Question Answering paradigms.
Moreover, we provide questions demanding arithmetic and comparison operations and feature multi-hop questions that indicate a model’s robustness to sequential reasoning.
Overall, we provide over 40k human-made annotations prepared for 4k multi-page PDFs (both born digital and scanned). Our dataset contains abstractive and extractive answers, including yes/no, list outputs, or unanswerability statements (i.e., we demand that the model correctly identify that the answer cannot be provided). Importantly, more than 90% of our questions are unique, since our target scope is more diverse than in previous works.
Additionally, we gather diagnostic metadata for the documents and QA pairs in the test set — these are intended to enable a fine-grained analysis of the models’ performance.
Full details can be found in the paper.
But LLMs!
The community already recognized the dataset and the proposed evaluation procedure. In particular, DUDE was one of the shared tasks featured by the ICDAR conference earlier this year. Participating researchers showcased intriguing model extensions, such as combining models that learn strong document representations with the strengths of recent large language or vision-language models.
Nevertheless, the performance of current state-of-the-art models, including LLMs, lags far behind human baselines, which highlights the fact we proposed a longstanding, challenging benchmark that requires more holistic and efficient modeling of language, vision, and richly structured layouts.
The ‘Beyond Plain-text World’ awaits.