Sub-character Neural Language Modelling in Japanese

Viet Nguyen, Julian Brooke, Timothy BaldwinSWCN @ EMNLP 2017

TL;DR

This paper explores how breaking down Japanese characters (kanji) into their smaller components (bushu) can improve neural language models. They found that using these sub-character representations can indeed boost performance, but the effectiveness is highly dependent on the quality and granularity of the decomposition dataset.

What Problem Does This Paper Address?

Traditional language models for Japanese often treat each character as an atomic unit. However, Japanese kanji, like Chinese characters, are often composed of smaller elements that carry semantic meaning. For instance, the kanji for "whale" (鯨) contains the character for "fish" (魚), hinting at its marine nature. Current models miss out on these semantic relationships, leading to difficulties in handling rare or out-of-vocabulary words. While character-level models have shown promise in English for addressing sparsity, Japanese has a vast number of kanji, making even character-level models susceptible to sparsity. This paper investigates whether leveraging the inherent structure of kanji through sub-character decomposition can offer a more effective solution for Japanese language modeling.

Methods

The core of this research involves training neural language models that incorporate sub-character information. They experimented with different ways to decompose kanji into their constituent "bushu" (radicals or components). The neural language models themselves are standard unidirectional LSTMs implemented in TensorFlow. These models include an embedding layer that learns representations for each character (including kanji and bushu), followed by the LSTM, and finally a layer that predicts the probability of the next character.

A key aspect of their methodology is exploring two levels of decomposition:

  • Shallow decomposition: Using only the first layer of decomposition for a kanji.
  • Deep decomposition: Exhaustively decomposing a kanji and all its sub-characters.

To preserve information, they postpend the original kanji character to the sequence of its decomposed sub-characters. This ensures that the model can still predict the original character and that the decomposed sequences map back to the original text. Model performance is evaluated using perplexity, a standard metric for language models, normalized by the original corpus length to account for changes in sequence length due to decomposition.

Datasets

The paper utilizes four existing kanji datasets that provide sub-character decompositions:

  • GLYPHWIKI: A community-driven wiki with user-contributed decomposition information.
  • IDS: Based on an open-source project that uses character topic maps for decomposition. It offers a more detailed breakdown than GLYPHWIKI.
  • KANJIVG: A collection of images providing decomposition information derived from stroke analysis. The authors exclude individual strokes, focusing only on meaningful components.
  • KRADFILE: A dataset that provides a flat, exhaustive decomposition of kanji into their constituent bushu. It uses a limited set of bushu and does not maintain an order of appearance.

The language models are trained and evaluated on the NAIST text corpus, a collection of Japanese newspaper articles.

Key Insights and Ideas

  • Sub-character information is valuable: The study confirms that decomposing kanji into their constituent bushu can indeed improve language model performance.
  • Decomposition granularity matters: Not all decompositions are equally beneficial. The paper highlights that the "depth" of decomposition (shallow vs. deep) significantly impacts results.
  • Dataset quality is crucial: The choice of decomposition dataset is critical. KRADFILE, despite providing exhaustive decompositions, performed poorly, suggesting that its specific characteristics (limited bushu set, lack of order) are detrimental.
  • Shallow decomposition often wins: The best results were achieved with shallow decomposition, suggesting that the most semantically salient bushu tend to appear at the first level of decomposition. Over-decomposition might introduce noise or dilute the signal.
  • Preserving original characters is important: Postpending the original kanji character to its decomposed sequence is a practical way to retain information and ensure the model can still predict the original text.

Key Results

The paper reports perplexity scores for various decomposition strategies. While specific numbers vary across folds, the general trend is clear:

  • Baseline (no decomposition): Achieved a certain perplexity score.
  • Sub-character models: Most sub-character models showed improvement over the baseline.
  • GLYPHWIKI (shallow decomposition): Consistently yielded the best performance, outperforming all other configurations across all folds of the cross-validation.
  • KRADFILE: Performed substantially worse than the baseline, with perplexity scores almost double that of the baseline.
  • KANJIVG and IDS: Showed similar, but slightly worse, results compared to GLYPHWIKI.

The average perplexity for the best configuration (GLYPHWIKI shallow) was significantly lower than the baseline, indicating a substantial improvement in language modeling.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Limited decomposition options explored: They have only explored a subset of possible decomposition strategies and ordering.
  • Flattened structure: The current approach flattens the kanji structure. Future work could explore models that integrate the hierarchical structure of kanji.
  • Sequential tasks: Applying sub-character modeling to other sequential tasks like part-of-speech tagging is a promising avenue.
  • Cross-lingual comparison: Investigating the usefulness of decomposition for Chinese, given its correspondence with kanji, would be valuable.
  • Intrinsic evaluation: Performing intrinsic evaluations of character and bushu embeddings learned through language modeling, e.g., against character-level similarity datasets, is suggested.
  • Dataset limitations: The poor performance of KRADFILE highlights the need for carefully curated or selected decomposition datasets.

Summary updated

BibTeX
@inproceedings{nguyen2017sub,
  author = {Viet Nguyen and Julian Brooke and Timothy Baldwin},
  title = {{Sub-character Neural Language Modelling in Japanese}},
  booktitle = {SWCN @ EMNLP},
  year = {2017},
  url = {https://openreview.net/forum?id=r1byHGMdZB},
}
Figure