Finding structure in logographic writing with library learning

Guangyuan Jiang, Matthias Hofer, Jiayuan Mao, Lionel Wong, Joshua B. Tenenbaum, Roger P. LevyarXiv 2024

Abstract

One hallmark of human language is its combinatoriality—reusing a relatively small inventory of building blocks to create a far larger inventory of increasingly complex structures. In this paper, we explore the idea that combinatoriality in language reflects a human inductive bias toward representational efficiency in symbol systems. We develop a computational framework for discovering structure in a writing system. Built on top of state-of-the-art library learning and program synthesis techniques, our computational framework discovers known linguistic structures in the Chinese writing system and reveals how the system evolves towards simplification under pressures for representational efficiency. We demonstrate how a library learning approach, utilizing learned abstractions and compression, may help reveal the fundamental computational principles that underlie the creation of combinatorial structures in human cognition, and offer broader insights into the evolution of efficient communication systems.

Introduction

Human language is fundamentally combinatorial: we reuse a small set of building blocks (phonemes, morphemes, or strokes) to create a vast array of complex structures. Linguists have long suspected this reflects a human inductive bias toward representational efficiency—essentially, our brains prefer systems that are easy to store and reuse. However, proving this in writing systems is difficult. Previous research often relied on "pictorial complexity" (counting pixels or perimeters), which failed to show a clear trend toward simplification over history. This paper argues that pictorial complexity misses the point: the true simplicity of a writing system lies in its internal logic—how efficiently it reuses parts across different characters.

Methodological Framework

The authors treat Chinese characters as "programs" written in a Domain-Specific Language (DSL). The framework consists of three primary components:

  1. The DSL: A base library of 33 primitive stroke types (horizontal, vertical, etc.) and a list operator.
  2. Library Learning: Using the Stitch algorithm, the model performs a top-down search to find recurring sequences of strokes (subroutines). If a sequence like the "wood" radical (木) appears in hundreds of characters, the model "refactors" it into a library function.
  3. Minimum Description Length (MDL): The model’s goal is to minimize the total cost of the system, defined as the sum of the library's size and the length of all character "programs" rewritten using that library.
The framework treats characters as programs built from a base DSL of stroke primitives, which are then compressed into a hierarchical library of functions.

Empirical Results and Insights

Radicals as Subroutines

The model discovered that 95.1% of its learned library functions were hierarchical (functions calling other functions). This mirrors human perception: characters are not viewed as a collection of lines, but as a hierarchy of components. For example, the character 颢 is decomposed into "sun" + "capital" + "leaf". The model rediscovered 187 out of 201 (93%) of the official radicals defined by the Chinese Ministry of Education, achieving a 4.16x compression rate over raw stroke sequences.

Program Complexity vs. Pictorial Complexity

A critical finding of this research is the divergence between visual and computational complexity. While the visual "ink on the page" (pictorial complexity) fluctuated over 3,000 years of history, the program complexity (the information needed to represent characters using a learned library) showed a steady, monotonic decrease. This provides quantitative evidence that writing systems evolve to be more "compressible" and computationally efficient.

Library learning discovers recurring components (B) and reveals that while visual complexity fluctuates, program complexity decreases over time (C).

The Systematicity Trade-off

The 1950s simplification of Chinese characters reduced the number of strokes, making individual characters "shorter" programs. However, the model revealed that this actually decreased the compression ratio. By breaking traditional rules to save strokes, the system became slightly less systematic and harder for the model to compress compared to Traditional Chinese, highlighting a trade-off between individual character brevity and overall system systematicity.

Discussion and Future Directions

While the model shows high alignment with expert-defined structures (76.3% recall on gold-standard decompositions), it currently focuses solely on orthography. Future work could integrate semantic and phonetic information, as many radicals provide clues to a character's meaning or pronunciation. Additionally, moving beyond linear stroke sequences to model 2D spatial relationships (e.g., top-bottom vs. left-right structures) via unsupervised image parsing could further refine our understanding of how representational efficiency shapes human symbol systems.

Summary updated

BibTeX
@misc{jiang2024finding,
  author = {Guangyuan Jiang and Matthias Hofer and Jiayuan Mao and Lionel Wong and Joshua B. Tenenbaum and Roger P. Levy},
  title = {{Finding structure in logographic writing with library learning}},
  year = {2024},
  eprint = {2405.06906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.06906},
}
Figure