[Paper Review] VQ-Font: Few-Shot Font Generation with Structure-Aware Enhancement and Quantization
VQ-Font proposes a VQGAN-based framework for few-shot font generation that enhances glyph fidelity through token prior refinement using a pre-trained codebook and structure-aware enhancement via component-level style recalibration. By leveraging Chinese character structural design principles and refining synthesized outputs in discrete token space, VQ-Font significantly reduces artifacts and improves visual quality, especially on complex serif and artistic fonts, outperforming prior methods quantitatively and qualitatively.
Few-shot font generation is challenging, as it needs to capture the fine-grained stroke styles from a limited set of reference glyphs, and then transfer to other characters, which are expected to have similar styles. However, due to the diversity and complexity of Chinese font styles, the synthesized glyphs of existing methods usually exhibit visible artifacts, such as missing details and distorted strokes. In this paper, we propose a VQGAN-based framework (i.e., VQ-Font) to enhance glyph fidelity through token prior refinement and structure-aware enhancement. Specifically, we pre-train a VQGAN to encapsulate font token prior within a codebook. Subsequently, VQ-Font refines the synthesized glyphs with the codebook to eliminate the domain gap between synthesized and real-world strokes. Furthermore, our VQ-Font leverages the inherent design of Chinese characters, where structure components such as radicals and character components are combined in specific arrangements, to recalibrate fine-grained styles based on references. This process improves the matching and fusion of styles at the structure level. Both modules collaborate to enhance the fidelity of the generated fonts. Experiments on a collected font dataset show that our VQ-Font outperforms the competing methods both quantitatively and qualitatively, especially in generating challenging styles.
Motivation & Objective
- To address the challenge of generating high-fidelity glyphs in few-shot font generation, particularly for complex Chinese character styles with limited reference glyphs.
- To reduce artifacts such as missing details and distorted strokes that commonly occur in existing methods due to domain gaps and patch-level attention only.
- To improve style transfer fidelity by incorporating structural design principles of Chinese characters, treating radicals and components as unified entities rather than isolated patches.
- To enhance synthesized outputs by refining them within a learned discrete token space derived from a pre-trained VQGAN codebook.
- To achieve better visual quality and structural consistency by explicitly modeling structure-level correspondence between content and reference glyphs.
Proposed method
- A pre-trained VQGAN is used to learn a font codebook that encapsulates real-world stroke and style priors, enabling refinement of synthesized glyphs by mapping them into the discrete codebook space.
- A Transformer-based module predicts codebook indices for synthesized font images, allowing the model to reconstruct high-fidelity outputs by leveraging the learned token prior.
- A Structure-level Style Enhancement Module (SSEM) establishes correspondence between structural components (e.g., radicals) in content and reference glyphs to recalibrate fine-grained style features.
- The cross-attention mechanism computes patch-level attention between content and reference glyphs, which is then reweighted by SSEM to emphasize structure-level alignment.
- The framework integrates a content encoder, style encoder, cross-attention module, SSEM, and a decoder, with end-to-end training to optimize style transfer and reconstruction.
- The pre-trained font decoder is fine-tuned to bridge the domain gap between synthetic and real-world font distributions, improving realism and consistency.

Experimental results
Research questions
- RQ1Can a pre-trained codebook of font tokens effectively reduce artifacts such as missing details and distorted strokes in few-shot font generation?
- RQ2How does incorporating structural design principles of Chinese characters improve style transfer fidelity at the component level?
- RQ3To what extent does structure-aware enhancement outperform patch-level attention alone in preserving stroke consistency and edge details?
- RQ4Does combining token prior refinement with structure-level style recalibration lead to measurable improvements in quantitative metrics like PSNR, SSIM, and LPIPS?
- RQ5Can the model generalize to complex font styles such as serif and artistic fonts while maintaining high visual fidelity?
Key findings
- The VQ-Font model achieves a PSNR of 20.249 and SSIM of 0.812 on the UFUC dataset, outperforming the baseline and ablation variants.
- The addition of the pre-trained codebook (+C) improves PSNR by 0.851 and reduces LPIPS by 0.012 compared to the baseline.
- Combining the codebook with the Structure-level Style Enhancement Module (+CS) further increases PSNR to 20.249 and reduces LPIPS to 0.103, demonstrating synergistic gains.
- Human evaluation shows that VQ-Font has superior content accuracy and style consistency, with users more likely to select its results as closest to reference fonts.
- Visualizations confirm that SSEM reduces attention on irrelevant regions and focuses on corresponding structural components, improving style alignment.
- Fine-tuning the pre-trained decoder leads to better domain adaptation, improving PSNR from 20.069 (fixed) to 20.249 (fine-tuned), confirming its effectiveness in bridging synthetic and real-world distributions.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.