Abstract
Cloud2Curve is a generative framework designed to represent drawings as sequences of smooth, scalable Bézier curves rather than dense point sequences. Unlike previous models that rely on sequential pen-stroke data, Cloud2Curve can be trained on unordered point clouds or raster images. By utilizing a novel inverse graphics approach, the model achieves high-fidelity vectorization and efficient sketch generation, maintaining semantic accuracy even with simplified parametric representations.
Introduction
Traditional deep learning models for sketching, such as SketchRNN, typically represent drawings as dense sequences of short, straight-line segments. While effective for simple shapes, this approach faces three significant challenges: scalability (jaggedness at high resolutions), complexity (difficulty for RNNs to model long sequences), and data dependency (the requirement for precise temporal stroke information).
Cloud2Curve addresses these issues by treating sketches as a composition of smooth, variable-complexity strokes. This allows for true vector graphics that remain clean at any scale and enables training on the vast amount of static, raster-based sketch data available globally.
Methodology
The framework operates as an inverse graphics system, predicting mathematical curve parameters that best fit a set of input points.
Architecture and Training
The model utilizes a Variational Autoencoder (VAE) structure. A Transformer-based set encoder processes the input point cloud, extracting geometric features regardless of the order in which points were sampled. An LSTM decoder then autoregressively predicts the control points and the complexity (degree) for each stroke.
Key Innovations
- Variable-Degree Bézier Curves: To handle varying stroke complexity, the authors introduced a "Soft Binning" technique. This allows the model to dynamically select the appropriate degree for a curve—using a simple degree-1 line for straight strokes or a higher-degree curve for intricate shapes.
- Order-Invariant Loss: Because the model compares unordered point sets to generated curves, it employs the Sliced Wasserstein Distance (SWD). This optimal transport-based loss measures the distance between point distributions, allowing the model to learn geometry without needing a predefined point sequence.
Experiments and Results
The researchers evaluated Cloud2Curve on the Quick, Draw! dataset and the K-MNIST (Kuzushiji-MNIST) dataset of ancient Japanese characters. By thinning raster images into point clouds, they demonstrated that the model could successfully vectorize data where no original stroke sequence existed.
Key Findings
- Semantic Fidelity: Generated sketches achieved 80-84% recognition accuracy when tested with a pre-trained "Sketch-a-Net" classifier, proving that the parametric curves capture essential object features.
- Abstraction and Compactness: By penalizing the curve degree parameter, the model performs "sketch abstraction," simplifying complex shapes into their most essential curves. Furthermore, the resulting vector files are significantly more compact than point-based sequences.
- Long-Form Stability: Unlike RNN-based models that lose coherence over long sequences, Cloud2Curve maintains high visual quality (FID scores) as the number of strokes increases.
Conclusion and Future Work
Cloud2Curve represents a significant step toward teaching AI to understand sketches as smooth, structured geometry. While highly effective, the authors identify areas for future improvement, including simultaneous learning of stroke segmentation and curve fitting, as well as the incorporation of B-splines to better handle sharp corners and more complex multi-part strokes.
Summary updated