← Latest papers
💻 computer science

StrokePlan-RNN: Predicting Ordered Drawing Procedures from Face Line Art

This paper introduces StrokePlan-RNN, an image-conditioned autoregressive model that successfully predicts ordered stroke sequences from static face line art by training on a newly constructed dataset, achieving high geometric accuracy while highlighting the need for improved procedural evaluation metrics.

Original authors: Gameil S. H. Ali, Entesar Altaheri

Published 2026-07-28
📖 5 min read🧠 Deep dive

Original authors: Gameil S. H. Ali, Entesar Altaheri

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are looking at a finished painting. You can see the colors, the shapes, and the final masterpiece. But have you ever wondered about the invisible dance that created it? Did the artist paint the sky first, then the mountains, or did they start with the tiny details in the foreground? For computers, seeing an image is easy; understanding the story of how it was built is a much harder puzzle. This is the world of "procedural visual prediction." While modern AI is great at creating new pictures from scratch or recognizing what's in a photo, it often treats images like static grids of pixels, missing the secret recipe of the brushstrokes. Scientists are now trying to teach computers to reverse-engineer this recipe, asking not just "what does this look like?" but "how would a human actually draw this?" If we can crack this code, we could build robots that teach us to draw, or software that turns a finished sketch into a step-by-step tutorial, revealing the hidden logic behind human creativity.

Enter StrokePlan-RNN, a new computer model designed to solve this specific mystery for face drawings. Think of it as a digital detective that looks at a completed line drawing of a face and tries to guess the exact order in which a human artist would have drawn it. The researchers didn't just ask the computer to guess; they gave it a special training manual. They created a custom dataset of 640 face line art images. For every single image, they didn't just save the final picture; they recorded the artist's hand moving in real-time, capturing every single stroke in the exact order it was made. They organized these strokes into logical groups, like "face outline," "eyes," "nose," and "hair," creating a structured timeline of how a face is built from the ground up.

The model itself works like a two-part team. First, there's an "encoder" (a ResNet-18) that looks at the finished face and creates a mental map of its structure. Then, there's a "decoder" (a two-layer LSTM) that acts like a virtual artist. This decoder starts drawing, one stroke at a time. It looks at the mental map and the stroke it just drew, then predicts the very next stroke it should make. It keeps doing this, stroke by stroke, until it decides the drawing is finished. The goal is for the computer to replay the drawing in a way that looks like a natural, step-by-step construction, starting with big shapes and filling in the details later.

The results suggest that the model is getting the hang of this. On a test set of images it had never seen before, StrokePlan-RNN managed to predict stroke paths that were off by an average of only 3.95 pixels (on a 512 × 512 pixel image). That's a very small error, meaning the lines land almost exactly where they should. The model also guessed the total number of strokes needed with an error of just 3.1 strokes on average. When the researchers compared this to a "random order" baseline (where strokes were shuffled randomly) or a version of the model that couldn't see the image at all, StrokePlan-RNN was far superior. The random baseline had a much larger error of 11.42 pixels, suggesting that knowing the correct order really does help the computer draw better.

However, the authors are careful not to claim they have solved the problem completely. While the model is excellent at drawing the lines in the right place, it is still a bit fuzzy on whether it truly understands the story of the order. The current tests measure how close the lines are to the original, but they don't directly measure if the computer drew the eyes before the nose, or the hair last, in the exact way a human teacher would. The researchers found that the model sometimes makes "local ordering errors," like drawing an eyebrow in the middle of two eye strokes when it should have waited. They also noticed it sometimes stops too early or draws too many extra lines.

The paper suggests that while the model has learned a "coarse" strategy—starting with the big outline and moving to details—it hasn't fully mastered the fine-grained, instructional logic of a human artist yet. The researchers admit that their dataset is relatively small and that the model was trained on just one specific way of drawing faces, so it might not know all the different ways humans actually draw. They propose that future work needs to focus on new ways to measure "order" specifically, rather than just how accurate the lines are. In short, StrokePlan-RNN is a promising first step that shows computers can start to see the process behind a picture, but there is still a long way to go before it can truly teach us how to draw like a human.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →