Abstract
Text-rich images, such as presentation slides and scanned documents, are central to many real-world applications. Tasks involving multiple such images are particularly challenging, requiring both individual image understanding and cross-image logical reasoning. Leopard is a specialized Multimodal Large Language Model (MLLM) designed to address these challenges through a curated dataset of one million instruction-tuning instances and an adaptive high-resolution encoding module. Leopard consistently outperforms state-of-the-art systems like Llama-3.2 and Qwen2-VL on complex text-centric benchmarks, achieving superior performance with only 1.2M training instances.
Introduction
While multimodal models have improved significantly in natural scene understanding, they often struggle with "text-rich" multi-image scenarios. These tasks, such as comparing financial trends across multiple charts or summarizing a multi-page slide deck, face two primary hurdles:
- Data Scarcity: A lack of high-quality instruction-tuning data for multi-image reasoning involving documents and charts.
- The Resolution Paradox: High-resolution input is necessary to read small text, but it generates excessive visual tokens that can exceed the memory limits of the underlying language model when processing multiple images.
Methods
Leopard addresses the resolution paradox through architectural innovations designed for efficiency and detail preservation.
Adaptive High-Resolution Encoding
Instead of uniform resizing, Leopard employs an "image budget" strategy. It dynamically calculates the optimal number of sub-image "crops" based on the original aspect ratio and resolution of each input. This ensures that diverse document formats—from tall pages to wide charts—are processed with appropriate detail.
Lossless Compression via Pixel Shuffling
To manage the resulting token count, Leopard utilizes a "pixel shuffling" technique. This process concatenates groups of four adjacent visual features into a single token, reducing the sequence length by a factor of four without losing critical visual information.
Interleaved Formatting
The model uses specific tokens (e.g., <Img> and </Img>) to help the language backbone distinguish between different images in a sequence, facilitating precise cross-image referencing during reasoning.
Datasets: Leopard-Instruct
The researchers introduced Leopard-Instruct, a comprehensive dataset comprising 925,000 instances, with 739,000 focused on multi-image scenarios.
- Newly Curated Data (585K): Includes complex charts from Pew Research and slide decks from SlideShare. GPT-4o was used to generate sophisticated questions requiring cross-image synthesis.
- Assembled Data: Single-image datasets were reformatted into multi-turn conversations to enhance the model's ability to handle diverse domains.
- Evaluation: The model was validated across 12 benchmarks, including Multi-page DocVQA, SlideVQA, and MultiHiertt.
Results and Key Insights
Leopard sets a new standard for open-source models in text-rich multi-image reasoning.
Performance Benchmarks
Leopard outperformed previous open-source leaders by an average of +8.5 points across five major benchmarks. In specialized tasks like SlideVQA and MultiChartQA, Leopard-LLaVA-Pro exceeded Qwen2-VL-7B by +18.4 and +17.4 points, respectively.
Key Findings
- Specialization is Critical: Training on natural multi-image data does not translate to text-rich tasks; domain-specific data is essential.
- Optimal Token Budget: Increasing sub-image crops improves performance up to a point; a budget of approximately 50 sub-images balances detail with context window constraints.
- Efficiency: Leopard achieves state-of-the-art results with only 1.2 million training instances, highlighting the importance of data quality over volume.
Conclusion
Leopard represents a significant advancement in the ability of MLLMs to process complex, text-heavy visual sequences. While constrained by the context windows of current LLMs and the computational cost of high-resolution processing, its success points toward a future where AI can seamlessly navigate and reason across extensive document sets. Future work will focus on more efficient compression and extending capabilities to video-based document sequences.
Source: Leopard: A Vision Language Model for Text-Rich Multi-Image Tasks (TMLR 06/2025) Code and Data: https://github.com/tencent-ailab/Leopard
Summary updated