
WangchanBERTa
Language311 ops105.3M params
A multilingual masked language model for Standard Chinese, Cantonese and six ethnic minority languages of China.
Language · 311 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForMaskedLM.from_config()
CINO (Chinese Minority Pre-trained Language Model) is a multilingual language model for the minority languages of China. It covers Standard Chinese, Yue Chinese (Cantonese) and six ethnic minority languages. The paper's motivating example is Tibetan, which is absent from the CC-100 corpus, so the XLM-R tokenizer cannot tokenize Tibetan scripts correctly.
CINO has the same transformer architecture as XLM-R, and the base model has 12 layers, 768 hidden states and 12 attention heads. The differences are in the word embeddings and the tokenizer. The authors trained sentence-piece tokenizers for Tibetan and Mongolian and merged their vocabularies into the XLM-R tokenizer. They then removed every token that never appeared in the pre-training corpora, from both the vocabulary and the word embeddings matrix. The resulting vocabulary has 135,359 tokens.
Pre-training uses masked language modeling in a faster form that predicts only over the vocabulary of the input example's language. The paper reports that this objective and the vocabulary pruning together reduce pre-training time by about 40%.
Key idea. CINO adapts XLM-R to Chinese minority languages by extending and pruning its vocabulary and pre-training with a faster masked language modeling objective.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{yang2022cinochineseminoritypretrained,
title={CINO: A Chinese Minority Pre-trained Language Model},
author={Ziqing Yang and Zihang Xu and Yiming Cui and Baoxin Wang and Min Lin and Dayong Wu and Zhigang Chen},
year={2022},
eprint={2202.13558},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2202.13558},
}