Document AI
Document AI · Evaluation
Document AI: how to check changes across long texts
An Ai2 benchmark examines how language models follow changing information in long documents. For an SME, it offers a starting point for testing versions, exceptions and linked updates before relying on a document AI system for decisions.
Technical note · Intermediate · 3 min read
- Published
- Updated
From the sources
What StateBench measures
Ai2 presents StateBench as a benchmark for assessing whether language models can follow changing information in long texts. Its tests distinguish four levels, from retrieving an unchanged value to following chains of updates that depend on other values.
According to the authors, in their tests some recurrent and hybrid models trained directly on the tasks generalise further than transformers; advanced models also struggle with harder cases as inputs grow longer. These are benchmark findings, not a measure of reliability on a specific company’s documents.
Sources: Hugging Face [1]
Our analysis
What this means for an SME
An apparently simple question, such as identifying the current condition in a file, may require several passages to be connected. An initial document may be followed by amendments, exceptions and references to other attachments. Finding a relevant sentence is insufficient if a later communication changes its meaning.
To evaluate a document assistant, an SME can start with a focused process and collect representative examples: straightforward cases, subsequent corrections, missing information and ambiguous passages. For each one, a knowledgeable person can prepare the expected answer and identify the documents needed to support it.
The test should also ask the system to flag when it lacks sufficient evidence. A fluent answer alone does not demonstrate that every update was considered; human review is especially useful when an answer informs a decision or an action affecting others.
Sources: Hugging Face [1]
Our analysis
How to design a useful trial
Before a pilot, define which documents are in scope, who determines the correct answer and which errors require review. Examples can include both short documents and more involved files, keeping cases used to configure the system separate from those reserved for evaluation.
During the trial, compare answers with the expected results and record omissions, incorrect references, requests for clarification and human interventions. It is also useful to check whether reviewers can trace an answer to the relevant passages without reconstructing the entire file each time.
The results can help determine where the assistant may support research and where systematic review is needed. Choosing a model, including a locally run one, requires testing the actual process: the benchmark suggests questions to ask, but it guarantees no outcome and does not replace evaluation using the documents people actually work with.
Sources: Hugging Face [1]
Related articles
- From documents to structured data: how to assess AI extraction · Document AI and integration
- Mistral Large 4 and business documents: how to assess a multimodal model · Document AI and local models
- Speech transcription: why accents belong in the evaluation · Document AI and transcription