VLM for Continuous Line Art
There is a certain humanity that Claude art on Twitter misses. I’d describe it as “placed” rather than drawn.
When you draw by hand, the constraints of what you can do shape the choices you make. I think that’s part of what makes a drawing feel human. So I was curious if imposing new constraints could make an LLM's art feel more human.
Continuous line art is drawn in one unbroken pen stroke, which adds two constraints:
- You can’t draw every detail. The point is to choose the few features that capture the subject.
- You need a plan. Or at least an intuition for where the stroke should start and end, such that you can pass through every feature you want along the way.
The setup
I trained Inkling 2 Small on Trajectory. I gave it a 512×512 canvas and a pen library with drawing commands (imposing the continuous single stroke constraint). The model then gets two turns, one where it outputs the code in the library syntax, then another where it can look over the outputted image and refine it.
I used GPT 6.1 Terra as a judge. Here’s how I split up the reward.
- 45% for head-to-head comparisons. I had a pool of 17 reference penguins. I showed the judge the model’s drawing and a reference, then swapped the order and asked again.
- 40% for the drawing itself. Can you tell what it is? Is the line work good?
- 15% for basic checks. Does the code run? Is the drawing centered?
The judge answers with one token. For an “A or B” question, I additionally read the probabilities for its answers (to differentiate between a close call and an obvious win).
Starting with penguins
Before generalizing, I wanted to see if I could get the model to draw one thing in this style well...so I started with penguins.
The run was relatively successful. Step 40 reached a held-out score of 0.68 during training and beat the base model on 9 of the 12 prompts head to head. Reward flattened out after step 40, but I noticed an increase in quality all the way up to step 59.
As you can see above, the model wasn't planning very well in the early steps, resulting in penguins with malformed heads. As it continued to learn the medium, it made better decisions with where it started and ended such that the penguins had complete features.
Going general
Once the penguins worked, I wanted to see if it could generalize the style in two more runs (keeping harness and base model constant):
- General prompt. I gave it 140 different subjects to draw from an input prompt. Held-out reward went up 26% and peaked at 0.62. The main thing it seemed to learn in the run was adding detail.
- Reference photo. I used 320 photos across five categories, including portraits, pets, scenes and illustrations. The model's goal was to trace over the most salient features in the image. Initially the model had too many overlapping strokes resulting in messy looking drawings, but over time it learned to make its strokes more intentional.
Final Results
-
“Reference photo: wine bottle beside filled wineglass”
-
“A sunflower on a tall stem”
-
“A rockhopper penguin with spiky eyebrow crest feathers standing alert”
-
“A hovering hummingbird”
-
“Reference photo: flared fluted glass celery vase”
-
“Reference photo: white porcelain covered vase with eagle”
-
“A snail with a spiral shell”
-
“A butterfly with detailed wings”
-
“A tulip flower with curved leaves”
-
“A wild mushroom with curved cap”
-
“A hot air balloon floating”
-
“A blooming rose with stem and two leaves”
-
“Reference photo: young man with spiky dark hair”
-
“A burning candle in a holder”
Some of the rigid lines still make it feel less human, and real continuous line art tends to have more detail. But a few of the outputs (like the wineglass) have a unique quality to them that feels drawn, and training definitely helped the model get there.
Also worth noting that reward hadn't reached a plateau by the time I stopped the experiment, so scaling up could've resulted in a better model.