Skip to main content
Back

Brown University's ChArtist Turns Any Image Into a Data-Accurate Pictorial Chart

A new diffusion model turns bar, line, and pie charts into pictorial visualizations while keeping the underlying numbers accurate.

Pro

Paper, Full Access
  • ChArtist generates pictorial charts (bars as trees, lines as dogs) using a fine-tuned FLUX diffusion model.
  • Introduces skeleton-based spatial control: vertical lines for bars, polylines for lines, radial lines for pies.
  • Two LoRAs handle spatial and subject control, coordinated by a training-free Spatially-Gated Attention mechanism.
  • Beats ControlNet+IP-Adapter, GPT-Image-1, and Nano Banana on data accuracy, with 0.905 on line charts.
  • Ships with CHARTIST-30K, 30,000 synthetic (skeleton, reference, pictorial chart) triplets across bar, line, pie.
  • Full paper accepted to CVPR; no code or weights released yet.

Pictorial charts, where a line of dogs traces a trend or bars turn into skyscrapers, are memorable but painful to build. The visual element wants to stretch and morph, while the chart wants to hold exact heights, angles, and slopes. A new system called ChArtist from Brown University and Adobe Research tackles this head-on with a diffusion model that learns to blend imagery into charts without breaking the data underneath.

ChArtist is a domain-specific diffusion model for automatic pictorial chart generation with two complementary controls: spatial control that aligns with chart structure, and subject-driven control that preserves the visual characteristics of a reference image. To enable this, the authors introduce a skeleton-based spatial representation that encodes only the chart's data structure, allowing flexible integration of reference visuals without rigid outline constraints. The paper was accepted to CVPR.

Why generic ControlNets fall apart on charts

The obvious approach, hand a ControlNet a Canny edge map or a depth map of your chart, doesn't work well. Existing spatial-control methods typically rely on image-based conditions such as Canny edges, which are designed for natural images that contain far greater structural complexity than charts. That rigidity is the problem: a Canny edge of a bar chart forces the generator to draw a rectangle, leaving no room for the bar to become a stack of pencils or a tree trunk.

At the opposite end, sparse conditions like bounding boxes are too weak to encode a line chart's actual trajectory. Sketches focus on overall shape instead of the data-encoding dimension, and pose keypoints rely on a fixed set of joints, making them unsuitable for generalizing across chart types with varying structures. Charts need something in between, precise enough to preserve numbers, loose enough to allow a bar to grow leaves.

The skeleton trick

ChArtist's core idea is a minimalist control representation. Each chart type gets its own skeleton:

  • A single vertical line per bar in bar charts (encoding height)
  • A polyline tracing the trend in line charts
  • Two colored radial lines marking the start and end angles of each pie slice

Only the data-encoding dimension is encoded. Everything else, shape, texture, style, is left open for the generator to fill in from a text prompt or a reference image. Think of it as the difference between constraining the outline of a bar versus constraining only its top edge.

Two LoRAs, one attention gate

The model is built on top of FLUX.1-DEV, a pretrained Diffusion Transformer, with two task-specific LoRA modules trained: LoRA_S which enforces spatial control from the chart skeleton, and LoRA_R which injects subject control from reference images. They can be run independently or together.

ChArtist architecture with two LoRAs and Spatially-Gated Attention

Running two LoRAs in parallel is where things usually break. Composing multiple LoRAs in parallel introduces substantial cross-condition interference, a common issue in multi-control setups, yet particularly harmful for charts, where any subject-induced distortion may directly break data faithfulness. The paper identifies two specific failure modes:

  1. Structure misalignment: the reference image pulls pixels off the skeleton, producing bars of the wrong height.
  2. Style leakage: the subject bleeds into the background, so the chart becomes visually ambiguous.
Structure misalignment and style leakage failure modes

The fix is a training-free inference mechanism called Spatially-Gated Attention. Instead of letting the two controls compete, the model first computes an attention map from the skeleton tokens to the latent tokens, aggregates it into a spatial mask, and uses that mask to gate how much the reference image can influence each region. A hyperparameter β controls how much subject signal is allowed to leak into the background. Lower β means tighter containment.

Building 30,000 chart triplets from scratch

There is no public dataset of (skeleton, reference image, pictorial chart) triplets, so the authors synthesized one. CHARTIST-30K is a high-quality synthetic dataset of 30,000 skeleton-reference-pictorial chart triplets, generated through two specialized pipelines tailored to distinct chart topologies. Each chart type, bar, line, and pie, gets 10,000 samples.

The two pipelines handle different geometric demands:

  • Reference-modification pipeline for bar-like charts: generate an object, split it into 5 vertical grids, then extend or trim the most texture-repetitive grids to hit the target height.
  • Pictorial-derivation pipeline for curved charts like lines and pies: run the process in reverse, generate a textured background matching the skeleton first, then use diptych inpainting to derive a clean standalone reference object.
Dataset construction pipelines

Measuring whether the chart still reads correctly

Standard metrics like IoU don't work here because chart skeletons are sparse. The authors introduce a structure-aware weighted F1 score: they build a distance field around the skeleton, sample points at multiple distance bands, and weight each band by how important that region is for reading the data. For bar charts, weights peak near the bar tops. For line charts, points closest to the trajectory get the highest weight. For pie charts, the radial dividers matter most.

How it stacks up

On the joint spatial-plus-subject task, ChArtist reports 0.931 data accuracy on bar charts and 0.905 on line charts, both beating ControlNet+IP-Adapter, Paint-by-Example, Qwen-Image-Edit, Nano Banana, and GPT-Image-1. The gap is largest on line charts, where the second-best method scores 0.728. Visual consistency scores (DINO and CLIP-I on the cropped chart region) are also the highest across chart types.

The tradeoff behavior is worth noting. In an ablation, a lower β of 0.3 gives 0.927 data accuracy but 0.732 DINO, while β=0.9 flips it to 0.729 accuracy and 0.775 DINO. You dial the knob depending on whether data fidelity or visual richness matters more.

Where it helps and where it doesn't

The authors demonstrate a plugin integration with Adobe Express that unifies visual design and chart creation into a single workflow, which is the clearest use case: infographic authoring tools, editorial visualizations, presentation software. It handles bar, line, pie, and by extension histogram, box, treemap, heatmap (single linear encoding) and scatter, radar, donut (angular or multi-dimensional encoding).

Limitations are real. The system is trained only on three chart types, so anything with more exotic encodings (Sankey, chord, network) is out of scope. Pie charts remain the weakest category (0.753 data accuracy), likely because angular deformation is harder than height adjustment. And subject-guided evaluation is done only inside the chart boundary, meaning global composition quality isn't directly measured.

There is no released code or model weights at the time of writing, only a project page with sample outputs. The dataset construction recipe and the Spatially-Gated Attention mechanism are described in enough detail to reimplement, and the base model FLUX.1-DEV plus OmniControl-style LoRA training are all publicly available components.

The broader signal here is that generic conditioning inputs like edges and depth maps are hitting a ceiling for structured visual tasks. Purpose-built representations that encode only what actually matters for the domain, in this case the data-encoding dimension of a chart, leave enough slack for creative generation while still guaranteeing correctness. That pattern likely generalizes to other structured-visual domains: diagrams, floor plans, molecular structures, sheet music.