PhoBERT: Pre-trained language models for Vietnamese
Paper · 2020 · Dat Quoc Nguyen and Anh Tuan Nguyen
Summary
In written Vietnamese, a space can separate syllables that belong to the same word. A system that treats every space as a word boundary can therefore start with units that differ from the ones a human annotator uses to mark grammatical roles or sentence structure. PhoBERT addresses this mismatch before pretraining. It identifies word boundaries first, then learns a vocabulary of smaller pieces from the resulting words. A multisyllable word can still be represented by several pieces, but those pieces are derived from a single word token. The distinction is between deciding where a word begins and ends and deciding how to encode it. Subword tokenization
The authors build PhoBERT base and PhoBERT large using the corresponding BERT architectures and a pretraining procedure based on RoBERTa. Their 20GB Vietnamese corpus combines a Wikipedia collection of roughly 1GB with approximately 19GB of news text retained after removing duplicates and similar articles from a 50GB collection. A Vietnamese segmenter supplies sentence and word boundaries before fastBPE encodes the words. The authors then use labeled data to adapt the pretrained encoders to particular tasks, a procedure known as fine-tuning.
PhoBERT improves on the best prior results used for comparison across the tasks in the paper. PhoBERT large reaches 96.8% accuracy on the VLSP 2013 part-of-speech tagging test set and 94.7% F1 on the VLSP 2016 named entity recognition test set. On the Vietnamese XNLI test set, it reaches 80.0% accuracy under Vietnamese-only fine-tuning, compared with 79.7% for XLM-R large in the comparable setting. The strongest parsing result comes from PhoBERT base. With the Biaffine parser on the VnDT test set, it reaches 78.77% labeled attachment and 85.22% unlabeled attachment. The tasks ask for different kinds of predictions, ranging from a grammatical category for each word to an inference judgment about a sentence pair. Part-of-speech tagging · Named entity recognition · Dependency parsing
XLM-R had more parameters at both sizes and used 137GB of Vietnamese text in pretraining. PhoBERT’s results show that a dedicated Vietnamese system can lead a strong multilingual comparison under these benchmark conditions, even with less Vietnamese pretraining text. Word segmentation, corpus composition and the choice to pretrain on a single language are part of the same experimental comparison, so the scores establish how well the complete systems work. The public release gives Vietnamese research and applications a pretrained starting point that can be reused across tasks.
Deep dive: PhoBERT: Pre-trained language models for Vietnamese
PhoBERT pretrains a Vietnamese encoder on word-segmented text and tests it on tagging, dependency parsing, named entity recognition and inference. · about 33 minutes to read
The problem and its context
A space can occur inside a word
The paper illustrates the issue with a Vietnamese sentence meaning “I am a researcher.” The written sentence has 6 syllables and 4 words. The expression for “researcher” appears as nghiên cứu viên in ordinary spacing. In the word-segmented representation it is nghiên_cứu_viên. The underscores make the grouping explicit. A reader still sees the syllables, and the software can now identify their span as a single word. The space before that expression and the spaces inside it serve different linguistic purposes even though they originally look alike. Tokenization
This matters when the output of an application is defined over words. A grammatical tag is assigned to the word as a unit. A dependency parser connects that word to another word in the sentence. A system that marks a named entity needs to align its output with the words that make up the name. A pretrained encoder can provide information about any of the syllables it sees in context. The engineering question is how to make the units it encodes correspond to the units that these systems must label or connect.
The authors cite an estimate that 85% of Vietnamese word types contain at least two syllables. A type is a distinct vocabulary item, whereas a token is an occurrence of an item in a particular text. The estimate describes the makeup of the vocabulary. The share of running text occupied by multisyllable words would depend on how frequently individual words occur. The distinction matters here because the paper is arguing that the boundary problem applies to a broad part of the vocabulary, with the example sentence showing what that problem looks like in actual text.
Word segmentation and sub-word encoding solve different problems. Word segmentation identifies which syllables belong together in context. Sub-word encoding then offers a way to represent a word using a shared inventory of pieces. A vocabulary can contain pieces that recur in many words and can represent a word by several entries when a suitable whole-word entry is unavailable. If a pretraining pipeline takes the original written syllables as its starting units, the sub-word procedure receives those syllables separately. If it takes segmented words as its starting units, it can learn pieces from the joined forms. The input boundary determines which stretches of text the sub-word procedure can treat together. Subword units
The choices available before PhoBERT
The paper situates PhoBERT in the work that followed BERT. In this approach, an encoder first learns contextual representations from a large collection of text. The representation at a position can depend on the surrounding sequence, so the same written piece can have different representations in different sentences. A task-specific system can then use those representations to make predictions from annotated examples. The attraction for Vietnamese was the possibility of reusing the same pretrained encoder for several tasks whose labeled datasets were built for different purposes. BERT · Transformer and attention
The authors describe two routes already available for languages beyond English. One was to train a language-specific BERT-style system. They point to efforts including Chinese BERT and the Dutch BERTje. The other was to take an existing multilingual encoder whose pretraining included the language of interest. That route offered a pretrained system without first assembling a separate corpus and running a separate training job for Vietnamese. The paper uses XLM-R as its principal comparison with this multilingual route. Chinese BERT with whole-word masking · BERTje · XLM-R
As the authors describe the resources available at the time, publicly released BERT-based encoders applied sub-word encoding directly to Vietnamese text at the syllable level. A Vietnamese effort called ETNLP had already used word segmentation before byte-pair encoding, or BPE. Its public release supplied 15K BERT-based word embeddings for Vietnamese named entity recognition. An embedding is a numeric representation that another system can use as input. The distinction for researchers was what they could take from the release. A task-specific collection of embeddings supported entity recognition, while a complete pretrained encoder would provide a starting point that could be adapted to new datasets and other kinds of prediction. Word embeddings
The other concern was the amount and nature of the available text. Vietnamese Wikipedia was about 1GB uncompressed. According to the paper, it supplied the Vietnamese portion of the earlier systems it discusses, with XLM-R as the exception among the multilingual systems. The authors question how well an encyclopedia represents language use more generally. A larger collection could add different uses of Vietnamese as well as more instances of familiar ones. News was the additional source they chose, giving the study a corpus with a different composition from a Wikipedia-only collection.
These concerns led to decisions at different points in pretraining. One decision was to collect more Vietnamese text and remove repeated or similar news articles. Another was to give the sub-word procedure input that had already been divided into words. A language-specific system made it possible to design the corpus and the encoding procedure together. It also made the comparison with a multilingual encoder a comparison of complete training setups. To separate the decisions experimentally would require otherwise matched systems in which each choice could be varied on its own.
Why the evaluation spans words and sentences
The paper’s motivation is especially direct for tasks organized around words. Part-of-speech tagging asks which grammatical category a word has in its context. Dependency parsing asks the system to recover the grammatical connections among the words in a sentence. Named entity recognition asks where names occur and what kind of entity each name denotes. These tasks create different predictions from the word representations, so a pattern that appears in all of them has a wider scope than a finding about a particular tagging head.
The natural language inference task adds a different test. The input consists of a premise and a hypothesis, and the task is to decide what relationship holds between them. The prediction belongs to the pair rather than to a particular word position. The authors point out that the problem can be posed with either syllable-level or word-level input. This makes it relevant even though the benchmark does not require a sequence of word-level decisions. It tests whether the Vietnamese encoder is also useful when success depends on processing the meanings of sentences together. Natural language understanding
Together the tasks address two questions in the paper’s design. The word-level benchmarks make the alignment between text units and annotation visible. The inference benchmark tests transfer to a prediction at a different scale. A system that helps on both offers a reusable pretraining resource, whereas the details of any particular gain still have to be read in light of that task’s data, inputs and decision rule.
The method, step by step
From a text collection to encoder input
The pipeline starts with Vietnamese Wikipedia and a collection of articles drawn from a range of Vietnamese news websites and topics. The news collection was 50GB before cleaning. The authors removed similar articles and duplicates to obtain approximately 19GB of news text, which they combined with roughly 1GB of Wikipedia text. The resulting pretraining corpus was 20GB uncompressed. These are sizes of text collections at different stages. They describe the material available to the training pipeline before it is represented as sentences, words or sub-words.
The authors process the combined collection with RDRSegmenter, the segmenter in VnCoreNLP. It divides the text into sentences and identifies word boundaries within them. That produces roughly 145M sentences containing approximately 3B word tokens. Each occurrence of a segmented word counts as a token. A word written with several syllables still contributes a single word occurrence at this stage. The important output of RDRSegmenter is a sequence in which syllables belonging to the same word have been grouped before further encoding.
PhoBERT then uses fastBPE to encode those word tokens with a vocabulary of 64K sub-word types. BPE builds reusable pieces by merging units that recur together. The procedure learns from the form of the text it is given. When the input presents the syllables inside a word as part of the same token, pieces can be learned from that word form. The resulting vocabulary still lets PhoBERT break a word into smaller units. The original word boundary remains available for locating the pieces that belong to that word. The authors report an average of 24.4 sub-word tokens per sentence after this encoding step.
The stages address different units and should be read in that order. Removing duplicate material acts on the text collection. Sentence segmentation determines the initial stretches of text. Word segmentation determines which syllables go together. FastBPE supplies the pieces that become encoder input. The training procedure then packages that input into blocks. In the word-level evaluations, the same distinction between a word and its encoded pieces allows the downstream system to locate the contextual representation it needs for each word.
How PhoBERT prepares text and learns task predictions
The steps in order.
Architecture, blocks and training schedules
PhoBERT base uses the BERT base architecture. PhoBERT large uses the BERT large architecture. The authors take their pretraining procedure from RoBERTa and run it with the RoBERTa implementation in fairseq. Architecture here refers to the encoder that turns input positions into contextual representations. The pretraining procedure refers to how that encoder learns from the corpus. The choice to run Vietnamese word segmentation before sub-word encoding is a data-processing decision made before the resulting sequence reaches the encoder. RoBERTa · fairseq
The paper gives a maximum length of 256 sub-word tokens for the pretraining input. A training block is the unit passed to the encoder, while a sentence is the unit counted after sentence segmentation. The authors estimate how many blocks the corpus produces from the sentence count and the average encoded sentence length.
145M × 24.4 / 256 ≈ 13.8M
Here 145M represents the approximate number of segmented sentences and 24.4 is the mean number of sub-word tokens in a sentence. Multiplication, shown by ×, gives an estimated corpus length in sub-word tokens. The slash / divides that estimate by 256, the maximum number of sub-word tokens in a block. The approximation sign ≈ marks 13.8M as the estimated number of training blocks. M stands for million. The calculation treats the corpus as a volume of sub-word tokens to be divided into blocks. It gives a scale for the training job without specifying the makeup of any particular block.
PhoBERT base trains with a batch size of 1024 and a peak learning rate of 0.0004. The base batch is spread across 4 V100 GPUs with 16GB of memory each. The batch size for PhoBERT large is 512, and its learning rate peaks at 0.0002. A batch groups training inputs for an update, and the learning rate sets the scale of the optimizer’s parameter updates. The peak is the reported high point of the learning rate. Both configurations use Adam for pretraining. Adam
The training schedule runs for 40 epochs, with the learning rate warmed up over 2 epochs. An epoch refers to a pass through the training data. Warmup increases the learning rate during the opening part of training. The authors’ estimate of the number of base updates uses the block estimate, the number of epochs and the base batch size.
13.8M × 40 / 1024 ≈ 540K
Here 13.8M again means the estimated training blocks in the corpus, with M denoting million. The multiplication sign × applies the 40 training passes to that count. The division sign / applies the batch size of 1024, in blocks per update. The sign ≈ denotes an approximation, 540K is the resulting estimate of base training steps, and K means thousand. The paper reports 1.08M training steps for PhoBERT large. Its smaller batch size is the setting that changes the number of updates needed to cover the training blocks over the stated schedule.
The base training run took 3 weeks and the large run followed over 5 weeks. The reported schedules give several ways to understand the scale of the implementation. The corpus size measures the raw material. The block count describes the material in encoder inputs. Batch and epoch settings determine how frequently updates occur. Duration describes how long the authors’ runs took. These quantities serve different purposes when comparing configurations, particularly because base and large differ both in architecture and in the settings used to train them.
The paper also expresses the corpus-size comparison with XLM-R as a ratio. The numerator is the Vietnamese portion of XLM-R’s corpus and the denominator is PhoBERT’s entire Vietnamese corpus.
137 / 20 ≈ 7
Here 137 denotes the 137GB of Vietnamese text in XLM-R’s pretraining data, and 20 denotes the 20GB used in PhoBERT pretraining. The slash / divides one size by the other. The approximation sign ≈ identifies 7 as the authors’ approximate multiplier. The ratio concerns Vietnamese text measured in gigabytes. XLM-R’s full multilingual collection was 2.5TB.
Recovering a word representation from pieces
After pretraining, the encoder returns a contextual representation for each sub-word position. For a benchmark organized around words, the task system needs a way to assign a representation to a word that may cover several positions. The authors use the representation at the first sub-word of that word from the final Transformer layer. The word-to-subword alignment determines which position to read. The word’s other pieces still enter the encoder as part of the sentence.
The distinction is important for interpreting “first subword.” It specifies where the task predictor reads its input, rather than how much of the word is passed to PhoBERT. Suppose the segmented token for “researcher” is encoded with several pieces. The prediction head receives the contextual vector at the position of its opening piece. That vector is produced by the encoder after processing the sequence, which includes the remaining pieces. Position selection occurs after contextual encoding.
For tagging and entity recognition the authors attach a linear prediction layer to the final encoder layer. A linear layer converts the selected vector into scores for the task’s labels. In part-of-speech tagging, the output gives the grammatical category for that word. In entity recognition, the outputs across word positions support identifying the named entities in the sentence. The same principle supplies the input representation for each word in both tasks, while the labeled data and the predictions remain specific to the task.
Dependency parsing needs a representation for each word as well, but the output concerns connections among words. The study uses a reimplementation of the Biaffine parser with its existing optimized default settings. The PhoBERT variant replaces the parser’s pretrained word embedding at each word with the contextual vector selected from PhoBERT. Biaffine still handles the parsing decision. This makes a direct comparison possible between the parser with its ordinary word embeddings and the version given contextual representations. Biaffine dependency parsing
Natural language inference has a pair-level target. The authors word-segment the Vietnamese premise and hypothesis with RDRSegmenter, encode them with BPE, and fine-tune PhoBERT for the inference dataset. The paper specifies how the text is prepared and how the fine-tuning run is managed. Its explicit rule for taking the first sub-word of each word describes the word-level systems. In inference the benchmark checks the final relationship decision for the pair, so there is no corresponding score for each individual word.
Adapting the encoder and selecting a checkpoint
The tagging, entity recognition and inference experiments use the transformers library. The authors fine-tune PhoBERT independently for each dataset and task, using AdamW with a fixed learning rate of 1.e-5 and a batch size of 32. Whereas the earlier schedule describes learning from the pretraining corpus, this schedule describes adaptation with supervision from the task data. The distinct tasks therefore start from shared pretrained versions but end with parameters selected for their own predictions. Transformers · Decoupled Weight Decay Regularization
The fine-tuning schedule allows 30 training epochs and evaluates a checkpoint on the validation set after each epoch. The run stops early after 5 consecutive epochs without improvement. The checkpoint with the best validation performance is used for the final test measurement. A checkpoint records the trained state at that stage of the run. Selecting it with validation data reserves the test examples for assessing the selected system.
The authors state that their scores are averaged over 5 runs with different random seeds. The seed changes the random choices involved in a run. Averaging captures performance across those repetitions, whereas the validation step chooses the checkpoint within a given run. Both details matter when reading a small score separation. The mean describes the reported performance under repeated runs, and the degree of variability would require information about the individual scores or a measure of their spread.
Experiments and results
What the benchmark splits contain
The word-level evaluations follow the VnCoreNLP setup. They use the VLSP 2013 part-of-speech tagging dataset, the VnDT dependency treebank v1.1 and the VLSP 2016 named entity recognition dataset. All supply gold word segmentation. Here “gold” means that the word boundaries come from the benchmark annotations and are treated as the reference for the experiment. Given those boundaries, the systems can be compared as taggers, parsers and entity recognizers without mixing their scores with differences in how they automatically segment the benchmark sentences. Linguistic annotation · Treebanks
The Vietnamese inference data come from XNLI v1.0. The Vietnamese training examples are machine translations of the corresponding English training set. The Vietnamese validation and test sets are manually constructed. The counts in the inference column measure pairs of sentences. Each of the other columns counts individual sentences. These are counts of items in the respective splits, independent of the number of words or sub-words within those items.
| Split | VLSP 2013 tagging | VnDT parsing | VLSP 2016 entity recognition | Vietnamese XNLI |
|---|---|---|---|---|
| Training | 27,000 | 8,977 | 14,861 | 392,702 |
| Validation | 870 | 200 | 2,000 | 2,490 |
| Test | 2,120 | 1,020 | 2,831 | 5,010 |
VnDT supplies the dependency target structure. The parsing setup uses part-of-speech tags predicted by VnCoreNLP. Thus the words in the parsing input have reference segmentation, while the grammatical tags supplied to the parser come from a tagger. This is separate from the part-of-speech experiment, where predicting the tags is the task being measured. For XNLI, the authors use RDRSegmenter to produce the word boundaries they need before BPE. The choice of segmentation on that dataset is part of the applied input pipeline. Evaluation and benchmarks
The four tests also use different units of success. Tagging accuracy is based on the grammatical labels at word positions. Parsing scores check the head of each word, with the labeled version also checking the relation. Entity recognition F1 combines precision and recall for the entity predictions. Inference accuracy checks the relationship assigned to the sentence pair. Each result is interpreted within its own task and test set. An F1 score for names, for instance, describes a different decision problem from a parsing attachment score.
How the multilingual comparison was run
The comparisons include results from earlier papers and new XLM-R runs for the word-level tests. The authors adapt the PhoBERT fine-tuning approach for the XLM-R runs they perform. Since XLM-R processes Vietnamese at the syllable level before its sub-word encoding, the word representation is taken from the first piece of the first syllable belonging to the word. This uses the word boundary supplied by the benchmark to locate a position in the multilingual sequence.
For those XLM-R runs, a validation-set grid search chooses the AdamW learning rate from 5e-6, 1e-5, 2e-5 and 4e-5. The batch-size choices are 16 and 32. A grid search compares the candidate settings on the validation split. This gives XLM-R task-specific tuning of those settings instead of assuming that the fixed PhoBERT values suit it equally well. The inference comparison draws on already reported XLM-R results. In that case the relevant condition is which labeled training data the published systems used.
At base size, PhoBERT has 135M parameters and XLM-R has 250M. At large size, PhoBERT has 370M and XLM-R has 560M. These are total parameter counts for the respective systems, including parameters in an encoder that XLM-R uses across languages. The counts describe their overall size. The benchmark results show which system and task combination performed better, while the counts themselves give a separate comparison of the pretrained resources being adapted.
Part-of-speech tagging
In the VLSP 2013 evaluation, the tagger assigns a grammatical category to each word. Accuracy is the share of word tokens whose category agrees with the reference. The reported test accuracy includes punctuation. Correct segmentation is available as part of the benchmark, allowing the output to be evaluated at the positions defined by the annotation.
Among the earlier systems, RDRPOSTagger scores 95.1% and BiLSTM-CNN-CRF scores 95.4% test accuracy. VnCoreNLP-POS reaches 95.9%. The joint tagging and dependency parsing system jointWPD reaches 96.0%, while jPTDP-v2 scores 95.7%. The earlier results give the comparison a task-specific baseline distinct from the pretrained multilingual systems. They show what established Vietnamese tagging approaches achieved on the same benchmark. BiLSTM-CNN-CRF
The authors’ XLM-R base run reaches 96.2% test accuracy, and their XLM-R large run reaches 96.3%. PhoBERT base scores 96.7%, and PhoBERT large reaches 96.8%. Both Vietnamese encoders lead the multilingual runs in this setup. The result directly concerns the prediction of grammatical categories from word-aligned inputs. It also shows that a linear prediction layer using a selected sub-word representation can support a word-level task even when the encoder internally represents a word with several pieces.
The comparison with jointWPD helps clarify the kind of change being measured. JointWPD combines tagging with dependency parsing, whereas the PhoBERT tagger in this experiment uses its own task-specific prediction layer. A higher score here shows a stronger tagging system under the reported setup. How much of its performance comes from the pretrained vectors, the available corpus or a particular aspect of the input representation is a separate question from the benchmark ranking.
Dependency parsing
In dependency parsing the system predicts the syntactic head associated with a word and the label of the grammatical relationship. The unlabeled attachment score, UAS, credits a word when its predicted head matches the reference. The labeled attachment score, LAS, also requires the relationship label to match. Both metrics in the VnDT experiment are computed over word tokens including punctuation. This explains why the table gives a pair of scores for each parser. UAS counts successful head decisions, and LAS restricts credit to the attachments that are also labeled correctly.
The earlier VnCoreNLP-DEP result on the VnDT test set is 71.38% LAS and 77.35% UAS. jPTDP-v2 reaches 73.12% LAS and 79.63% UAS, while jointWPD reaches 73.90% LAS and 80.12% UAS. The plain Biaffine parser, with the strongest earlier results in the table, gives 74.99% LAS and 81.19% UAS. That last comparison is especially direct because the authors also use Biaffine for the contextual variants.
Biaffine input representations on the VnDT test set, labeled attachment
Biaffine scores highest with PhoBERT base representations.
The numbers
| System or setting | LAS % |
|---|---|
| Biaffine | 74.99 |
| Biaffine with XLM-R base | 76.46 |
| Biaffine with XLM-R large | 75.87 |
| Biaffine with PhoBERT large | 77.85 |
| Biaffine with PhoBERT base (this paper) | 78.77 |
The unlabeled scores put the same systems in the same order. Biaffine with XLM-R base gives 83.10% UAS, and the version with XLM-R large reaches 82.70%. With PhoBERT large the parser reaches 84.32%. PhoBERT base gives the strongest result at 85.22%. The contextual versions all improve on the plain parser’s reported attachment scores. In this setup the useful information extends to choosing heads and to the stricter decision that includes relation labels.
Comparing the encoders through Biaffine also anchors the meaning of the result. The encoder provides the input vectors, while the parser decides what tree to produce from them. The attachment scores measure the result of that combination. Within each family, the base encoder gives the higher result on both metrics. For PhoBERT this makes parsing the task in which its base configuration, instead of its large one, supplies the headline score.
Named entity recognition
The VLSP 2016 test set provides the word boundaries and the entity annotations used to evaluate predictions. The paper reports F1. Precision describes the share of predicted entities that are correct, while recall describes the share of reference entities recovered. F1 combines them, so the score reflects their balance. The paper reports aggregate test results. The numbers support a comparison of the systems’ entity recognition performance across the benchmark.
Older Vietnamese systems provide several comparisons. BiLSTM-CNN-CRF and VnCoreNLP-NER score 88.3% and 88.6% F1 in their earlier configurations. VNER reaches 89.6%. The versions of BiLSTM-CNN-CRF and VnCoreNLP-NER incorporating ETNLP embeddings give 91.1% and 91.3% F1, respectively. This makes it possible to compare with earlier systems that already used BERT-based Vietnamese word information as well as with the systems without those embeddings.
Named entity recognition systems on the VLSP 2016 test set, F1
PhoBERT large leads the entity recognition comparison, followed by PhoBERT base.
The numbers
| System or setting | F1 % |
|---|---|
| BiLSTM-CNN-CRF with ETNLP | 91.1 |
| VnCoreNLP-NER with ETNLP | 91.3 |
| XLM-R base | 92.0 |
| XLM-R large | 92.8 |
| PhoBERT base | 93.6 |
| PhoBERT large (this paper) | 94.7 |
PhoBERT uses the same basic strategy for locating word representations in tagging and entity recognition. Its large version leads its base version on both tasks, but the difference is more visible on the NER test set. The paper gives the NER difference as 1.1 F1 points. Each PhoBERT version also leads the corresponding size of XLM-R, and the base version exceeds the XLM-R large score on this test. These results show that improvements over the earlier public embedding resource also carry through to a comparison with a fully pretrained multilingual encoder.
The ETNLP rows help distinguish the scope of this experiment from a test of whether contextual representations help at all. Earlier task systems already had a way to incorporate a set of BERT-based word embeddings. The PhoBERT results show what the different release and fine-tuning setup can achieve on the same named entity benchmark. The resource used, the models consuming it and the pretraining text differ, so those rows describe the progress of the complete systems.
Vietnamese natural language inference
On XNLI the system classifies the relationship between a premise and a hypothesis. An entailment judgment means the hypothesis follows from the premise. A contradiction judgment means the statements are incompatible, and a neutral judgment leaves the truth of the hypothesis open. Test accuracy measures how frequently the system gives the reference judgment for a Vietnamese sentence pair. The Vietnamese PhoBERT fine-tuning run uses the translated Vietnamese training split and selects checkpoints against the Vietnamese validation split.
The earlier reported test accuracies include 66.4% for BiLSTM-max and 72.0% for mBiLSTM. Multilingual BERT scores 69.5%. XLM MLM+TLM, which incorporates a translation language modeling objective, reaches 76.6%. In the comparison using the monolingual Vietnamese training condition, XLM-R base scores 75.4% and XLM-R large scores 79.7%. PhoBERT base reaches 78.5% and PhoBERT large reaches 80.0%.
Systems on the Vietnamese XNLI test set, accuracy with Vietnamese training data
PhoBERT leads XLM-R at each matched size, and the large systems have the highest scores.
The numbers
| System or setting | accuracy % |
|---|---|
| XLM-R base | 75.4 |
| PhoBERT base | 78.5 |
| XLM-R large | 79.7 |
| PhoBERT large (this paper) | 80.0 |
The inference comparison has an important training-data condition. The paper also gives scores for XLM-R with TRANSLATE-TRAIN-ALL, which combines all 15 XNLI training datasets. Under that protocol the Vietnamese test accuracies are 79.5% for XLM-R base and 83.4% for XLM-R large. The latter is higher than the PhoBERT large result given here. The paper treats that comparison separately because the PhoBERT runs use only the Vietnamese training data for fine-tuning. The result for Vietnamese-only supervision answers which system achieved the stronger reported result under that condition. Fine-tuning with all of the translated training datasets asks a different question about available supervision.
XNLI also illustrates how the base and large designations should be read. PhoBERT leads XLM-R at each corresponding size, and XLM-R large scores above PhoBERT base. A conclusion about the best system at each size is therefore more precise than treating the system names as if they each had a single score. The meaningful comparison identifies both the encoder configuration and the fine-tuning protocol.
Reading the results together
PhoBERT provides the leading word-level scores in the reported comparisons, with its large version leading tagging and named entity recognition and its base version leading parsing. Its large version also provides the highest Vietnamese inference accuracy among the rows for Vietnamese-only fine-tuning. The sequence of results covers output decisions at word, dependency and sentence-pair levels. It therefore supports the usefulness of the pretrained resource beyond a single prediction format.
The comparisons with the earlier task systems and with XLM-R serve different purposes. The earlier scores show that the PhoBERT-based systems raise the benchmark results relative to established Vietnamese tools. XLM-R tests how well the dedicated system fares against a strong multilingual encoder that had access to considerably more Vietnamese text. The authors’ tuning of XLM-R for the word-level tasks makes that comparison informative in practice. The comparison still reflects the joint effects of the respective corpora, tokenizers, architectures and training procedures.
What the ablations show
Where the word representation is read
The paper does not present a systematic ablation of its pretraining design. Its closest component comparison is a preliminary test of how to turn a word’s encoded pieces into a single word representation. The authors compare reading the first piece’s contextual vector with averaging the vectors of all pieces in the word. They report that averaging gives slightly lower performance and adopt the first-piece representation.
For a word represented by a single piece, selecting that vector and averaging over its pieces amount to the same operation. The choices matter when a word occupies several positions. Averaging gives each of those positions a direct contribution to the resulting word vector. First-piece selection gives the downstream system a consistent position to read. That position already carries contextual information from the encoder. The authors’ result supports their choice of readout for the experiments they report.
The preliminary comparison comes without numerical results by task or details about variability. Its evidential value is therefore directional. It explains the implementation choice and gives readers a reason to take the first-piece representation seriously. It leaves open how robust the preference is across datasets, sizes and words of different lengths. In particular, the reported sentence makes it possible to describe the overall finding without assigning an unreported magnitude to any benchmark.
Changing the parser’s input representation
The Biaffine comparison holds onto the parser while changing the word representations it consumes. In its earlier form, the parser uses pretrained word embeddings. In the contextual variants it receives the selected last-layer vectors from an encoder. The PhoBERT base and large variants both improve the test attachment scores over the plain Biaffine result. The XLM-R variants improve the same metrics as well. In this sense, the experiment shows that the parsing system benefits from contextual encoder inputs, with PhoBERT yielding the strongest results among the tested sources.
That comparison operates at the interface between pretraining and parsing. It gives a practical answer about the value of substituting one source of word representations into the parser. Switching from one encoder family to another changes what each vector comes from. Training data, language coverage and sub-word boundaries can all differ. The unmodified parser provides a reference for the value of the combined substitution. An ablation of segmentation would require a more narrowly varied comparison during pretraining.
The multilingual word-level runs add another piece of evidence. Both encoder families are evaluated with a readout aligned to the beginning of an annotated word. For PhoBERT that means the first piece of the token created by word segmentation. For XLM-R it means the first piece of the first syllable in the word. The alignment makes the downstream word predictions comparable, even though the encoders had different units during pretraining. Performance under that common output requirement is what the experiment measures.
Size and the final layer
The PhoBERT size comparison varies the architecture and follows the training settings associated with each version. The larger version performs better for tagging, entity recognition and inference. On VnDT, PhoBERT base produces the stronger result on both attachment metrics. XLM-R also follows the base-ahead-of-large ordering on that parsing benchmark. For a user choosing between the released PhoBERT versions, the measured VnDT result makes base the stronger choice in the exact parsing setup studied.
The authors suggest a possible explanation involving the final Transformer layer. The parser reads only from that layer. Earlier studies cited in the paper investigate how syntactic information appears in contextual representations. If a different layer provides more useful structure for the parser, restricting the readout to the last one could obscure what is available elsewhere in the encoder. The authors propose testing Vietnamese parsing performance with representations from each layer. A structural probe for syntax · What BERT learns about language structure
A layer comparison would address a different question from the observed size ordering. Feeding one layer at a time into the same parser could reveal whether attachment improves when the choice of layer changes. The reported results establish the ordering for the final-layer readout. They do not locate syntactic information in the other layers or identify its distribution across the encoder. The proposed explanation is a hypothesis about where the parser gets its input, with the experiment that could test it left for future work.
What the corpus comparisons reveal
The paper contrasts PhoBERT with earlier systems trained on Vietnamese Wikipedia and with XLM-R, whose Vietnamese text collection was larger than PhoBERT’s. In the first comparison, the authors see the move from the 1GB Vietnamese Wikipedia corpus to the 20GB PhoBERT corpus as consistent with earlier findings on the benefits of more pretraining data. Stronger results against ETNLP in entity recognition and against multilingual BERT and XLM MLM+TLM in inference fit that interpretation.
The XLM-R comparison puts the corpus question in a different setting. PhoBERT achieves the strongest results in the matched benchmark comparisons even though XLM-R has more Vietnamese text. That finding shows that the amount of Vietnamese text, measured in gigabytes, does not on its own determine the ranking of the systems tested. The comparison leaves the relative contributions of data composition, word segmentation and monolingual training unresolved. The corpus sizes describe the evidence the models trained on, while the benchmark outcomes describe how effectively the completed systems use their representations for the selected tasks.
Limitations
Limits identified by the authors
The authors explicitly qualify the Vietnamese inference comparison by training protocol. Their own fine-tuning uses the Vietnamese XNLI training data. They point out the higher XLM-R results obtained when its training combines all XNLI language versions. The reported 80.0% accuracy for PhoBERT large and 79.7% for XLM-R large compare results under the monolingual Vietnamese condition. The 83.4% for XLM-R large is an outcome under the multilingual fine-tuning condition. Which result is relevant depends on what labeled training data the comparison allows.
The authors also leave the source of the parsing size reversal open. They suggest that the parser’s use of the final layer may be part of the explanation and identify a layer-wise evaluation as future work. In the reported experiment, the inputs give the parser access to particular last-layer vectors, so the final attachment scores characterize that interface. The paper does not measure which intermediate layer produces the most useful parsing input.
Another stated concern is the representativeness of Vietnamese Wikipedia. The authors expand beyond it with news, a clear change in both corpus size and composition. Their pretraining data still come from those sources. The paper does not estimate how closely their combined distribution matches Vietnamese use in general. What can be said from the corpus description is that PhoBERT gains a substantial collection of news writing alongside the encyclopedia and that the authors took measures to reduce repetition within that news collection.
The authors interpret their comparison as evidence for dedicated language-specific pretraining. The evidence comes from named Vietnamese benchmarks and a principal multilingual baseline. They also distinguish their evaluation from the French comparison they cite for CamemBERT, which considered XLM-R on French inference. PhoBERT adds a broader set of task types within one language. The scope of the reported evidence is defined by those tasks and the systems chosen for each. CamemBERT
Limits that follow from the experimental setup
Word segmentation is a central design choice, but the paper does not pretrain a syllable-first PhoBERT on the same corpus for direct comparison. Such a comparison would preserve the training text and encoder while changing the boundaries fastBPE receives. Likewise, there is no otherwise matched Wikipedia-only PhoBERT run or comparison using the news collection before article removal. The benchmark scores support the usefulness of the full recipe. A causal claim about the independent effect of segmentation, more news text or deduplication would require a control for the other parts of that recipe.
The comparison with XLM-R also varies more than language coverage. The systems have different parameter counts and use different corpus mixtures and input units. Even when a downstream setup is closely matched, pretraining has already made the encoders different. Strong Vietnamese results from the smaller dedicated system establish that a larger multilingual system with more Vietnamese data can be surpassed under these conditions. They leave open how the systems would compare if a multilingual run used the same Vietnamese word segmentation or if the pretraining corpora were matched.
The word-level datasets make a particular assumption about the input that is consequential for application. Word boundaries are supplied by the benchmark. Tagging, parsing and named entity recognition are consequently evaluated conditional on those boundaries. These experiments say how well the systems perform once the text is segmented according to the reference. An end-to-end deployment that starts from raw text would also face the possibility of segmentation errors. A mistaken boundary could affect which vector the predictor reads and which unit it is expected to label. The paper does not measure that effect on the three word-level benchmarks.
Inference includes automatic segmentation, so its score applies to the pipeline with a segmenter in use. Its labeled training text is translated from English, whereas the validation and test material is manually constructed in Vietnamese. The result is an evaluation under that split design. It cannot establish what would happen with a training collection originally authored in Vietnamese, with a different source of test pairs, or with syllable-level PhoBERT input under otherwise identical pretraining. These are specific changes to the conditions of the benchmark.
Aggregate scores also limit the analysis of where the improvements occur. Parsing LAS and UAS summarize all evaluated word positions. Tagging accuracy averages success across the benchmark’s word tokens, and F1 gives an aggregate entity recognition result. The paper does not break the scores down by the number of syllables in a word, by whether fastBPE kept a word intact, or by individual relation and entity categories. The word-boundary motivation suggests those distinctions as ways to examine the mechanism. The results reported here show performance at the level of entire benchmark splits.
The reported means over 5 seeds help account for randomness in the authors’ runs, but the tables do not give run-level scores, dispersion or significance tests. The reported ordering should therefore be read as an ordering of available scores. This is especially relevant to the comparison between the large inference systems, where the two Vietnamese-only accuracies are close. The XLM-R inference figures also come from an earlier report, whereas the word-level XLM-R scores are the authors’ own runs. The paper supports a benchmark comparison in each case, with different degrees of direct control over how the numbers were produced.
Finally, parameter counts describe size and the pretraining durations describe the authors’ runs. The paper does not benchmark inference speed, memory use or downstream throughput against XLM-R. A smaller parameter count is a concrete property of PhoBERT and matters when choosing which systems to evaluate. The performance evidence here concerns benchmark quality under the reported setups. Operational comparisons would need measurements of the systems as used.
What came after
The citing work spans multilingual pretraining, language-specific encoders, tokenization and particular applications. The titles establish the subjects of these studies and their citation establishes a connection to PhoBERT. Those details alone do not establish that a later study reused its checkpoints, data or Vietnamese segmentation procedure. The clearest connections concern the research questions each work pursues.
Language-specific and multilingual pretraining
mT5 pursues multilingual pretraining in a text-to-text Transformer. That setup expresses inputs and desired outputs as text. Its connection to PhoBERT is the question of what can be learned in a shared multilingual system, with a different output formulation from the task-specific prediction layers used in the Vietnamese study. PhoBERT’s experimental comparison highlights how training for one language can affect a benchmark result. mT5 takes the shared multilingual direction as the subject of the pretrained system itself. mT5
ARBERT and MARBERT take up bidirectional Transformer pretraining for Arabic. Their focus on a particular language makes them part of the same research direction as PhoBERT, where selecting the target language is an explicit design decision. AlcLaM narrows the stated language focus to dialectal Arabic. The studies connect through the scope chosen for pretraining, while the Vietnamese paper’s claim about syllables and word boundaries pertains to the text processing it actually studies. ARBERT & MARBERT · AlcLaM
IndoLEM and IndoBERT bring together a benchmark dataset and a pretrained system for Indonesian NLP. Their title identifies benchmarking and language-specific pretraining as companion contributions. PhoBERT pairs a Vietnamese resource with evaluations on several existing datasets, while the Indonesian work explicitly presents a benchmark alongside its pretrained resource. RoBERT similarly focuses on building a Romanian BERT. Together these works show how the language-specific question appears in projects that differ in the resources they set out to contribute. IndoLEM and IndoBERT · RoBERT
Large-Scale Contextualised Language Modelling for Norwegian takes language-specific contextual representation learning as its subject. A Family of Pretrained Transformer Language Models for Russian addresses the same broad area through a family of Russian pretrained systems. PhoBERT’s base and large versions already make configuration choice relevant to a single-language release. The Russian study’s stated focus is a family of systems, while the Norwegian study foregrounds large-scale contextual modeling for its target language. Large-Scale Contextualised Language Modelling for Norwegian · A Family of Pretrained Transformer Language Models for Russian
Tokenization and language coverage
Language Model Tokenizers Introduce Unfairness Between Languages makes cross-language differences in tokenization the subject of investigation. PhoBERT treats token boundaries as a design choice that can be made with a particular language’s writing system in mind. The tokenizer study places the comparison between languages at the center of its question. The relation between the studies is the role of the tokenizer in determining which units reach the encoder and how consistently that choice serves different languages. Language Model Tokenizers Introduce Unfairness Between Languages
Beyond Multilinguality examines typological limitations of multilingual systems for Meitei. This is another setting in which inclusion in a multilingual system and suitability for a particular language are separate questions. PhoBERT poses that distinction through a direct Vietnamese benchmark comparison between monolingual and multilingual encoders. The Meitei work names typological limitations as its focus, bringing the characteristics of another language into the broader question of multilingual coverage. Beyond Multilinguality
Vietnamese tools and applications
FreeTxt-Vi presents a benchmarked Vietnamese-English toolkit for segmentation, sentiment and summarization. Segmentation is an upstream stage in PhoBERT and an explicit toolkit capability in FreeTxt-Vi. The toolkit also names applications outside the PhoBERT experiments, extending the context in which Vietnamese text processing and evaluation are brought together. ViLegalLM takes Vietnamese legal text as its domain, giving language-specific pretraining a narrower textual focus than PhoBERT’s mixture of Wikipedia and news. FreeTxt-Vi · ViLegalLM
EduPulse focuses on opinion mining in Vietnamese student feedback. It identifies a particular audience and text source for an application, whereas PhoBERT evaluates on general task benchmarks. The work on constructing a silver corpus for weakly supervised Vietnamese event extraction takes up a different problem, the creation of data for extracting events. A silver corpus uses automatically obtained labels in place of full manual annotation. Here the stated method filters relations that draw on evidence across documents. These applications point to settings in which text source, annotation and representation each affect the scope of a Vietnamese NLP experiment. EduPulse · Constructing a Silver Corpus for Weakly Supervised Vietnamese Event Extraction
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Language models & pretraining · 4,145 works
Appears in
Mentioned in articles aboutReading
Cite
Cite as Dat Quoc Nguyen and Anh Tuan Nguyen. 2020. PhoBERT: Pre-trained language models for Vietnamese. Findings of the Association for Computational Linguistics: EMNLP 2020.
@inproceedings{nguyen2020phobert,
title = {{PhoBERT: Pre-trained language models for Vietnamese}},
author = {Dat Quoc Nguyen and Anh Tuan Nguyen},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
year = {2020},
doi = {10.18653/v1/2020.findings-emnlp.92},
url = {https://doi.org/10.18653/v1/2020.findings-emnlp.92}
}References
- Mikel Artetxe and Holger Schwenk. 2019. Massively Multilingual Sentence Embeddings for Zero-Shot Cross-Lingual Transfer and Beyond. TACL, 7:597– 610.
- Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, and Veselin Stoyanov. 2020. Unsupervised Cross-lingual Representation Learning at Scale. In Proceedings of ACL, pages 8440–8451.
- Alexis Conneau and Guillaume Lample. 2019. Cross-lingual Language Model Pretraining. In Proceedings of NeurIPS, pages 7059–7069. OpenAlex ↗ · Scholar ↗
- Alexis Conneau, Ruty Rinott, Guillaume Lample, Holger Schwenk, Ves Stoyanov, Adina Williams, and Samuel R. Bowman. 2018. XNLI: Evaluating cross-lingual sentence representations. In Proceedings of EMNLP, pages 2475–2485. OpenAlex ↗ · Scholar ↗
- Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Ziqing Yang, Shijin Wang, and Guoping Hu. 2019. Pre-Training with Whole Word Masking for Chinese BERT. arXiv preprint, arXiv:1906.08101.
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL, pages 4171– 4186.
- Timothy Dozat and Christopher D. Manning. 2017. Deep Biaffine Attention for Neural Dependency Parsing. In Proceedings of ICLR.
- John Hewitt and Christopher D. Manning. 2019. A structural probe for finding syntax in word representations. In Proceedings of NAACL, pages 4129– 4138.
- Ganesh Jawahar, Benoı̂t Sagot, and Djamé Seddah. 2019. What does BERT learn about the structure of language? In Proceedings of ACL, pages 3651– 3657.
- Diederik P. Kingma and Jimmy Ba. 2014. Adam: A Method for Stochastic Optimization. arXiv preprint, arXiv:1412.6980.
- Taku Kudo and John Richardson. 2018. Sentence-Piece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing. In Proceedings of EMNLP: System Demonstrations, pages 66–71. OpenAlex ↗ · Scholar ↗
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv preprint, arXiv:1907.11692.
- Ilya Loshchilov and Frank Hutter. 2019. Decoupled Weight Decay Regularization. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
- Xuezhe Ma and Eduard Hovy. 2016. End-to-end sequence labeling via bi-directional LSTM-CNNs-CRF. In Proceedings of ACL, pages 1064–1074.
- Xuezhe Ma, Zecong Hu, Jingzhou Liu, Nanyun Peng, Graham Neubig, and Eduard Hovy. 2018. Stack-Pointer Networks for Dependency Parsing. In Proceedings of ACL, pages 1403–1414. OpenAlex ↗ · Scholar ↗
- Louis Martin, Benjamin Muller, Pedro Javier Ortiz Suárez, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah, and Benoı̂t Sagot. 2020. CamemBERT: a Tasty French Language Model. In Proceedings of ACL, pages 7203– 7219.
- Dat Quoc Nguyen. 2019. A neural joint model for Vietnamese word segmentation, POS tagging and dependency parsing. In Proceedings of ALTA, pages 28– 34. OpenAlex ↗ · Scholar ↗
- Dat Quoc Nguyen, Dai Quoc Nguyen, Dang Duc Pham, and Son Bao Pham. 2014a. RDRPOSTagger: A Ripple Down Rules-based Part-Of-Speech Tagger. In Proceedings of the Demonstrations at EACL, pages 17–20. OpenAlex ↗ · Scholar ↗
- Dat Quoc Nguyen, Dai Quoc Nguyen, Son Bao Pham, Phuong-Thai Nguyen, and Minh Le Nguyen. 2014b. From Treebank Conversion to Automatic Dependency Parsing for Vietnamese. In Proceedings of NLDB, pages 196–207. OpenAlex ↗ · Scholar ↗
- Dat Quoc Nguyen, Dai Quoc Nguyen, Thanh Vu, Mark Dras, and Mark Johnson. 2018. A Fast and Accurate Vietnamese Word Segmenter. In Proceedings of LREC, pages 2582–2587. OpenAlex ↗ · Scholar ↗
- Dat Quoc Nguyen and Karin Verspoor. 2018. An improved neural network model for joint POS tagging and dependency parsing. In Proceedings of the CoNLL 2018 Shared Task, pages 81–91. OpenAlex ↗ · Scholar ↗
- Dat Quoc Nguyen, Thanh Vu, Dai Quoc Nguyen, Mark Dras, and Mark Johnson. 2017. From word segmentation to POS tagging for Vietnamese. In Proceedings of ALTA, pages 108–113. OpenAlex ↗ · Scholar ↗
- Huyen Nguyen, Quyen Ngo, Luong Vu, Vu Tran, and Hien Nguyen. 2019a. VLSP Shared Task: Named Entity Recognition. Journal of Computer Science and Cybernetics, 34(4):283–294. OpenAlex ↗ · Scholar ↗
- Kim Anh Nguyen, Ngan Dong, and Cam-Tu Nguyen. 2019b. Attentive Neural Network for Named Entity Recognition in Vietnamese. In Proceedings of RIVF. OpenAlex ↗ · Scholar ↗
- Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. 2019. fairseq: A Fast, Extensible Toolkit for Sequence Modeling. In Proceedings of NAACL-HLT 2019: Demonstrations, pages 48–53.
- Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural Machine Translation of Rare Words with Subword Units. In Proceedings of ACL, pages 1715–1725.
- Dinh Quang Thang, Le Hong Phuong, Nguyen Thi Minh Huyen, Nguyen Cam Tu, Mathias Rossignol, and Vu Xuan Luong. 2008. Word segmentation of Vietnamese texts: a comparison of approaches. In Proceedings of LREC, pages 1933–1936. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is All you Need. In Advances in Neural Information Processing Systems 30, pages 5998–6008.
- Wietse de Vries, Andreas van Cranenburgh, Arianna Bisazza, Tommaso Caselli, Gertjan van Noord, and Malvina Nissim. 2019. BERTje: A Dutch BERT Model. arXiv preprint, arXiv:1912.09582.
- Thanh Vu, Dat Quoc Nguyen, Dai Quoc Nguyen, Mark Dras, and Mark Johnson. 2018. VnCoreNLP: A Vietnamese Natural Language Processing Toolkit. In Proceedings of NAACL: Demonstrations, pages 56–60. OpenAlex ↗ · Scholar ↗
- Xuan-Son Vu, Thanh Vu, Son Tran, and Lili Jiang. 2019. ETNLP: A visual-aided systematic approach to select pre-trained embeddings for a downstream task. In Proceedings of RANLP, pages 1285–1294. OpenAlex ↗ · Scholar ↗
- Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In Proceedings of NAACL, pages 1112–1122.
- Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier-ric Cistac, Tim Rault, R’emi Louf, Morgan Funtowicz, and Jamie Brew. 2019. HuggingFace’s Transformers: State-of-the-art Natural Language Processing. arXiv preprint, arXiv:1910.03771.
- Shijie Wu and Mark Dredze. 2019. Beto, bentz, becas: The surprising cross-lingual effectiveness of BERT. In Proceedings of EMNLP-IJCNLP, pages 833–844.
This page in Markdown https://md.research.elamur.ai/free/en/papers/nguyen-2020-phobert-pre-trained-language-models/