All models

LF-Font

A few-shot font generator that composes glyphs from component-wise styles split into style and component factors.

Diffusion and generative · 351 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
8M
Operations
351
Framework
PyTorch
Recurrent
No
Published
AAAI 2021
Cited by
113 (as of 27 October 2026)
Authors
Song Park, Sanghyuk Chun, Junbum Cha and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17755
Graph hash
705b1431ab824d46c1ee5502e838c55b8d9c51d9e623cb48ac70fe9d370a5f6b
Skeleton hash
04e36a8f5b829cd9eae4b4e7c06d694bdf5c0155fc5d5c3720936938255c2199
Architecture hash
ae2394ec445625ed8ec5d7843193e0eb33cb4331e88f501db3cb028e9ebc82fa
Diagram SHA-256
da4b7f9bb2ecff5d862bb429494008342b1bfdbd9b0e90ced719920533cd017e
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

LF-Font is a few-shot font generator: given a few reference glyphs in an unseen style, it produces glyphs for other characters in that style without fine-tuning on the references. Earlier few-shot methods learn one universal style representation per font, which the paper says limits them in representing diverse local styles and makes them unsuitable for scripts such as Chinese, whose characters consist of a varying number of components.

LF-Font instead learns localized styles, meaning a style representation for each component of a character. A few references cannot show every component when a script has over 200 of them, so the model writes each component-wise style as a product of a component factor and a style factor, an idea taken from low-rank matrix factorization. The style factor is extracted from the reference set and combined with the component factor from the source glyph. A content encoder captures the global structure of the source glyph, and the generator synthesizes the target glyph from the content feature and the localized style feature.

Training adds a multi-head conditional discriminator for style and character labels, with the hinge GAN loss. With 8 reference glyphs, the paper reports that LF-Font outperforms five earlier few-shot font generation methods on Chinese across its evaluation metrics. This model uses the Chinese configuration, and in the paper's Chinese experiments all 19,514 characters are represented by combinations of 371 components.

Key idea. LF-Font learns component-wise style representations and factorizes each into a component factor and a style factor, so a font can be generated from only 8 reference glyphs.

  • lf-font
  • lffont
  • few-shot font generation
  • localized style representations
  • chinese font generation
  • glyph generation
  • component-wise style
  • style factorization
  • font style transfer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{park2020fewshotfontgenerationlocalized,
      title={Few-shot Font Generation with Localized Style Representations and Factorization}, 
      author={Song Park and Sanghyuk Chun and Junbum Cha and Bado Lee and Hyunjung Shim},
      year={2020},
      eprint={2009.11042},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2009.11042}, 
}