Introduction
Generating high-quality vector graphics from text descriptions remains a significant challenge in computer vision. While raster image generation has seen explosive growth, vector graphics—composed of mathematical primitives like Bézier curves—require a different approach due to their discrete and non-smooth nature. NIVeL (Neural Implicit Vector Layers) introduces a novel framework that uses an intermediate neural implicit representation to bridge the gap between text prompts and clean, editable vector art. By optimizing a multi-layer perceptron (MLP) instead of raw geometric primitives, NIVeL produces results that far surpass previous state-of-the-art techniques in both visual quality and semantic structure.
The Challenge of Text-to-Vector Generation
Most current methods for text-to-vector generation rely on Score Distillation Sampling (SDS). In this setup, a pre-trained raster diffusion model acts as a teacher, providing gradients to "guide" the optimization of vector paths. However, optimizing Bézier curves directly is notoriously difficult. Because the representation is discrete, optimization often results in "spaghetti geometry"—a mess of redundant, self-intersecting paths and degenerate shapes that are nearly impossible for human designers to edit.
Furthermore, standard vector primitives struggle with topological changes. For example, adding a hole to a shape (changing its "genus") during optimization is a discrete jump that standard gradient descent cannot easily navigate without manual intervention or complex heuristics.
The NIVeL Methodology
NIVeL bypasses the limitations of direct curve optimization by introducing Neural Implicit Vector Layers. Instead of moving control points on a curve, the system optimizes the weights of an MLP to define the geometry.
1. Layered Implicit Representation
The core of NIVeL is an MLP that takes a 2D coordinate as input and outputs occupancy probabilities for $L$ separate layers. This implicit field allows the model to represent complex topologies naturally; shapes can "tear" or "merge" smoothly during optimization because they are defined by a continuous field rather than a fixed list of points.
2. Differentiable Composition and Optimization
Each layer is assigned a learnable color and stacked using a differentiable compositing function (similar to alpha blending). This creates a raster image that can be processed by the DeepFloyd IF diffusion model. Unlike latent-based models like Stable Diffusion, DeepFloyd operates in pixel space, providing cleaner, more direct geometric signals for optimization. To ensure the final output has the sharp edges characteristic of vector art, an entropy regularization loss ($L_{entr}$) is applied to force the MLP's occupancy outputs toward binary values (0 or 1).
3. Two-Stage Initialization
To avoid poor local minima, NIVeL employs a two-stage process. First, it trains a simple implicit RGB generator to capture the general layout and color scheme of the prompt. This "low-frequency" initialization provides a stable starting point for the subsequent layered vector optimization, preventing the model from getting stuck in the noise of early-stage diffusion gradients.
Key Technical Insights
- Topology is Free: Because the representation is implicit, the model can change the number of holes or disconnected components in a shape without discrete jumps in the optimization process. This allows for the generation of complex wireframes and intricate shapes that previous methods could not handle.
- Implicit-to-Vector Conversion: Once optimized, the MLP's output can be converted into standard Bézier curves using algorithms like Marching Squares. This ensures the AI's output is immediately compatible with professional design tools like Adobe Illustrator.
Results and Evaluation
NIVeL demonstrates a significant leap over the previous baseline, VectorFusion, in both quantitative and qualitative metrics.
Quantitative Performance
In a benchmark using the VectorFusion prompt dataset, NIVeL achieved a CLIP R-Precision of 78.5%, significantly higher than VectorFusion’s 71.3%. This indicates that NIVeL’s outputs are much more semantically aligned with the user's prompt. Furthermore, in a crowdsourced user study, participants preferred NIVeL’s results over the baseline by a margin of approximately 3 to 1.
Qualitative Superiority
As seen in the comparison above, NIVeL generates clean, distinct layers. For a prompt like "a horse eating a hotdog," NIVeL correctly separates the horse, the bun, and the mustard into logical, editable layers. In contrast, previous methods produce overlapping, degenerate curves that lack semantic structure. The ability to capture arbitrary topology is also evident in complex line drawings, where NIVeL maintains structural integrity that VectorFusion cannot match.
Limitations and Future Work
While NIVeL represents a major step forward, some limitations remain. The model currently uses a fixed upper bound for the number of layers (typically $L=5$). While it can leave layers empty, it cannot dynamically generate new layers for extremely complex scenes. Additionally, the final conversion to Bézier curves is a post-processing step; the authors suggest that a fully differentiable implicit-to-vector module could make the entire pipeline end-to-end in the future. Finally, the researchers see potential in extending this layered implicit approach to 3D modeling for generating structured, CAD-like primitives from text.
Summary updated