arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.06852

One Figure, Every Canvas: Editable Flowchart Relayout via Agentic Pipeline

Shih-Chen Tseng, Chih-Hsuan Chen, Ryan Yang, Hsi-An Chen, Chun-Wei Tuan Mu, Yu-Lun Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Shih-Chen Tseng 1∗^{1*}, Chih-Hsuan Chen 1∗^{1*}, Ryan Yang 1,2∗^{1,2*}, Hsi-An Chen 1^{1}, Chun-Wei Tuan Mu 1^{1}, Yu-Lun Liu 1^{1}

1^{1}Department of Computer Science, National Yang Ming Chiao Tung University

2^{2}Siebel School of Computing and Data Science, University of Illinois Urbana-Champaign

Figure

outputs are draw.io-editable XML

Figure 1: Aspect-ratio-adaptive flowchart relayout. Given a single flowchart at one fixed ratio (left), our method produces structure-preserving relayouts at arbitrary aspect ratios (right): phone, tablet, social, slide, and banner. Three different source figures (top to bottom) demonstrate generality across architecture diagrams, experimental pipelines, and process flows. Outputs are not re-rendered images but draw.io-editable XML, ready for further manual refinement.

ABSTRACT

Pipeline figures in ML papers must be repurposed across many canvases, including paper columns, 16:9 slides, portrait posters, 1:1 social teasers, 9:16 phone previews. Each format imposes a different aspect ratio on the same computational graph, where any silently broken connection misrepresents the method. We formulate aspect-ratio-adaptive flowchart relayout as a distinct task: given a raster flowchart and a target ratio, produce a structurally faithful, hallucination-free, editable layout. Existing methods fail characteristically: image-to-image models stretch blocks and reject extreme ratios, text-to-image agentic systems hallucinate content, and parse-then-render systems mis-route edges. We propose an agentic pipeline factored into Parse, Style, and Layout stages, each pairing a main agent with a critic that combines deterministic constraint checks with VLM visual feedback so connectivity is explicitly checked and prevented from being silently broken. Outputs are draw.io-editable mxGraph XML. On a curated benchmark of 100 flowcharts at five aspect ratios, evaluated by Gemini 3.1 Pro and validated against human judgments, our method reaches 68.6% Content Fidelity versus 11.2–41.4% for prior work. Project page: https://onefigureeverycanvas.vercel.app/

∗^{*}Equal contribution.

(a) Input flowchart (fixed ratio, 1:1)

-> relayout to 3:4 (tablet

(b) I2I model

(e.g., Nano Banana Pro)

naive pixel-space resize

(c) T2I / agentic

(e.g., PaperBanana)

re-synthesizes from prompt

(d) AutoFigure-Edit / SciFig

Figure

pares but mis-routes edges

Texts added that aren't in (a)

also: aspect ratios outside ~3:1-1:3 are unsupported by these models

Figure 2: Three categorical failure modes on flowchart relayout. Given input (a) at 1:1 and a request for 3:2, we examine three families. (b) Image-to-image models (e.g., Nano Banana Pro) resize in pixel space, stretching embedded frames and blocks, and they also reject aspect ratios outside 3:1–1:3. (c) Text-to-image agentic systems (e.g., PaperBanana) re-synthesize from a prompt, dropping blocks present in (a) and adding labels that were not. (d) Parse-then-render systems (e.g., AutoFigure-Edit, SciFig) recover components but mis-route edges, breaking the computational graph. Red annotations mark each failure. None achieves structural fidelity, hallucination-freedom, and arbitrary resizing simultaneously. These are the three properties our task requires.

1 INTRODUCTION

Pipeline figures are central to how vision and ML research is communicated, yet the same diagram has to live across many canvases: paper columns, 16:9 slides, portrait posters, 1:1 social teasers, 9:16 phone previews. Each target imposes a different aspect ratio on the same computational graph, and every conversion must preserve the original blocks, edges, and flow direction. Any silently broken connection misrepresents the method. Manually re-laying out figures for each canvas is tedious and error-prone. As shown in Fig. 1, our goal is to produce structure-preserving relayouts at arbitrary aspect ratios from a single source figure, with each output remaining editable in draw.io for further refinement.

Recent work on automating scientific-figure creation falls into three families. Image-to-image (I2I) models such as Nano Banana Pro and GPT Image 2.0 re-synthesize the source figure at a requested resolution. Text-to-image agentic systems, PaperBanana (Zhu et al., 2026a), SciFig (Huang et al., 2026b), and Paper2Poster (Pang et al., 2025), orchestrate planner, stylist, and critic agents to create a new figure from a methodology description. A third line targets editability: AutoFigure-Edit (Lin et al., 2026) emits SVG, while AutomaTikZ (Belouadi et al., 2023) and DeTikZify (Belouadi et al., 2024) use TikZ. All target figure generation from textual or programmatic inputs; none takes an existing flowchart and refits it to an arbitrary canvas while keeping its computational graph intact.

When repurposed for relayout, each family exhibits a categorical failure mode (Fig. 2). I2I models resize in pixel space. Embedded panels and blocks are uniformly stretched, and ratios outside 3:1–1:3 are rejected. T2I agentic systems re-synthesize from a prompt, dropping source blocks and adding labels not present in the source. Parse-then-render systems recover the components but mis-route edges, breaking the directed graph that the flowchart exists to communicate. None simultaneously achieves the three properties this task requires: structural fidelity, hallucination-freedom, and arbitrary canvas resizing in a downstream-editable format. As summarized in Table 1, these methods produce non-editable raster outputs, lack native flowchart-editor support, or cannot resize an existing flowchart to arbitrary canvases.

We introduce an agentic pipeline for aspect-ratio-adaptive flowchart relayout. Given a raster flowchart F0F_0 and target ratio rr, our method produces a draw.io-compatible mxGraph XML X∗X^* that preserves the structure, content, and style of F0F_0 while fitting the new canvas. Since directly resolving structure, appearance, and spatial arrangement in a single step is difficult, we decompose the problem into three stages, each pairing a main agent with a critic (Fig. 3). The Parse stage recovers structured XML from F0F_0 with SAM 3 (Carion et al., 2025) spatial priors; the Style stage reconstructs visual appearance while extracting colors deterministically to mitigate unreliable VLM color perception; and the Layout stage rearranges the recovered graph for the target canvas, combining deterministic structural checks with VLM visual feedback to prevent connectivity errors. We further curate flowcharts from oral papers at top-tier venues, evaluate them at five target ratios, and propose four VLM-as-a-Judge metrics validated against human judgments. Our pipeline reaches 68.6% Content Fidelity versus 11.2–41.4% for prior work.

Table 1: Capability comparison with prior work. We compare against three families of figure-generation approaches along three axes for paper-figure relayout: how style is specified, what canvas ratios are supported, and whether outputs are editable in a standard tool. Only ours achieves all three: image-reference style control, arbitrary aspect ratios, and draw.io compatibility. ✓=\checkmark = full support, △=\triangle = partial support, ×=\times = none.

MethodStyle ControlCanvas ResizingEditable Format
Image-to-image models
Nano Banana ProImage reference△ (~3:1 to 1:3)×
GPT Image 2.0Image reference△ (3:1 to 1:3)×
Text-to-image / agentic systems
SciFig (Huang et al., 2026b)Prompt (Hard)××
PaperBanana (Zhu et al., 2026a)Prompt (Hard)△ (~3:1 to 1:3)×
Parse-then-render systems
AutoFigure-Edit (Lin et al., 2026)Image reference×△ (SVG)
OursImage reference (Easy)✓ (Arbitrary)✓ (draw.io XML)

Our contributions are:

  • We formulate aspect-ratio-adaptive flowchart relayout as a distinct task and propose the first agentic pipeline for it, factored into Parse, Style, and Layout stages, each guarded by a critic combining VLM reasoning with deterministic verification so connectivity is explicitly checked and prevented from being silently broken.

  • We construct FLOWCHARTRELAYOUTBENCH, a benchmark pairing flowcharts from CVPR/IC-CV/ECCV/NeurIPS/ICLR/ICML oral papers at five target ratios (9:16, 2:3, 1:1, 3:2, 16:9) with a four-metric VLM-as-a-Judge protocol (Relationship Preservation, Hallucination-free Rate, Layout Quality, Style Similarity) validated against human assessments.

  • Experiments and a user study show that our pipeline substantially outperforms both monolithic VLM and existing agentic figure systems on the structural-fidelity dimensions that matter most for cross-canvas relayout.

References (100)

Couldn't load all references. Reload the page to try again.