← Latest papers
💻 computer science

CharTide: Data-Centric Chart-to-Code Generation via Tri-Perspective Tuning and Inquiry-Driven Evolution

CharTide is a novel data-centric framework for chart-to-code generation that utilizes a Tri-Perspective Tuning strategy to decouple visual and logical training and an Inquiry-Driven RL framework to ensure alignment through objective, verification-based rewards.

Original authors: Xiangxi Zheng, Kuang He, Jiayi Hu, Ping Yu, Rui Yan, Yuan Yao, Peng Hou, Anxiang Zeng, Alex Jinpeng Wang

Published 2026-04-27
📖 3 min read☕ Coffee break read

Original authors: Xiangxi Zheng, Kuang He, Jiayi Hu, Ping Yu, Rui Yan, Yuan Yao, Peng Hou, Anxiang Zeng, Alex Jinpeng Wang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a master architect, and someone hands you a beautiful, hand-drawn sketch of a futuristic skyscraper. Your job isn't just to describe the building, but to write the exact, complex mathematical blueprints (the "code") so a robot can build it perfectly—down to the exact shade of blue on the windows and the precise angle of the rooftop garden.

If you just look at the sketch and try to write the blueprints all at once, you might get overwhelmed. You might remember the shape but forget the exact measurements, or you might get the math right but use the wrong colors.

This is the problem researchers face with "Chart-to-Code" AI. They want an AI that can look at a complex chart (like a stock market graph or a scientific plot) and instantly write the computer code needed to recreate that exact chart perfectly.

The researchers created CharTide to solve this. Here is how they did it, using two main "training secrets."

1. The "Three-Subject Student" Strategy (Tri-Perspective Tuning)

Most AI models try to learn everything at once: "Look at the picture, understand the math, and write the code." This is like trying to learn to play piano, speak French, and solve calculus all in the same hour. It leads to "brain fog" (what researchers call hallucinations).

CharTide uses a smarter way. It breaks the training into three distinct "classes":

  • Class 1: The Artist (Visual Perception): The AI looks at charts and simply describes them in plain words. This teaches it to see fine details like colors and labels.
  • Class 2: The Coder (Pure Logic): The AI is given text descriptions and told to write the code. This teaches it the grammar of coding without the distraction of looking at pictures.
  • Class 3: The Master (Modality Fusion): Finally, it combines both. It looks at the chart and writes the code.

By mastering these three subjects separately, the AI becomes much more precise than models that try to "multitask" from day one.

2. The "Strict Teacher" Method (Inquiry-Driven RL)

Usually, when an AI makes a mistake, the "teacher" (the evaluation system) is a bit vague. It might say, "That looks okay, 7/10." This is like a teacher giving you a grade without explaining why. It doesn't help you improve.

CharTide uses a much tougher, more objective teacher called the "Inspector." Instead of giving a vague score, the Inspector asks the AI a series of "Pop Quiz" questions about the chart it just built:

  • "Is the legend in the top-right corner?"
  • "What is the exact value of the blue bar in June?"
  • "Is the line dashed or solid?"

If the AI's code produces a chart that gives the wrong answers to these questions, it gets a bad grade. This forces the AI to stop "guessing" and start being mathematically and visually perfect. It’s the difference between a teacher saying "Good job!" and a teacher saying "You got 9 out of 10 math problems correct."

The Result

Because of this specialized training, CharTide is a powerhouse. Even though it is a relatively "small" model (7B or 8B parameters), it performs as well as—and sometimes better than—massive, expensive AI systems like GPT-4o. It doesn't just "mimic" the look of a chart; it understands the soul of the data and the logic of the code.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →