TL;DR
This paper introduces SEEKER, a novel multimodal large language model (MLLM) that tackles the challenge of processing long-form documents with both text and images. By encoding text directly into image tokens, SEEKER achieves more efficient and effective long-context understanding, outperforming existing models on various multimodal tasks.
What Problem Does This Paper Address?
Modern MLLMs have made impressive strides in understanding visual and textual information. However, a significant hurdle remains: efficiently processing and understanding long documents that contain numerous images and extensive text. Current MLLMs struggle with the inherent limitation of fixed token-length contexts, making it difficult to handle lengthy inputs without losing crucial information or incurring high computational costs. This paper aims to bridge this gap by developing a method that can process long multimodal content more effectively within these constraints.
Methods
The core innovation of SEEKER lies in its approach to handling long text within multimodal inputs. Instead of relying on traditional Optical Character Recognition (OCR) to extract text and then tokenize it, SEEKER directly encodes textual information into the visual pixel space using images. This "visual token representation" allows the model to represent lengthy text more compactly.
Key aspects of their method include:
- Compact Encoding: Text is compressed into image tokens, significantly reducing the number of tokens required to represent the same amount of information compared to OCR-based methods. This allows for more content to fit within the model's fixed context window.
- Image-Text Alignment: SEEKER utilizes a dense image-text alignment strategy, building upon pre-training with image-text pairs. They also introduce a "visual-embedded task" to improve the alignment between visual representations of text and the actual text content.
- Supervised Fine-tuning: The model is fine-tuned using a combination of textual and visual inputs, employing an autoregressive training objective to predict the next token in a sequence.
- Architecture: SEEKER uses the DeepSeek LLM as its language model backbone and a hybrid vision encoder (SigLIP and SAM-B) capable of processing high-resolution images (1024x1024) into a fixed token length (576 tokens per image).
Datasets
The paper mentions using existing datasets for pre-training and fine-tuning, including:
- CC3M: Used to curate multi-image instruction data for intra-image reasoning.
- NLVR2, Mimic CGD, COCO images: Used for inter-image reasoning instruction data.
- arXiv documents: Collected and processed as images to create long-form text-rich image sequences for instruction data.
- Wikipedia: Text paragraphs rendered into images for visual-embedded tasks.
The authors also introduce their own instruction data for long-context multimodal tasks, categorized into "long-form multi-image input" and "long-form text output."
Key Insights and Ideas
- Pixels are More Compact than OCR Tokens: The paper demonstrates that representing text as image tokens is significantly more token-efficient than using OCR. This is crucial for fitting more information into limited context windows.
- Predictable Tokenization: Image tokens offer a consistent token length regardless of textual density, unlike OCR, which can lead to highly variable and unpredictable token counts, potentially exceeding context limits.
- Leveraging Visual Understanding for Text: By treating text as visual information, SEEKER can leverage the strengths of vision models to understand and process textual content within long documents more effectively.
- Efficiency Gains: Eliminating the OCR step significantly reduces inference time, making SEEKER approximately three times faster than OCR-based approaches for long-context tasks.
Key Results
SEEKER demonstrates strong performance across various long-context multimodal tasks:
- Long-Form Multi-Image Input: SEEKER significantly outperforms larger open-source MLLMs on four long-form multi-image input tasks, and even surpasses the proprietary GPT-4V model on average.
- Long-Form Text Output: SEEKER achieves the best performance for tasks requiring long-form text output.
- Context Length Extrapolation: The model shows improved extrapolation capabilities when representing lengthy text with visual tokens, maintaining performance even with a large number of input pages.
- Efficiency: SEEKER is approximately three times faster than OCR-based approaches in inference time for long-context scenarios.
- General Multimodal Understanding: The model performs on par with other MLLMs on short-context multi-image tasks and even outperforms some on general multimodal benchmarks, despite not being specifically trained on general single-image data.
Limitations and Future Work
The authors acknowledge several limitations:
- Potential for Overlooking Precise Textual Understanding: While efficient, compressing text into visual tokens might sometimes overlook fine-grained textual details. Future work could explore hybrid encoding strategies that balance compression with precision.
- Bias Perpetuation: Like any model trained on large datasets, SEEKER could inadvertently learn and perpetuate biases present in its training data. Further research is needed to identify, understand, and address these biases to ensure equity.
Future work could focus on developing these hybrid encoding strategies and addressing potential biases. The authors also suggest that their advancement could transform various sectors by improving information accessibility, but emphasize the need to ensure affordability and availability to prevent exacerbating information disparities.
Summary updated