r/computervision • • 26d ago

Research Publication Tested if frontier models can draw simple vector graphics

Post image

We are told frontier AI can solve mathematical problems, reason through quantum physics, and replace junior designers.

Then you ask Claude Opus 5.5 to draw a simple icon under a 48-command budget, and it summons a demonic black ink blob.

Most people assume redrawing a clean monochrome icon is child's play for a frontier vision model.

It turns out vector geometry is their ultimate blind spot.

When models cannot cheat by dumping thousands of unrolled coordinates, their spatial reasoning completely falls apart.

To measure what is actually happening, I built ToySVG, a deterministic benchmark evaluating vector reconstruction and geometric perception under parsimony budgets of commands in the svg code (k ≤ 48).

• Gemini 4 Argon: Actually solved the geometry cleanly (S = 0.993 in 29 commands).

• GPT-6 Astra: Understood the shape, but could not budget its commands. It blew past the limit with 66 operators and took a hard zero penalty (S = 0.000).

• Claude Opus 5.5: Completely abandoned topology and fused the loops into an unrecognizable solid silhouette (S = 0.179).

The scoring pipeline runs on CPU without need for judges or fuzzy embeddings, combining:

  • Spatial similarity alignment (scale and translation)
  • Soft IoU on continuous raster lattices
  • Symmetric boundary Chamfer distance
  • Topological Euler characteristic invariants (|Δβ₀| + |Δβ₁|)

The empirical finding: On a companion perception control probe without code generation, models achieve up to 88% accuracy on geometric invariants (hole counts, symmetry). But when forced to synthesize compact parametric coordinates, performance collapses. Spatial perception precedes and decouples from parametric coordinate synthesis.

GitHub repository: https://github.com/Vuln3rat0r/ToySVG

Full specification paper: https://doi.org/10.5281/zenodo.23516724

0 Upvotes

5 comments sorted by

1

u/bfyvfftujijg 23d ago

Why not use a dedicated image generation model? GPT Image 2.5 Sunburst has been my go to lately for vector style diagrams.

Or is the hard requirement here that it’s SVG?

2

u/LightJunior8241 23d ago

the hard requirement is the svg itself

1

u/bfyvfftujijg 23d ago

It’s pretty cool that LLMs know SVG at all!

I suppose this is an area they can easily improve by generating synthetic training date. Kind of like how they fixed the “how many R’s are in the word strawberry” problem.

1

u/LightJunior8241 23d ago

technically they can do and I can tell you that gpt astra have seen enough of my benchamrk data before ( I used some known icons ) that's why it scored well in the leaderboard

But even with data availability still not enough I ve tested Argon on simple drawing a gride shape and it failed 😅

1

u/bfyvfftujijg 22d ago

Fascinating. So you’ve seen it improve specifically on your own benchmark?