PlotEdit: Natural Language-Driven Accessible Chart Editing in PDFs via Multimodal LLM Agents

Kanika Goswami, Puneet Mathur, Ryan A. Rossi, Franck Dernoncourt

Abstract

Charts embedded in PDF documents are typically stored as static images, creating an "information silo" where underlying data and stylistic attributes are inaccessible for modification. PlotEdit is a novel multi-agent framework designed to bridge this gap by enabling natural language-driven chart editing. By orchestrating five specialized Large Language Model (LLM) agents and a triple-loop multimodal feedback system (visual, numeric, and code), PlotEdit successfully de-renders static charts into editable components. Experimental results on the ChartCraft dataset show that PlotEdit outperforms existing Vision-Language Models (VLMs) by 9–14% in accuracy and visual fidelity.

Introduction

In modern digital documentation, charts are essential for data visualization but are often trapped in non-editable formats like PDFs or scanned images. This lack of flexibility poses significant challenges for accessibility (e.g., adjusting colors for color-blindness), data updates, or stylistic rebranding. While Vision-Language Models (VLMs) have made strides in image understanding, they frequently struggle with the precise "de-rendering" required to turn a chart image back into functional code and data without introducing hallucinations or structural errors. PlotEdit addresses these challenges through a robust, automated pipeline that treats chart editing as a coordinated multi-agent task.

Methodology

PlotEdit moves away from monolithic model architectures in favor of a specialized multi-agent framework. The system orchestrates five distinct agents to handle the complexity of chart de-rendering and modification:

  1. Chart2Table Agent: Extracts raw data from the image into a structured table.
  2. Chart2Vision Agent: Identifies stylistic attributes such as colors, fonts, and line styles, storing them in a JSON format.
  3. Chart2Code Agent: Generates the Python code (e.g., Matplotlib or Seaborn) necessary to render the visualization.
  4. Instruction Decomposition Agent: Parses complex user requests into a sequence of executable steps.
  5. Multimodal Editing Agent: Executes the requested changes on the extracted data, style, or code components.
The PlotEdit multi-agent architecture featuring specialized retrieval agents and a triple-loop feedback system.

Self-Reflection via Multimodal Feedback

A core innovation of PlotEdit is its triple-loop feedback system, which ensures the integrity of the edited output:

  • Code Feedback: Utilizes Abstract Syntax Tree (AST) parsing and execution logs to detect and fix programming errors.
  • Visual Feedback: Employs Multi-Scale Structural Similarity Index (MS-SSIM) and GPT-4V to compare the original and new charts, identifying region-specific visual mismatches.
  • Numeric Feedback: Uses DePlot to extract quantitative measures from the new chart and compare them against the original data, preventing numerical hallucinations.

Evaluation and Results

The framework was evaluated using the ChartCraft dataset, which covers style, layout, format, and data-centric edits. PlotEdit was compared against state-of-the-art baselines including ChartLlama, ChartReformer, and standard In-context Learning approaches.

Performance comparison of PlotEdit against baseline models across various edit types and metrics.

As shown in the results, PlotEdit achieved superior performance across all metrics, including SSIM (structural fidelity), RMS (data accuracy), and VAES (style precision). The system demonstrated a 9–14% improvement over baselines. An ablation study ("PlotEdit w/o MFA") confirmed that the Multimodal Feedback Agents are critical; removing them led to a significant drop in performance, particularly in maintaining the integrity of the original chart's data and style.

Conclusion

PlotEdit demonstrates that a "divide and conquer" agentic approach, combined with multimodal self-reflection, is highly effective for the complex task of chart de-rendering and editing. By successfully extracting and modifying the underlying components of static images, PlotEdit paves the way for more accessible and interactive document consumption. Future work will focus on integrating these capabilities directly into PDF readers and exploring the performance of smaller, open-source models within this agentic framework.

Summary updated

BibTeX
@inproceedings{goswami2025plotedit,
  author = {Kanika Goswami and Puneet Mathur and Ryan A. Rossi and Franck Dernoncourt},
  title = {{PlotEdit: Natural Language-Driven Accessible Chart Editing in PDFs via Multimodal LLM Agents}},
  booktitle = {ECIR},
  year = {2025},
  doi = {10.1007/978-3-031-88720-8\_22},
}
Figure