
CINO
Language311 ops190.1M params
RoBERTa-base masked language model for Thai, pretrained on 78.5GB of text with a SentencePiece tokenizer.
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.CamembertForMaskedLM()
WangchanBERTa is a language model for Thai, built on the RoBERTa-base architecture and pretrained on a large, deduplicated and cleaned corpus. The paper's motivation is that, for Thai, the available choices were a BERT-based model trained on a much smaller dataset or a fine-tuned multilingual model, and both gave suboptimal downstream performance.
This model, wangchanberta-base-att-spm-uncased, was pretrained on 78.5GB of uncompressed Thai text. It uses the BERT base layout of 12 layers, 768 hidden dimensions and 12 attention heads. Its SentencePiece tokenizer has a vocabulary of 25,000 subwords. Spaces serve as punctuation in Thai, marking boundaries such as the ends of sentences, so the preprocessing marks them explicitly instead of letting the tokenizer combine them with other tokens.
Pretraining used masked language modeling, with 15% of the tokens in each sequence sampled for masking. The released weights come from the checkpoint at 360,000 steps, because pretraining had not yet been completed at release. The paper reports that the model outperforms the baselines NBSVM, CRF and ULMFit and the multilingual models XLMR and mBERT on sequence classification and token classification tasks. The one exception it notes is training data with multilingual elements, where XLMR did better.
Key idea. The paper pretrains a RoBERTa-base language model on 78GB of cleaned Thai text, with Thai-specific text processing that preserves spaces before subword tokenization.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{lowphansirikul2021wangchanbertapretrainingtransformerbasedthai,
title={WangchanBERTa: Pretraining transformer-based Thai Language Models},
author={Lalita Lowphansirikul and Charin Polpanumas and Nawat Jantrakulchai and Sarana Nutanong},
year={2021},
eprint={2101.09635},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2101.09635},
}