Spline-FRIDA: Towards Diverse, Humanlike Robot Painting Styles with a Sample-Efficient, Differentiable Brush Stroke Model

Lawrence Chen, Peter Schaldenbrand, Tanmay Shankar, Lia Coleman, Jean Oh

TL;DR

Spline-FRIDA is a robotic painting framework that moves beyond simple geometric curves to capture the nuance and diversity of human brushstrokes. By combining motion-captured artist data with a novel, differentiable "white-box" renderer, the system enables robots to produce artwork that humans find significantly more artistic, expressive, and "human-like" than previous methods.

What Problem Does This Paper Address?

Most robotic painting systems rely on highly simplified stroke primitives, such as quadratic Bézier curves. While mathematically convenient, these curves are too restrictive to capture the complex, intentional trajectories—like zig-zags, loops, or varying pressure—that define a human artist's unique style.

Furthermore, existing systems often suffer from a significant Sim2Real gap. When a robot plans a painting in simulation using a standard Convolutional Neural Network (CNN) to predict stroke appearance, the results often don't match reality. As seen in the figure below, CNN-based renderers struggle with thin, long strokes (like those from a Sharpie), producing "blotchy" predictions that lead to poor planning and execution.

Weaknesses in previous stroke models showing blotchy predictions and the resulting Sim2Real gap.

Methods

The authors introduce two core components to solve these issues:

  1. TrajVAE (Trajectory Variational Autoencoder): To model human style, the team recorded artists using a motion capture system (OptiTrack) to track pen trajectories in 3D space $(x, y, h)$. They trained a VAE to compress these complex trajectories into a latent space. Crucially, the model is pre-trained on large datasets and can be fine-tuned on as few as 20 strokes from a specific artist to adopt their personal "hand."
  2. Traj2Stroke: This is a novel differentiable renderer. Unlike black-box CNNs, Traj2Stroke uses a rule-based approach. It takes a trajectory and calculates a Distance Map (how far each pixel is from the stroke path) and a Height Map (interpolated brush elevation). It then uses learnable parameters to convert these into a grayscale "darkness" value for each pixel. Because the entire process is differentiable, the system can use gradient descent to optimize stroke parameters (latent code, position, and color) to match a target image.
The Traj2Stroke pipeline, converting latent vectors into rendered grayscale strokes via distance and height maps.

Datasets

  • Human Demonstration Data: Collected via motion capture, consisting of 20–200 trajectories per drawing session across various artists.
  • Dataset A & B: Used to evaluate the renderer's generalization. Dataset A contains "generic" trajectories for training, while Dataset B contains highly specialized, out-of-distribution styles (e.g., stars or complex loops) to test how well the renderer handles unseen stroke types.

Key Insights and Ideas

  • Sample Efficiency: You don't need thousands of examples to teach a robot a style. By pre-training the TrajVAE and fine-tuning on specific sessions, the robot adopts a new style in less than a minute of training.
  • The Power of "White-Box" Differentiability: The rule-based Traj2Stroke renderer outperformed pure CNN architectures, especially for thin lines. By explicitly modeling the geometry (distance maps), the system avoids the "blotchy" artifacts that plague standard neural renderers.
  • Latent Space Clustering: Visualizing the TrajVAE latent space via t-SNE showed that the model naturally clusters similar human trajectories together. This structured organization is what makes optimization-based planning effective.

Key Results

The researchers conducted a survey with 100 participants to compare Spline-FRIDA against the original Bézier-based FRIDA system. The results were overwhelmingly in favor of the new approach:

  • Human-likeness: 73% of participants felt Spline-FRIDA looked more like it was drawn by a human (vs. 27% for the original).
  • Artistic Quality: 82% rated Spline-FRIDA as more artistic.
  • Sim2Real Accuracy: Traj2Stroke achieved an L1 loss of 0.00055 for Sharpie strokes, nearly half the error of the baseline CNN (.00107).

As shown in the figure below, the system can successfully replicate distinct styles—from long, flowing lines to pointillist-style dots—across various subjects.

Example drawings where different human styles (top row) are applied to various objectives (left column).

Limitations and Future Work

Despite the improvements, the system is computationally expensive; planning a 400-stroke painting takes about an hour on an NVIDIA RTX 4090. Memory constraints also limit the robot to optimizing only a subset of strokes (about 80) at a time, which can lead to local minima in the optimization process.

The authors also note that they currently only focus on intra-stroke style (the shape of individual lines). Future work will look at inter-stroke style—how different strokes relate to one another spatially and temporally—and explore Reinforcement Learning to speed up the stroke prediction process.

Summary updated

BibTeX
@article{chen2025spline,
  author = {Lawrence Chen and Peter Schaldenbrand and Tanmay Shankar and Lia Coleman and Jean Oh},
  title = {{Spline-FRIDA: Towards Diverse, Humanlike Robot Painting Styles with a Sample-Efficient, Differentiable Brush Stroke Model}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2025},
  doi = {10.1109/lra.2025.3563131},
}
Figure