Abstract
Traditional multimodal information retrieval (MIR) systems typically handle single-image queries or documents. However, real-world information—such as tutorials, recipes, and social media—is often presented as an interleaved sequence of text and multiple images. This paper introduces the Text-Image Interleaved Retrieval (TIIR) task and the wikiHow-TIIR benchmark to address this gap. To overcome the computational bottleneck of processing multiple images, the authors propose the Matryoshka Multimodal Embedder (MME), which uses flexible visual token compression to achieve state-of-the-art performance with significantly reduced sequence lengths.
Introduction: Beyond Single-Image Retrieval
Most existing multimodal retrieval systems are restricted to single-image queries or documents. In practice, information needs naturally involve sequences of text and multiple images interleaved together, such as step-by-step cooking recipes or furniture assembly tutorials.
The shift to interleaved retrieval introduces a significant challenge: the "token explosion." Standard vision encoders produce hundreds of tokens per image (e.g., 576 tokens). When a document contains several images, the resulting sequence length becomes prohibitively long, leading to computational inefficiency and a "visual bias" where image features overwhelm the text semantics in the embedding space.
The wikiHow-TIIR Benchmark
To facilitate research in this area, the authors developed wikiHow-TIIR, a large-scale benchmark specifically designed for interleaved retrieval.
- Corpus: 155,262 documents derived from human-curated wikiHow tutorials, preserving their natural interleaved structure.
- Queries: An automated pipeline using LLMs and text-to-image generators created 73,084 training queries and 7,654 high-quality, human-annotated test queries.
Unlike previous datasets, wikiHow-TIIR requires models to understand the contextual ordering of both text and multiple images. Experiments show that shuffling the order of elements significantly degrades performance, confirming that the interleaved structure is semantically critical.
Methodology: Matryoshka Multimodal Embedder (MME)
To address the token bottleneck, the authors propose the Matryoshka Multimodal Embedder (MME). Built upon an interleaved Multimodal Large Language Model (MLLM) like DeepSeek-VL, MME introduces a novel compression mechanism.
Instead of the standard 576 tokens per image, MME applies average pooling after the visual projection layer to compress visual features into smaller $N \times N$ grids. To maintain flexibility, the model is trained using a "Matryoshka-style" strategy, optimizing across multiple granularities (e.g., $1 \times 1$, $3 \times 3$, $8 \times 8$) simultaneously. This allows for a coarse-to-fine representation where the optimal resolution can be selected at inference time to balance semantic richness with efficiency.
Key Results and Insights
The proposed MME model demonstrates that more tokens aren't always better. Retrieval performance follows an inverted U-shape; while $N=1$ (1 token) is insufficient to capture image semantics, $N=24$ (576 tokens) actually hurts performance by allowing visual information to disproportionately dominate the embedding space.
- Performance: MME with $N=3$ (9 tokens per image) achieved 77.40 Recall@5 and 68.16 nDCG@10, outperforming the standard DeepSeek-VL baseline.
- Efficiency: Compressing images to $3 \times 3$ tokens reduced average sequence lengths by roughly 10x (from ~1768 to ~174 tokens) and cut encoding time by over 60%. This allowed the maximum batch size to increase from 16 to 128 on the same hardware.
Conclusion
The introduction of the TIIR task and the MME model marks a significant step toward more natural and efficient multimodal search. By treating interleaved sequences as first-class citizens and optimizing visual token density, MME provides a scalable solution for complex information needs. Future work will explore scaling these models to larger parameter counts and applying the interleaved approach to domains like multimodal PDF parsing and social media retrieval.
Summary updated