Multimodal Task Integration Guide ๐ธ
January 12, 2026 ยท View on GitHub
LLMRouter supports advanced multimodal reasoning by integrating Vision-Language Models (VLMs) into the data generation pipeline. This guide explains the currently supported tasks and how the pipeline processes visual information.
Supported Multimodal Datasets
We currently support 5 multimodal tasks across 3 diverse datasets:
1. Geometry3K (Geometry Problem Solving)
|
|
2. MathVista (Visual Math Reasoning)
|
|
3. Charades-Ego (Video Understanding)
๐ก Deep Dive: For a complete breakdown of our Video/VLM pipeline, seeing the Charades-Ego Integration Guide.
- Activity Recognition: Identifying high-level activities (e.g., "Cooking").
- Object Recognition: Identifying objects interacted with.
- Verb Recognition: Identifying action verbs.
Implementation Pipeline
The multimodal data generation follows a streamlined process found in llmrouter/data/multimodal_generation.py:
- Image Extraction: Raw images or video frames are extracted from the source dataset.
- Preprocessing: Images are converted to base64 format for API compatibility.
- VLM Description: A Vision-Language Model (e.g., GPT-4o, Gemini, or open weights like Qwen2-VL) processes the images in parallel batches.
- Query Augmentation: The VLM's output (description of the visual scene) is appended to the original text query.
- Router Training: This augmented text-only query is then used to train the router, allowing it to "see" the image content through the description.