SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.06492 · ICCV · 2025

Effective Training Data Synthesis for Improving MLLM Chart Understanding

Yuan-Sen Ting, Yuwei Yang, Liang Zheng, Gaowen Liu, Zeyu Zhang, Ali Payani, Zhuowan Li, Yunzhong Hou

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2508.06492.json · badge: /api/ran/2508.06492.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yuweiyang-anu/ECD canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
NUMSUBPLOTS2SUBPLOTTYPE Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/evaluation/CharXiv/eval_utils/score_utils.py
code served (permissive licence) · get_code("7256ba127cf80ff9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def NUMSUBPLOTS2SUBPLOTTYPE(num_subplots):
    if num_subplots == 1:
        return '1 Subplot'
    elif 2 <= num_subplots <= 4:
        return '2-4 Subplots'
    elif num_subplots >= 5:
        return '5+ Subplots'
    else:
        raise ValueError(f'Invalid num_subplots: {num_subplots}')

ARGS = {
    'num_subplots': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
QNUM2QTYPE Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/evaluation/CharXiv/eval_utils/score_utils.py
code served (permissive licence) · get_code("f9b948d54b26221d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function QNUM2QTYPE takes a single parameter: qnum (an integer)
# It checks if qnum is in various predefined lists and returns a string category
# No complex objects needed - just an integer

# Valid qnum values and their expected outputs:
# qnum in [1,2,3,4,5,6,7] -> 'Information Extraction'
# qnum in [8,9,13,14,15] -> 'Enumeration'
# qnum in [11,16,18] -> 'Pattern Recognition'
# qnum in [10,12,19] -> 'Counting'
# qnum in [17] -> 'Compositionality'

ARGS = {
    'qnum': 5  # Valid qnum that maps to 'Information Extraction'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_missing_files Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/data_generation_pipeline/single_plot_generation_pipeline.py
code served (permissive licence) · get_code("ae31736d72c607d7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import re
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
plot_type = "test_plot"
png_path = os.path.join(temp_dir, "ecd_single_plot_charts", plot_type, "png")
os.makedirs(png_path, exist_ok=True)

# Create some sample png files with the expected naming pattern
for i in [0, 2, 5]:
    filename = f"{str(i).zfill(6)}_sample.png"
    filepath = os.path.join(png_path, filename)
    with open(filepath, 'w') as f:
        f.write("dummy png content")

# Change to temp directory so the function can find the files
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    "iterations": 10,
    "plot_type": plot_type
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_prompt Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/data_generation_pipeline/figure_size_post_processing.py
code served (permissive licence) · get_code("b740188ede016838")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Sample Python code that generates a chart
sample_code = '''
import matplotlib.pyplot as plt

# Create a simple line plot
x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]

plt.figure(figsize=(20, 15))
plt.plot(x, y)
plt.xlabel('X axis label that is very long and might overlap')
plt.ylabel('Y axis label')
plt.title('Chart Title')
plt.savefig('chart.png', dpi=300)
plt.show()
'''

filename = 'test_chart.py'

ARGS = {
    'original_code': sample_code,
    'filename': filename
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_image Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/data_generation_pipeline/chart_image_filtering.py
code served (permissive licence) · get_code("852ef01643a7f02e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import io
import base64
from PIL import Image
import numpy as np

# Create a simple PIL Image object
# The function calls image.save() and image.format, so we need a valid Image
img_array = np.random.randint(0, 255, (10, 10, 3), dtype=np.uint8)
image = Image.fromarray(img_array, mode='RGB')
# Set a format attribute that PIL's save method will recognize
image.format = 'PNG'

ARGS = {
    'image': image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_and_complete_json Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/data_generation_pipeline/descriptive_qa_generation.py
code served (permissive licence) · get_code("bcc86df065d7f816")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
import json

def extract_and_complete_json(text):
    pattern = re.compile('\\{(?:[^{}]*"image_id": "[^"]+")[^{}]*\\}', re.DOTALL)
    matches = pattern.findall(text)
    json_objects = []
    for match in matches:
        try:
            json_obj = json.loads(match)
            json_objects.append(json_obj)
        except json.JSONDecodeError:
            continue
    return json_objects


# Setup: Create test input with valid JSON containing image_id
test_text = '''
Some random text here.
{"image_id": "img_001", "label": "cat", "confidence": 0.95}
More text.
{"image_id": "img_002", "label": "dog", "confidence": 0.87}
And some invalid json: {"image_id": "img_003", "label": unclosed
Valid again: {"image_id": "img_004", "data": {"nested": "value"}}
'''

ARGS = {
    "text": test_text
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_scoring Ran
ran, honoured the contract we drafted
yuweiyang-anu/ECD/data_generation_pipeline/chart_image_filtering.py
code served (permissive licence) · get_code("2072a3be290f82b8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def extract_scoring(response):
    match = re.search('Rating:\\s*([1-5])', response)
    if match:
        return int(match.group(1))
    else:
        return 0

# The function takes a single parameter 'response' which is a string
# It searches for a pattern "Rating: " followed by a digit 1-5
# We need to provide a valid string argument

ARGS = {
    'response': 'This is a great product! Rating: 4 out of 5 stars.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter_existing_combinations Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/data_generation_pipeline/combined_subplot_generation_pipeline.py
code served (permissive licence) · get_code("1cf3e97973f23d37")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import shutil

# Create a temporary directory with some mock existing plot combination folders
temp_dir = tempfile.mkdtemp()

# Create some mock existing plot combination folders
os.makedirs(os.path.join(temp_dir, 'plot_combination_line_and_bar_subplots'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'plot_combination_pie_and_scatter_subplots'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'some_other_folder'), exist_ok=True)

# Define plot types - some that exist, some that don't
plot_types = [
    ('line', 'bar'),
    ('pie', 'scatter'),
    ('histogram', 'box'),
    ('line', 'scatter'),
]

output_dir = temp_dir

ARGS = {
    'plot_types': plot_types,
    'output_dir': output_dir,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_response Ran
ran; our contract draft was wrong, not the code
yuweiyang-anu/ECD/data_generation_pipeline/chart_image_filtering.py
code served (permissive licence) · get_code("cc556a6a1407e0b2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import io
import base64
from PIL import Image
from unittest.mock import Mock, MagicMock, patch

# Create a small test image
test_image = Image.new('RGB', (10, 10), color='red')
test_image.format = 'JPEG'

# Save image to bytes buffer for testing
image_buffer = io.BytesIO()
test_image.save(image_buffer, format='JPEG')
image_buffer.seek(0)

# Create a mock for the image path/file
image_path = image_buffer

# Create a simple prompt string
prompt = "Analyze this image and provide a rating."

ARGS = {
    'image': image_path,
    'prompt': prompt
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_response Not yet run
unverified (harvested, no recorded run)
yuweiyang-anu/ECD/data_generation_pipeline/descriptive_qa_generation.py
code served (permissive licence) · get_code("c2283b6d56917f7b")
How it ran

no invocation recorded.

plot_3d_chart Not yet run
unverified (harvested, no recorded run)
yuweiyang-anu/ECD/data_generation_pipeline/single_plot_generation_pipeline.py
code served (permissive licence) · get_code("7163e3c2d2c8b6ef")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Figure 1. Overview of the effective chart dataset (ECD). The QA-referenced chart has been adjusted for readability. The ECD is composed of chart images and question-answer (QA) pairs and is intended as a training set for chart understanding. It includes 29 chart types and over 250 subplot combinations, offering more than 10k images and 300k QA pairs with high quality.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2508.06492")
get_code_for_paper("2508.06492")
have("2508.06492")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2508.06492.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2508.06492.svg)](https://syntology.ai/paper/2508.06492)

Connect an agent — have() is free.