Elamur Research

ViT5: Pretrained Text-to-Text Transformer for Vietnamese Language Generation

Paper · 2022 · Long Phan, Hieu Tran, Hieu Nguyen et al.

Summary

A system that can read a Vietnamese article and write a short account of it needs practice doing more than picking sentences to keep. It has to recognize what the article is about, preserve the details that matter, and express them in fewer words. The ViT5 paper studies whether pretraining on a large collection of Vietnamese text can give a system a head start on this kind of abstractive summarization. It also asks whether the same design can handle a task with a very different output: reproducing a sentence with labels that identify its named entities. Both tasks use the same basic interface. The system reads a text sequence and writes a text sequence.

ViT5 takes its design from T5, with an encoder that reads the input and a decoder that generates the output. Before seeing any examples of the tasks it will be tested on, it practices recovering spans of text removed from Vietnamese passages in CC100. The authors train a base version with a sequence length of 256 and another with a length of 1024. They also train a large version at 1024. This setup lets them compare the base versions after both have been adapted to summarization at the same length. The architecture behind the procedure is an encoder–decoder Transformer.

The large ViT5 trained at 1024 earns the highest scores on all the reported summarization measures for both test sets. Its ROUGE-L is 43.08 on Vietnamese WikiLingua, which pairs instructional articles with summaries, and 43.55 on Vietnews, which pairs news articles with their abstracts. The base ViT5 trained at 1024 improves on the base version trained at 256 across the reported measures on both test sets. The longer setting also uses a differently filtered collection of paragraphs, so the experiment compares complete pretraining setups. The improvement is consistent with the authors’ explanation that working with longer passages during pretraining helps when the later task involves reading long articles.

The largest system has a weaker showing on named entity recognition. On the PhoNER COVID19 test set, the base ViT5 trained at 1024 ties PhoBERT large at 94.5 micro-F1. The large ViT5, which leads on summarization, scores 93.8. Generating the sentence and its labels can therefore match the strongest direct-tagging result in the paper’s comparison, with the right ViT5 configuration. The different rankings matter: the settings that do best at condensing articles and the settings that do best at labeling spans of a sentence turn out to be different.

Deep dive: ViT5: Pretrained Text-to-Text Transformer for Vietnamese Language Generation

ViT5 adapts T5 to Vietnamese and tests how pretraining length and model size affect article summarization and named entity recognition. · about 32 minutes to read

The problem and its context

Vietnamese text as an output

The gap that motivates the paper is between building a system that can represent Vietnamese text and building one that can write a useful response to it. A representation captures information about words as they occur in a particular passage. It might help identify which words form an entity or which sentences are relevant to a topic. To write a summary, the system has to turn what it has gathered into a new sequence. That sequence may put facts in a different order and express them in different words from the source. The paper places that problem within text generation.

Vietnamese summarization already had data and methods, but the authors describe a literature concentrated on extraction. An extractive system decides which existing material to return. In a sentence-selection approach, the sentences themselves are already available and the algorithm has to decide which ones are worth keeping. An abstractive system has to decide both what information belongs in the summary and how to phrase it. A sentence may be highly relevant and still contain detail that a concise summary should leave out. Giving the system the freedom to rewrite makes that separation possible.

The distinction matters when interpreting what earlier work had established. Strong sentence rankings are evidence that an approach can identify important material. They provide only indirect evidence about whether a decoder can express that material clearly and economically. A report that a Vietnamese-only system ranks sentences better than a multilingual alternative raises a question for generation: does specialization also help when the output is composed from scratch? ViT5 investigates that question through comparisons with existing systems and through its own Vietnamese-only pretraining setup.

The authors also distinguish a shortage of studies and benchmarks for a downstream task from the availability of raw Vietnamese text. Abstractive summarization requires pairs of documents and summaries if the system is to learn from examples of the finished task. A web corpus provides plain passages in much larger quantities, but those passages do not supply corresponding abstracts. ViT5 exploits the raw text first by turning parts of each passage into prediction targets. It then learns what counts as a summary from the examples that have summaries attached. The division of labor is central to the use of language modeling and pretraining.

How earlier summarization systems approached the task

The English-language work discussed by the authors illustrates several ways to combine reading a source and writing a summary. BottomUp first identifies phrases in the document that look suitable for inclusion. A copy mechanism can then draw from those phrases while producing the output. The preliminary selection narrows the parts of the document available for copying. This addresses the problem that a source may contain many fluent passages that are irrelevant to the brief account a reader wants.

BERTSum takes a different route into the problem. In the paper’s account, it adapts BERT to read at the document level within a framework that serves extractive and abstractive tasks. A system can then use contextual representations built by a pretrained encoder as part of the process of composing an output. GSum builds on that line of work by giving the generator different forms of guidance. The idea is to offer the generator evidence about which content or wording to favor. These systems are part of the motivation for using pretraining in summarization. They are examples from the related work, while the head-to-head tests in ViT5 use baselines chosen for Vietnamese generation.

The earlier Vietnamese research that the paper describes includes comparisons of unsupervised ranking, supervised sentence selection, and neural methods for extraction. In the unsupervised case, the ranking procedure uses properties of the available text without learning its choices from examples labeled for sentence selection. Supervised methods can use features such as TF-IDF, which gives weight to terms based on their occurrence in a document and their distribution across a collection. Other approaches in these comparisons use neural networks to represent text. The variety of techniques concerns how to choose material that is already present in a document or collection of documents.

A subsequent extractive study described in the paper combines BERT with K-means clustering. BERT first produces a contextual representation of each sentence, giving the clustering procedure a way to organize sentences by how similar their representations are. The resulting organization supports sentence selection. In that experiment, Vietnamese-only BERT systems performed better than multilingual alternatives. This is relevant history for ViT5 because it introduces a comparison between concentrating on Vietnamese and training across languages. It also leaves open how that comparison will turn out when the output must be generated.

The paper identifies BARTpho as a closer predecessor. It already uses a pretrained encoder and decoder for Vietnamese and had demonstrated the value of that setup for abstractive summarization. ViT5 asks what happens when Vietnamese generation is approached with a different pretrained sequence-to-sequence framework: T5. Prior work cited by the authors had suggested advantages for T5 over BART in some settings. That gave them a reason to test a Vietnamese T5 alongside BARTpho. The benchmark comparisons consequently concern complete systems with distinct histories, including how they were pretrained and what they read during pretraining.

From predicting hidden words to writing labeled text

The pretraining landscape in the paper includes ELMo, GPT, and BERT. What matters to the authors is the principle that a system can learn contextual information from a large amount of text before being given examples of a specific task. The discussion of BERT offers a concrete illustration. Hide some tokens in a passage and ask the system to predict the originals. The passage itself supplies the answers. Vietnamese work such as PhoBERT and ViBERT shows how this broad approach can be directed toward Vietnamese. Multilingual systems such as mT5 and mBART offer a separate approach in which pretraining spans languages and can develop both shared and language-specific representations. Multilingual and cross-lingual NLP

The T5 approach gives the authors a way to use this learning principle while preparing both halves of a generator. The input is text with omissions. The desired output is text containing what was removed. The encoder has to produce a useful representation of what remains, and the decoder has to write a response conditioned on it. After pretraining, a document can replace the damaged passage and a summary can replace the reconstruction target. The format of the interaction stays familiar even though the desired relationship between the input and the output changes.

Named entity recognition provides a sharper test of that format. The usual task is to decide which parts of a sentence refer to entities covered by a set of labels and to assign the appropriate label to each identified part. A direct tagger can associate its decisions with positions in the input. In the text-to-text formulation, the output is the sentence with tags written into it. Hence, the same ability to produce a sequence can be used in a task where most of that sequence needs to be copied faithfully. The work cited by the authors on SciFive supplied a precedent for expressing entity recognition this way.

This gives the paper a narrower and more interesting question than whether a Vietnamese generator can produce fluent sentences. What can be learned in advance from unlabeled Vietnamese text that later helps with either compressing a long passage or marking precise spans? The input and output of both tasks can be represented as text, but the desired behavior is quite different. In summarization, the source is something to condense and potentially rephrase. In tagging, its wording and order provide the structure within which the labels must make sense.

The method, step by step

Preparing a Vietnamese reading corpus

ViT5 begins with the Vietnamese portion of CC100. CC100 is a collection of monolingual corpora derived from web crawl data. Its source snapshots come from Common Crawl’s January–December 2018 collection period, and the full resource covers over 100 languages. The ViT5 authors select Vietnamese, for which the raw collection amounts to 138GB of text. Their initial training is therefore concentrated on Vietnamese even though the resource that supplies the text is multilingual in scope.

Within that language selection, the authors prepare different paragraph collections for different sequence lengths. They report 69GB of short paragraphs for the 256 setting and 71GB of long paragraphs for the 1024 setting. A sequence length controls how much tokenized material can be presented in a training example and how long the corresponding generated sequence can be. Pairing the longer setting with longer paragraphs makes it possible to expose the system to extended passages rather than merely allocating a larger limit to settings that predominantly use short passages.

This paragraph choice is part of the training procedure, not a detail about how the eventual test documents were handled. It changes the material from which the reconstruction examples are drawn. A short paragraph gives the system nearby wording as evidence about an omission. A longer paragraph can offer additional evidence from elsewhere in the passage, provided that whatever was removed is related to that evidence. Longer passages can also differ from short ones in genre, organization, or content. How much the length setting helps on its own is therefore a different question from how the full short- and long-paragraph setups compare.

Building the vocabulary

Before the system can operate on these passages, it needs a way to represent them as sequences of units. The authors use a 5GB subset of the pretraining corpus to prepare that vocabulary. They describe normalizing punctuation and capitalization and splitting numbers. These operations change the text from which the vocabulary is learned. For instance, when equivalent punctuation or capitalization patterns are treated consistently, differences in how a passage is written need not produce equally distinct units in the vocabulary. The paper identifies the categories of preprocessing without spelling out a complete set of normalization rules.

SentencePiece learns the vocabulary from the prepared subset. The vocabulary size is fixed at 36K sub-words. A sub-word vocabulary lets the system encode recurring pieces of text and assemble those pieces when it encounters a longer expression. Its units can correspond to whole written words or to smaller fragments. The vocabulary also supplies the units the decoder uses to write answers. The resulting representation makes token length relevant to both the amount of input the system can read and the amount it can write. Subword tokenization

The 5GB subset and the 69GB and 71GB paragraph collections serve different purposes. Learning the vocabulary establishes what pieces of text are available to the encoder and decoder. Pretraining on the paragraph collections teaches them how those pieces fit together in context. A vocabulary can make some strings compact to represent, but it does not give the system the ability to use those strings appropriately. The span reconstruction exercise supplies evidence about such use by repeatedly placing the pieces in meaningful passages.

It is also worth keeping tokens distinct from words when reading the experiments. The length setting counts the units used internally in a sequence. A statistic about an article’s average length in words describes the documents at a different level. A word can take more than one sub-word token, so the same document may have different lengths under different vocabularies or counting conventions. The dataset statistics explain why longer context was worth investigating without giving an exact measure of how much text survives under each sequence limit.

Turning paragraphs into a reconstruction exercise

The paper uses the T5 span-corruption objective. A span is a contiguous stretch of text. In this exercise, stretches of the original passage are concealed, and the system is trained to predict the missing material from the version it can still read. The authors set the corruption rate to 15%. That rate is a setting for the amount of corruption applied during pretraining. It is separate from the accuracy of the predictions and from the scores later reported for summaries and labels.

The exercise differs from asking for a missing word in isolation. Consider a passage in which some words in the middle of an instruction are covered. The visible text may suggest both which action belongs there and how the instruction should be phrased. If a covered stretch contains several tokens, the guesses for those tokens also have to work together as text. This is the sense in which the task trains generation during pretraining. The reconstruction target is a sequence the decoder must produce, with the surrounding visible passage supplying context.

The encoder reads the corrupted input and builds a contextual representation. The decoder uses that representation when generating the missing text. In a Transformer, attention allows representations to draw on relevant positions in a sequence. In an encoder–decoder system, the representation computed from the input is available to the decoder as it writes. The encoder can therefore help locate evidence elsewhere in the passage, while the decoder has to put the predicted material into a plausible order. The paper adopts this division from the earlier Transformer architecture and the T5 framework.

The training signal is self-supervised because preparing an example also produces its correct answer: whoever creates the corrupted input already has the original text. The system can practice on passages that have never been summarized or annotated for entities. The pretraining loss measures performance on this reconstruction objective. The paper illustrates training progress with loss curves and reports the corruption setting in prose. It presents no numbered mathematical expression for the loss or separate equation defining the masking procedure.

ViT5 from Vietnamese web text to task outputs

The steps in order.

ViT5 from Vietnamese web text to task outputsStep 1: Select Vietnamese passages from CC1001. Select Vietnamese passages from CC100Step 2: Prepare short and long paragraph collections2. Prepare short and long paragraph collectionsStep 3: Learn a SentencePiece vocabulary from normalized text3. Learn a SentencePiece vocabulary from normalized textStep 4: Hide spans in tokenized passages4. Hide spans in tokenized passagesStep 5: Encode the remaining context5. Encode the remaining contextStep 6: Train the decoder to recover missing text6. Train the decoder to recover missing textStep 7: Fine-tune with summaries or tagged sentences7. Fine-tune with summaries or tagged sentences

Choosing configurations for the comparison

The authors adapt the T5 base and large configurations. ViT5 base has 310M parameters, and ViT5 large has 866M. Parameters are the adjustable quantities learned during training. The names base and large identify architecture sizes, while 256 and 1024 identify sequence lengths. A reference to a longer ViT5 in the results can therefore mean that it was pretrained on longer sequences, without implying that it has more parameters.

The paper reports three pretrained configurations: base at 256, base at 1024, and large at 1024. Comparing the base versions holds the reported architecture size fixed while changing the pretraining length and the paragraph collection. Comparing base and large at 1024 holds the reported pretraining sequence length fixed while changing the architecture size. These two comparisons give the experimental design its shape. There is no large version at 256 in the reported results, so the effect of shortening the pretraining sequences cannot be checked at that size.

The length settings apply to the input and output sequences during pretraining. They are maximum lengths, so a 1024 configuration does not mean that every passage and every reconstruction target contains 1024 tokens. In particular, a reconstruction target concerns missing material, while the input holds the context left after corruption. The significance of the setting is that it bounds the sequences the system can work with during this stage. The paper uses this bound, together with the long-paragraph collection, to give the longer-context version a different kind of pretraining experience.

Adapting the same interface to two tasks

For summarization, the encoder is given the body of a document and the decoder learns to produce the corresponding summary. Training on these paired examples changes the task from recovering withheld material to writing the kind of abstract represented in the dataset. This second round of training is fine-tuning. The original document comes with no blank announcing which detail is important. The paired examples are what teach the system which kinds of content the shorter output should preserve.

All the reported ViT5 summarization runs use a sequence length of 1024 during fine-tuning. This is an important feature of the setup. The system pretrained at 256 is subsequently allowed to work at 1024 when it learns summarization, just as the system pretrained at 1024 is. The comparison tests whether experience with longer sequences earlier in training still makes a difference after the shorter-pretrained system gets the longer setting for the task itself.

For named entity recognition, the encoder reads the original sentence, and the decoder learns to write a version with entity tags inserted. The words of the sentence provide the backbone of the output. Suppose a phrase in a public-health sentence is annotated as an entity. The generated text has to preserve the phrase and supply markings that identify its location and type. The shift from direct per-token classification to generation is concrete: the labels are pieces of the text the decoder must produce, alongside the words they describe.

The prose gives different descriptions of the exact placement of the markings. The introductory discussion describes tags following tokens, while the experiment describes placing labels around an entity token. Both descriptions agree on the operation that matters to the comparison: the decoder reconstructs the input sentence with entity information written into the output. That is also the operation illustrated in the architecture figure. The prose leaves the precise serialized tag convention less clear than the general formulation.

The authors identify a ViT5 repository as the place where they make code and trained systems available for reproducing their experiments. They also acknowledge using TPU v3-8 resources to train and fine-tune the large version. The paper’s methodological contribution is the combination of a Vietnamese vocabulary and corpus with the established T5 training interface, followed by tests of how well different configurations carry that experience into the two tasks.

Experiments and results

Two kinds of documents to summarize

The summarization tests both ask for a short output given a single document, but their documents have different origins. The Vietnamese portion of WikiLingua comes from WikiHow. Its article and summary pairs describe how to do things, and the Vietnamese articles are translations of English originals. The paper says they were reviewed by WikiHow’s international translation team. The wider WikiLingua resource spans 18 languages. Here, the evaluated portion is the Vietnamese text, so the results concern the ability to summarize that text in Vietnamese.

The paper reports 13,707 WikiLingua training examples and 3916 test examples. It lists a mean body length of 521 and a mean abstract length of 44. The discussion describes the body statistic in words. A procedure may take a fairly long article to describe while the reference summary uses a much shorter account. The system has to reduce the passage while keeping enough of what makes the advice or procedure useful. The document’s translated origin is also part of what defines this test: the source content and its form come from instructional articles prepared for another language and reviewed in Vietnamese.

Vietnews provides a news counterpart. The original dataset contains 150,704 news articles with paired bodies and abstracts. The articles come from Vietnamese news outlets. Its creators filtered out categories such as questionnaires, analytical commentary, and weather forecasts to produce a collection centered on longer reports of news events. The ViT5 authors then follow the BARTpho filtering procedure to remove duplicates across the training, development, and test data.

For the resulting Vietnews setup, the paper reports 99,134 training examples and 22,498 test examples. The listed mean body length is 519, and the mean abstract length is 38. The document lengths are similar to those in WikiLingua, so both tasks involve substantial compression. The nature of the output differs with the genre. A short news abstract highlights what happened and the details that frame the event, whereas an instructional summary can organize information around what a reader should do. Testing both gives evidence about transfer to two different sorts of Vietnamese prose.

The benchmark pairs provide reference summaries and examples for fine-tuning. They also define the scope of the comparison. A high score on WikiLingua indicates that a system can do well on the way these translated articles and their summaries are written. Success on Vietnews concerns the selected, deduplicated news material and its abstracts. These are complementary tests of single-document summarization, each with a particular kind of source and target.

What the summarization baselines represent

The comparison starts with a randomly initialized Transformer, listed as RND2RND. It has the usual Transformer components, including multi-head self-attention and feed-forward layers, but begins the task without weights learned from a large pretraining corpus. In that baseline, the training pairs have to supply the evidence for both reading the document and producing the summary. The result gives a point of comparison for systems that carry earlier learning into the task.

The ViSum baselines pair pretrained BERT components in an encoder–decoder system. PhoBERT2PhoBERT uses Vietnamese PhoBERT. The mBERT2mBERT counterpart uses multilingual BERT. These comparisons address the question of how far pretrained components developed as encoders can be taken in a summarization setup. Their use of a decoder for summarization is important to keep in view. The distinction between them and ViT5 concerns the type of pretraining the components received, even though all must produce summaries in this experiment.

The table also includes mBART and mT5, multilingual systems pretrained in encoder–decoder form. They allow comparisons with systems whose design already includes generating an output sequence before adaptation to the task. mT5 is a particularly relevant comparator because it shares the broad T5 framework with ViT5. A difference in their scores comes from comparing two complete training systems, with the multilingual versus Vietnamese focus one of several distinctions between them.

BARTpho is the Vietnamese encoder–decoder baseline. The authors use its previously reported results and setup. Its relevance is greater than simply being another pretrained system. It offers an existing test of what a Vietnamese-only generator can do and uses a news-heavy pretraining corpus. The comparison with ViT5 therefore puts two different approaches to language-specific generation side by side. Their architectures, training data, and training methods differ, which matters when moving from scores to explanations.

Measuring overlap with a reference

The paper evaluates both summarization datasets with ROUGE. To explain the reported variants, it helps to think of a generated summary and its reference as sequences of words. ROUGE-1 measures overlap in individual words, and ROUGE-2 measures overlap in adjacent word pairs. Each adjacent pair is a short n-gram. The latter measure tends to give more credit to a system that reproduces some local wording of the reference, since both words in the pair have to occur together in the same order.

ROUGE-L instead looks for a longest matching subsequence. A subsequence preserves order but can skip intervening items. That lets the measure register correspondence over a greater stretch of text without requiring one uninterrupted phrase. The three measures thus give related views of resemblance to the reference, based on individual words, nearby word pairs, and longer ordered matches. They offer a common scoring basis for the compared systems on each dataset.

The units of the ROUGE evaluation and the sub-word units used internally serve different purposes. Training needs a vocabulary that can encode inputs and generated outputs. Evaluating a summary needs a rule for comparing the finished output to a reference. The paper describes its ROUGE variants in terms of word sequences. Agreement across the reported metrics shows that a ranking is visible under several kinds of overlap. Questions such as whether a highly overlapping summary preserves all the right claims require additional evidence.

WikiLingua results

On the WikiLingua test set, ViT5 large at 1024 has ROUGE-1 of 60.22, ROUGE-2 of 33.12, and ROUGE-L of 43.08. ViT5 base at 1024 obtains 58.61, 31.46, and 41.45 on the same three measures. These are the top two entries across the WikiLingua metrics in the paper’s comparison. The large version leads on both the short-range overlaps and the longer ordered match measured by ROUGE-L.

WikiLingua test ROUGE-2 by summarization system

The longer-pretrained ViT5 configurations lead on adjacent word-pair overlap.

WikiLingua test ROUGE-2 by summarization systemRandom Transformer: 16.57Random Transformer16.57PhoBERT2PhoBERT: 19.88PhoBERT2PhoBERT19.88mBERT2mBERT: 20.57mBERT2mBERT20.57mBART: 25.69mBART25.69mT5: 27.63mT527.63BARTpho: 31.18BARTpho31.18ViT5 base, 256 pretraining length: 29.98ViT5 base, 256 pretraining length29.98ViT5 base, 1024 pretraining length: 31.46ViT5 base, 1024 pretraining length31.46ViT5 large, 1024 pretraining length (this paper): 33.12ViT5 large, 1024 pretraining length(this paper)33.12
The numbers
System or settingROUGE-2
Random Transformer16.57
PhoBERT2PhoBERT19.88
mBERT2mBERT20.57
mBART25.69
mT527.63
BARTpho31.18
ViT5 base, 256 pretraining length29.98
ViT5 base, 1024 pretraining length31.46
ViT5 large, 1024 pretraining length (this paper)33.12

BARTpho has WikiLingua test ROUGE-1 of 57.16, ROUGE-2 of 31.18, and ROUGE-L of 40.89. The shorter-pretrained ViT5 base reaches 57.86 on ROUGE-1, where it exceeds BARTpho. Its ROUGE-2 of 29.98 and ROUGE-L of 40.23 are below BARTpho’s. This detail qualifies the top-line result. The strongest ViT5 configurations win consistently on this dataset, while the relative standing of the shorter one depends on which overlap is measured.

The gap between the pretrained encoder–decoder systems and the randomly initialized Transformer is visible in the same table. The random baseline’s WikiLingua test ROUGE-L is 29.82. The multilingual mT5 baseline reaches 38.30 on that measure, and BARTpho reaches 40.89. Those comparisons situate ViT5 within an existing pattern of strong results from pretrained generators. The additional question addressed by ViT5 is whether a Vietnamese T5 setup extends those gains, particularly when pretraining uses the longer paragraph collection.

Comparing the results by metric also helps explain why a single score is an incomplete account of the experiment. In the short-pretrained ViT5 versus BARTpho comparison, the advantage in individual word overlap coexists with lower scores for adjacent pairs and ordered sequences. A system can use relevant reference words and arrange them differently. The reported scores identify where the comparison changes direction, without diagnosing the quality of the particular phrasing behind it.

Vietnews results

The Vietnews test results place all reported ViT5 configurations above BARTpho on all the reported metrics. ViT5 base at 256 scores 61.85 on ROUGE-1, 31.70 on ROUGE-2, and 41.70 on ROUGE-L. ViT5 base at 1024 scores 62.77, 33.16, and 42.75. ViT5 large at 1024 earns 63.37, 34.24, and 43.55. Here, both the change in base pretraining setup and the change in size at the longer length go in the same direction on every metric.

Vietnews test ROUGE-L by summarization system

Every ViT5 configuration exceeds the published BARTpho result on ordered overlap.

Vietnews test ROUGE-L by summarization systemRandom Transformer: 35.53Random Transformer35.53PhoBERT2PhoBERT: 39.44PhoBERT2PhoBERT39.44mBERT2mBERT: 36.73mBERT2mBERT36.73mBART: 38.71mBART38.71mT5: 37.38mT537.38BARTpho: 40.15BARTpho40.15ViT5 base, 256 pretraining length: 41.70ViT5 base, 256 pretraining length41.70ViT5 base, 1024 pretraining length: 42.75ViT5 base, 1024 pretraining length42.75ViT5 large, 1024 pretraining length (this paper): 43.55ViT5 large, 1024 pretraining length(this paper)43.55
The numbers
System or settingROUGE-L
Random Transformer35.53
PhoBERT2PhoBERT39.44
mBERT2mBERT36.73
mBART38.71
mT537.38
BARTpho40.15
ViT5 base, 256 pretraining length41.70
ViT5 base, 1024 pretraining length42.75
ViT5 large, 1024 pretraining length (this paper)43.55

BARTpho’s Vietnews test scores are 61.14 on ROUGE-1, 30.31 on ROUGE-2, and 40.15 on ROUGE-L. It is the strongest non-ViT5 entry on those measures. This makes it a demanding comparator for a system developed with a general Vietnamese web corpus. The result establishes that such pretraining can support strong news summarization. It is possible to adapt the broader-corpus system successfully to news from the paired training data.

The Vietnews table also shows why the baselines should be read individually. PhoBERT2PhoBERT reaches 39.44 on test ROUGE-L. Both multilingual encoder–decoder baselines score below it on that metric, with mBART at 38.71 and mT5 at 37.38. The paper’s broad account emphasizes the strength of the Vietnamese-only pretrained generators, but the progression through intermediate baselines depends on the dataset and measure. A system’s pretraining design, language coverage, and adaptation to the task all matter to the completed comparison.

The authors report the leading ViT5 results as state of the art for their summarization tests. That claim refers to the systems and test results brought together in the paper. The evidence is especially consistent across the two datasets because the same configuration leads across the entire reported ROUGE panel. The test scores also distinguish the tasks by genre, allowing the result on the news data to complement the result on instructional articles.

Entity recognition in PhoNER COVID19

PhoNER COVID19 concerns entities that occur in Vietnamese text about COVID19 and epidemics. The authors describe it as containing 35,000 entities in over 10,000 sentences, with 10 entity types. Those counts describe the dataset as a whole. The performance comparison uses the dataset’s test set. This is sentence-level labeling in a domain with a fixed inventory of entity categories, rather than an open-ended request for a summary.

The baselines are XLM-R large, PhoBERT base, and PhoBERT large. They represent direct recognition with pretrained encoders. ViT5 is asked to supply its labeling decisions through generated tagged text. The shared outcome is measured in micro-F1. F1 reflects both precision, which concerns how many predicted entities are correct, and recall, which concerns how many reference entities are recovered. The micro average pools the underlying decisions across types before combining precision and recall. This gives more influence to types with more instances than an average that gives each type the same weight.

PhoNER COVID19 test micro-F1 by recognition system

The longer-pretrained ViT5 base ties the strongest PhoBERT result.

PhoNER COVID19 test micro-F1 by recognition systemXLM-R large: 93.8XLM-R large93.8PhoBERT base: 94.2PhoBERT base94.2PhoBERT large: 94.5PhoBERT large94.5ViT5 base, 256 pretraining length: 93.19ViT5 base, 256 pretraining length93.19ViT5 base, 1024 pretraining length (this paper): 94.5ViT5 base, 1024 pretraining length (thispaper)94.5ViT5 large, 1024 pretraining length: 93.8ViT5 large, 1024 pretraining length93.8
The numbers
System or settingMicro-F1
XLM-R large93.8
PhoBERT base94.2
PhoBERT large94.5
ViT5 base, 256 pretraining length93.19
ViT5 base, 1024 pretraining length (this paper)94.5
ViT5 large, 1024 pretraining length93.8

The base ViT5 pretrained at 1024 matches PhoBERT large at 94.5 test micro-F1 and exceeds PhoBERT base, which scores 94.2. ViT5 large scores 93.8, the same as XLM-R large. The base version pretrained at 256 scores 93.19. The best ViT5 result makes a case for the viability of expressing tagging as generation on this benchmark. It also makes clear that the large configuration’s success at summarization does not determine its place in the entity-recognition comparison.

In practical terms, a recognition system has to identify entity boundaries and assign categories. The ViT5 system has an additional output requirement: the markings have to appear in a generated sentence that reflects the original input. The micro-F1 score establishes that the best reported configuration can deliver competitive entity predictions in that form. It leaves questions about where individual errors arise, such as whether an incorrect prediction reflects the category chosen, the span marked, or difficulties generating the tagged sentence faithfully.

What the ablations show

Longer pretraining under the same summarization setting

The closest comparison to an ablation is the pair of base configurations. Their parameter count is the same, both use the ViT5 text reconstruction objective, and both are fine-tuned for summarization at 1024. The distinction is how they were pretrained. One used the shorter length limit and short-paragraph collection, and the other used the longer length limit and long-paragraph collection. This comparison is particularly informative because the shorter-pretrained version also receives the longer fine-tuning limit. The difference seen on the test sets persists after this shared task-stage setting.

The pattern is consistent across the datasets. On WikiLingua, the longer-pretrained base reaches 41.45 on test ROUGE-L, while the shorter-pretrained base reaches 40.23. On Vietnews, the corresponding scores are 42.75 and 41.70. The ROUGE-1 and ROUGE-2 results also favor the longer-pretrained base. The effect shows up both when the source is instructional prose and when the source is news, and it is visible in several measures of agreement with the reference.

The authors explain the result in terms of the length of the documents used for fine-tuning and testing. A summary often requires combining information available in different parts of the input. Pretraining with larger spans of surrounding context can give the encoder and decoder earlier experience using information from farther away. A document-length sequence limit during fine-tuning makes more of the article available at that stage, while longer pretraining may help the system take advantage of the additional material once it is available.

That explanation is compatible with the experiment, and the comparison leaves two parts of it linked. The long-paragraph setup changes the text pool, and the maximum sequence length changes how much of a passage the system can process at a time. An improvement could reflect the longer available context, properties of the selected paragraphs, or how those two factors work together. The test scores do not break those possibilities apart. The result applies directly to the change from the short pretraining setup to the long one.

The named entity results show an advantage for the longer-pretrained base as well, from 93.19 to 94.5 test micro-F1 on PhoNER COVID19. The paper’s explanation about long source documents is intended for summarization. The entity task reads sentences, so that explanation cannot simply be carried across unchanged. The results show transfer from the longer pretraining setup to a sentence-level label generation task. They give no direct measure of how much context an individual entity decision uses.

Scale at the longer length

The base and large systems trained at 1024 offer a separate comparison. The reported parameter count changes from 310M for base to 866M for large. The large configuration leads on every reported ROUGE measure for both summarization test sets. For WikiLingua, test ROUGE-2 rises from 31.46 for base to 33.12 for large. On Vietnews, the corresponding scores are 33.16 and 34.24. The gain under the longer pretraining setting is therefore visible across different genres and measures.

The authors also show loss curves from the masked-span pretraining task. They describe the larger configuration with longer context as optimizing better. This is evidence about how the systems performed on their reconstruction exercise during pretraining. The summarization tests show that the same large configuration is also the best of the reported systems once adapted to writing summaries. These observations agree for summarization, while the experiment stops short of establishing a general relationship between a change in pretraining loss and a predictable change in downstream score.

PhoNER COVID19 provides the counterexample within the paper’s own tests. At the longer length, the large configuration scores 93.8 test micro-F1 and the base configuration scores 94.5. More capacity goes with a stronger result on the summarization benchmarks but a weaker result on this classification task expressed through generation. The paper recognizes this as a limit of the large variant. The test cannot identify which part of the conversion from input sentence to tagged output is responsible for the weaker result, because the scores summarize final recognition performance.

The design also leaves size and sequence length only partly crossed. Both sizes appear at 1024, but only base appears at 256. That is enough to see how the reported base and large systems compare under the longer setting. It does not establish how the large architecture would respond to the shorter pretraining setup, or whether the size comparison would have the same outcome there.

Corpus breadth and language specialization

The comparisons with BARTpho and the multilingual systems are useful analyses of complete approaches. They involve more simultaneous changes than the comparisons within ViT5. On WikiLingua, the authors hypothesize that pretraining on the varied material in CC100 suits instructional articles better than concentrating on news. They contrast ViT5’s web corpus with the 20GB of news data used to pretrain BARTpho and PhoBERT. The stronger results of the longer ViT5 configurations are consistent with the possibility that exposure to a broader range of prose helps.

The Vietnews comparison examines the same contrast in a setting where news pretraining looks well aligned with the benchmark. Here, all of the ViT5 variants beat BARTpho across the reported metrics. The result demonstrates that a system pretrained on general Vietnamese web text can subsequently do well on a narrower news task. Because the systems differ in other ways, the size of the advantage does not measure the effect of replacing news with general web text in an otherwise identical training run.

The multilingual comparisons likewise support a specific observation. The dedicated Vietnamese encoder–decoders score well on the two Vietnamese tasks relative to the reported multilingual systems. The authors suggest that focusing pretraining on a single language can account for part of the pattern. The paper does not hold architecture, vocabulary, and corpus construction constant while changing only how many languages appear in pretraining. Thus the results give evidence about the tested Vietnamese systems and motivate the authors’ explanation about language focus. They do not separately estimate that factor.

The vocabulary preparation receives no comparable controlled test. The authors describe their punctuation and capitalization normalization, number splitting, and SentencePiece vocabulary as important design choices. There is no reported pair of ViT5 runs where those choices change while the rest of training stays fixed. The vocabulary belongs to the system that achieved the reported scores, but its individual contribution remains open. That is a different kind of evidence from the base length comparison, where the authors trained distinct configurations and showed how their test outcomes differed.

Limitations

Limits the authors identify

The paper puts legal, medical, and engineering summarization outside the experiments and leaves these technical domains for future work. The distinction between this limitation and the PhoNER COVID19 test matters. The entity-recognition data do bring in a specialized public-health subject, but their target is a tagged sentence. The experiment does not show that ViT5 can decide which details to preserve when writing a summary in a medical domain. Evidence about locating labeled mentions and evidence about condensing specialized documents address different capabilities.

The authors also identify the large system’s lower recognition score as a weakness. Even with the same longer pretraining length as the best base configuration, the large version does worse on PhoNER COVID19. The stated achievement for entity recognition is competitiveness, reached by the stronger base variant. That is a more precise characterization than carrying the paper’s state-of-the-art summarization claim over to entity recognition.

The architecture study covers the base and large configurations, with larger T5 sizes deferred. The authors describe that choice as practical. The results therefore show how the chosen versions behave on the tested tasks. They do not establish how far either the summarization gain or the entity-recognition ranking would extend as capacity increases beyond the configurations in the study.

Limits of the evidence in the experiments

The strongest statement about pretraining context is comparative: the longer sequence and long-paragraph setup works better than the shorter setup for the reported base runs. The study does not vary length while drawing otherwise identical examples from the same paragraphs. It also provides only aggregate descriptions of document length. Those summaries motivate a longer limit, but they do not show which test documents benefit, where in a document the necessary information occurs, or how much useful material is retained under each setting.

For the same reason, the results do not establish a threshold at which longer pretraining becomes necessary. The paper relates its observations to long documents and discusses a length of more than 512 tokens. The tested pretraining lengths are 256 and 1024, with no reported length sweep around 512. The document statistics are described in words, while the setting is expressed in tokens. A reader can take the suggested threshold as the authors’ interpretation of the tasks they studied, with the measured comparison confined to the configurations they ran.

There is also a limit to what can be learned from the amount of pretraining data expressed in gigabytes. The paper reports raw and filtered corpus sizes. Those figures describe text volume. They do not show how many training tokens the different runs processed, the proportion drawn from particular genres, or the amount of repeated exposure to a passage. Claims about the benefit of longer context and the value of a broader corpus would be easier to separate with matched data and comparable training exposure. The reported comparisons instead answer the system-level question the benchmarks pose.

The results on WikiLingua and Vietnews show how closely the generated summaries resemble their references by ROUGE. The paper reports no corresponding human assessment of factual accuracy, coherence, or usefulness. Since ROUGE gives credit for matching language, it can reflect relevant content and similar phrasing. It can also miss the distinction between an accurate reformulation and a sentence that shares words with the reference but changes the underlying claim. A lead across ROUGE measures establishes a lead under the paper’s evaluation, with readers’ judgments of the summaries remaining unmeasured.

The datasets further bound what “Vietnamese summarization” means in these experiments. WikiLingua’s Vietnamese articles are translated instructional texts. Vietnews is a filtered selection of longer event reports. The findings apply to both genres, which gives the study more range than a single benchmark would. Robustness to other writing styles, document collections, and editorial conventions remains open. Neither benchmark addresses summarization across multiple documents.

The tables give point scores and the paper reports no run-to-run variation or statistical test for the comparisons. Accordingly, a small lead in one metric can be reported as an observed difference. The consistency of the longer-pretraining result across metrics and datasets is part of the evidence, while the stability of each score under repeated training is unresolved. This matters especially when comparing nearly tied systems or attributing an observed gap to a single design decision.

For entity recognition, the pooled micro-F1 score leaves the behavior of less frequent categories unclear. The dataset has 10 entity types, and a pooled result can be driven by the categories with more examples. The paper provides no results broken down by type or analyses of the generated sentence and tag format. The tie with PhoBERT large is consequently a tie under the reported pooled metric. The systems could differ in which entities they recover or in which kinds of errors they make.

That distinction matters to the paper’s broader case for text-to-text learning. The experiments establish that Vietnamese text generation can serve both summarization and labeling under their respective task setups. They give a benchmark-specific demonstration of versatility. Choosing a single architecture and size for both tasks would involve a tradeoff in these results: large leads for summarization, and base with longer pretraining leads among ViT5 variants for recognition. The comparison offers no basis for ranking those configurations on generation or classification tasks beyond the ones studied.

What came after

The later citations place ViT5 alongside work on multilingual instruction fine-tuning, evaluation of Vietnamese systems, and practical Vietnamese–English text tools. Their titles establish those areas of work and the citation establishes a connection to ViT5. The citation alone cannot specify whether a later project used the ViT5 weights, adopted its pretraining objective, included it as a baseline, or cited it as part of the research background. Those are distinct kinds of influence, and the three later connections can be described at the level their titles and citations support.

Aya, from 2024, addresses instruction fine-tuning in an open-access multilingual system. In instruction fine-tuning, the task is conveyed through a request describing what output is wanted. That is a different emphasis from the ViT5 experiments, where each fine-tuning setup uses data paired for a known task. The conceptual point of contact is the use of text as the interface. ViT5 shows how documents and sentences can both lead to task-specific generated outputs in Vietnamese. Aya’s stated subject takes that general form of interaction into multilingual instruction following. Its citation places ViT5 within the earlier work relevant to that multilingual effort. Aya

Crossing Linguistic Horizons, also from 2024, focuses on fine-tuning and comprehensive evaluation for Vietnamese. This is the closest of the three later works to ViT5 in its stated language focus and its interest in what happens after pretraining. ViT5 provides a concrete earlier case in which evaluation distinguishes stronger and weaker configurations differently depending on the task. The later work’s title describes a broader characterization of Vietnamese language systems. The citation connects that effort to earlier experiments in training and evaluating a Vietnamese generator. It does not establish a head-to-head comparison or a replication of ViT5’s paragraph-length experiment. Crossing Linguistic Horizons

FreeTxt-Vi, from 2026, describes a benchmarked Vietnamese–English toolkit covering segmentation, sentiment, and summarization. Its summarization component is the direct point of overlap with ViT5, which benchmarked Vietnamese summary generation on instructional articles and news. The toolkit also groups summarization with tasks of a different character. Segmentation concerns the units into which text is divided, and sentiment analysis concerns the attitude expressed in it. That range makes the toolkit a different setting for Vietnamese text processing from ViT5’s study of a single text-to-text architecture. The documented link is the citation to ViT5, with the toolkit’s particular summarization implementation left unspecified. FreeTxt-Vi

Cite

Cite as Long Phan, Hieu Tran, Hieu Nguyen and Trieu H. Trinh. 2022. ViT5: Pretrained Text-to-Text Transformer for Vietnamese Language Generation. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Student Research Workshop.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.naacl-srw.18

@inproceedings{phan2022vit5,
  title = {{ViT5: Pretrained Text-to-Text Transformer for Vietnamese Language Generation}},
  author = {Long Phan, Hieu Tran, Hieu Nguyen and Trieu H. Trinh},
  booktitle = {Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Student Research Workshop},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-srw.18},
  url = {https://doi.org/10.18653/v1/2022.naacl-srw.18}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/phan-2022-vit5-pretrained-text-text-transformer/