LottieGPT: Tokenizing Vector Animation for Autoregressive Generation

Junhao Chen, Kejun Gao, Yuehan Cui, Mingze Sun, Mingjin Chen, Shaohui Wang, Xiaoxiao Long, Fei Ma, Qi Tian, Hao Zhao, Ruqi Huang

TL;DR

LottieGPT is the first framework capable of natively generating resolution-independent, fully editable vector animations from text or image prompts. By introducing a specialized tokenizer for the industry-standard Lottie format and a massive new dataset, it shifts visual AI generation from rigid pixel grids to structured, keyframe-driven parametric code.

LottieGPT generates editable vector animations from text, image, or keyframes.

What Problem Does This Paper Address?

While modern generative video models like Sora or Kling produce photorealistic results, they operate entirely in raster (pixel) space. This means their outputs are fixed-resolution, consume massive storage, and are incredibly difficult for professional designers to edit or tweak.

Vector animations (like those used in UI/UX design, mobile apps, and web graphics) solve these issues by using mathematical descriptions of shapes and motions. However, generating vector animations autoregressively is a massive challenge. Current models struggle to handle the dual complexity of hierarchical spatial geometry (layers, paths, fills) and temporal dynamics (how those shapes change over time via keyframes and easing curves).

Methods

The authors present LottieGPT, which adapts a large multimodal model (Qwen2.5-VL) to autoregressively synthesize vector animations using the popular JSON-based Lottie format. The core technical innovations include:

  • The Lottie Tokenizer: Instead of tokenizing animations frame-by-frame (which causes sequence lengths to explode), the authors designed a tokenizer that mirrors the hierarchical structure of Lottie files. It encodes global metadata, layers, and geometric primitives directly.
  • Keyframe-Based Motion Compression: For motion, the tokenizer stores only explicit keyframes and their corresponding Cubic Bezier easing parameters. This allows the model to capture complex, smooth motions with a fraction of the token budget.
  • Static-to-Dynamic Training: Jointly learning shapes and motion from scratch causes unstable convergence. The authors utilize a two-stage curriculum: Stage 1 focuses on static vector graphics to master spatial composition, while Stage 2 introduces temporal dynamics for animation.
Overview of the LottieGPT framework and its two-stage training pipeline.
The Lottie Tokenizer compresses animations by storing sparse keyframes and interpolation functions rather than dense per-frame data.

Datasets

Because no large-scale vector animation dataset existed, the authors curated their own pipeline to build:

  • LottieAnimation-660K: The largest dataset of its kind, containing 660,000 real-world Lottie animations exported from Adobe After Effects, cleaned and simplified to reduce file sizes by 34% without losing rendering fidelity.
  • LottieImage-15M: A dataset of 15 million static vector graphics converted into the Lottie format to support the first stage of training.
  • LottieBench: A new benchmark evaluating generated animations across five dimensions: visual quality, structured data consistency, semantic alignment, and rendering success rate.

Key Insights and Ideas

  • Temporal Modeling Aids Static Understanding: Surprisingly, training the model on animations actually improved its performance on static vector graphics generation, achieving a new state-of-the-art on standard SVG benchmarks.
  • Dramatic Compression via Easing Curves: Storing parametric easing curves as first-class primitives achieved up to 98% compression for long animations compared to frame-by-frame approaches, while preserving professional-grade motion quality.
  • Curriculum Learning is Essential: The authors noted that trying to train the model on static and dynamic data simultaneously failed because animation sequences contain significantly more tokens, overwhelming the spatial learning process.

Key Results

LottieGPT significantly outperforms existing LLMs and commercial models in generating valid, high-quality vector graphics:

  • High Rendering Validity: LottieGPT achieved a 96.96% valid rendering rate for text-to-animation and 97.83% for text+image-to-animation, vastly outperforming frontier models like Claude 4.5 and GPT-5 in few-shot generation (which hovered between 10% and 51%).
  • SOTA Static Generation: On text-to-SVG tasks, LottieGPT outperformed the previous state-of-the-art model (OmniSVG) across all visual and semantic metrics.
Examples of diverse vector animations generated by LottieGPT.

Limitations and Future Work

Despite its strong performance, LottieGPT faces a few constraints:

  • Sequence Length Limits: The model is bound by a maximum sequence length of 40K tokens, meaning highly intricate, long-form animations with hundreds of layers might still exceed the token budget.
  • Academic Compute Constraints: Due to GPU limitations during development, the authors could only train on a subset of their full dataset (750K static images and 60K animations). Scaling up to the full 15M/660K corpus remains future work.

Summary updated

BibTeX
@inproceedings{chen2026lottiegpt,
  author = {Junhao Chen and Kejun Gao and Yuehan Cui and Mingze Sun and Mingjin Chen and Shaohui Wang and Xiaoxiao Long and Fei Ma and Qi Tian and Hao Zhao and Ruqi Huang},
  title = {{LottieGPT: Tokenizing Vector Animation for Autoregressive Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=POy4X7X2Hr},
}
Figure