All stories

Baidu's Unlimited SVG converts images into code

Baidu's ERNIE multimodal team has unveiled Unlimited SVG, a model that converts complex images into structured SVG code with about 0.5B activated parameters, a task the team says only frontier models handled until now.

Baidu's ERNIE multimodal team introduced Unlimited SVG, a framework that converts complex images into layered, renderable SVG. It records the position, shape, colour and text of each element, along with which elements sit in front of others.

The team argues that SVG beats captions as a way to represent images. Text descriptions lose detail about exact layout, fonts and colours, and they can't be checked against the source image. SVG, by contrast, renders straight back into an image, so the output can be verified.

The model is built on DeepSeek-OCR. Its DeepEncoder compresses a 2048 × 2048 image into 1,024 vision tokens, and the team says this keeps small text, thin strokes and spatial coordinates intact. Decoding runs on a mixture-of-experts architecture that activates about 0.5B parameters per token. A full SVG for a complex image can exceed 10,000 tokens, and Baidu claims the model generates that much output at real-time speed. It describes the model as small enough to run locally rather than through frontier APIs.

The project page says this kind of conversion has so far been within reach only of frontier models such as GPT-6.2 Astra, Claude Fable 5.2 and Gemini 4 Argon. However, it includes no benchmark numbers, head-to-head comparisons or information about releasing the weights. A technical report is listed as "coming soon."

Looking ahead, the team proposes using SVG generated at scale as a pretraining task for general vision-language models. It also pitches SVG as a way to combine image understanding and generation in a single model, and as a perception layer for embodied agents. The team says it plans to extend the approach to depth and video.

Sources