Elamur Research

BARTpho: Pre-trained Sequence-to-Sequence Models for Vietnamese

Paper · 2022 · Nguyen Luong Tran, Duong Le and Dat Quoc Nguyen

Summary

A space in Vietnamese writing can separate syllables inside a word as well as mark the boundary between words. That makes an apparently simple decision consequential for systems that read and write Vietnamese. Should they begin with the syllables visible in the text, or should they first identify which syllables belong together? BARTpho gives the authors a way to study that question while addressing a larger gap. As far as they knew, there was no publicly available, large-scale Vietnamese-only system pretrained to take in a text sequence and generate another. Such a system could learn from ordinary Vietnamese text before being adapted to tasks that require a written response.

BARTpho adapts BART, a sequence-to-sequence system that learns by reconstructing damaged text. The authors hide spans of text and shuffle sentences, then train the system to generate the original passage. They release BARTphosyllable and BARTphoword, which use the same basic architecture and reconstruction procedure. BARTphosyllable starts from the syllable-level form of its training corpus. BARTphoword starts from a version in which an automatic segmenter has marked words. Both use vocabularies of smaller text units, so the choice concerns which boundaries the text presents before it is broken into units the system can process. /free/en/concepts/subword-tokenization/

The main test is Vietnamese news summarization. The authors train each version to generate an abstract from the body of a news article and compare it with mBART, a multilingual system from the same architectural family. After removing duplicate articles from the benchmark, both BARTpho versions beat mBART on automatic measures of overlap with the reference abstracts. Vietnamese readers also prefer BARTpho’s outputs in a comparison where the system identities are hidden. On the original test split, the authors report a new best ROUGE-L result among the published comparisons they consider. That historical comparison uses a split with articles shared between training and test, which is why the authors also report the separately filtered evaluation.

The authors also test whether BARTpho can restore capitalization and punctuation to Vietnamese text stripped of those features to resemble an automatic transcript. Both versions improve on mBART in capitalization F1 and overall punctuation F1, although mBART has a small lead for the Period category. BARTphoword comes out ahead of BARTphosyllable across the tasks overall. The result favors the word-segmented configuration as tested. Its vocabulary, parameter count and initialization also differ from the syllable version, so the experiment leaves open how much of its advantage comes from word boundaries alone.

Deep dive: BARTpho: Pre-trained Sequence-to-Sequence Models for Vietnamese

BARTpho adapts BART to Vietnamese and tests how syllable and word segmentation affect news summarization, capitalization, and punctuation. · about 31 minutes to read

The problem and its context

Why generating Vietnamese text called for a different starting point

The paper begins with a distinction between understanding an input and writing an output. A system can use a passage to make a prediction about what the passage means or what it contains. A summarizer has a different job. It must produce a new sequence, decide what to say next and keep generating until it has expressed the material it selects. The paper treats those jobs as different requirements for pretraining, the stage in which a system acquires reusable capabilities before it is adapted to an individual task. Language models & pretraining

BERT is the authors’ example of a successful starting point for understanding tasks. In masked pretraining, parts of the text are hidden and the predictor can use text on both sides of a missing position. This bidirectional access helps when the text to be interpreted is already in front of the system. A generator can also benefit from reading its entire input, but the rest of its own answer is still unwritten while it produces the next part. The paper points to that difference when explaining why it can be difficult to apply a bidirectional predictor directly to generation.

A sequence-to-sequence design gives reading and writing their own components. An encoder represents a supplied sequence, and a decoder uses that representation to produce an output sequence. This setup fits tasks with different relationships between input and output. In a news abstract, much of the input can be left behind as the decoder concentrates on the central information. In transcript formatting, most of the wording should carry through, with changes around capitalization and punctuation. The same general architecture can receive training for either job because the task specifies the output through examples. Text generation

The authors describe the success of pretrained sequence-to-sequence systems up to that point as concentrated largely in English. For work in another language, they identify a choice. A researcher can adapt a multilingual system that already includes the language, or pre-train a dedicated system with an existing architecture. Multilingual pretraining gives the researcher a shared starting point. Dedicated pretraining gives the researcher direct control over the language used for training and the way its text is represented. The paper cites earlier evidence from Vietnamese that a language-specific approach could be competitive with multilingual alternatives. Multilingual & cross-lingual NLP

What earlier Vietnamese systems made possible

Vietnamese already had substantial language-specific pretraining for understanding. The authors describe PhoBERT as the first public, large-scale Vietnamese-only language model. It learned from a 20GB word-segmented corpus through the RoBERTa approach, which revises the way BERT is trained. The paper credits PhoBERT with helping achieve strong downstream results on several Vietnamese understanding tasks. Its corpus and text processing also give BARTpho a way to start from a substantial body of Vietnamese that already has word boundaries marked.

The authors also describe viBERT and vELECTRA, public Vietnamese systems whose training corpora were represented at the syllable level. They follow the BERT and ELECTRA pretraining approaches respectively. That history matters because the choice between word and syllable representation was already present in Vietnamese research. BARTpho carries the comparison into a design with a decoder that has learned to generate text during pretraining.

Earlier work had also found a way to use existing checkpoints for sequence generation. A checkpoint is a saved set of learned parameter values. The Vietnamese summarization study discussed by the authors follows prior work that repurposed such checkpoints and reports that PhoBERT was more effective than viBERT for abstractive summarization. An abstractive system can write a condensed version of an article in newly assembled language. The earlier study established a route from understanding-oriented checkpoints to that task. BARTpho investigates a route in which reconstruction already trains the encoder and decoder to work together before they see news articles paired with abstracts.

The authors choose BART because they regard it as strong on downstream tasks in published comparisons where the competitors used broadly similar amounts of training data and had roughly comparable parameter counts. They also point to BART-based work for French and Chinese as precedents for language-specific pretraining with this architecture. Their contribution applies the architecture to Vietnamese and makes an explicit choice about how syllables should be grouped before training. The multilingual BART variant, mBART, supplies a particularly relevant comparator because its basic training approach is close to BARTpho’s.

Why spaces do not settle the question of words

In written Vietnamese, a space is compatible with a word boundary or with the continuation of a word across syllables. The paper cites earlier work estimating that 85% of Vietnamese word types contain at least two syllables. The figure concerns distinct words, so it describes the vocabulary of the language. It leaves open how frequently words of each kind occur in a given set of articles. The underlying point applies whenever a text processing system takes whitespace as evidence about where a unit ends. Tokenization & segmentation

The paper illustrates the issue with an expression meaning “We are researchers.” The ordinary spelling presents 7 syllables, while the segmented representation marks 4 words. In the term for a researcher, the syllables written as “nghiên cứu viên” can be grouped as “nghiên_cứu_viên.” The underscores tell a text processing system which spaces are internal to the word. A segmenter therefore adds an interpretation of the text before the system learns or applies its inventory of pieces. That choice is meaningful even when a later stage divides the word into smaller units.

The multilingual systems discussed by the authors apply their sub-word processing directly to Vietnamese in its syllable-level form. A generator trained that way can learn relationships among syllables from their context. Explicit segmentation offers a different source of information by supplying a proposed word boundary in advance. The question in BARTpho is whether that information helps within a practical Vietnamese pretraining and adaptation pipeline. Answering it requires paying attention to the stage at which segmentation happens and the way each output is converted back to ordinary text for evaluation.

The method, step by step

From source text to a reconstruction exercise

BARTpho learns from passages of Vietnamese before it sees examples labeled for a downstream task. Each original passage supplies the answer for its own training exercise. The training procedure prepares a version whose words or sentences have been disrupted, sends that version to the encoder, and asks the decoder to reproduce the intact passage. This is the sense in which BART is a denoising autoencoder. The “noise” is a deliberate change in the input, and the output is the text as it stood before that change.

Consider a passage with a phrase missing and its sentences out of sequence. Reconstructing it can require attention to the surviving words around the missing phrase and to connections among sentences. The encoder processes what remains, including the marks that indicate missing text. The decoder then produces the original sequence in order. Every reconstruction has a definite target because the training procedure still has the intact passage. Ordinary text can therefore provide supervision without an annotator writing an answer for every input.

BARTpho pretraining from Vietnamese text to reconstruction

The steps in order.

BARTpho pretraining from Vietnamese text to reconstructionStep 1: Prepare word-segmented or syllable-level Vietnamese text1. Prepare word-segmented or syllable-level Vietnamese textStep 2: Convert text into vocabulary units2. Convert text into vocabulary unitsStep 3: Group consecutive sentences into blocks3. Group consecutive sentences into blocksStep 4: Mask spans and shuffle sentences4. Mask spans and shuffle sentencesStep 5: Encode the corrupted block5. Encode the corrupted blockStep 6: Generate the original sequence with the decoder6. Generate the original sequence with the decoderStep 7: Update parameters using reconstruction loss7. Update parameters using reconstruction loss

The procedure links input processing with the output the decoder learns to write. In the word configuration, the clean target has the same word-based representation used to prepare the corrupted input. In the syllable configuration, the reconstruction takes place in the units produced from syllable-level text. Both routes teach the system to write in the representation it will later use for downstream generation. When a downstream evaluation expects ordinary Vietnamese, the additional word-boundary formatting can be removed before a score is calculated.

How the two vocabularies are built into the pipeline

BARTphoword uses the PhoBERT pretraining corpus in its word-segmented form. The authors describe the corpus as 20GB of uncompressed text and report about 145M sentences that have been segmented automatically. The automatic segmentation has already decided where to join the syllables that make up a word. The input to the next stage therefore differs from ordinary whitespace-separated Vietnamese, even though it represents the same underlying text.

BARTphoword also inherits PhoBERT’s tokenizer. It uses byte-pair encoding, abbreviated BPE, to divide the segmented text into units drawn from a vocabulary of 64K sub-word types. A tokenizer maps written forms to entries in an inventory the system can process. Sub-word processing allows a sequence of entries to represent a word even when the word itself has no single entry. In this configuration, it takes place after the text has already been organized into words. With this vocabulary and the shared BART architecture, BARTphoword has about 420M parameters, the learned values adjusted during training.

BARTphosyllable takes the detokenized version of the PhoBERT corpus. Detokenization here restores the syllable-level form of the text from the version with explicit word segmentation. The authors describe that corpus as containing about 4B syllable tokens. That count measures occurrences of syllables in the corpus. The word configuration’s sentence count describes a different unit of the same underlying training material, so the counts provide different views of its scale.

For the syllable configuration, the authors use the pretrained SentencePiece tokenizer from XLM-RoBERTa, which is also used in mBART. In this route, the tokenizer divides text into sub-syllable units. BARTphosyllable uses the 40K most frequent types for its vocabulary and has about 396M parameters. The model name refers to the form of the text entering the tokenizer. A written syllable can still be represented by smaller pieces, just as a word can be represented by smaller pieces in BARTphoword.

Starting from related versions of the same corpus makes the comparison more informative than one based on unrelated collections of Vietnamese text. It puts the emphasis on how the text is represented and how the resulting systems are trained. Still, the representation changes at several points. The syllable route and the word route have different tokenizers and inventories. They can expose different sequences of units to the encoder, and their decoders make predictions over different sets of possible output units. Their parameter counts also differ. Those design choices define the two systems the authors actually compare.

What the encoder and decoder do

Both configurations use the large BART design, with 12 encoder layers and 12 decoder layers. A layer applies a learned transformation to the representations passed into it. In the encoder, successive layers let the system build a representation of the corrupted text. In the decoder, successive layers help form a prediction about the output, drawing on the encoded input and on the output generated so far. The architecture is a Transformer, whose attention operations allow positions in a sequence to draw information from other positions.

The authors follow BART in choosing GeLU as the activation function. An activation is a transformation applied inside the network that allows its layers to express more than a sequence of linear changes. They also give BART’s general parameter initialization as a normal distribution.

𝒩(0, 0.02)

The symbol 𝒩 denotes a normal distribution. The parentheses enclose its settings, with 0 as the center and 0.02 as the scale used for initialization. The comma separates those settings. This expression describes the general BART setup. The authors make a separate choice for BARTphosyllable by using the learned weights of mBART as its starting point.

BARTpho also follows mBART in adding layer normalization at the top of the encoder and at the top of the decoder. A normalization layer adjusts the scale of the representations passed onward. In architectural terms, these additions sit above the stacks on both sides. They belong to the common design of the BARTpho variants, independent of which tokenizer provides the input.

How text is damaged and reconstructed

Text infilling removes a span of adjacent units and inserts a special mask in its place. The mask marks the location of missing material. Because the procedure inserts a single marker for a span, the visible input gives the decoder no direct count of how many units were removed there. Reconstructing the passage involves learning what belongs in the gap and how much text to generate before continuing with the surviving material.

The length of a span is drawn using the Poisson setting reported by the authors.

λ = 3.5

The Greek letter λ is the parameter of the Poisson distribution used to draw span lengths. The equals sign assigns it the value 3.5. The draw determines the length of an individual span, so different gaps can have different lengths. The single mask represents each resulting gap regardless of its original length.

Sentence permutation changes order. The method groups consecutive sentences into blocks of 512 tokens, then randomizes the order of sentences within each block. The sentence ordering in the reconstruction target remains the original one. Thus a block can still contain much of the original language while presenting the relationships between sentences in a disrupted order. Infilling presents a problem of recovering missing content, and permutation presents a problem of restoring the arrangement of content that is still present. The training target combines those demands in one original sequence.

The paper describes the objective as cross-entropy between the decoder’s predictions and the original text. As the decoder is trained to recover the target, its predictions assign probabilities to possible next units. Cross-entropy penalizes a prediction when the unit found in the original passage receives low probability. An optimization step then changes the system’s parameters to improve predictions of that kind across training examples. Since both noise procedures lead to the same target, the decoder receives a single reconstruction objective.

Reconstruction supplies a common starting exercise for both downstream uses. In summarization, the decoder still needs to produce coherent text from an encoded passage, but training on articles and abstracts changes what counts as the target. In formatting restoration, the output is closer to the input, but the relevant corruption is the removal of case and punctuation. The later task examples teach those specific mappings. A pretraining objective based on reconstruction makes the generator available to learn them.

How the authors train and release BARTpho

The authors use the BART denoising implementation in fairseq and optimize with Adam, a method for updating parameters from the training objective. A pretraining batch includes 512 sequence blocks distributed across 8 A100 GPUs with 40GB on each GPU. The count of blocks per batch and the token count used to construct a sentence block describe different parts of the setup. The first says how many blocks contribute to a training batch. The second describes the size of the text blocks prepared for sentence permutation. GPU & parallel computing

The peak learning rate is 0.0001. The learning rate governs the size of parameter updates, and the authors warm it up for 1.5 epochs, raising it over the initial part of training. An epoch is a pass through the training collection. Each BARTpho configuration is trained for 15 epochs, with the paper reporting about 6 days for each run. For BARTphosyllable, the starting weights come from mBART. Its training is therefore a further period of learning with a Vietnamese-only corpus after multilingual pretraining. This starting point matters later when the results are used to assess language specialization.

The authors publicly release both versions for use with fairseq and transformers. They illustrate feature extraction with transformers. In that use, the system processes an input to produce internal representations that can be used by another component. The illustration shows how the input differs between the syllable and word configurations. The experiments go on to use the decoder as well, adapting the entire text-to-text procedure through fine-tuning on paired examples.

Experiments and results

The news benchmark and the problem of repeated articles

The main evaluation uses VNDS, a single-document news summarization dataset. Each example pairs the body of a news article with a news abstract. The body serves as the input, and the abstract is the reference summary, the text against which an automatic evaluator compares the generated output. Using an existing abstract gives the task a practical target. It also means that the automatic measure rewards resemblance to an editorial choice already made for that article.

VNDS originally has 150,704 articles. Its original allocations are 105,418 for training, 22,642 for validation and 22,644 for test. The training split supplies examples for changing the parameters. The validation split gives the authors a place to choose among settings and saved checkpoints. The test split is where they assess the selected system. This division works as intended when an article reserved for assessment has been kept out of the material used to fit it.

The authors discover duplicates within and across the splits. They first remove repeated copies inside each split. When the same article occurs in training and in a held-out split, they remove it from training. When validation and test share an article, they remove it from validation. This order gives priority to keeping a unique test article available as a test example. The filtered splits contain 99,134 articles for training, 22,184 for validation and 22,498 for test.

Duplicate removal addresses more than the possibility that a test article appears in the training collection. Copies inside an evaluation split can also give some articles more influence than they would have if each article appeared once. Copies across validation and test can make a test item contribute indirectly to checkpoint selection. The filtering procedure responds to each problem by specifying which split retains the article. It also changes the composition of the benchmark. Performance on the filtered test should therefore be compared with other results on that filtered test, while the original split serves a separate historical comparison.

The versions of the filtered data differ at the input and output preparation stage. BARTphosyllable and mBART are adapted on detokenized data. BARTphoword receives the automatically word-segmented form. This preserves the kind of input each configuration is set up to handle. For scoring, BARTphoword’s generated output is detokenized so that the extra formatting used to identify words does not by itself change the overlap with the news abstract.

How the comparison is kept consistent

The main baseline is mBART, a multilingual BART variant pretrained on Common Crawl text spanning 25 languages. Its corpus includes 137 GB of Vietnamese represented at the syllable level. The baseline gives the authors an already pretrained encoder and decoder with substantial Vietnamese exposure. Comparing with it addresses how useful a dedicated Vietnamese training stage can be when an available multilingual system already supports the language.

The authors cast summarization as monolingual translation. Both sequences are Vietnamese, and a full article is mapped to its abstract. During adaptation, the systems learn to generate the abstract using article–abstract pairs. The setup gives each system the same task and the same strategy for selecting training settings. Its tokenizer can still change how many tokens are needed for a given passage, so a shared budget in tokens supplies a common computational setting without enforcing identical representations of the document.

For summarization fine-tuning, the batch limit is 4096 tokens. The authors use Adam and train for 20 epochs. They try initial learning rates of 1e-5, 2e-5, 3e-5 and 5e-5. This search gives the systems a shared range of update scales. The authors evaluate each system 4 times per epoch and choose the checkpoint with the highest validation ROUGE-L. That checkpoint is then used on the test split. The dense checking schedule gives the selection procedure several chances within an epoch to see how the generator is doing.

Outputs are generated with beam search using a beam size of 4. In beam search, the decoder maintains a set of candidate continuations as it writes, comparing their scores before retaining candidates for the next step. Beam size fixes how many such alternatives the search carries forward. Using the same size for each system makes the decoding procedure part of the shared comparison. It also means that the results concern the trained systems as used with that decoding setting.

What the automatic and human summary evaluations measure

The automatic measures are case-sensitive ROUGE scores expressed as percentages on detokenized text. ROUGE offers ways to assess how much a generated abstract shares with the reference. ROUGE-1 tracks overlap in individual units, ROUGE-2 tracks overlap in adjacent pairs and ROUGE-L uses a longest common subsequence. A common subsequence preserves order while allowing intervening material, so ROUGE-L can reward a shared sequence of wording even where some material has been inserted or dropped. Case sensitivity means that capitalization can affect the match.

On VNDS with duplicates removed, both BARTpho configurations score above mBART on ROUGE-1, ROUGE-2 and ROUGE-L on validation and test. The authors report statistical significance for the differences between mBART and each BARTpho version in the duplicate-filtered comparison, with this threshold.

p < 0.05

Here p is the p-value for a reported score comparison, and the less-than sign places it below the threshold of 0.05. The p-value concerns the statistical evidence for a difference under the test used. It does not supply the size of the improvement or tell a reader which parts of a generated abstract improved.

The authors also ask Vietnamese readers to choose between the generated summaries. They randomly sample 100 eligible article inputs from the filtered test set. An article is eligible when the outputs from the three systems are all distinct as strings. For each sampled article, the output order is shuffled and identifying information about the systems is hidden. The readers judge competing versions of the abstract for the same article, so their choices reflect differences between the outputs under a common source.

Two external Vietnamese annotators each choose the summary they regard as best. The paper reports a Cohen’s kappa of 0.61 for their agreement. Kappa measures agreement while accounting for agreement expected by chance. The value refers to the annotators’ agreement in choosing among summaries, as opposed to a rating of any individual system. Where the readers disagree, a co-author joins them in a discussion to settle the judgment. The co-author also takes part without knowing which system wrote each output.

The final human judgments favor BARTpho over mBART. This provides a comparison based on readers’ preferences alongside the comparison based on wording overlap. Those measures answer related questions. The automatic evaluation checks agreement with a specific news abstract across a held-out split. The human exercise asks which candidate readers prefer when they see distinct summaries for the same article. The eligibility rule focuses the exercise on cases where readers have alternatives to judge. Its outcome describes those cases and the annotators’ final choices.

How the result compares with earlier published scores

For a comparison with prior reports, the authors also adapt their systems on the original VNDS split. They use the same hyper-parameter tuning strategy and assess the result on the original test set. The earlier best score they identify is PhoBERT2PhoBERT’s 39.44 ROUGE-L on that original test. The authors report that BARTphosyllable exceeds it by 0.2 points and BARTphoword by 0.7 points. They also report that BARTpho surpasses the multilingual mT5 in the summarization comparison.

The earlier score and the reported margins establish the historical ranking under that benchmark setup. The paper explicitly says that 1466 training articles also appear in the original test set. The conditions that make a published number directly comparable are therefore also the conditions that weaken it as a measure of performance on unseen articles. The filtered experiment supplies the stronger evidence for the head-to-head comparison with mBART. The original experiment establishes where BARTpho falls relative to numbers published on the earlier split.

The paper puts this result in the context of pretraining data size. Its comparison between the Vietnamese text volumes used by mBART and BARTpho is written as follows.

137 / 20 ≈ 7

Here 137 is the volume in gigabytes of the Vietnamese material in mBART’s pretraining corpus. The number 20 is the volume of the uncompressed Vietnamese corpus used for BARTpho. The slash means division, and the approximation sign indicates that 7 is the authors’ approximate multiple. The comparison concerns the size of the Vietnamese portion of pretraining, independent of the additional languages in mBART’s corpus.

The paper also compares the volume of Vietnamese in mT5’s pretraining set with BARTpho’s corpus. It describes the Vietnamese part of mC4 as 79M Common Crawl pages containing 116B syllable tokens.

116 / 4 = 29

The numerator 116 denotes the mT5 corpus count in billions of Vietnamese syllable tokens. The denominator 4 refers to BARTpho’s corresponding corpus count in the same units, which the paper describes as approximate. The slash denotes division, and the equals sign gives the paper’s reported multiple of 29. Here the basis of the comparison is a count of syllable tokens. The earlier comparison with mBART uses text volume in gigabytes.

These figures establish that strong Vietnamese summarization scores can come from a dedicated training pipeline with a smaller stated Vietnamese corpus. Corpus size is only one property of the comparison. The language mix, preparation of the data and training history differ as well. In particular, BARTphosyllable starts from mBART, so its corpus size for Vietnamese-only pretraining refers to a further training phase. Its learned starting weights already reflect the earlier multilingual phase.

How the authors simulate transcript formatting

The other experiments address a different kind of speech processing. An automatic speech recognition transcript can arrive in lower-case and without punctuation. A reader then has less guidance about where sentences start, which phrases belong together and which expressions are names. The paper also points to the practical consequences for later components trained on formatted text, including named entity recognition and machine translation. The experiment concerns the text that enters such a pipeline after recognition.

Earlier approaches described in the paper include sequence tagging and sequence generation. A tagger assigns labels to positions in source text, such as a label for a mark that follows a word. The approach tested here gives a generator the plain sequence and trains it to produce the formatted sequence. This lets casing and punctuation be represented directly in the target instead of requiring the output to take the form of position labels. Capitalization can change the appearance of a name while punctuation can alter where adjacent words are read as belonging together.

The authors build the benchmark from PhoST because they lack a Vietnamese benchmark for this pair of restoration tasks. The source provides 327,370 training examples, 1933 validation examples and 1976 test examples. Each formatted example supplies a target. The authors turn it into a simulated input by lowercasing the text and stripping punctuation, while retaining standard formatting for numbers and currencies. The setup therefore controls how the formatting disappears. It is a test of recovering written cues from text whose wording is already available to the system.

The punctuation evaluation groups marks into categories. Comma includes the comma, colon and dash. Period includes the full stop, exclamation mark and semicolon. Question is reserved for the question mark. The groups establish what the labels mean when the authors report F1. For instance, an advantage in the Period category describes performance across the marks assigned to that group. The paper gives the grouping as part of the evaluation design, so the scores should be read at that level of detail.

The authors otherwise follow their summarization fine-tuning procedure, with a change to checkpoint selection. For restoration they choose the checkpoint with the lowest validation loss. They then apply it on the test split and report F1. To prepare data for BARTphoword, they use RDRSegmenter from VnCoreNLP to mark Vietnamese words. They detokenize the generated output before scoring, which again lets the comparison operate on the formatted text rather than on the word-boundary notation internal to a particular configuration.

What improves in capitalization and punctuation

F1 combines precision and recall. Precision asks how frequently a predicted restoration matches the reference, while recall asks how much of the reference restoration the system recovers. A high score calls for both restraint about changes that should not be made and coverage of the changes that should be made. The authors report restoration F1 as percentages. The changes in the chart are the reported absolute gains on capitalization F1, in percentage points, measured against the same mBART baseline.

Capitalization F1 gains over mBART on the PhoST-derived test set

The word-segmented version has the larger gain over mBART.

Capitalization F1 gains over mBART on the PhoST-derived test setBARTphosyllable: 0.7BARTphosyllable0.7BARTphoword (this paper): 1.1BARTphoword (this paper)1.1
The numbers
System or settingF1 percentage points
BARTphosyllable0.7
BARTphoword (this paper)1.1

On the PhoST-derived test split, the authors report an absolute capitalization F1 gain over mBART of 1.1% for BARTphoword and 0.7% for BARTphosyllable. The same reference baseline makes the two gains directly comparable. The chart presents their sizes without treating the gains as the systems’ absolute scores. This is the clearest numerical comparison for the capitalization task because the paper states those absolute margins in its discussion.

For punctuation, both BARTpho versions outperform mBART on Comma and Question. The authors describe the gap for Question as substantial. Period is the exception to the direction of the other categories. On the restoration test split, mBART scores 0.14% higher in Period F1 than BARTphoword and 0.4% higher than BARTphosyllable. BARTphoword has the highest overall punctuation F1, and the authors report an overall advantage for BARTpho over mBART. They also say that the validation results show a similar pattern.

The punctuation result is more informative when read by category as well as in aggregate. The overall score answers which system performs best across the restoration evaluation as the authors combine it. The separate categories reveal where that ordering changes. In this case, a system that leads overall can still lose on the group containing full stops and related marks. The capitalization result and the punctuation result together show that the same pretraining family adapts to several formatting decisions, while the behavior of individual punctuation groups remains uneven.

What the ablations show

The paper provides no ablation results from varying a single BARTpho component with all other components held constant. It offers comparisons between complete configurations, evaluations on the original and filtered news splits, automatic and human judgments of summaries, and punctuation results broken down by category. These comparisons help identify where an effect appears and how widely it recurs. They address different sources of uncertainty from an experiment designed to isolate a single training choice.

What the word and syllable comparison establishes

The comparison closest to a test of segmentation is BARTphoword against BARTphosyllable. Both use the large BART architecture and its denoising objective. Their training texts trace back to the same PhoBERT corpus, with one starting from its word-segmented version and the other from its detokenized form. The paper finds the word configuration ahead on Vietnamese summarization and on the overall measures for the two restoration tasks. The result recurs across tasks where the generator is asked to make very different changes to the input.

That recurrence matters because there are several possible places for added word information to help. In a news abstract, the generator has to select and express content from a longer document. In restoration, it has to keep track of the available wording while deciding how to render it. A representation that makes a multisyllable word explicit can change what either system sees as a connected piece of text before it encodes that text. The experiments support the practical choice of the word-based pipeline across these uses. The scores alone do not show which internal stage benefited.

The result also compares two vocabularies and parameter counts. A change in vocabulary changes the prediction choices available to the decoder and can change how many units it takes to express a passage. The paper explicitly reports a multilingual warm start for the syllable configuration. Furthermore, word segmentation remains in use during downstream fine-tuning. The observed advantage therefore covers the complete word-based approach, including what the system sees during pretraining and what it sees while learning each task. There is no separate estimate of the gain from segmentation during either phase.

What the comparison against multilingual pretraining establishes

The mBART comparison holds the adaptation strategy broadly constant within each task and keeps the comparison close to the BART architecture. It shows that both Vietnamese-focused configurations can improve on the multilingual baseline after task adaptation. The BARTphosyllable comparison is especially informative about the usefulness of a further Vietnamese training phase because it begins with mBART’s weights. In this instance, taking the multilingual checkpoint through dedicated Vietnamese denoising produces a starting point that adapts more successfully under the reported evaluations.

Several parts of that transition move together. BARTphosyllable uses its selected vocabulary, continues training on a different corpus and sees additional parameter updates before adaptation. BARTphoword changes the input representation as well. The comparisons therefore establish the effectiveness of the tested systems after those preparation choices. They leave open which parts of the language-focused phase account for the gains and how the outcome would change if multilingual and Vietnamese-only training were matched more closely.

The comparison with mT5 adds a reference point from another multilingual sequence-to-sequence approach. Its Vietnamese data size makes clear why the authors are interested in language specialization as an explanation. The comparison still concerns developed systems with separate training histories. The result challenges a simple expectation that a larger amount of Vietnamese text would guarantee a better VNDS result under the tested conditions. It gives no direct measure of the separate effects of corpus size, corpus composition and distribution of training across languages.

What changes when the evaluation changes

The original and filtered VNDS runs are a check on the evaluation protocol. The original benchmark supports comparison with previously published ROUGE scores, while the filtered benchmark removes the identified duplicate articles from the relevant splits. BARTpho’s advantage over mBART appears in the filtered setup, so the shared articles in the original partition cannot by themselves explain that head-to-head advantage. The filtering also changes which examples are available for learning and assessment. Comparing the protocols therefore does not give a clean numerical estimate of the effect of leakage on any individual score.

The reader judgments offer a check on the interpretation of the automatic ranking. ROUGE measures agreement with a reference abstract. The annotators choose among anonymous candidates whose texts differ. BARTpho does better by both forms of evaluation. The agreement in direction indicates that the advantage is visible to the readers who took part as well as to the overlap measures. Because the readers make an overall preference judgment, the exercise leaves open whether their choices are driven by content selection, fluent expression, fidelity to the article or a combination of qualities.

The restoration breakdown reveals a limit to the aggregate ranking. Both BARTpho configurations improve on mBART for the Comma and Question groups, and mBART retains an advantage in the Period group. The overall F1 score can favor one system even while a specific kind of mark favors another. The authors report especially strong gains for Question, but the category results do not explain their cause. They offer a more detailed description of the outcome, rather than evidence that the training procedure improved all kinds of boundary prediction through a single mechanism.

Limitations

Limits the authors identify

The clearest limit the authors state concerns the original VNDS split. They identify overlap between the training and test material and characterize that setup as inappropriate for a clean evaluation. Its purpose in the paper is comparison with earlier reports. The state-of-the-art claim on that split is consequently a claim about the ranking among published numbers under the original protocol. The deduplicated run gives an assessment with the identified repeated articles removed, but earlier numbers from the original split cannot simply be carried across to it.

The authors also explain why they build their own restoration benchmark. A benchmark for the Vietnamese capitalization and punctuation task was unavailable to them, so they use automatically modified PhoST examples to stand in for recognizer output. What the procedure removes is known because the clean target was present from the beginning. The punctuation analysis follows the specified groupings, and standard formatting for numbers and currencies is preserved. The results apply to recovering the formatting withheld under that procedure.

The authors say space prevents them from including the restoration validation scores, even though they observe similar findings on that split. This leaves the test results as the numerical basis for judging restoration performance. The validation claim supplies a qualitative indication that the same ordering is visible during development. It gives less detail about how stable each reported class difference is across the two splits.

What the experimental design leaves open

The most important issue for causal interpretation is that the systems are compared as complete configurations. A good result for BARTphoword supports using its representation and training choices together. The design gives no isolated estimate of how much comes from the automatic word segmentation, the different inventory of units, the resulting parameter count or the initialization. It also leaves open whether segmentation has its strongest effect during denoising, while learning the downstream mapping or at both stages.

The same qualification applies to the language-specific versus multilingual comparison. The paper provides evidence that additional Vietnamese-focused training and a dedicated architecture configuration can yield stronger task results than the particular multilingual baselines considered. It does not maintain equal data, training history and vocabulary while changing only the language mix. BARTphosyllable also inherits mBART’s learned weights. Its result can be understood as evidence for continued specialization of a multilingual starting point, with the influence of that starting point still present.

The tasks cover news abstracts and simulated restoration. Their combination demonstrates that BARTpho can adapt to both generation of a compressed text and recovery of formatting in a largely preserved text. A result on these tasks gives no direct measurement for other news collections, styles of writing or generation tasks. Similarly, the summarization results give evidence about the partnership between an article body and its editorial abstract. A generated summary can differ from that one reference even when it offers a plausible account of the article.

ROUGE also leaves open questions about factual accuracy. Matching an abstract’s wording helps an automatic score. A score based on overlap supplies limited information about whether every generated claim is supported by the article, whether a changed name or number went unnoticed or whether important information was omitted. The human evaluation helps by asking readers to assess outputs directly, but it records overall preferences rather than separate judgments about these qualities.

The human selection rule limits how the preference result can be generalized. It excludes any case in which a pair of systems produces the same summary. The final judgments therefore describe a subset in which every system presents a distinct candidate. That is a reasonable setting for asking which output is best, but it leaves the prevalence and significance of identical outputs outside the comparison. The final decisions also include a discussion to resolve disagreement. Kappa describes agreement between the annotators, while the final preference results reflect the subsequent resolution process.

The simulated restoration benchmark leaves an important step between these results and use after speech recognition. The PhoST examples begin with the intended words, and the experiment removes selected aspects of their formatting. It therefore tests restoration when the underlying wording is supplied. It cannot establish how the systems respond when a recognizer has also changed or omitted words. The study also motivates formatting with examples of later language-processing tasks, but the reported experiments measure restoration F1. They do not measure how much later entity recognition, translation or another application improves once BARTpho has formatted its input.

Finally, each punctuation group folds some distinctions into a shared label. A gain in Period F1 cannot show how the system handles full stops and exclamation marks individually. This level of reporting is sufficient to compare systems under the authors’ grouped evaluation, and it gives a more precise account than overall F1 alone. Readers interested in the recovery of a particular mark, the quality of transcript reading or the consequences for another system still need evidence at that level.

What came after

Vietnamese Automatic Speech Recognition: A Revisit (2026) cites BARTpho and revisits the broader task that motivates its formatting experiments. The connection is at the boundary between recognition and text processing. A speech recognizer has to recover words from audio. BARTpho’s restoration experiment starts with Vietnamese words already written down and asks which capital letters and punctuation marks belong in the resulting text. Both stages affect the transcript a reader sees, and they depend on different kinds of evidence.

BARTpho gives later speech research a baseline for one part of that pipeline. Its experiment specifies a way to prepare controlled input and reference pairs, compare multilingual and Vietnamese-focused starting points, and score the recovered formatting separately from the recognition of words. That separation matters when interpreting an ASR study. A change that improves the wording recovered from audio and a change that improves the presentation of the recovered wording are different outcomes, even if they appear together in the final transcript.

The later citation establishes that BARTpho is part of the research context for the revisit. It does not establish that the later study uses a BARTpho checkpoint, adopts its PhoST-derived benchmark or reports a result for either restoration task. The documented link is therefore to the broader Vietnamese speech recognition problem for which BARTpho tested a downstream formatting step. An experimental comparison between their results would require details about the inputs, targets and evaluation in the later study.

Cite

Cite as Nguyen Luong Tran, Duong Le and Dat Quoc Nguyen. 2022. BARTpho: Pre-trained Sequence-to-Sequence Models for Vietnamese. Interspeech (USB).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.21437/interspeech.2022-10177 · arXiv 2109.09701

@inproceedings{tran2022bartpho,
  title = {{BARTpho: Pre-trained Sequence-to-Sequence Models for Vietnamese}},
  author = {Nguyen Luong Tran, Duong Le and Dat Quoc Nguyen},
  booktitle = {Interspeech (USB)},
  year = {2022},
  doi = {10.21437/interspeech.2022-10177},
  eprint = {2109.09701},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.21437/interspeech.2022-10177}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/tran-2022-bartpho-pre-trained-sequence-sequence/

References

45 references, from the paper's own bibliography.

  1. J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding,” in NAACL, 2019. our card
  2. A. Wang and K. Cho, “BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Model,” arXiv preprint, vol. arXiv:1902.04094, 2019. our card
  3. L. Dong, N. Yang, W. Wang, F. Wei, X. Liu, Y. Wang, J. Gao, M. Zhou, and H.-W. Hon, “Unified Language Model Pre-training for Natural Language Understanding and Generation,” in NeurIPS, vol. 32, 2019. our card
  4. M. Lewis, Y. Liu, N. Goyal, M. Ghazvininejad, A. Mohamed, O. Levy, V. Stoyanov, and L. Zettlemoyer, “BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension,” in ACL, 2020. our card
  5. J. Zhang, Y. Zhao, M. Saleh, and P. Liu, “PEGASUS: Pre-training with extracted gap-sentences for abstractive summarization,” in ICML, 2020. our card
  6. C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, “Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer,” Journal of Machine Learning Research, vol. 21, no. 140, 2020. our card
  7. W. Qi, Y. Yan, Y. Gong, D. Liu, N. Duan, J. Chen, R. Zhang, and M. Zhou, “ProphetNet: Predicting Future N-gram for Sequence-to-SequencePre-training,” in Findings of EMNLP, 2020. our card
  8. L. Xue, A. Barua, N. Constant, R. Al-Rfou, S. Narang, M. Kale, A. Roberts, and C. Raffel, “ByT5: Towards a token-free future with pre-trained byte-to-byte models,” arXiv preprint, vol. arXiv:2105.13626, 2021. OpenAlex ↗ · Scholar ↗
  9. S. Ruder, “Why You Should Do NLP Beyond English,” https://ruder.io/nlp-beyond-english/, 2020. OpenAlex ↗ · Scholar ↗
  10. Y. Liu, J. Gu, N. Goyal, X. Li, S. Edunov, M. Ghazvininejad, M. Lewis, and L. Zettlemoyer, “Multilingual Denoising Pre-training for Neural Machine Translation,” Transactions of the ACL, vol. 8, 2020. our card
  11. L. Xue, N. Constant, A. Roberts, M. Kale, R. Al-Rfou, A. Siddhant, A. Barua, and C. Raffel, “mT5: A Massively Multilingual Pre-trained Text-to-Text Transformer,” in NAACL, 2021. our card
  12. W. Qi, Y. Gong, Y. Yan, C. Xu, B. Yao, B. Zhou, B. Cheng, D. Jiang, J. Chen, R. Zhang, H. Li, and N. Duan, “ProphetNet-X: Large-Scale Pre-training Models for English, Chinese, Multi-lingual, Dialog, and Code Generation,” in ACL: System Demonstrations, 2021. OpenAlex ↗ · Scholar ↗
  13. M. K. Eddine, A. J.-P. Tixier, and M. Vazirgiannis, “BARThez: a Skilled Pretrained French Sequence-to-Sequence Model,” arXiv preprint, vol. arXiv:2010.12321, 2020. OpenAlex ↗ · Scholar ↗
  14. Y. Shao, Z. Geng, Y. Liu, J. Dai, F. Yang, L. Zhe, H. Bao, and X. Qiu, “CPT: A Pre-Trained Unbalanced Transformer for Both Chinese Language Understanding and Generation,” arXiv preprint, vol. arXiv:2109.05729, 2021. our card
  15. D. Q. Nguyen and A. T. Nguyen, “PhoBERT: Pre-trained language models for Vietnamese,” in Findings of EMNLP, 2020. our card
  16. D. Q. Thang, L. H. Phuong, N. T. M. Huyen, N. C. Tu, M. Rossignol, and V. X. Luong, “Word segmentation of Vietnamese texts: a comparison of approaches,” in LREC, 2008. our card
  17. R. Sennrich, B. Haddow, and A. Birch, “Neural Machine Translation of Rare Words with Subword Units,” in ACL, 2016. our card
  18. T. Kudo and J. Richardson, “SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing,” in EMNLP: System Demonstrations, 2018. our card
  19. M. Ott, S. Edunov, A. Baevski, A. Fan, S. Gross, N. Ng, D. Grangier, and M. Auli, “fairseq: A Fast, Extensible Toolkit for Sequence Modeling,” in NAACL-HLT 2019: Demonstrations, 2019. our card
  20. T. Wolf, L. Debut et al., “Transformers: State-of-the-Art Natural Language Processing,” in EMNLP 2020: System Demonstrations, 2020. our card
  21. T. H. Truong, M. H. Dao, and D. Q. Nguyen, “COVID-19 Named Entity Recognition for Vietnamese,” in NAACL-HLT, 2021. OpenAlex ↗ · Scholar ↗
  22. L. T. Nguyen and D. Q. Nguyen, “PhoNLP: A joint multi-task learning model for Vietnamese part-of-speech tagging, named entity recognition and dependency parsing,” in NAACL: Demonstrations, 2021. our card
  23. M. H. Dao, T. H. Truong, and D. Q. Nguyen, “Intent Detection and Slot Filling for Vietnamese,” in INTERSPEECH, 2021. our card
  24. D. V. Thin, L. S. Le, V. X. Hoang, and N. L.-T. Nguyen, “Investigating Monolingual and Multilingual BERT Models for Vietnamese Aspect Category Detection,” arXiv preprint, vol. arXiv:2103.09519, 2021. OpenAlex ↗ · Scholar ↗
  25. A. T. Nguyen, M. H. Dao, and D. Q. Nguyen, “A Pilot Study of Text-to-SQL Semantic Parsing for Vietnamese,” in Findings of EMNLP, 2020. our card
  26. Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov, “RoBERTa: A Robustly Optimized BERT Pretraining Approach,” arXiv preprint, vol. arXiv:1907.11692, 2019. our card
  27. T. V. Bui, T. O. Tran, and P. Le-Hong, “Improving Sequence Tagging for Vietnamese Text using Transformer-based Neural Models,” in PACLIC, 2020. OpenAlex ↗ · Scholar ↗
  28. K. Clark, M.-T. Luong, Q. V. Le, and C. D. Manning, “ELECTRA: Pre-training text encoders as discriminators rather than generators,” in ICLR, 2020. OpenAlex ↗ · Scholar ↗
  29. S. Rothe, S. Narayan, and A. Severyn, “Leveraging Pre-trained Checkpoints for Sequence Generation Tasks,” Transactions of the ACL, vol. 8, 2020. our card
  30. H. Nguyen, L. Phan, J. Anibal, A. Peltekian, and H. Tran, “VieSum: How Robust Are Transformer-based Models on Vietnamese Summarization?” arXiv preprint, vol. arXiv:2110.04257v1, 2021. OpenAlex ↗ · Scholar ↗
  31. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. u. Kaiser, and I. Polosukhin, “Attention is All you Need,” in NIPS, vol. 30, 2017. our card
  32. D. Hendrycks and K. Gimpel, “Gaussian Error Linear Units (GELUs),” arXiv preprint, vol. arXiv:1606.08415, 2016. OpenAlex ↗ · Scholar ↗
  33. A. Conneau, K. Khandelwal, N. Goyal, V. Chaudhary, G. Wenzek, F. Guzmán, E. Grave, M. Ott, L. Zettlemoyer, and V. Stoyanov, “Unsupervised Cross-lingual Representation Learning at Scale,” in ACL, 2020. our card
  34. D. P. Kingma and J. Ba, “Adam: A Method for Stochastic Optimization,” in ICLR, 2015. our card
  35. V.-H. Nguyen, T.-C. Nguyen, M.-T. Nguyen, and N. X. Hoai, “VNDS: A Vietnamese Dataset for Summarization,” in NICS, 2019. OpenAlex ↗ · Scholar ↗
  36. C.-Y. Lin, “ROUGE: A Package for Automatic Evaluation of Summaries,” in Text Summarization Branches Out, 2004. our card
  37. M. Ákos Tündik, G. Szaszák, G. Gosztolya, and A. Beke, “User-centric Evaluation of Automatic Punctuation in ASR Closed Captioning,” in INTERSPEECH, 2018. OpenAlex ↗ · Scholar ↗
  38. T. B. Nguyen, Q. M. Nguyen, H. N. T. Thu, Q. T. Do, and L. C. Mai, “Improving Vietnamese Named Entity Recognition from Speech Using Word Capitalization and Punctuation Recovery Models,” in INTERSPEECH, 2020. OpenAlex ↗ · Scholar ↗
  39. Q. Huang, T. Ko, H. L. Tang, X. Liu, and B. Wu, “Token-Level Supervised Contrastive Learning for Punctuation Restoration,” in INTERSPEECH, 2021. OpenAlex ↗ · Scholar ↗
  40. N. Shi, W. Wang, B. Wang, J. Li, X. Liu, and Z. Lin, “Incorporating External POS Tagger for Punctuation Restoration,” in INTERSPEECH, 2021. OpenAlex ↗ · Scholar ↗
  41. T. T. H. NGUYEN et al., “Toward Human-Friendly ASR Systems: Recovering Capitalization and Punctuation for Vietnamese Text,” IEICE Transactions on Information and Systems, no. 8, 2021. OpenAlex ↗ · Scholar ↗
  42. B. Nguyen, V. Nguyen, H. Nguyen, P. Pham, T. L. Nguyen, T. Do, and C. Luong, “Fast and Accurate Capitalization and Punctuation for Automatic Speech Recognition Using Transformer and Chunk Merging,” in O-COCOSDA, 2019. OpenAlex ↗ · Scholar ↗
  43. L. T. Nguyen, N. L. Tran, L. Doan, M. Luong, and D. Q. Nguyen, “A High-Quality and Large-Scale Dataset for English-Vietnamese Speech Translation,” in INTERSPEECH, 2022, p. to appear. OpenAlex ↗ · Scholar ↗
  44. D. Q. Nguyen, D. Q. Nguyen, T. Vu, M. Dras, and M. Johnson, “A Fast and Accurate Vietnamese Word Segmenter,” in LREC, 2018. our card
  45. T. Vu, D. Q. Nguyen, D. Q. Nguyen, M. Dras, and M. Johnson, “VnCoreNLP: A Vietnamese Natural Language Processing Toolkit,” in NAACL (Demonstrations), 2018. our card