Lune

ACL2026Top-tier venue

Corpus-Dependent Subcharacter Encoding via HMM-Guided Code Assignment

Tatsuya Hiraoka

Abstract

We propose a corpus-dependent alternative to byte encoding that learns fixed-length atomic codes for characters directly from text, which we refer to as Latom (Learned Atom-based Encoding). We instantiate this framework by training an HMM on N -repeated character sequences to estimate "atom" posteriors, followed by a Hungarian assignment yielding a globally optimal one-to-one character-code mapping. Across 14 languages, the encodings improve intrinsic metrics, including token counts after subword tokenization and bigram perplexity, with appropriate code lengths. On Amazon Reviews in six languages, Latom improves text classification accuracy and reduces decoding errors in language model generation. Overall, these results demonstrate that character encodings can be learned from corpus statistics while remaining reversible and compatible with standard tokenization pipelines.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Optimizing Word Segmentation for Downstream Task cites Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translation
  • Charformer: Fast Character Transformers via Gradient-based Subword Tokenization cites Optimizing Word Segmentation for Downstream Task
  • Charformer: Fast Character Transformers via Gradient-based Subword Tokenization cites Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translation
  • Charformer: Fast Character Transformers via Gradient-based Subword Tokenization cites Joint Optimization of Tokenization and Downstream Model
  • Joint Optimization of Tokenization and Downstream Model cites Optimizing Word Segmentation for Downstream Task
  • Joint Optimization of Tokenization and Downstream Model cites Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translation
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on6

  1. Charformer: Fast Character Transformers via Gradient-based Subword TokenizationYi Tay, Vinh Q. Tran, Sebastian Ruder, Jai Prakash Gupta et al.ICLR 2022 · 198 citations
  2. Byte Latent Transformer: Patches Scale Better Than TokensArtidoro Pagnoni, Ramakanth Pasunuru, Pedro Rodríguez, John Nguyen et al.ACL 2025 · 116 citations
  3. Dynamic Programming Encoding for Subword Segmentation in Neural Machine TranslationXuanli He, Gholamreza Haffari, Mohammad NorouziACL 2020 · 33 citations
  4. Optimizing Word Segmentation for Downstream TaskTatsuya Hiraoka, Sho Takase, Kei Uchiumi, Atsushi Keyaki et al.EMNLP Findings 2020 · 13 citations
  5. Joint Optimization of Tokenization and Downstream ModelTatsuya Hiraoka, Sho Takase, Kei Uchiumi, Atsushi Keyaki et al.ACL Findings 2021 · 11 citations

Related papers

  1. Learn Your Tokens: Word-Pooled Tokenization for Language ModelingAvijit Thawani, Saurabh Ghanekar, Xiaoyuan Zhu, Jay PujaraEMNLP Findings 2023 · 4 citations
  2. MYTE: Morphology-Driven Byte Encoding for Better and Fairer Multilingual Language ModelingTomasz Limisiewicz, Terra Blevins, Hila Gonen, Orevaoghene Ahia et al.ACL 2024 · 1 citation
  3. Char2Subword: Extending the Subword Embedding Space Using Robust Character CompositionalityGustavo Aguilar, Bryan McCann, Tong Niu, Nazneen Rajani et al.EMNLP Findings 2021 · 10 citations
  4. T-FREE: Subword Tokenizer-Free Generative LLMs via Sparse Representations for Memory-Efficient EmbeddingsBjörn Deiseroth, Manuel Brack, Patrick Schramowski, Kristian Kersting et al.EMNLP 2024 · 2 citations
  5. Coding Textual Inputs Boosts the Accuracy of Neural NetworksAbdul Rafae Khan, Jia Xu, Weiwei SunEMNLP 2020 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines