ERNIE Unlimited SVG: Baidu open-sources a ~0.5B-parameter model with GPT-6.2-class image redrawing
Baidu's ERNIE multimodal team has open-sourced ERNIE Unlimited SVG, a model with about 0.5B activated parameters that redraws memes, paper figures, architectural drawings and CAD engineering diagrams as editable SVG, with every graphic element separable and modifiable. It builds on the DeepSeek-OCR framework: DeepEncoder compresses a 2048x2048 image into just 1,024 visual tokens, and the MoE architecture activates only ~0.5B parameters per token, keeping generation real-time even when the SVG code runs past 10,000 tokens.
Wow - AI can now trace out, stroke by stroke, even the kind of meme that makes your CPU overheat?
I gave the SVG code a hard look, and amazingly, it didn't misidentify the person or that highly deceptive helmet??
In effect, you hand the AI an ordinary image and it hands back an editable vector design file.
From the paper figures researchers dread most to densely packed architectural drawings and CAD engineering diagrams, it attempts to redraw them all from the original image.
To do this kind of fine-grained work well, you would think it takes a model on the level of GPT-6.2 Astra or Claude Fable 5.2?
This is ERNIE Unlimited SVG, the brand-new open-source release from Baidu's ERNIE multimodal team.
With only about 0.5B activated parameters, it pulls off the drawing feats previously seen in frontier large models.
Take the same snowy-mountain landscape: the original image on the left, and on the right the version redrawn by ERNIE Unlimited SVG.
The left has blurred into a mosaic of mush, yet on the right the ridge lines stay crisp, and even the sun's edge is still round.
To a computer, the two are not even the same species - they store information in completely different ways.
The JPG and PNG images we get from photos and screenshots are essentially assembled from individual pixels, a bit like fuse beads.
Zoom in and the pixels grow with it, so originally smooth edges easily turn jagged.
To draw a sun, for instance, you only need to tell the computer where the center is, what the radius is and what fill color to use.
Whether you scale it up or down afterward, the computer redraws it at the original proportions, so in theory it never hits the ordinary image's problem of getting blurrier the more you enlarge it.
Say you find a calligraphy piece online that you love and want printed on a canvas tote - but the source image's resolution is painful.
Or the boss suddenly digs out a company logo from a dozen years back and wants a billboard - only for you to find the original design files are long gone...
Now you can throw all of these straight to ERNIE Unlimited SVG and have the AI redraw them.
For a real-world test, I brought out a meme sticker set made from a colleague's cat; the source image was itself a bit blurry.
But after feeding it to ERNIE Unlimited SVG, it suddenly snapped into clarity - and got a full anime-style makeover.
And since the model records how every shape is drawn, can you pull individual shapes out and tweak them?
The sky, the sun, the distant snow mountains - every graphic element in the SVG can be taken apart one by one.
Want to give the sun a new color, or turn the whole snowy-mountain image into a sunset or cyberpunk version? Just modify the corresponding graphic element.
Can't you just select a region and inpaint it in ChatGPT? Why bother with SVG?
The difference is that inpainting regenerates the picture, so one tweak can cascade through everything else.
With SVG you select the exact shape and modify it alone - you get not just an image but a design file you can keep editing.
Want to turn your favorite idol into a custom acrylic stand or badge, with your own color scheme and design? Done!
For a beloved anime character, you can change the hair color, swap the outfit, or turn a spring cherry-blossom background into autumn maple leaves - all on your own.
Now the characters, backgrounds and decorations in the original can all be separated out and redrawn - change whatever you want (?? it feels a bit like a BBK point-and-read learning machine).
Great - now everyone has a shot at being a prolific fan-content creator! Do it yourself and you'll never want. (doge)
What really gives researchers and designers headaches are figures so complex that one look kills any desire to redraw them by hand.
You finally find, in some paper, a model architecture diagram with real reference value and want to borrow its layout.
But dozens of modules, arrows and text boxes are welded together; to move one module you would have to redraw it all yourself.
This time, let's run an experiment on the famous Transformer architecture figure from 'Attention Is All You Need' in the AI field.
You can see the elements once crammed into a single image can now be pulled apart and reassembled like building blocks.
Harder still are professional drawings: architectural plans and mechanical CAD engineering diagrams.
And these cannot be drawn casually - mechanical structures, geometric outlines, dimension annotations, section lines... every part has its own rules.
To redraw one, the AI not only has to recognize these details, it has to understand their positional and structural relationships.
Honestly, the thin lines, text annotations and geometric structures are all reproduced quite faithfully; the naked eye cannot spot obvious flaws for now.
But here comes the question: for a diagram this complex, the AI can't really be hard-tracing along contours bit by bit, can it?
Keep in mind, from the snowy landscape earlier to the paper's architecture figure to densely packed mechanical drawings, the difficulty climbs steeply.
Tracing alone is far from enough; the AI has to know what to draw first and what later, and how different shapes are decomposed and combined.
Surely it sorts out the overall composition and layering first, then lays the background, draws the midground, then fills in details.
The original is on the left; on the right the code streams out token by token, and the image in the middle takes shape with it.
Part of the grassland was blocked by a person - but move the person aside, and hey, a complete grassland was hiding behind them!
That shows the AI is not just tracing visible contours: it understands the grassland is merely occluded, so it draws the full field first and layers the person on top.
Behind this lies what the ERNIE team calls Explicit Visual Logic.
Take copying a portrait, for example - you can't exactly draw every hair and every pore in code...
Which features decide the person's looks, which details can be appropriately simplified, how to keep the original's spirit with limited strokes - all of that takes judgment.
One is traditional vectorization: essentially placing points along pixel contours and connecting them into vector paths.
That's fine for simple graphics like logos and icons, but with complex images it lacks clear grouping and sensible layer relationships, so the paths for figures, text and backgrounds all cram together in a dense tangle.
The other is the diffusion-model route, such as VectorFusion and DiffSketcher, which iterates repeatedly so the output gradually approaches the target image.
So this time Baidu switched approaches entirely, using SVG directly as the intermediate bridge connecting language and vision.
One end is the structured code language models know well; the other end renders straight back into an image, so results can be quickly checked and verified.
Unlike the diffusion route's repeated processing of visual information, this gives the model a more direct way to draw.
It also gives the model a chance to complete more complex drawing tasks with fewer visual tokens.
That said, for language models redrawing images, the ones that could previously do it were players on the level of GPT-6.2 Astra and Claude Fable 5.2.
How do you fit this whole act into a small model with only about 0.5B activated parameters?
Leafing through the technical blog, one key technical foundation turns out to be a very familiar name - DeepSeek-OCR.
DeepSeek-OCR compresses images with DeepEncoder and then hands them to a language model for long-sequence generation; Baidu's later Unlimited OCR and Unlimited OCR 2 followed this framework to push ever-longer document recognition.
With ERNIE Unlimited SVG, this technical chassis is now being used for drawing:
DeepEncoder keeps compressing the image, while the model's output has expanded from recognized text to SVG code that easily runs past ten thousand tokens.
More curiously, around September this year, reports appeared in clusters that core DeepSeek researchers had moved to Baidu to lead the ERNIE multimodal direction.
It is quite possible that a former DeepSeek star researcher took part in these generations of ERNIE 'Unlimited' projects.
(P.S. This Unlimited SVG is credited to Baidu's ERNIE multimodal team, which has not published a list of specific researchers, so no further information has surfaced yet.)
Anyway, let's put that aside for now and return to ERNIE Unlimited SVG itself: where Baidu really put in the work this time is cutting the model's compute overhead.
But the more detail an image has, the more visual tokens must be processed, and compute cost climbs with it.
With DeepEncoder, ERNIE Unlimited SVG compresses a 2048x2048 high-resolution image into just 1,024 visual tokens.
What we finally see is just one image, but the SVG code behind it easily runs to over ten thousand tokens.
If every token generated meant spinning up a massive model, the bill for finishing a single image would sting.
ERNIE Unlimited SVG instead relies on a mixture-of-experts (MoE) architecture, activating only about 0.5B parameters per generated token.
Saving on both ends, per the official claim, ERNIE Unlimited SVG still generates in real time even when the SVG code runs past 10,000 tokens.
From now on, for bulk image conversion, or for internal design drawings you would rather not upload to the cloud, you no longer have to call a frontier model's API.
Reading this far, many readers probably assume, as I did, that Baidu simply built a handy image-conversion tool.
But if AI can redraw what it sees, could teaching AI to draw in turn help it see and understand the world better?
How wide is the table, exactly? Is the chair to the left or the right of the table? Where does the lamp's base sit?
Details easily glossed over in a text description - when drawing, the AI has to answer each one.
Compared with natural language, it can express visual information more precisely through coordinates, shapes, colors, grouping and hierarchy.
More importantly, that code can be re-rendered into an image and compared against the original at the pixel level.
My guess: the ERNIE team may next put SVG into multimodal model training, further connecting visual understanding and visual generation.
Language models are trying to abstract the physical world they see using the code they know best.
By industry gut feel, the gap between domestic Chinese models and OpenAI tends to look starker on the vision side than on the language side - language can at least be distilled, but vision is a straight head-on fight...
After all, between recognizing 'what' is in the picture and truly grasping those objects' positions, sizes, occlusion relations and the scene's whole spatial structure, there lies a deep chasm.
With this release, ERNIE Unlimited SVG has driven the first pile into that chasm.
And thinking one step further, this also connects to a direction that has been very hot in AI circles lately -
Think about it: for a robot to pick up a cup on the table, recognizing the cup is nowhere near enough; it has to locate the handle, judge how the cup contacts the tabletop, and plan which direction the arm should reach in from.
In Musk's oft-repeated 'first principles' terms, the robot has to first understand its surroundings as a computable structure before it can know how to act next.
And the coordinates, grouping, hierarchy and occlusion relations in SVG provide exactly such a starting point.
Of course, SVG can only express static two-dimensional scenes today, but the future could push on toward video, depth information, even 3D scenes.
Once this capability keeps extending, models get the chance to understand a continuously changing space and judge how their own actions will affect the scene.
Turning the world into an object that can be computed and acted upon is where Physical AI truly begins.
As for the name Baidu's ERNIE team gave the model - Unlimited SVG Works.
Yes, it is an homage to Unlimited Blade Works; even the technical blog's subtitle hides Emiya Shirou's classic line when casting Projection magic - Trace On.
Except what gets copied now is not weapons but images, and the magic is cast in code.
Reasonable suspicion that the ERNIE team harbors quite a few Fate fans. (doge)
Hugging Face: https://huggingface.co/baidu/Unlimited-SVG
GitHub: https://github.com/baidu/Unlimited-SVG
Technical report: https://unlimited-svg.github.io/