OneChart: Purify the Chart Structural Extraction via One Auxiliary Token

Jinyue Chen, Lingyu Kong, Haoran Wei, Chenglong Liu, Zheng Ge, Liang Zhao, Jianjian Sun, Chunrui Han, Xiangyu Zhang

Abstract

OneChart is a lightweight (0.2B parameter) model designed to bridge the "precision gap" in chart data extraction. By introducing a novel auxiliary token and a dedicated numerical decoder, OneChart outperforms models 60 times its size. It provides a reliable method for converting visual charts into structured Python dictionaries, complete with a built-in self-evaluation mechanism to ensure data integrity.

Introduction: The Precision Gap in Chart Parsing

While Large Vision-Language Models (LVLMs) have made significant strides in general reasoning, they frequently fail at "chart parsing"—the precise extraction of data points from visual plots. This failure stems from two primary issues:

  1. CLIP Bias: Standard vision encoders like CLIP-ViT are optimized for global scene understanding rather than the "dense perception" required to read small text or exact coordinates.
  2. Cross-Entropy Limitations: Standard language models treat all token errors equally. In numerical data, predicting "70.8" instead of "7008" is a catastrophic error, yet traditional transformers view these as merely different character strings.

Methodology: Purifying Extraction with Auxiliary Tokens

OneChart utilizes a compact architecture (Vary-tiny) featuring a SAM-base vision encoder and an OPT-125M autoregressive decoder. The core innovation is the introduction of a structural "purification" process.

Comparison of chart data extraction accuracy with and without the auxiliary <Chart> token, highlighting the reduction in numerical error.

The model employs a special <Chart> auxiliary token at the start of the output sequence. This token triggers a 3-layer MLP Auxiliary Decoder optimized via L1 loss. By minimizing the numerical distance between predictions and ground truth, the model develops a superior "number sense." Because the auxiliary token precedes the text, the subsequent transformer layers can attend to these numerically grounded features, effectively "purifying" the final dictionary output.

Data Generation and the ChartY Benchmark

To train OneChart, the researchers developed a massive synthetic pipeline to ensure stylistic and linguistic diversity.

The OneChart data generation pipeline, illustrating the synthesis of multi-topic bilingual chart data using GPT-3.5 and visualization libraries.

The training involved 10 million synthetic images and 2.7 million Supervised Fine-Tuning (SFT) samples. Furthermore, the authors introduced ChartY, a high-quality benchmark of 6,000 charts. ChartY addresses the lack of diversity in existing datasets by being bilingual (English and Chinese) and covering complex rendering styles and diverse topics.

Key Results and Insights

OneChart demonstrates that specialized, small-scale models can outperform massive generalists. On the PlotQA-SE benchmark, OneChart achieved an Average Precision (AP) of 34.56 at the strict level, significantly outperforming competitors like DePlot (3.11) and ChartVLM (3.81).

Key advantages include:

  • Numerical Accuracy: The "Heads-Up" effect of the leading auxiliary token prepares the model's internal state for accurate digit generation.
  • Self-Evaluation: By comparing the auxiliary decoder's output with the generated text, the model can calculate a confidence score, allowing users to filter out potential hallucinations.
  • Zero-Shot Utility: When used as a pre-processor for larger models like LLaVA-1.6, OneChart improved ChartQA accuracy by 11.2%.

Conclusion and Future Directions

OneChart effectively solves precision issues for standard 2D charts. Future work will expand this "auxiliary token" strategy to 3D charts, dense infographics, and other precision-heavy domains like schematic analysis and map reading.

Summary updated

BibTeX
@inproceedings{chen2024onechart,
  author = {Jinyue Chen and Lingyu Kong and Haoran Wei and Chenglong Liu and Zheng Ge and Liang Zhao and Jianjian Sun and Chunrui Han and Xiangyu Zhang},
  title = {{OneChart: Purify the Chart Structural Extraction via One Auxiliary Token}},
  booktitle = {ACM Multimedia},
  year = {2024},
}
Figure