[Paper Review] Sketch-pix2seq: a Model to Generate Sketches of Multiple Categories
This paper proposes Sketch-pix2seq, a VAE-based model that improves multi-category sketch generation by replacing the RNN encoder in sketch-rnn with a CNN and removing the KL-divergence penalty. The resulting model generates higher-quality, more category-accurate sketches and enables creative interpolation between diverse categories, outperforming prior methods in both human-likeness and structural consistency across multiple categories.
Sketch is an important media for human to communicate ideas, which reflects the superiority of human intelligence. Studies on sketch can be roughly summarized into recognition and generation. Existing models on image recognition failed to obtain satisfying performance on sketch classification. But for sketch generation, a recent study proposed a sequence-to-sequence variational-auto-encoder (VAE) model called sketch-rnn which was able to generate sketches based on human inputs. The model achieved amazing results when asked to learn one category of object, such as an animal or a vehicle. However, the performance dropped when multiple categories were fed into the model. Here, we proposed a model called sketch-pix2seq which could learn and draw multiple categories of sketches. Two modifications were made to improve the sketch-rnn model: one is to replace the bidirectional recurrent neural network (BRNN) encoder with a convolutional neural network(CNN); the other is to remove the Kullback-Leibler divergence from the objective function of VAE. Experimental results showed that models with CNN encoders outperformed those with RNN encoders in generating human-style sketches. Visualization of the latent space illustrated that the removal of KL-divergence made the encoder learn a posterior of latent space that reflected the features of different categories. Moreover, the combination of CNN encoder and removal of KL-divergence, i.e., the sketch-pix2seq model, had better performance in learning and generating sketches of multiple categories and showed promising results in creativity tasks.
Motivation & Objective
- To address the decline in sketch generation quality when multiple categories are learned simultaneously, as seen in the sketch-rnn model.
- To improve sketch generation by replacing the RNN encoder with a CNN encoder to better capture structural features.
- To investigate whether removing the KL-divergence penalty in the VAE objective enhances disentanglement and category-specific representation in the latent space.
- To evaluate the model's capability in generating creative sketches through latent space interpolation across different categories.
- To test generalization by generating sketches from cartoon-style inputs that differ in style but share semantic features.
Proposed method
- Replaced the bidirectional RNN encoder in sketch-rnn with a convolutional neural network (CNN) to better capture local structural features of sketches.
- Removed the Kullback-Leibler (KL) divergence term from the VAE objective function to avoid forcing the latent space into a shared Gaussian prior.
- Trained the model under the variational autoencoder (VAE) framework using sequential pen stroke data from the QuickDraw dataset.
- Utilized latent space interpolation to generate novel sketches by linearly combining latent codes from different categories.
- Evaluated model performance via human Turing tests and qualitative analysis of generated sketches.
- Tested generalization by feeding cartoon sketches as input and assessing style and semantic consistency in outputs.
Experimental results
Research questions
- RQ1Does replacing the RNN encoder with a CNN improve the quality and category accuracy of generated sketches in multi-category settings?
- RQ2Does removing the KL-divergence penalty from the VAE objective lead to better disentanglement of category-specific features in the latent space?
- RQ3Can the model generate plausible and creative sketches through latent space interpolation between different categories?
- RQ4Does the model generalize well to inputs that are not real sketches, such as cartoon figures, by preserving stylistic and semantic features?
- RQ5How does the latent space structure of models with and without KL-divergence differ in terms of clustering and category separation?
Key findings
- Models using CNN encoders outperformed RNN-based models in generating human-style sketches, with higher quality and better category accuracy in Turing tests.
- Removing the KL-divergence term led to a more structured and category-clustered latent space, reducing the generation of incorrect or mixed-category sketches.
- Latent space interpolation in models without KL-divergence produced consistent and interpretable results, such as a truck with cat-like features or a rabbit with a bus-like body.
- The CNN-KL model successfully generated novel sketches not present in training data, such as a cat with wheels on its face or a vehicle with a rabbit head, demonstrating strong creative potential.
- The model generalized well to cartoon inputs, generating sketches that preserved key stylistic elements like ear shape and facial expressions, even when inputs were stylized and non-photographic.
- Visualization showed that models with KL-divergence produced a scattered, mixed latent space, while models without it formed clear, category-separated clusters, explaining the improved performance.
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.