TL;DR
ChartMoE introduces a novel "Mixture of Experts" (MoE) architecture specifically designed for the connector—the crucial bridge between a vision encoder and a Large Language Model (LLM). By initializing different experts through specialized alignment tasks (translating charts to tables, JSON, and Python code), the model achieves a new state-of-the-art accuracy of 84.64% on the ChartQA benchmark while preserving its ability to understand general, non-chart images.
The Challenge: Modality Gaps and Knowledge Forgetting
While Multimodal Large Language Models (MLLMs) like LLaVA excel at describing general scenes, they frequently stumble when processing charts. Charts are not merely "pictures"; they are dense visual encodings of structured data requiring high precision.
Current models face two primary hurdles in chart understanding:
- The Modality Gap: A simple linear projector (the standard "connector" in most MLLMs) often fails to capture the intricate relationships between visual cues (like a red dashed line) and their semantic meaning (a specific data trend).
- Knowledge Forgetting: When a model is heavily fine-tuned on chart data, it often suffers from catastrophic forgetting, losing its ability to perform general tasks like basic object counting or following instructions in natural scenes.
The authors argue that a single "one-size-fits-all" connector is insufficient to handle the diverse ways charts represent information.
Methodology: The Diverse Alignment Strategy
The core innovation of this paper is the Mixture of Diversely Aligned Expert Connector. Instead of relying on a single bridge between the vision and language components, ChartMoE utilizes several specialized "experts" and a routing mechanism that decides which expert to activate for different parts of the image.
Most MoE models start with experts that are either randomly initialized or identical copies. ChartMoE takes a fundamentally different path by forcing experts to learn distinct data representations during initialization:
- Expert 0 (Vanilla): Retains the original parameters to preserve general image-understanding capabilities.
- Expert 1 (Table-aligned): Pre-trained to translate charts into CSV tables, focusing heavily on numerical precision.
- Expert 2 (JSON-aligned): Pre-trained to extract structural attributes (fonts, colors, legend positions) into a structured JSON format.
- Expert 3 (Code-aligned): Pre-trained to convert charts into executable Matplotlib code, capturing overarching trends and visual logic.
The model is trained in three stages: Alignment Pre-training (training individual experts on their specific formats), High-Quality Knowledge Learning (training the router and the LLM using LoRA on a curated instruction dataset), and a final Annealing stage to polish performance on specific benchmarks.
Datasets
To support this training paradigm, the authors introduce ChartMoE-Align, a massive synthetic dataset containing nearly 1 million quadruples of corresponding Charts, Tables, JSONs, and Code.
For fine-tuning and evaluation, the model utilized established datasets like MMC (Multi-modal Chart), ChartQA, and ChartGemma. It was rigorously tested against ChartQA, ChartBench (focusing on numerical extraction), and general benchmarks like MME and MMBench to ensure general knowledge was retained.
Key Insights and Results
ChartMoE demonstrates significant improvements across both specialized chart tasks and general multimodal benchmarks.
- State-of-the-Art Performance: ChartMoE reached 84.64% accuracy on ChartQA, decisively outperforming the previous state-of-the-art (80.48%). On ChartBench, it improved the baseline from 48.41% to 51.67%, proving its robustness across a wider variety of chart types (such as radar or area charts).
- Specialization is Key: Visualizations of the "top-1 expert selection" reveal that the model naturally learns to delegate tasks. The "Vanilla" expert handles background elements, the "Table" and "JSON" experts focus on legends and axes, and the "Code" expert activates most strongly when analyzing actual data points and trend lines.
- Initialization Matters More than Scale: The authors found that simply adding more experts doesn't yield improvements if they all start from the same initialization. The diverse alignment strategy proved far more effective than standard "upcycling" methods.
- No Need for Balance Loss: Traditional MoE models use a "balance loss" to ensure equal utilization of all experts. ChartMoE found this unnecessary; because chart tokens are inherently imbalanced (e.g., more background space than data points), allowing experts to follow their natural "preferences" actually improved overall performance.
- Preserved General Vision: Unlike models directly fine-tuned on charts, ChartMoE maintained high scores on the MME benchmark, proving the MoE connector successfully protects the model's foundational general knowledge.
Qualitatively, the model also excels at "Program of Thought" tasks, successfully generating Python code to modify existing charts (e.g., changing a bar chart to a pie chart while highlighting specific values).
Limitations and Future Work
While highly effective, ChartMoE has a few limitations. Its success relies heavily on the availability of Table/JSON/Code alignment data; extending this architecture to non-chart domains (like 3D maps or medical imaging) would require designing entirely new, domain-specific alignment tasks. Additionally, the MoE connector is not currently "plug-and-play" like a LoRA adapter—adding a new expert requires retraining the router network from scratch. Finally, while the connector is lightweight (adding only ~63M parameters), the routing mechanism introduces a minor computational overhead during inference.
Summary updated