TL;DR
This paper introduces I-Paint, the first framework for Interactive Neural Painting (INP). Unlike previous models that simply reconstruct an image from scratch, I-Paint works in a loop with a human user, suggesting the next set of brushstrokes to help complete an artwork while allowing the artist to maintain creative control.
What Problem Does This Paper Address?
Neural Painting (NP) has made massive strides in recent years, with models capable of decomposing a photograph into a sequence of brushstrokes that look remarkably like a real painting. However, these models have largely been "black boxes"—you give them a target image, and they output a finished sequence. There is no room for a human to step in, change the order of operations, or steer the artistic direction.
The authors identify a major gap: existing NP methods aren't designed for interaction. They often process images in a rigid, hierarchical grid that doesn't match how humans actually paint (e.g., finishing one object before moving to the next). To bridge this, the researchers propose a system that acts more like a collaborative partner, offering multiple plausible "continuations" of a painting based on the current state of the canvas.
Methods
The core of the system is I-Paint, a conditional transformer-based Variational AutoEncoder (VAE).
- The Context Encoder: To make a suggestion, the model needs to know three things: the reference image the user is trying to paint, the current state of the canvas, and the last few strokes the user made. It uses a Transformer to fuse these inputs into a "context vector."
- The Two-Stage Decoder: This is a key architectural innovation. Instead of trying to predict all stroke parameters (color, size, position, etc.) at once, I-Paint breaks it down:
- Stage 1: Predicts the positions of the next strokes.
- Stage 2: "Looks" at the reference image at those specific positions using bilinear sampling to extract local features. It then uses these features to predict the remaining parameters like color, orientation, and brush size.
- Probabilistic Suggestions: Because it is a VAE, the model can sample different points in its latent space to generate a variety of suggestions for the same context, giving the user options to choose from.
- Regularization Losses: The authors introduced a "distribution matching loss" to ensure the suggested strokes feel "human-like" (e.g., maintaining color consistency and local proximity) rather than appearing as a scattered, random mess.
Datasets
Since no large-scale datasets of humans painting in this specific interactive format exist, the authors created two new benchmarks:
- ADE 20K Outdoor INP: Based on 5,000 outdoor scene images.
- Oxford-IIIT Pet INP: Based on ~7,300 images of cats and dogs.
To make these datasets useful for interactive training, they didn't just use raw stroke sequences. They applied a "reordering" algorithm to synthetic stroke data to mimic human behavior—grouping strokes by object, color, and spatial proximity.
Key Insights and Ideas
- Interactivity requires Multimodality: In a creative process, there isn't just one "correct" next step. By using a VAE, the authors acknowledge that the model should provide a distribution of possibilities, not a single deterministic answer.
- Position-First Decoding: One of the "aha moments" in the architecture is that a model paints better if it decides where to paint before it decides what color or size the brush should be. This mimics an artist's eye-to-hand coordination.
- Bridging the "Human-AI" Gap with Reordering: Standard neural painting algorithms often produce strokes in a mathematically efficient but visually chaotic order. By re-sorting these strokes into "object-aware" sequences for training, the model learns to suggest strokes that feel intuitive to a human painter.
Key Results
The researchers compared I-Paint against state-of-the-art non-interactive models like Paint Transformer (PT) and Stylized Neural Painting (SNP).
- Quantitative: I-Paint significantly outperformed baselines on the Frechet Stroke Distance (FSD) and Dynamic Time Warping (DTW), metrics that measure how well the stroke characteristics and sequences match the "human-like" training data.
- Diversity: Using the LPIPS metric, they proved that I-Paint generates a much wider variety of plausible suggestions than its competitors.
- User Study: In a blind test, humans preferred I-Paint’s stroke suggestions over the baselines 95% to 97% of the time, citing better positioning, color accuracy, and subject consistency.
Limitations and Future Work
While I-Paint is a major step forward, the authors note a few areas for growth:
- Synthetic Data Reliance: The model is still trained on "reordered" synthetic strokes. Training on actual logs of human digital painting sessions could yield even more natural results.
- Stroke Complexity: The current model uses a relatively simple parameterized brushstroke. Future versions could incorporate more complex textures or different media (like watercolor vs. oil).
- Integration: While the paper demonstrates a working demo, the ultimate goal is seamless integration into professional tools like Adobe Photoshop or Krita to see how professional artists utilize these suggestions in a real-world workflow.
Summary updated