INQUIRING LINE

Why do AI models that draw pictures by writing code start to struggle on more complex images?

What limits SVG generation quality when inference requires tens of thousands of tokens?

This explores why AI models that write SVG code (text-based vector images) find it hard to produce good pictures when one image needs tens of thousands of tokens, and what the corpus says helps.


This explores why language models that draw by writing SVG code struggle once a single image runs to tens of thousands of tokens. The corpus doesn't measure exactly how quality falls as SVGs get longer. It does point to three separate limits: how the drawing is encoded as tokens, what signal the model learns from, and the fact that the model can't go back and fix what it has already written.

The first limit is encoding. Raw SVG mixes drawing instructions ("move here", "draw a curve") with long strings of coordinate numbers, and over a long sequence models start inventing details that weren't asked for. OmniSVG addresses this by turning SVG commands and coordinates into separate dedicated tokens. That lets a pretrained vision-language model keep the structure of the drawing apart from its exact geometry, and it can then produce complex colored graphics beyond 30k tokens Can tokenizing SVG commands unlock complex colored vector graphics?. So token count alone isn't the whole problem. A lot depends on whether each token carries clear meaning.

The second limit is the training signal. Supervised fine-tuning teaches a model to copy reference SVG code token by token, but two quite different pieces of code can render to the same picture, and code that looks almost identical can render very differently. RLRF fixes this by rendering what the model wrote, comparing the result pixel by pixel with the target image, and rewarding how close it is. It beats supervised training and generalizes to SVG styles it hasn't seen Can rendering feedback train better SVG generators than supervised learning alone?. Front-end code generation has found the same thing: ReLook scores rendered screenshots instead of code and gives zero reward to anything that fails to render, which stops the model from gaming the reward Can multimodal LLMs judge front-end code quality better than tests?. Visual rewards have a weak spot, though. Image-generation reward models consistently fail to penalize distorted geometry and duplicated objects Do text-to-image rewards all miss the same structural flaws?, and long SVGs are exactly where those errors build up.

The third limit is the deepest and the one readers may not expect. Models generate one token at a time and cannot take back a token once it's written. Work on constraint-solving argues that this is a limit of the architecture itself, not of model quality Why does autoregressive generation fail at constraint satisfaction?. A 30,000-token drawing is a long chain of commitments: a wrong path early on can't be erased, only covered over. Not every token matters equally either. Research on reasoning finds that a small minority of 'forking' tokens decide where the output goes Do high-entropy tokens drive reasoning model improvements?, and that models internally rank tokens by how much work each one does Which tokens in reasoning chains actually matter most?. This suggests that SVG quality may depend on a few structural decisions hidden among thousands of routine coordinates. Nobody in the corpus has tested that for SVG yet.


Sources 7 notes

Can tokenizing SVG commands unlock complex colored vector graphics?

OmniSVG demonstrates that discrete-token parameterization of SVG structure allows a pretrained VLM to natively generate complex vector graphics exceeding 30k tokens, decoupling command logic from coordinate geometry to mitigate hallucination.

Can rendering feedback train better SVG generators than supervised learning alone?

RLRF post-training, which samples SVG outputs, renders them, and rewards pixel-level similarity to target images, significantly beats supervised fine-tuning and generalizes to unseen SVG styles. The approach works because rendering provides an evaluative signal where gradients cannot flow through discrete token sampling.

Can multimodal LLMs judge front-end code quality better than tests?

ReLook trains a reward model on visual screenshots rather than unit tests, using a strict zero-reward rule for invalid renders to prevent reward hacking. It outperformed baselines across three benchmarks by embedding pixel-level visual judgment into the policy training loop.

Do text-to-image rewards all miss the same structural flaws?

Every tested reward model—aesthetic, preference, and consistency-based—develops its own failure mode, but all consistently fail to penalize geometric distortions, object duplication, and entity blending. A lightweight adaptive reward model trained on human-judged artifact examples can fill this gap.

Why does autoregressive generation fail at constraint satisfaction?

The performance ceiling on constraint satisfaction problems is not a model-quality issue but an architectural limitation: autoregressive transformers cannot retract emitted tokens, while CSP solvers fundamentally depend on discarding invalid partial assignments. Symbolic solver integration works because it supplies what the architecture lacks.

Show all 7 sources
Do high-entropy tokens drive reasoning model improvements?

Only ~20% of tokens exhibit high entropy as pivotal reasoning decision points; RLVR primarily adjusts these forking tokens. Training exclusively on them matches or exceeds full-gradient performance, revealing that the minority carries the learning signal.

Which tokens in reasoning chains actually matter most?

Greedy likelihood-preserving pruning reveals six functional token categories; symbolic computation tokens are preferentially preserved while grammar and meta-discourse are pruned first. Student models trained on these pruned chains outperform those trained on frontier-model compression.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.