ConceptFormer: Learning Adaptive Latent Concepts for Query-Document Alignment in Visual Document Retrieval
ConceptFormer is a novel framework for visual document retrieval that learns adaptive, query-conditioned latent concepts to effectively bridge the semantic gap between queries and complex document structures, achieving significant performance improvements over existing baselines without relying on intermediate textual descriptions or raw visual annotations.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the digital age, vast libraries of documents exist not as neat rows of text, but as complex visual landscapes. These are pages filled with charts, maps, tables, and intricate layouts where the answer to a question might be hidden in a small number on a graph or the spatial relationship between two colored regions. Finding the right page among thousands is a task that requires more than just reading words; it demands an understanding of how text, images, and structure work together. For years, computer systems trying to find these documents have struggled with this complexity. They often treat a whole page as a single, blurry image or try to convert the entire visual scene into plain text, a process that frequently loses the very details that make the document useful. When a system cannot see the specific part of a chart that holds the answer, or when it misses the layout that connects a title to a data point, it fails to retrieve the correct information, leaving the user with a list of irrelevant pages.
Researchers at Northeastern University and Tsinghua University have developed a new approach to solve this problem, a method they call ConceptFormer. Instead of forcing a computer to choose between seeing a picture or reading a word, this system learns to create a flexible, invisible bridge between the two. The core idea is that the evidence needed to answer a question is rarely the same size or shape for every query. Sometimes a question requires only a tiny detail, like a single number in a table. Other times, it requires understanding a large, complex diagram that spans half a page. Previous systems tried to handle all these situations with a fixed, rigid method, either looking at the whole page or breaking it into tiny, uniform pieces. ConceptFormer, however, learns to adapt. It creates a dynamic set of "latent concepts"—a term the researchers use to describe flexible, internal representations of the evidence—that grow or shrink depending on how much visual information is actually needed to answer the specific question at hand.
To teach the system how to do this, the researchers used a powerful vision-language model as a guide during the training process. This guide looks at a question and the correct document page, then identifies exactly which parts of the image contain the answer. If the answer is a small number in a corner, the guide marks just that small area. If the answer involves a complex chart with multiple sections, the guide marks the entire relevant area. The system then counts how many small visual "patches" or pieces of the image are covered by these marked areas. Based on this count, it automatically decides how many internal concept tokens to create for that specific pair of question and document. A simple question gets a short, focused set of concepts, while a complex one gets a longer, more detailed set. This allows the system to learn that some questions need a broad view and others need a narrow focus, without being told to do so in advance.
The results of this approach are significant. When tested against a wide variety of document types, including industrial reports, infographics, and statistical maps, the new system outperformed the best existing methods. On average, it improved the accuracy of finding the correct page by 16.7 percent compared to the strongest visual search systems and by 22.1 percent compared to systems that rely on converting images to text. The improvement was particularly noticeable in tasks involving complex visual structures, such as maps and charts, where the relationship between different parts of the image is crucial. In one specific test involving maps, the new system performed more than twice as well as the previous best visual search tool. This suggests that the ability to adjust the amount of attention paid to different parts of a document is a key factor in understanding visual information.
The researchers also investigated why this method works so well by looking at how the system organizes information in its internal memory. They found that the flexible concepts created by the system occupy a unique space that is neither purely visual nor purely textual. Unlike systems that rely on text descriptions, which can miss the nuance of a chart, or systems that rely only on raw image pixels, which can miss the meaning of a label, these learned concepts successfully combine both. They capture the specific visual details needed to ground the answer while also understanding the broader context of the page. Furthermore, the study showed that using a fixed number of concepts for every question, regardless of its difficulty, leads to poorer results. The system performs best when it is allowed to vary the length of its internal representation, proving that the complexity of the evidence required is not uniform across all documents.
Ultimately, this work demonstrates that the way computers understand visual documents can be made much more human-like by allowing them to be flexible. Just as a person might scan a whole page to find a general topic but then zoom in on a specific number to find an answer, this system learns to allocate its attention dynamically. It does not force every document into a single mold but instead shapes its understanding to fit the evidence available. By bridging the gap between the visual structure of a document and the semantic meaning of a question, the system provides a more reliable way to retrieve information from the rich, visual world of modern documents. The code and data for this research are publicly available, inviting others to build upon this method of adaptive learning.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.