[Paper Review] Which Encoding is the Best for Text Classification in Chinese, English, Japanese and Korean?
This paper conducts a comprehensive empirical study comparing 473 text classification models across Chinese, English, Japanese, and Korean using diverse encoding methods—UTF-8 bytes, characters, words, romanized forms, and embeddings—across linear models, fastText, and convolutional networks. The key finding is that byte-level one-hot encoding consistently delivers strong performance for convolutional networks, while fastText achieves state-of-the-art results with character n-grams but is prone to overfitting when feature richness increases.
This article offers an empirical study on the different ways of encoding Chinese, Japanese, Korean (CJK) and English languages for text classification. Different encoding levels are studied, including UTF-8 bytes, characters, words, romanized characters and romanized words. For all encoding levels, whenever applicable, we provide comparisons with linear models, fastText and convolutional networks. For convolutional networks, we compare between encoding mechanisms using character glyph images, one-hot (or one-of-n) encoding, and embedding. In total there are 473 models, using 14 large-scale text classification datasets in 4 languages including Chinese, English, Japanese and Korean. Some conclusions from these results include that byte-level one-hot encoding based on UTF-8 consistently produces competitive results for convolutional networks, that word-level n-grams linear models are competitive even without perfect word segmentation, and that fastText provides the best result using character-level n-gram encoding but can overfit when the features are overly rich.
Motivation & Objective
- To evaluate the effectiveness of various text encoding strategies—ranging from UTF-8 bytes to romanized words—for text classification across four languages: Chinese, English, Japanese, and Korean.
- To assess the performance of different models, including linear models, fastText, and convolutional neural networks, under diverse encoding schemes.
- To determine whether low-level encodings like bytes or glyphs can outperform traditional word-level or character-level representations in multilingual settings.
- To provide a systematic benchmark with 14 large-scale datasets to guide future research in unified, multilingual text representation.
Proposed method
- The study employs a large-scale benchmark with 14 diverse text classification datasets—millions of samples—covering sentiment analysis and topic categorization in four languages.
- It evaluates multiple encoding levels: UTF-8 bytes, characters, words (with and without segmentation), romanized characters, and romanized words.
- For each encoding, models include multinomial logistic regression, fastText, and two CNN architectures (large and small) with three encoder types: one-hot encoding, character glyph images, and learned embeddings.
- The CNNs use ReLU activations and max-pooling, with shared architecture except for the input encoder layer, enabling fair comparison across encoding mechanisms.
- Hyperparameter tuning is performed for fastText, and training is validated using early stopping based on validation accuracy.
- All code and datasets are released under an open-source license to support reproducibility and community use.
Experimental results
Research questions
- RQ1Which text encoding level—UTF-8 bytes, characters, words, romanized forms, or embeddings—yields the best performance for text classification in Chinese, Japanese, Korean, and English?
- RQ2How do linear models, fastText, and convolutional neural networks compare across different encoding levels in multilingual text classification?
- RQ3Does byte-level one-hot encoding outperform character-level or word-level encoding in convolutional networks for multilingual text processing?
- RQ4To what extent does fastText overfit when using rich feature representations like character n-grams in CJK languages?
- RQ5Can low-level encodings such as character glyphs or UTF-8 bytes enable a unified, language-agnostic text representation for deep learning models?
Key findings
- Byte-level one-hot encoding consistently produces competitive results across all languages and model types, especially for convolutional networks, indicating that low-level representations can be highly effective.
- FastText achieves the best overall performance with character-level n-grams for Chinese, Japanese, and Korean, but performs best with word-level n-grams for English.
- Word-level encodings for CJK languages remain competitive even without perfect segmentation, suggesting that word boundaries are less critical than previously assumed.
- FastText tends to overfit more than convolutional networks, despite having lower model capacity than CNNs, particularly when feature richness increases.
- Linear models with bag-of-characters or bag-of-words features remain highly competitive, especially with n-gram and TF-IDF variants, demonstrating their enduring strength.
- The use of character glyph images as input to CNNs is feasible but not superior to byte-level one-hot encoding, which offers better performance and simplicity.
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.