AI guides

Baidu Opens Unlimited SVG: Editable Vector Redraws With About 0.5B Active Parameters

By 一水0 viewsSource: 量子位
Baidu open-sources Unlimited SVG, redrawing images as editable vectors with about 0.5B active parameters

Built on DeepSeek-OCR, Unlimited SVG uses DeepEncoder to compress a 2048×2048 image into 1,024 visual tokens and MoE decoding with about 0.5B active parameters per token. Examples show editable SVG redraws, rather than comprehensive equivalence to GPT-6.2 vision.

Wait, AI can now redraw even a mind-bending meme like this, stroke by stroke?

Take this optical-illusion image that once went viral.

Give it to the AI, and within seconds it redraws the whole thing in code.

Article illustration
△Original meme from Xiaohongshu creator @Jiayou Dazhi

I thought this was just another instant photo-to-illustration trick. Then I looked closer—hang on:

The AI's drawing can actually be taken apart and edited?

Article illustration

I examined the SVG code closely. Remarkably, it had correctly identified both the person and that highly confusing helmet??

Article illustration

In other words, give the AI an ordinary image and it hands back an editable vector design.

And memes are far from the only things it can handle.

From troublesome research-paper illustrations to densely detailed architectural plans and CAD engineering drawings, it can attempt to redraw them from the originals.

Article illustration

That made me wonder:

Surely work this detailed requires a model on the level of GPT-6.2 Astra or Claude Fable 5.2?

Then I checked the answer. What? Neither.

This is the newly open-sourced release from Baidu's ERNIE multimodal team: ERNIE Unlimited SVG.

With only about 0.5B active parameters, it can display drawing skills previously seen in frontier large models.

The key point: it can be deployed locally. The official inference examples require x86-64 Linux, a compatible NVIDIA driver and an available BF16-capable GPU. Approximately 0.5B active parameters does not directly determine deployment VRAM requirements.

Researchers and designers may find it hard to sit still after this.

How does an ordinary picture become an editable design?

Let's start with a very direct comparison.

The same snowy-mountain landscape appears on both sides: the original image on the left, and ERNIE Unlimited SVG's redraw on the right.

Article illustration

At first glance, there seems little difference. The composition and colors are much the same.

But enlarge both by 32 times……

Article illustration

Now the left has become a blurry mosaic, while the mountain ridges on the right remain sharp and even the sun's edge stays smooth.

Why?

That brings us to the difference between ordinary images and SVG vectors:

To a computer, they are entirely different species, storing information in completely different ways.

The JPG and PNG images we get from photos or screenshots are essentially assembled from individual pixels, a little like bead art.

Enlarge them and the pixels enlarge too, making previously smooth edges jagged.

SVG instead records how to draw each shape.

To draw a sun, for example, simply tell the computer its center, radius and fill color.

Whether you later enlarge or shrink it, the computer can redraw it in the same proportions. In principle, this avoids ordinary images' tendency to become blurrier as they grow.

Use 1: rescue low-resolution images, even at 32× enlargement

That reminds me of some everyday frustrations that make you want to smash your keyboard:

You find a piece of calligraphy online that you love and want printed on a tote bag, but the image quality is dreadful.

Or your boss digs out a company logo from more than a decade ago for a billboard, only for you to discover that the original design files disappeared long ago...

Now you can give those pictures directly to ERNIE Unlimited SVG and have AI redraw them.

To try it myself, I used a meme made from a colleague's cat. The original was somewhat blurry.

After giving it to ERNIE Unlimited SVG, it suddenly became sharp—and was transformed into an animated style.

I have to say, that really suits my taste. I'll use this one next time. (doge)

Article illustration

And if every shape's drawing instructions are recorded, can we take individual elements out and change them?

Yes, we really can.

Use 2: edit images element by element and make your own idol cards and fan merchandise

The sky, the sun, distant snowy mountains... every graphical element in the SVG can be separated.

Article illustration

Want to recolor the sun or turn the whole landscape into a sunset or cyberpunk version? Edit the corresponding graphical elements directly.

Article illustration

Someone may ask:

Can't you just select an area in ChatGPT and regenerate it? Why bother with SVG?

The difference is that the first approach asks AI to regenerate the image, and changing one part may affect everything.

SVG lets you select the relevant shape and edit it independently. You get not just an image, but a design you can continue editing.

For idol fans and anime communities, that opens up plenty of possibilities.

An idol photocard not pretty enough? Want another background or custom decorations? Change it!

Want a personalized standee or badge of your favorite idol, choosing the colors and design yourself? Done!

Change your favorite anime character's hair color or outfit, or turn a spring cherry-blossom backdrop into autumn maple leaves. You can experiment with it all yourself.

Article illustration

△Image generated by AI

Previously, these tasks required at least some painstaking manual cutouts and image editing.

Now you can try separating and redrawing characters, backgrounds and decorations in the original, modifying whichever part you choose. (A little like a BBK point-and-read learning device??)

All right, all right—now everyone has a chance to become a prolific fan creator! Make it yourself and provide for yourself. (doge)

Use 3: researchers rejoice—no more hand-redrawing paper architecture diagrams

The examples above are relatively lighthearted.

What really troubles researchers and designers are diagrams so complex that one glance makes you dread redrawing them.

Have you ever experienced this desperate moment?

You finally find a useful model architecture figure in a paper and want to borrow its layout.

You download it, and it is only an image.

Dozens of modules, arrows and text boxes are welded together. Moving even one module means drawing everything again from scratch.

Especially near a paper deadline—who understands the pain...?

This time, let's experiment with the famous Transformer architecture figure from Attention Is All You Need.

ERNIE Unlimited SVG gets drawing:

Article illustration

As you can see, elements once crammed into a single image can now be taken apart and rearranged like building blocks.

Use 4: redraw mechanical CAD engineering drawings too

Research architecture diagrams are only one category.

Going further, professional drawings such as architectural plans and mechanical CAD engineering drawings are the real headache.

Don't believe me? Look at this mechanical engineering drawing.

Article illustration

Good grief, lines everywhere.

But they cannot simply be drawn at random. Mechanical structures, geometric outlines, dimensions and section hatching... every detail matters.

To redraw it, AI must not only recognize those details but also understand their positions and structural relationships.

Let's give it directly to ERNIE Unlimited SVG.

Article illustration

I placed the result beside the original, enlarged details and examined them closely.

Honestly, the fine lines, text labels and geometric structures were reproduced very well. My eyes could not find an obvious problem for now.

But here's the question: surely AI cannot redraw something this complex by painstakingly tracing contours alone?

From the snowy landscape to a paper architecture diagram and then a dense mechanical engineering drawing, the difficulty increases considerably.

Tracing edges is not enough. AI must know what to draw first and later, and how to separate and combine shapes.

So what special “drawing lessons” has Baidu given this small model?

Teaching AI the craft of human artists

Imagine you were asked to copy an image. How would you draw it?

You would hardly start at the upper-left corner and work pixel by pixel...

You would first establish the composition and depth relationships, then lay in the background, draw the middle ground and add details.

Layer by layer.

ERNIE Unlimited SVG takes the same approach.

We use brushes; it uses code.

Let's watch the AI drawing in action.

The original is on the left, code emerges token by token on the right, and the picture in the middle gradually takes shape.

Article illustration

Note: the video has not been sped up.

Looking closely, I found another interesting detail in how it draws:

It even knows to try filling in parts hidden in the original.

A person clearly blocks part of the grassland, but move the person away and, look, a complete grassland is hiding behind them!

This suggests AI is doing more than tracing visible outlines. It understands that the grassland is occluded, so it draws it in full first and layers the person over it.

This involves what the ERNIE team calls Explicit Visual Logic.

Besides understanding which objects occlude others, AI must also learn to make choices.

When copying a portrait, for example, it cannot draw every hair and pore in code...

It must work out which features define the person's appearance, which details can be simplified and how limited strokes can preserve the original's essence.

It is a little like human artists aiming for “a likeness in spirit with simplified form”.

That is another interesting aspect of ERNIE Unlimited SVG.

Article illustration

Historically, there have been roughly two ways to convert images into vectors.

One is traditional vectorization, essentially plotting points along pixel contours and connecting them into vector paths.

It works for simple logos and icons, but in complex images, the lack of clear grouping and sensible layers leaves paths for people, text and backgrounds densely entangled.

It may look reasonable on the surface, but trying to change something in the underlying structure is extremely difficult.

The other is the diffusion-model approach, such as VectorFusion and DiffSketcher, repeatedly optimizing the output to bring it closer to the target image.

The results are good. The one unfortunate thing is—

the models are too large! All those rounds of iteration also require considerable computation...

Baidu therefore changed tack, using SVG directly as a bridge between language and vision.

On one side is structured code familiar to language models; on the other, it renders directly into images, allowing generated results to be checked and verified quickly.

Compared with repeatedly processing visual information through diffusion, this gives the model a more direct way to draw.

It also creates the possibility of completing more complex drawing tasks with fewer visual tokens.

Article illustration

△Image generated by AI

Previously, language models capable of redrawing images were models on the scale of GPT-6.2 Astra and Claude Fable 5.2.

How can that work fit into a small model with only around 0.5B active parameters?

Looking through the technical blog, I discovered a familiar name among its key technical foundations: DeepSeek-OCR.

Huh? DeepSeek again?

Following that thread back, I really did find something.

DeepSeek-OCR compresses images with DeepEncoder, then hands them to a language model for long-sequence generation. Baidu's subsequent Unlimited OCR and Unlimited OCR 2 followed that framework to pursue recognition of extremely long documents.

In ERNIE Unlimited SVG, the same technical foundation is being used to draw:

DeepEncoder still compresses the images, while the model's output expands from recognized text to SVG code often exceeding 10,000 tokens.

One technical route has made a turn from OCR into drawing.

Coincidentally, around September this year, reports also emerged in a concentrated wave about a core DeepSeek researcher moving to Baidu to lead ERNIE's multimodal work.

The technical route matches, and so does the talent-movement background.

So let us venture a bold guess:

That former DeepSeek expert may well have contributed to these generations of ERNIE's “Unlimited” projects.

(P.S. Unlimited SVG is credited to Baidu's ERNIE Multimodal Team. No specific developer list has been released, so further details have not been uncovered.)

Anyway, let's set that speculation aside and return to Unlimited SVG itself. What Baidu has really worked on is reducing the model's computational cost.

Simply put: make seeing cheaper at the input end and drawing cheaper at the decoding end.

First, viewing the image.

If you are copying an image, naturally the clearer you can see the original, the better.

But more detail means more visual tokens to process, and greater computational cost.

What can be done?

Using DeepEncoder, ERNIE Unlimited SVG compresses a high-resolution 2048 × 2048 image into just 1,024 visual tokens.

Information such as small text, fine lines and spatial coordinates is preserved as far as possible.

Article illustration

Now, drawing.

The final result may be just one picture, but the SVG code behind it can easily exceed 10,000 tokens.

If generating every token activated an enormous model, the bill for drawing one image alone could be painful.

With its mixture-of-experts (MoE) architecture, Unlimited SVG activates only about 0.5B parameters for each token generated.

Saving at both ends means, according to the developers, that Unlimited SVG can maintain real-time generation even when SVG code exceeds 10,000 tokens.

And remember: it is open source and can run locally.

If you want to convert images in batches or have internal design drawings unsuitable for cloud upload, you no longer necessarily need a frontier model's API.

At this point, many people probably thought, as I did, that Baidu had simply made a useful image-conversion tool.

But open the technical blog and—well, that is thinking too narrowly.

They are exploring a more interesting question:

If AI can redraw what it sees, could teaching it to draw help it understand the world better in return?

What ERNIE hopes to teach AI may be more than drawing

Consider a question.

How do we know AI truly understands an image?

Take a casual photo of a room and give it to a multimodal model. It will probably tell you:

There is a desk, a chair and a lamp in the room, with a window nearby.

Article illustration

△Image generated by AI

That sounds perfectly reasonable.

But what if we change the task and ask it to redraw the entire room?

The difficulty immediately rises.

How wide is the desk? Is the chair to its left or right? Where does the lamp's base sit?

Information easily glossed over in a verbal description must be answered one item at a time when drawing.

Put something in the wrong place, and we can see it immediately.

This is why Baidu's ERNIE team is so interested in SVG.

SVG offers a rather special form of visual expression:

Compared with natural language, coordinates, shapes, colors, grouping and hierarchy can represent visual information more precisely.

More importantly, the code can be rendered back into an image and compared with the original pixel by pixel.

Misplaced elements and omitted objects can be checked visually.

This provides a new idea for training multimodal models.

Previously, teaching AI to understand images mainly meant answering questions and doing reading-comprehension-style tasks.

Now another task can be added:

Redraw what it sees according to a sensible visual logic.

My guess is that the ERNIE team may next put SVG into multimodal model training to connect visual understanding and generation more closely.

Ultimately, SVG here is more than an image format.

Language models are trying to abstract the physical world they see using the code they know best.

For Chinese models, that step is particularly important.

My impression of the industry is that the gap between Chinese models and OpenAI is often more glaring in vision than in language. Language capabilities can at least be distilled, but vision is a direct contest...

After all, a deep gulf separates recognizing “what is there” from understanding objects' positions, sizes and occlusions, and the spatial structure of the entire scene.

Unlimited SVG represents a first step toward bridging that gulf.

More importantly, this exploration uses only about 0.5B active parameters each time.

The parameter count can be small while the idea is big.

Looking another step ahead, this also connects to a direction currently attracting considerable attention in AI:

Physical AI.

Its most direct application is embodied intelligence.

Think about a robot picking up a cup from a table. Recognizing the cup is nowhere near enough. It must locate the handle, assess the cup's contact with the table and plan the direction from which its arm should approach.

In the “first principles” language Musk often uses, a robot must first understand its surroundings as a computable structure before knowing how to act.

SVG's coordinates, grouping, hierarchy and occlusion relationships provide just such a starting point.

Of course, the Unlimited SVG examples currently shown mainly redraw static images as two-dimensional SVG. The SVG format itself supports animation; future exploration can also extend toward video, depth information and even three-dimensional scenes.

If these capabilities extend further, models may gain the ability to understand changing spaces and judge how their actions will affect a scene.

The boundaries among language, vision and action may then start to blur.

Understanding the world is only the first half.

Turning the world into something that can be computed over and acted upon is where Physical AI really begins.

One More Thing

Did you notice another Easter egg?

The name Baidu's ERNIE team gave this model is Unlimited SVG Works.

Fate fans' DNA just woke up!

Yes, it pays tribute to Unlimited Blade Works. Even the technical blog's subtitle hides Shirou Emiya's classic line when activating projection magic: Trace On.

In the anime, Shirou Emiya can copy weapons by understanding their construction.

Doesn't that line up with Baidu's idea for teaching AI to draw?

Only the object being copied has changed from weapons to images, and the means of casting magic has become code.

Article illustration

△Image generated by AI

And with the earlier Unlimited OCR Works series...

It is reasonable to suspect that Baidu's ERNIE team contains 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/

This article is from QbitAI, by Yi Shui.

Related topics

After reading

Join the AINRK community

Read how to join the community and connect with people working in AI.

Community information (opens in a new tab)