[Paper Review] BézierSketch: A generative model for scalable vector sketches
BézierSketch proposes a novel generative model for scalable, high-resolution vector sketches by representing strokes as parameterized Bézier curves instead of dense waypoints. It introduces a differentiable inverse-graphics BézierEncoder to embed real sketches into smooth curves, enabling a recurrent VAE-based generator (BézierSketch) that produces longer, scalable, and higher-quality sketches than SketchRNN, with quantitative improvements on the Quick, Draw! benchmark.
The study of neural generative models of human sketches is a fascinating contemporary modeling problem due to the links between sketch image generation and the human drawing process. The landmark SketchRNN provided breakthrough by sequentially generating sketches as a sequence of waypoints. However this leads to low-resolution image generation, and failure to model long sketches. In this paper we present BézierSketch, a novel generative model for fully vector sketches that are automatically scalable and high-resolution. To this end, we first introduce a novel inverse graphics approach to stroke embedding that trains an encoder to embed each stroke to its best fit Bézier curve. This enables us to treat sketches as short sequences of paramaterized strokes and thus train a recurrent sketch generator with greater capacity for longer sketches, while producing scalable high-resolution results. We report qualitative and quantitative results on the Quick, Draw! benchmark.
Motivation & Objective
- Address the limitations of SketchRNN in generating low-resolution, non-scalable sketches due to dense waypoint representation.
- Enable high-resolution, fully scalable vector graphics generation by modeling sketches as parametric Bézier curves instead of pixel-aligned waypoints.
- Overcome the capacity limitations of sequential models by reducing sequence length through stroke-level representation using Bézier curve parameters.
- Develop a differentiable, invertible encoding method to map real human sketches into interpretable Bézier curve control points for end-to-end training.
- Improve generation quality and scalability for long sketches by leveraging the geometric compactness and smoothness of Bézier curves.
Proposed method
- Introduce BézierEncoder, a neural network trained in an inverse-graphics manner to map raw sketch strokes to their best-fitting Bézier curve control points.
- Use a white-box Bézier decoder to reconstruct strokes from control points, enabling differentiable supervision for end-to-end training of the encoder.
- Represent each sketch as a sequence of Bézier curve control points (instead of waypoints), reducing sequence length and enabling longer sketch modeling.
- Train BézierSketch as a sequence-to-sequence VAE with a bidirectional LSTM encoder and autoregressive LSTM decoder, using control point differences and pen state flags as input tokens.
- Model uncertainty in control points via a Gaussian distribution over control point parameters, enabling stochastic generation and improved diversity.
- Apply reparameterization and variational inference to optimize the VAE objective, combining reconstruction loss, flag bit cross-entropy, and KL divergence.
Experimental results
Research questions
- RQ1Can a differentiable inverse-graphics approach effectively embed real human sketch strokes into interpretable Bézier curve parameters?
- RQ2Does modeling sketches at the stroke level using Bézier curves enable higher-resolution and fully scalable vector output compared to waypoint-based models?
- RQ3Can a sequence-to-sequence VAE trained on Bézier control points generate longer, more diverse, and higher-quality sketches than SketchRNN?
- RQ4How does the use of Bézier curves improve the scalability and visual fidelity of generated sketches when zoomed?
- RQ5To what extent does the proposed method outperform existing models in terms of FID, Fréchet Sketch Distance, and qualitative generation quality on benchmark datasets?
Key findings
- BézierSketch achieves significantly better visual quality and scalability compared to SketchRNN, with generated sketches remaining smooth and sharp even at high zoom levels.
- The model produces high-resolution vector graphics by generating smooth Bézier curves instead of pixelated line segments, enabling lossless scaling.
- The use of Bézier curve representation reduces sequence length by orders of magnitude compared to waypoint sequences, allowing the model to generate longer sketches with higher capacity.
- Quantitative evaluation on the Quick, Draw! benchmark shows improved Fréchet Sketch Distance (FSD) and FID scores, indicating better distributional alignment with real sketches.
- The BézierEncoder successfully learns to embed real sketch strokes into accurate Bézier curve approximations, with visualizations showing convergence to optimal fits during training.
- Stochastic generation via Gaussian-distributed control points produces diverse yet coherent sketches, demonstrating the model’s ability to capture sketching variability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.