Stroke Modeling Enables Vectorized Character Generation with Large Vectorized Glyph Model
This work addresses the need for scalable and flexible vectorized glyph generation in design and typography, representing an incremental advancement by applying LLM token prediction to stroke sequences.
The paper tackles the problem of generating vectorized Chinese glyphs by modeling them as sequences of strokes, proposing a Large Vectorized Glyph Model (LVGM) that fine-tunes DeepSeek LLM to predict next strokes, enabling generation of complete characters, words, and verses with a new dataset of 907,267 samples.
Vectorized glyphs are widely used in poster design, network animation, art display, and various other fields due to their scalability and flexibility. In typography, they are often seen as special sequences composed of ordered strokes. This concept extends to the token sequence prediction abilities of large language models (LLMs), enabling vectorized character generation through stroke modeling. In this paper, we propose a novel Large Vectorized Glyph Model (LVGM) designed to generate vectorized Chinese glyphs by predicting the next stroke. Initially, we encode strokes into discrete latent variables called stroke embeddings. Subsequently, we train our LVGM via fine-tuning DeepSeek LLM by predicting the next stroke embedding. With limited strokes given, it can generate complete characters, semantically elegant words, and even unseen verses in vectorized form. Moreover, we release a new large-scale Chinese SVG dataset containing 907,267 samples based on strokes for dynamically vectorized glyph generation. Experimental results show that our model has scaling behaviors on data scales. Our generated vectorized glyphs have been validated by experts and relevant individuals.