TL;DR
LiveSVG introduces a zero-shot framework for animating static Scalable Vector Graphics (SVGs) by decoupling motion generation from vector optimization. By first generating a concrete, previewable target video using an image-to-video diffusion model and then fitting the original SVG geometry to it via differentiable rendering, LiveSVG achieves highly articulated, non-rigid animations without requiring category-specific skeletons or expensive training data.
What Problem Does This Paper Address?
Creating high-quality vector animations is notoriously difficult due to a severe shortage of paired datasets showing static SVGs alongside their animated counterparts. To bypass this, existing zero-shot methods typically follow one of two flawed paradigms:
- LLM-based code generation: Models generate CSS or SMIL code directly. While clean, this approach is limited to simple, rigid transformations (like rotations or translations) because describing complex, fluid Bézier curve deformations at the coordinate level quickly exhausts context windows.
- Video Score Distillation Sampling (SDS): These methods use video diffusion models to provide stochastic gradients directly to the vector shapes. However, SDS optimization is computationally expensive, suffers from noisy gradients, and often requires restrictive, category-specific scaffolds like human or animal skeletons.
LiveSVG addresses these limitations by treating animation as a well-defined reconstruction problem against an explicitly generated reference video, allowing for unconstrained, skeleton-free, and highly detailed non-rigid deformations.
Methods
The LiveSVG pipeline operates in two distinct stages: preprocessing/video generation and target fitting optimization.
1. Preprocessing & Video Generation
- Semantic Grouping: An LLM automatically groups related SVG paths (e.g., a character's head, hair, and facial features) into flat
<g>tags so they can initially move coherently. - Sphere-Packing Recolorization: To prevent the optimizer from confusing different vector paths that share similar colors, LiveSVG temporarily assigns each path a unique color. These colors are chosen using a mathematical sphere-packing-in-a-cube algorithm to maximize their distance in RGB space, ensuring clean gradient flow.
- Video Generation & Filtering: The recolored SVG is fed into an image-to-video model (such as Veo, WAN, or LTX) with a prompt tailored for flat 2D vector motion. The system generates 10–20 candidates, and an LLM filters out failures (like unintended 3D rotations or hallucinated elements) to select the best target video.
2. Differentiable SVG Fitting
Using the differentiable renderer DiffVG, LiveSVG optimizes the vector parameters frame-by-frame against the target video using a dual-level motion representation:
- Coarse Global Motion: A learnable 8-DOF homography matrix per semantic group handles large-scale translations, rotations, and scaling.
- Fine Local Deformation: Keyframe-dependent Bézier control-point offsets capture non-rigid, organic movements like bending or stretching.
To ensure stability, the authors employ progressive frame optimization (activating and initializing subsequent frames based on previous ones) and tracking-based keyframe initialization using TAPNext to handle large motion jumps.
Datasets
The authors evaluate their method on two benchmarks:
- AniClipart: A standard 43-example benchmark containing human actions, animals, and object-centric motions.
- ChallengeSVG: A new, highly demanding benchmark introduced in this paper. It consists of 35 complex, multi-object, and background-rich SVGs curated from the SVGX-Core-250k dataset to stress-test open-domain vector animation.
Key Insights and Ideas
- The Power of Decoupling: Moving the video diffusion model out of the optimization loop (unlike SDS) makes the process deterministic, faster, and significantly less memory-intensive. It also gives users a "preview" step to accept or reject the motion before wasting compute on fitting.
- Color as an Identity Anchor: In pixel-space mean squared error (MSE) fitting, color similarity causes severe correspondence ambiguities (e.g., an arm crossing a torso of the same color). Temporary sphere-packing recolorization acts as a temporary semantic ID map that guides the geometry accurately before the original colors are restored.
- Skeletons are Optional: By combining group-level homographies with path-level Bézier offsets, the model achieves natural articulation organically without needing predefined structural templates or rigging.
Key Results
LiveSVG achieves state-of-the-art performance across both quantitative metrics and human preference studies:
- Human Preference: On the AniClipart benchmark, LiveSVG won 86.7% of user preferences across five baselines. On the more complex ChallengeSVG dataset, it achieved an 84.8% overall win rate.
- Efficiency: LiveSVG drastically reduces computational overhead. It requires an average of 9.0 minutes and just 7.1 GB of VRAM per SVG, making it the lightest and fastest optimization-based baseline compared to SDS methods like FlexiClip (57.4 mins, 28.1 GB) or LiveSketch (35.9 mins, 35.1 GB).
Limitations and Future Work
Because LiveSVG relies entirely on the explicitly generated reference video, it is inherently bound by the performance of the underlying image-to-video model. If the video generator introduces severe color drift, hallucinates new parts, or creates massive occlusions, the downstream vector fitting stage can introduce visual artifacts.
The authors note that future work could leverage video-editing tools directly on the intermediate target video, allowing designers to tweak the raster motion before transferring it cleanly back into the editable vector domain.
Summary updated