Beyond Atomic Tokens: Factorizing Syllables for Language Model Pretraining
Organizations: University of Information Technology, Vietnam National University, Ho Chi Minh city, Viet Nam · Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, UAE, Abu Dhabi, UEA
Abstract
Conventional tokenizers represent text as characters or statistically derived subwords, overlooking the internal phonological structure of syllables and often requiring large vocabularies. We introduce Phonemic Tokenizer, a linguistically motivated tokenizer for Vietnamese and Chinese that converts each syllable into IPA and factorizes it into three phonological components: onset, rime, and tone. The three components jointly occupy one contextual position, preserving syllable-level sequence length while enabling representation sharing across phonologically related syllables. Non-phonological and unsupported units are handled through character-level fallback. This deterministic design requires no corpus-dependent vocabulary learning and yields vocabularies of only 112 entries for Chinese and 256 for Vietnamese. Intrinsic evaluation shows that the tokenizer achieves substantially higher Rényi efficiency in both languages, represents every entry in a standard Vietnamese syllable dictionary with a Fertility of exactly one, and generally produces shorter Vietnamese sequences than existing pretrained tokenizers. We further instantiate the tokenizer in PhonemicBERT, which combines factorized component embeddings and reconstructs complete masked syllables using three prediction heads. Under a controlled Chinese pretraining setup, PhonemicBERT-Zh is competitive with or outperforms character, subword, and SubChar alternatives across diverse language-understanding tasks. PhonemicBERT-Vi also achieves competitive or superior results to established Vietnamese and multilingual pretrained models. These results establish phonemic factorization as a compact, efficient, and interpretable alternative to atomic and statistically segmented text representations.
Figures & tables
| Configuration | Zh | Vi |
| Source size | 2.3 GB | 20 GB |
| Retained size | 2.1 GB | 18.54 GB |
| Transformer layers | 6 / 12 | 12 |
| Hidden size | 768 | 768 |
| Attention heads | 12 | 12 |
| FFN size | 3,072 | 3,072 |
| Tokenizer | Vocabulary | Pretraining corpus |
| PhoBERT | 64,000 | 20 GB |
| WikiBERT | 30,000 | - |
| mBERT | 119,537 | - |
| XLM-RoBERTa | 250,002 | 2.5 TB |
| Phonemic | 256 | 18.54 GB |
| # | Dataset | PhoBERT | WikiBERT | mBERT | XLM-R | Phonemic |
| 1 | VSMEC | 1.0882 | 1.3356 | 1.2771 | 1.1848 | 1.0562 |
| 2 | ViHOS | 2.4561 | 1.2973 | 1.4405 | 1.3880 | 1.0116 |
| 3 | ViHSD | 2.4374 | 1.3254 | 1.4394 | 1.3942 | 1.0280 |
| 4 | NIIVTB POS | 1.0200 | 1.3426 | 1.1694 | 1.1674 | 1.0422 |
| 5 | PhoNER | 1.0341 | 1.3611 | 1.1558 | 1.1834 | 1.0974 |
| 6 | UIT-ViSFD | 1.2428 | 1.5039 | 1.3991 | 1.2948 | 1.1643 |
| # | Dataset | PhoBERT | WikiBERT | mBERT | XLM-R | Phonemic |
| 1 | VSMEC | 0.4740 | 0.4876 | 0.4354 | 0.3863 | 0.5661 |
| 2 | ViHOS | 0.2702 | 0.4923 | 0.1701 | 0.3535 | 0.5777 |
| 3 | ViHSD | 0.2710 | 0.4945 | 0.1720 | 0.3572 | 0.5819 |
| 4 | NIIVTB POS | 0.4405 | 0.4706 | 0.4150 | 0.3412 | 0.5300 |
| 5 | PhoNER | 0.3831 | 0.4315 | 0.3734 | 0.3046 | 0.4692 |
| 6 | UIT-ViSFD | 0.4895 | 0.4481 | 0.4006 | 0.3907 | 0.4996 |
| # | Dataset | Input | PhoBERT | WikiBERT | mBERT | XLM-R | Phonemic |
| 1 | VSMEC | 14.01 | 15.24 (+01.23) | 18.71 (+04.70) | 17.89 (+03.88) | 16.59 (+02.58) | 14.79 (+00.78) |
| 2 | ViHOS | 14.32 | 35.16 (+20.84) | 18.57 (+04.25) | 20.62 (+06.30) | 19.87 (+05.55) | 14.48 (+00.16) |
| 3 | ViHSD | 13.11 | 31.96 (+18.85) | 17.38 (+04.27) | 18.87 (+05.76) | 18.28 (+05.17) | 13.48 (+00.37) |
| 4 | NIIVTB POS | 28.86 | 29.43 (+00.57) | 38.74 (+09.88) | 33.74 (+04.88) | 33.68 (+04.82) | 30.07 (+01.21) |
| 5 | PhoNER | 34.63 | 35.81 (+01.18) | 47.13 (+12.50) | 40.02 (+05.39) | 40.98 (+06.35) | 38.00 (+03.37) |
| 6 | UIT-ViSFD | 36.19 | 44.97 (+08.78) | 54.42 (+18.23) | 50.63 (+14.44) | 46.85 (+10.66) | 42.13 (+05.94) |
| Dataset | Unique types | Vietnamese | Coverage |
| VSMEC | 4,750 | 3,577 | 75% |
| ViHOS | 7,301 | 4,455 | 61% |
| ViHSD | 11,852 | 5,624 | 47% |
| NIIVTB POS | 8,316 | 4,698 | 56% |
| PhoNER | 2,706 | 2,122 | 78% |
| UIT-ViSFD | 6,473 | 3,775 | 58% |
| Dataset | Occurrences | Vietnamese | Coverage |
| VSMEC | 102,462 | 85,080 | 83% |
| ViHOS | 160,121 | 124,233 | 78% |
| ViHSD | 450,182 | 333,658 | 74% |
| NIIVTB POS | 617,413 | 503,242 | 82% |
| PhoNER | 381,038 | 264,019 | 69% |
| UIT-ViSFD | 468,599 | 350,340 | 75% |
| # | Dataset | Character | Subword | SubChar-Wubi | SubChar-Pinyin | Phonemic |
| 1 | TNEWS | 0.5002 | 0.4920 | 0.4927 | 0.5158 | 0.6993 |
| 2 | IFLYTEK | 0.5242 | 0.5389 | 0.5507 | 0.5497 | 0.6861 |
| 3 | CLUEWSC | 0.4376 | 0.4688 | 0.5206 | 0.5063 | 0.6745 |
| 4 | AFQMC | 0.3741 | 0.3667 | 0.3256 | 0.3482 | 0.6607 |
| 5 | OCNLI | 0.4772 | 0.4915 | 0.5257 | 0.5202 | 0.6651 |
| 6 | CSL | 0.5064 | 0.5100 | 0.5359 | 0.5096 | 0.6874 |
| # | Dataset | Input | Character | Subword | SubChar-Wubi | SubChar-Pinyin | Phonemic |
| 1 | TNEWS | 22.24 | 22.24 | 20.32 | 15.96 | 16.18 | 22.24 |
| 2 | IFLYTEK | 288.17 | 288.17 | 254.35 | 182.46 | 184.49 | 288.17 |
| 3 | CLUEWSC | 66.64 | 66.64 | 61.81 | 52.27 | 51.93 | 66.64 |
| 4 | AFQMC | 13.35 | 13.35 | 12.51 | 10.98 | 10.53 | 13.35 |
| 5 | OCNLI | 17.82 | 17.82 | 15.58 | 12.03 | 12.41 | 17.82 |
| 6 | CSL | 206.08 | 206.08 | 176.40 | 125.39 | 130.61 | 206.08 |
| Tokenizer | Vocabulary size |
| Character | 22,675 |
| Subword | 22,675 |
| SubChar-Wubi | 22,675 |
| SubChar-Pinyin | 22,675 |
| Phonemic | 112 |
| Model | ViHOS | NIIVTB POS | VietMed | PhoNER |
| WikiBERT | 77.05 | 75.52 | – | – |
| PhoBERT | 75.69 | 77.60 | ||
| mBERT | 76.22 | 81.34 | ||
| DistilBERT | 75.72 | 80.05 | – | – |
| XLM-RoBERTa | 74.67 | 81.76 | ||
| PhonemicBERT-Vi |
| Model | VSMEC | ViHSD | ViSFD | ViOCD | ViCTSD | UIT-VSFC | ||
| Cons. | Toxic | Topic | Sent. | |||||
| WikiBERT | 57.64 | – | 71.46 | – | – | – | – | – |
| PhoBERT | 59.91 | – | – | – | ||||
| mBERT | 54.59 | 64.20 | 70.27 | 91.61 | ||||
| DistilBERT | 53.83 | 62.50 | 70.97 | 90.50 | – | – | – | – |
| XLM-RoBERTa | 61.89 | 63.68 | – | – | ||||
| Model | ViNewsQA | ViNLI |
| WikiBERT | 82.85 | – |
| PhoBERT | – | 78.05 |
| mBERT | 83.19 | 73.62 |
| DistilBERT | – | 66.77 |
| XLM-RoBERTa | – | 77.01 |
| PhonemicBERT-Vi |
| Pretrained model | #Params | #Layers | #Heads | Hidden | Vocab. | Language | Pretraining source |
| mBERT | 179M | 12 | 12 | 768 | 119,547 | Multilingual | Wikipedia |
| Multilingual DistilBERT | 134M | 6 | 12 | 768 | 119,547 | Multilingual | Wikipedia |
| XLM-RoBERTa-base | 270M | 12 | 12 | 768 | 250,002 | Multilingual | CommonCrawl |
| WikiBERT | – | 12 | 12 | 768 | 20,101 | Monolingual | Wikipedia |
| PhoBERT-base | 135M | 12 | 12 | 768 | 64,001 | Monolingual | Wikipedia, news |
| PhonemicBERT-Vi | 87.94M | 12 | 12 | 768 | 256 | Monolingual | Wikipedia, news |
| Tokenizer | TNEWS | IFLYTEK | THUCNews |
| 6-layer encoder | |||
| CharTokenizer | |||
| Subword | |||
| SubChar-Wubi | |||
| SubChar-Pinyin | |||
| PhonemicBERT-Zh | |||
| Tokenizer | CLUEWSC | AFQMC | OCNLI | CSL | BQ |
| 6-layer encoder | |||||
| CharTokenizer | |||||
| Subword | |||||
| SubChar-Wubi | |||||
| SubChar-Pinyin | |||||
| PhonemicBERT-Zh | |||||
| Tokenizer | C3 | CMRC † | CLUENER † |
| 6-layer encoder | |||
| CharTokenizer | 56.58 | 69.61 | |
| Subword | 55.85 | 67.94 | |
| SubChar-Wubi | 54.45 | 70.63 | |
| SubChar-Pinyin | 55.18 | 70.77 | |
| PhonemicBERT-Zh | |||
| Dataset | Tokenizer | Clean | 7.5% | 15.0% | 22.5% | 30.0% | 37.5% |
| TNEWS | Character | 64.10 | 63.09 | 58.96 | 50.91 | 38.33 | 25.20 |
| Subword | 64.09 | 62.82 | 57.75 | 48.67 | 36.37 | 25.27 | |
| SubChar-Pinyin | 63.68 | 61.95 | 56.67 | 45.22 | 30.71 | 27.53 | |
| SubChar-Pinyin-NoIndex | 63.28 | 63.28 | 63.28 | 63.28 | 63.28 | 63.28 | |
| PhonemicBERT-Zh | 64.07 | 63.71 | 63.17 | 63.10 | 63.09 | 63.39 | |
| OCNLI | Character | 68.19 | 64.89 | 56.58 | 47.65 | 40.48 | 36.36 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Grapheme(s) | Phoneme | Example | Example IPA |
| b | /b/ | ba | /ba / |
| t | /t/ | ta | /ta / |
| th | /t h / | tha | /t h a / |
| c , k , q | /k/ | ca , kim , qua | /ka /, /kim /, /kwa / |
| ph | /f/ | pha | /fa / |
| đ | /d/ | đa | /da / |
| Component | Grapheme(s) | Phoneme | Examples |
| Medial | o , u | / u ı / | hoa , thuê , khuyên |
| Monophthong | a | /a/ | ba , an |
| Monophthong | ă ; a before y, u | /ă/ | ăn , tay , cau |
| Monophthong | â | /9̆/ | ân , cây |
| Monophthong | i , y | /i/ | tin , y |
| Monophthong | ê | /e/ | êm , kết |
| Grapheme(s) | Phoneme | Examples |
| i , y | / i ı / | mai , tay |
| o , u | / u ı / | sao , đau |
| m | /m/ | nam , êm |
| n | /n/ | an , ên |
| ng | /ŋ/ | ang , ông |
| nh | // | anh , ênh |
| Tone | Mark | Example |
| Ngang | Unmarked | ma |
| Huyền | Grave | mà |
| Sắc | Acute | má |
| Hỏi | Hook above | mả |
| Ngã | Tilde | mã |
| Nặng | Dot below | mạ |
| Pinyin initial | Normalized IPA | Example | Example IPA |
| b | /p/ | bā | /pa / |
| p | /p h / | pā | /p h a / |
| m | /m/ | mā | /ma / |
| f | /f/ | fā | /fa / |
| d | /t/ | dā | /ta / |
| t | /t h / | tā | /t h a / |
| Pinyin final | Normalized IPA | Example |
| a | /a/ | mā |
| o | /wo/ | bō |
| e | /7/ | gē |
| ê | /E/ | ê |
| ai | /ai/ | lái |
| ei | /ei/ | lèi |
| Pinyin final | Normalized IPA | Example |
| i | /i/ | mǐ |
| ia | /ia/ | jiā |
| ie | /iE/ | xiě |
| iao | /iau/ | xiǎo |
| iou | /iou/ | liú |
| ian | /iEn/ | tiān |
| Group | Pinyin final | Normalized IPA | Example |
| u | u | /u/ | lù |
| ua | /ua/ | huā | |
| uo | /uo/ | guó | |
| uai | /uai/ | kuài | |
| uei | /uei/ | duì | |
| uan | /uan/ | guān |
| Surface form | Normalized final | Example | Normalized IPA |
| iu after an initial | iou | liú | /liou / |
| ui after an initial | uei | duì | /tuei / |
| un after an initial | uen | lùn | /lu9n / |
| yi , ya , ye | i , ia , ie | yī , yā , yè | /i /, /ia /, /iE / |
| yao , you | iao , iou | yào , yǒu | /iau /, /iou / |
| yan , yin , yang , ying | ian , in , iang , ing | yán , yīn , yáng , yīng | Corresponding i -group rimes |
| Tone | Pinyin mark | Example | Tokenizer value |
| First | Macron | mā | / / |
| Second | Acute | má | / / |
| Third | Caron | mǎ | / / |
| Fourth | Grave | mà | / / |
| Neutral | Unmarked | ma | [EMPTY] |