Skip to content
YC Root AccessYC Root Access

ChartNet: Training Vision-Language Models to Understand Charts

At our inaugural YCML at Startup School, YC Partner Ankit Gupta speaks with MIT PhD candidate Jovana Kondic about ChartNet, an open-source data generation pipeline and million-scale dataset for chart understanding. Charts require models to combine visual recognition, text understanding, and numerical reasoning. ChartNet generates diverse examples by translating charts into plotting code, augmenting that code, and rendering new images with corresponding tables, summaries, and reasoning traces. Training on ChartNet improved open-source models across a range of chart tasks and transferred to real-world benchmarks, showing how carefully structured synthetic data can give smaller models capabilities commonly associated with much larger systems. Apply to Y Combinator: https://www.ycombinator.com/apply Work at a startup: https://www.ycombinator.com/jobs

Ankit GuptahostJovana Kondicguest
Aug 6, 20265mWatch on YouTube ↗

EVERY SPOKEN WORD

  1. 0:000:07

    Intro

    1. AG

      [upbeat music]

  2. 0:070:28

    ChartNet overview: a synthetic, open-source dataset for chart understanding

    1. AG

      We're here at YCML with Jovana, a PhD candidate at MIT. She's gonna tell us a little bit about her work that she presented at CVPR this year. Jovana, tell us a little about ChartNet.

    2. JK

      Thank you so much, Ankit. Um, so this is a foundation models data generation pipeline and dataset, uh, where we enable the next generation of vision-language models to do robust chart understanding.

    3. AG

      Right.

  3. 0:280:58

    Why charts are hard for VLMs: text parsing + numerical reasoning

    1. JK

      And this work was, uh, done jointly with MIT, IBM Watson AI Labs, and IBM Research. Um, so what makes chart understanding difficult for VLMs? Well, unlike natural images, um, the models have to understand the text, and they also have to engage in some kind of numerical reasoning.

    2. AG

      So this is a chart, like a bar graph, for example, or something to that effect?

    3. JK

      A bar graph is the simplest one-

    4. AG

      Okay

    5. JK

      ... but they can go really wild. You know, you can imagine a crazy scatter plot, a violin plot, any, any-

    6. AG

      Figure one in a nature paper, basically-

    7. JK

      Exactly

    8. AG

      ... type of thing. Yeah.

  4. 0:581:11

    Design goals: comprehensive chart diversity plus rich multimodal metadata

    1. JK

      Exactly. So we're, we're, um, trying to, uh, deliver kind of the most comprehensive, largest to date, most diverse, yet open source, uh, and fully synthetic, actually, dataset-

    2. AG

      Okay

  5. 1:111:42

    Key insight: charts are programmatically generated

    1. JK

      ... um, that can meet the demands of foundation models in terms of the size, in terms of the modality coverage. So besides the charts being presented as images, we also have the supporting metadata in the form of code, um, data tables, natural language summaries, and so on. Um, and what enables us to generate this dataset is leveraging the insight that charts are typically generated programmatically. So you have some kind of a plotting code that, uh, you, you know, give it your data, it renders a chart, and this,

  6. 1:422:19

    Two-stage pipeline: image-to-code seeding, then LLM-driven code augmentation

    1. JK

      um, facilitates our data generation pipeline design. So it's a two-stage pipeline. Um, we start with a seed set of images that we use a VLM to translate into the plotting, the roughly corresponding plotting code, and then we perform iterative code augmentation with an LLM. Um, and this enables us to end up with these image and code pairs where we could use the underlying plotting code to generate, um, rounded supporting metadata in the form of data table summaries and so on.

    2. AG

      Okay.

    3. JK

      And we also have a quality filtering unit that ensures that our synthetic dataset meets certain quality.

  7. 2:192:36

    Iterating in code space: rendering variations from a base chart

    1. AG

      So you basically take an existing chart, and then you're generating code that makes the chart, and then a new prompt that tweaks that to make a new data point.

    2. JK

      Yeah. So let me actually show you. In the, in the next slide, it exactly visualizes what you were asking about. So we start with a very simple line chart.

  8. 2:362:54

    Quality filtering: keeping synthetic data reliable

    1. JK

      Um, we roughly translate it into code, and then these are the iterative augmentations. These all happen in the code space.

    2. AG

      Okay.

    3. JK

      I just rendered them so that you, you know, we can actually easily visualize what's going on under the hood.

    4. AG

      So you're actually... Okay. So you're, you're iterating in code space and then just, like, rendering out what chart it produces.

    5. JK

      Exactly.

    6. AG

      Cool.

  9. 2:543:24

    What each sample contains: code, image, tables, summaries, and Q&A reasoning traces

    1. JK

      You just run the code, and it, and it executes, and it renders the image. That's exactly right. And so the resulting dataset is a million-scale dataset. We try to cover all the chart types that we could think of and different plotting libraries for diversity coverage also. Um, each sample is a tuple of plotting code, image, data table, natural language summary, and question and answer traces with, uh, reasoning. And then besides the kind of core synthetic dataset, we also provide additional subsets in the

  10. 3:243:39

    Additional subsets: real-world curated data, human annotations, and grounding

    1. JK

      form of real-world curated data, human-annotated data, grounding, and [audio cuts out] data. And then the question is, well, how well does this work in practice, which we all [laughs] ultimately care about. So we fine-tune a range of open source models from under a billion parameter scale to seven billion

  11. 3:393:55

    Fine-tuning results: consistent gains across model families and tasks

    1. JK

      parameters, and we actually find that across all the model families, we observe gains across all the different chart understanding tasks. And most excitingly, we enable a two billion parameter open source model to outperform, um, orders of magnitude larger GPT-4o,

  12. 3:554:05

    Efficiency highlight: small open models outperform larger frontier models on chart tasks

    1. JK

      and we also find that the, uh, gains translates to real-world public benchmarks, even though this is all based on the training of the synthetic dataset.

    2. AG

      Makes sense. Very cool.

  13. 4:055:15

    Industry adoption: IBM uses ChartNet in VLM training mixture; strong benchmark performance

    1. JK

      And I'm also really excited to say that this dataset was used by IBM Research in their, uh, next generation development of vision-language models. So as ChartNet was, um, kind of a part of their core training mixture. Um, and on average, across, um, our own and public benchmarks on chart and table extraction, we found that the model trained on ChartNet outperformed leading peer open source models and then also, um, Claude Opus on these dedicated tasks. So it's like a four billion parameter versus we don't know how many parameters, but presumably more.

    2. AG

      Probably, yeah.

    3. JK

      Um-

    4. AG

      And, and that's using, um, presumably both the code that you're generating and those resultant chart images for the VLA model?

    5. JK

      Exactly. So the key gain, which is really kind of the take-home message that I wanna share here, is that, you know, these capabilities that we commonly associate with these massive frontier models, we could instead gain by training on a carefully curated dataset that has this multimodal coverage. So we have images, we have plotting code, and then we also have the supporting metadata in the form of text, data values, and so on.

  14. 5:155:39

    Access and community: open-source release, Hugging Face availability, ongoing curation

    1. AG

      Cool. Nice. And so how can someone access this? Is it on Hugging Face?

    2. JK

      Yeah. So it's, uh, fully open source. Um, here are the QR codes that point to the CVPR paper and the dataset. We've had really good, um, community adoption so far, so we've had 50,000 downloads in the past few months it's been, since it's been released. It's actively curated. We keep expanding it. So yeah, we'd love to hear any thoughts in terms of where to improve, what to do next.

    3. AG

      Cool. Thanks so much. Appreciate it.

    4. JK

      Thank you so much.

    5. AG

      Thank you.

    6. JK

      Appreciate it.

    7. AG

      Thanks.

Episode duration: 5:39

Install uListen for AI-powered chat & search across the full episode — Get Full Transcript

Transcript of episode vr6soyP0mh8

Get more out of YouTube videos.

High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.