Improving Large-scale Language Models and Resources for Filipino
Paper · 2022 · Jan Christian Blaise Cruz and Charibeth Cheng
Summary
A Filipino text classifier needs examples of the task it will perform. It also needs a way to learn from the much larger amount of text that carries no task labels. Cruz and Cheng address the second need by building TLUnified, a Filipino pretraining corpus assembled from the Filipino side of bilingual collections, a filtered web crawl, and news articles. They use this corpus to train Base and Large versions of RoBERTa.
The authors then adapt the pretrained encoders to classify election-related tweets for hate speech, identify combinations of dengue-related labels in tweets, and judge relationships between sentences drawn from news. Both RoBERTa variants beat the earlier Filipino systems on test accuracy in all three tasks. RoBERTa Large reaches 78.24% on Filipino Hatespeech, 81.10% on Filipino Dengue, and 95.10% on NewsPH-NLI Medium. Its lead over RoBERTa Base is small on each benchmark when the full set of labeled training examples is available.
The ranking changes as the authors reduce the number of labeled examples and keep the test set fixed. On Filipino Hatespeech, the Base variant of RoBERTa scores higher at 50% and 10% of the training data, while Large scores highest among all the systems tested at 1%. On Filipino Dengue, Large starts ahead with the full training set, but Base scores higher at 10% and 1%. The two variants remain close on the larger news benchmark throughout the experiment.
The study establishes what the new pretraining setup and corpus achieve together. The authors attribute much of the improvement to the scale and variety of TLUnified, but the comparisons change the pretraining method as well as the corpus. The reduced-data experiments provide a separate result about adaptation to a specific task. They show that the advantage of a larger encoder depends on the task and on how many labeled examples are available to adapt it.
Deep dive: Improving Large-scale Language Models and Resources for Filipino
How TLUnified and RoBERTa improve Filipino text classification, and what happens when the classifiers have fewer labeled examples to learn from. · about 35 minutes to read
The problem and its context
Two kinds of training data
A system that learns to classify Filipino tweets faces a practical division of labor. The raw text it reads during pretraining can teach it which words and phrases occur together and how context changes their interpretation. The labeled examples it sees later teach it what a particular task asks it to predict. A news sentence during pretraining can contribute to an encoder's familiarity with Filipino without carrying any annotation about hate speech or dengue. Giving the encoder labeled tweets during adaptation ties what it has learned to the categories the benchmark actually scores. This division underlies the paper's use of pretraining and fine-tuning.
The paper describes Filipino as a language for which several kinds of research infrastructure are scarce. The shortage includes tools and pretrained encoders as well as the benchmark data used to evaluate them. This matters because different gaps make experiments difficult in different ways. A shortage of labeled data limits the evidence available for learning a task. A shortage of reusable text limits what an encoder can learn before the task is introduced. A shortage of benchmarks makes it harder to compare approaches across tasks. Cruz and Cheng focus on the reusable text and the encoders trained on it, then use existing task resources, with changes to some of the setups, to evaluate the effect. This is their framing of the problem for low-resource languages.
The introduction acknowledges research on learning from small amounts of data. The authors still treat corpus construction as a central part of the problem because the neural systems they consider use large amounts of text in pretraining. They also make a distinction between increasing the amount of data and designing data that reveal a system's weaknesses. TLUnified serves principally as a larger, broader source of pretraining text. The benchmarks and the experiments that reduce their training splits serve the second purpose by showing where the resulting encoders perform reliably and where their scores change.
This gives the study two separate questions. One is whether a new Filipino pretraining setup yields a better starting point for classification. The other is how much of that advantage survives when labeled examples are scarce. A full-training benchmark answers the first question under a particular supply of labels. Reducing the labeled training set addresses the second by changing what the classifier can learn about the task while leaving its starting point and the test examples in place.
The earlier Filipino resources
The corpus that motivates the work is WikiText-TL-39. The authors describe it as small and narrow in subject matter for the kind of pretraining they want to perform. They respond by assembling text from several collections with different origins. Webpages, news articles, and the Filipino sides of translation resources can supply different kinds of sentences. The size of a collection and the range of writing it contains are distinct properties. A collection can grow within a single domain, while a combination of sources can also change which subjects and registers appear at all.
Earlier Filipino work had already trained encoders using BERT and ELECTRA. Those systems provide a point of comparison for the new release. RoBERTa is attractive to the authors because it revises the BERT training recipe while keeping a relatively simple pretraining task. Their account emphasizes RoBERTa's optimization of the previous recipe and its performance on multiple downstream tasks. The lineage matters for understanding the experiment. The authors are applying an established pretraining approach to a different corpus and language resource setting. Their architectural starting points come from BERT and RoBERTa.
A Transformer encoder gives a downstream classifier a representation of text in context. The paper trains the encoder before the task categories enter the picture, then adapts it separately to each classification problem. The tasks place different demands on that representation. Hate speech classification assigns a category to a post. The dengue benchmark requires a category that encodes a combination of annotations. The news benchmark concerns the relationship between two sentences. The study can therefore ask whether a common starting point helps with different input structures and kinds of decisions.
ELECTRA also matters to the authors' interpretation of data efficiency. In their discussion, a masked prediction objective such as RoBERTa's gets its explicit prediction targets from the masked part of the input, while ELECTRA's training provides supervision over more token positions. The authors use that distinction to consider why an earlier encoder might retain a substantial share of its classification accuracy even though it was pretrained on a smaller corpus. The comparison gives them a reason to distinguish the amount of text available before adaptation from the way a pretraining objective uses that text.
Why the news data require a separate split
The news resource introduces a design problem that does not arise in the same form for the tweet benchmarks. The authors want to use NewsPH articles as raw Filipino text and also use a benchmark whose sentence pairs come from NewsPH. A benchmark pair can be new to the task classifier as a labeled example while still containing sentences that the encoder has encountered during pretraining. The authors regard this overlap as a route to inflated benchmark scores. Separating material after creating the task examples would fail to address overlap if their underlying articles were already in the raw pretraining corpus.
Their solution assigns different portions of NewsPH to the two roles. One portion supplies text for TLUnified. The other supplies the articles used to regenerate the inference benchmark. That decision changes which edition of the benchmark is appropriate for the experiment. The authors call the regenerated edition NewsPH-NLI Medium and run the comparison systems on the task used in the study. The comparison is consequently about the Medium edition and its held-out examples. Results obtained with the original NewsPH-NLI would address a differently constructed dataset.
The split also illustrates the difference between having more source text and being able to use all of it for a given purpose. In TLUnified, the authors trade part of the available NewsPH text for a benchmark with a separate NewsPH source partition. The same source can contribute to both resource creation and evaluation when the allocation is made before those resources are assembled. Each article's assignment determines whether it contributes to learning general representations or to the experimental task built from the held-back portion.
The method, step by step
Collect Filipino text from sources with different origins
TLUnified begins with collections that already contain Filipino text. The first group consists of bilingual corpora, or bitexts, in which passages in different languages have been aligned for uses such as machine translation. A translation system can use the correspondence between the passages. For pretraining a Filipino encoder, the authors extract the Filipino side and discard the need to preserve that bilingual correspondence in the resulting corpus. They deduplicate the text they extract. This turns resources assembled for translation into sources of monolingual training material.
Among the bilingual inputs are collections built from different kinds of writing. The news and web material in TLUnified sit alongside text drawn from sources such as subtitles and software-related collections. Wikipedia-derived sentence pairs contribute another source of Filipino text. The authors also include material from a multilingual Bible corpus and from a collection of aligned web documents. These are examples of existing resources they combine, with WikiMatrix, the parallel Bible corpus, and CCAligned among the named inputs.
The second group comes from OSCAR. OSCAR derives from Common Crawl through language identification and filtering. The authors take the deduplicated Filipino portion, identified as Tagalog in the source collection. This provides text acquired by first finding material in the target language in a web crawl. By comparison, extracting text from bitext starts from material that is already associated with a passage in another language. Once joined in TLUnified, both kinds of material contribute Filipino lines to the pretraining stream.
The third source is NewsPH, a corpus of Filipino news articles. The authors reserve 60% of NewsPH for TLUnified and use 40% to regenerate NewsPH-NLI Medium. These percentages refer to the NewsPH corpus itself. TLUnified also contains material drawn from the bilingual collections and OSCAR. The reservation is made because the original version of the inference benchmark draws on news material that overlaps with the part of NewsPH used for pretraining. Regeneration makes the benchmark correspond to the other NewsPH portion.
The separation matters downstream. During pretraining, each reserved-for-pretraining news item contributes ordinary running text. During benchmark construction, articles from the other portion provide material for labeled sentence pairs. The pairing rule is part of making the benchmark, whereas the plain text is what enters TLUnified. Keeping track of both roles at the point where articles are allocated gives the authors a way to control overlap from this shared source.
From Filipino source text to classification experiments
The steps in order.
Clean the pooled text
The authors expect text gathered by crawling and automatic alignment to contain material unsuitable for pretraining. Their filters act on sentence-level properties that are quick to detect, such as the writing system, length, punctuation, and traces of web markup. The filters can be understood as rejection rules. If a line triggers a rule, the pipeline discards it as a whole. The surviving lines form the input to another deduplication pass.
One rule checks the share of characters that are non-Latin letters. The pipeline drops a sentence when that share exceeds 15%. The rule addresses the composition of a line. A character-based check can flag text dominated by another writing system or by mixed material of the kind the authors want to remove. Its threshold provides a reproducible description of that check, subject to the implementation's character categories.
The authors also describe a token-count filter. The printed condition is as follows.
4 ≤ N ≤ 150
Here N is the number of tokens in a sentence, and ≤ includes the boundary values in the interval. The paper says sentences satisfying the condition are removed. That wording makes the intended direction of the filter unclear, so the stated bounds identify the range mentioned in the rule while leaving its implementation ambiguous. The paper also leaves the exact preliminary tokenization for this filter unspecified.
A separate rule rejects lines containing tokens made up of long successive runs of punctuation. The authors illustrate the problem with a run of slashes. This targets a property of a token inside a sentence, so ordinary punctuation and successive punctuation inside a single token are different cases under the written rule. The paper gives an example of the material that triggers concern and leaves the precise threshold for a run unspecified.
The word-length rule uses the average number of characters per token. To get the average, the authors add the character lengths of the tokens, then divide by the token count. They give the following condition for keeping a sentence.
3 ≤ r ≤ 18
Here r is that average character length, and ≤ means the endpoints are included. The authors motivate the rule with sentences containing exceptionally long tokens. The quantity they describe is an average across the entire sentence. An exceptionally long token influences that quantity along with all the other tokens in the line, so the written test operates on the average that results.
The final type of filter removes lines containing HTML or URL-related tokens. The examples include pieces of web addresses that can survive as tokens in crawled text. Later, during preparation of the tweets, links have a different treatment because the tweet itself may still be a useful labeled example. Here the unit of selection is a line in a large collection of raw material. The filter removes the line when it encounters the unwanted web pattern.
After all these checks, the authors deduplicate the combined corpus again. Earlier deduplication of extracted bilingual data and use of the deduplicated OSCAR portion handle repetition within those inputs. Deduplicating after the merge can also remove identical lines that entered from different sources. The assurance the authors describe is about exact line identity. Two lines that express the same content with changes in punctuation or wording could still survive as distinct strings.
The resulting corpus is called TLUnified. Its variety comes from bringing together the different sources, and its filtering rules determine which parts of them survive. These stages have different effects on the material the encoder sees. Collection determines which styles and topics can enter the pool. Filtering applies surface criteria to the pooled text. Deduplication limits exact repetition within the resulting set of lines. The experiments later evaluate the resource produced by all of these decisions together.
Learn the vocabulary and pretrain the encoders
The authors use TLUnified to learn the units that will enter the encoder. Their vocabulary contains 32,000 units learned by byte-pair encoding, or BPE, and the tokenizer keeps capitalization. BPE builds units from recurring sequences, so an input word can be expressed as several learned pieces when the vocabulary does not contain it as a single unit. Learning those pieces from TLUnified ties the inventory to the material used for Filipino pretraining. The tokenizer has a character coverage setting of 1.0. Both encoder sizes use the same inventory and segmentation procedure. This is the role of subword tokenization in the pipeline, following the BPE approach in Neural Machine Translation of Rare Words with Subword Units.
Preserving case retains distinctions present in the original strings. A capitalized form can therefore enter tokenization with its capital intact. Sharing the tokenizer between Base and Large also means that differences between the two start after the input text is segmented. The vocabulary size and maximum number of input positions are properties of the setup with different meanings. The vocabulary describes the inventory of pieces the encoder can receive. The sequence limit describes how many positions it can process for an input at the specified stage.
The authors follow the RoBERTa pretraining approach. In masked language prediction, selected tokens are hidden and supply targets for the system to recover using the surrounding text. The training corpus supplies these targets automatically. This is how an ordinary Filipino sentence can provide a learning signal without a human decision about its hate speech, dengue, or inference category. The pretraining signal comes from the text itself, and the classification signal arrives during adaptation to a particular dataset.
RoBERTa Base has 110M parameters and RoBERTa Large has 330M. Base uses a hidden size of 768 and a feedforward size of 3072. Large uses a hidden size of 1024 and a feedforward size of 4096. Hidden size refers to the width of the representation carried through the encoder. Feedforward size describes the width inside the feedforward transformation within a layer. The Large variant therefore widens both parts of the layer as well as increasing the number of layers.
Base has 12 attention heads and 12 hidden layers. Large has 16 attention heads and 24 hidden layers. An attention head is one of the parallel components that lets a position use information from other positions in its input. The layers are the successive stages that transform those representations. Both variants have a maximum sequence length of 512 and a dropout setting of 0.1. Dropout is a training operation that temporarily suppresses parts of the computation. In this setup, depth, width, and the number of heads distinguish the variants while the sequence limit and dropout setting are shared.
Pretraining batches are assembled by adding tokens until the batch hits a ceiling of 8192 tokens. Here the budget is expressed in tokens because inputs can differ in length. The authors use Adafactor to update the parameters, with the optimizer setting β₂ at 0.98 and weight decay at 0.01. β₂ is the optimizer's coefficient for tracking the second moment of the gradients. Weight decay is the setting that controls how strongly the update penalizes large weights. These choices are common to both pretraining runs.
The schedules differ by variant. Base is pretrained for 100,000 steps at a configured learning rate of 6e-4. Large receives 300,000 steps and has a configured rate of 4e-4. A step is an update during training, and the learning rate controls the scale of the update. Both schedules increase the rate linearly over the first 25,000 steps and then decrease it linearly for the remaining steps. The warmup is thus shared in step count even though the overall runs have different lengths. Eight NVIDIA Tesla P100 GPUs are installed in the server used for the experiments.
Prepare tweets and news pairs for classification
The downstream data go through a different kind of preparation. Both tweet collections already contain documents that are useful because of their labels. The authors aim to preserve the wording around a link, an account mention, or a hashtag while giving those items consistent representations. They also repair text that had been split or transformed during previous preprocessing.
For text previously processed with Moses tokenization, the authors apply Moses detokenization. This rejoins pieces that had been separated by that earlier procedure. They also rejoin spaced apostrophes and punctuation in cases where the earlier Filipino benchmark setup had separated them. Apostrophes in contractions and hyphens inside expressions are examples of forms affected by this treatment. Character entities such as the encoded representation of an ampersand are restored to their visible characters.
Web links and HTML metadata become [LINK]. An account mention becomes [MENTION] when a substring begins with @ and has length greater than 1. A hashtag becomes [HASHTAG] under the corresponding rule for #, again with length greater than 1. The marker preserves the presence of the item while collapsing specific strings to a shared form. An image represented by a link, for instance, can still leave a placeholder after preprocessing. The figure in the paper illustrates an election-related post with link and mention markers among the remaining words.
These placeholders are added to the encoder vocabularies for adaptation to the Hatespeech and Dengue datasets. The authors initialize their vectors with the average of the vectors for the existing sub-word inventory. An embedding vector is the numerical representation assigned to a vocabulary item at the input. Taking the average gives each new marker a starting representation derived from the current embedding layer. The marker can function as a vocabulary item even though it was introduced for the labeled tweet tasks.
For Dengue, the authors also change the form of the target. A tweet can carry multiple annotations from a set of five dengue-related categories. The adaptation setup concatenates the category indicators in a fixed order and treats the resulting binary string as the encoding of a single class. The paper illustrates this with the ordered labels absent, dengue, healthclasses, mosquito, and sick. Its example activates absent, dengue, mosquito, and sick, yielding 11011. The decimal representation of that pattern is 27, which becomes the category the classifier predicts for that example.
This representation gives the task 32 possible classes. A single prediction therefore stands for a complete combination of annotations. The examples in the paper show tweets about feeling unwell and about mosquitoes. A reader might attend to a different part of each post when deciding which underlying labels apply, but the classifier is scored on the combined target. The recoding also helps explain why the authors rerun comparison systems for this task. A result from a setup that predicts each original label separately would measure a different decision.
NewsPH-NLI Medium already has prepared sentence pairs, so the authors apply no additional preprocessing to them. The benchmark is generated from the inverted-pyramid organization of news described in the paper. The generation method treats successive sentences in an article as related through the information structure of the article and uses that relationship to construct entailment examples. In the resulting task, the premise is the sentence presented as evidence and the hypothesis is the sentence whose relation to it must be classified. Entailment is the label for a hypothesis treated as following from its premise. The paper also illustrates a pair labeled contradiction, in which the two sentences receive the opposing category assigned by the dataset.
The examples help distinguish the inputs from those in the tweet tasks. Each tweet is classified on its own, with placeholders for selected parts of its text. An inference example contains a premise and a hypothesis, both needed to make the prediction. The paper's examples also show why the automatic origin of the labels matters. A benchmark label records how the pair was constructed and classified by the dataset procedure. Its relationship to an independent semantic judgment is a separate question.
Adapt and evaluate each encoder
Fine-tuning gives each encoder the labeled examples for the task it will be tested on. The authors also fine-tune Tagalog BERT and Tagalog ELECTRA so that the comparisons include the altered Dengue setup and the regenerated inference benchmark. The reported finishing scores follow adaptation to these task definitions. During this stage the systems use Adafactor, a batch size of 32 sentences, and weight decay of 0.1. The schedule raises the learning rate from zero during warmup and then decays it linearly.
For Base variants, the reported settings are a maximum sequence length of 128, learning rate of 2e-5, and warmup ratio of 0.1. For the Large variant, the settings are a sequence limit of 256, learning rate of 1e-5, and warmup ratio of 0.06. The warmup ratio specifies the share of the training schedule used for the initial increase in learning rate. The authors permit longer inputs for Large and relate that choice to its deeper encoder. The two sizes consequently differ in their adaptation settings as well as in their architecture and pretraining schedules.
The smaller sequence limits reduce the cost of adaptation relative to the full 512-position allowance. The paper reports speedups of approximately 4x for Base and 2x for Large. It also reports that no sentence or sentence pair in these tasks reaches 256 sub-words. That length observation directly supports fitting examples within the Large limit. The Base limit is 128, and the paper gives no corresponding distribution at that threshold. The reported speedup and the claim about input coverage therefore have different levels of support for Base.
The experiments first adapt the encoders on the complete labeled training set for a task. The authors then rerun adaptation using 50%, 10%, or 1% of the labeled training examples. They keep the full test set and retain the fine-tuning hyper-parameters for the corresponding system. This procedure simulates scarcity in task labels while preserving what the encoder learned from its pretraining corpus. The Hatespeech test includes the earlier encoders and both RoBERTa sizes. The tests across all three tasks compare the two RoBERTa sizes.
Read absolute and relative degradation
The first quantity the authors define is accuracy degradation, the gap between a system's full-training accuracy and its accuracy after training on a subset. The printed definition gives the difference in this order.
AD(p%) = Acc(100%) − Acc(p%)
AD(p%) is accuracy degradation at training fraction p%. Acc is test accuracy. Its argument specifies which share of the labeled training data was used during fine-tuning. 100% refers to the full training set, and p% denotes a reduced share of that set. The minus sign takes the reduced-training accuracy away from the full-training accuracy. In the results tables, the AD entries for losses have the opposite sign from this displayed definition. The test accuracies and the relative degradation entries make the direction of the reported changes clear.
The second metric sets that loss against the same system's full-training score.
DP(p%) = AD(p%) × 100 ÷ Acc(100%)
DP(p%) is the degradation percentage at training fraction p%. AD(p%) is the accuracy loss in the first formula, and Acc(100%) is the full-training test accuracy. The multiplication sign applies the factor 100 to express the result on a percentage scale, and the division sign normalizes it by the full-training accuracy. Two systems can therefore have different test accuracies and still give up a similar share of their own starting performance.
The paper calls the average of the degradation percentages at 50%, 10%, and 1% the degradation speed, abbreviated DS. This is a summary of the three chosen experiments. Each of the reported degradation percentages enters the average, irrespective of the distance between the training fractions. It gives a convenient ordering for overall relative retention across those settings. The individual test scores and degradation percentages show where that ordering changes from one setting to another.
Experiments and results
What the benchmarks ask the systems to predict
Filipino Hatespeech contains 10,000 tweets collected during the 2016 Philippine Presidential Elections. Its labels indicate hate or non-hate. The accuracy score measures whether the encoder, after fine-tuning, predicts the assigned category for an example. This benchmark concerns election-related posts with the text treatment described above. The dataset supplies a specific setting for evaluating text classification.
Filipino Dengue has 4000 samples that can carry more than one of the underlying labels. The study measures accuracy on the recoded combination classes. A prediction that recovers only some of a tweet's active categories is a different class from the recorded combination. This makes the reported score sensitive to whether the system gets the complete label pattern. It also matters when interpreting what happens on a small training subset. The examples teach the classifier to associate whole combinations with inputs, and the available combinations may differ across subsets.
NewsPH-NLI Medium contains automatically generated pairs drawn from the reserved part of NewsPH. The authors describe it as larger than the other task datasets. The benchmark score measures how often the assigned relation is recovered for a premise–hypothesis pair. The separation within NewsPH is relevant to every reported score on this task. It prevents the articles allocated to generate the benchmark from also being selected through the NewsPH contribution to TLUnified. This is a specific overlap control for a source deliberately used in both parts of the study.
The comparison systems are BERT Base Cased and ELECTRA Base Cased, alongside RoBERTa Base and RoBERTa Large. The paper reports both validation and test accuracy. The validation column records performance on the validation split, while the test column records performance on the separately designated test split. The headline comparisons use test accuracy. The tables make it possible to see cases where validation and test give slightly different orderings among the baselines.
Hate speech in election tweets
With the full training set, RoBERTa Large has the highest Filipino Hatespeech test accuracy at 78.24%, and RoBERTa Base reaches 78.07%. BERT Base Cased is the strongest baseline on the test split at 74.17%. ELECTRA Base Cased scores 72.50%. The authors report a gain of +4.07% test accuracy for RoBERTa Large over BERT Base and give the gap between Large and Base as +0.17%. The first comparison shows the improvement over the best earlier result under this setup. The second shows how little of that improvement depends on choosing Large for full-data evaluation.
Full-training test accuracy on Filipino Hatespeech
Both RoBERTa variants outperform the earlier encoders, and Large finishes narrowly ahead of Base.
The numbers
| System or setting | accuracy % |
|---|---|
| BERT Base Cased | 74.17 |
| ELECTRA Base Cased | 72.50 |
| RoBERTa Base | 78.07 |
| RoBERTa Large (this paper) | 78.24 |
The validation split gives BERT Base Cased 74.79% and ELECTRA Base Cased 74.91%. The ordering between those baselines reverses on the test split. RoBERTa Base and Large stay ahead of both on validation, scoring 78.66% and 78.97% respectively. This is a useful place to name the split explicitly. ELECTRA leads BERT among the earlier systems on validation, whereas BERT is the baseline used in the paper's headline test comparison.
Dengue tweets with combined labels
On Filipino Dengue, RoBERTa Large reaches 81.10% test accuracy, followed by RoBERTa Base at 80.20%. BERT Base Cased scores 75.80%, and ELECTRA Base Cased scores 69.20%. The ordering also holds on validation. The reported validation accuracies are 82.81% for RoBERTa Large, 81.80% for RoBERTa Base, 77.20% for BERT Base Cased, and 74.00% for ELECTRA Base Cased. The best earlier encoder is BERT in both splits for this task.
Full-training test accuracy on Filipino Dengue combination classes
Both RoBERTa variants lead the baselines on the recoded dengue task.
The numbers
| System or setting | accuracy % |
|---|---|
| ELECTRA Base Cased | 69.20 |
| BERT Base Cased | 75.80 |
| RoBERTa Base | 80.20 |
| RoBERTa Large (this paper) | 81.10 |
The paper's results discussion reports +5.3% test accuracy for RoBERTa Large over BERT Base, while the conclusion gives +5.03% for the dengue gain. The split accuracies above are the directly tabulated results for the comparison. The results discussion also reports +4.4% test accuracy for RoBERTa Base over BERT Base and +0.9% for RoBERTa Large over RoBERTa Base. Those comparisons concern the multiclass task built from label combinations.
Among the full-training results, the dengue benchmark shows the largest reported separation between the RoBERTa sizes. The input is a single tweet, as in Hatespeech, but the target represents a complete set of categorical judgments. This difference becomes important when looking at the reduced-data conditions. In the full-data condition there are more opportunities to encounter the kinds of label patterns that must be recovered as a unit.
Pairs of news sentences
RoBERTa Large scores 95.10% test accuracy on NewsPH-NLI Medium. RoBERTa Base scores 95.01%. Here ELECTRA Base Cased is the strongest earlier system at 91.06%, ahead of BERT Base Cased at 88.74%. The authors report a gain of +4.04% test accuracy for Large over ELECTRA Base and +3.95% for RoBERTa Base over ELECTRA Base. The reported gap between the two RoBERTa sizes is +0.09%, the smallest of their full-training test gaps across these benchmarks.
Full-training test accuracy on NewsPH-NLI Medium
Both RoBERTa variants improve on the strongest earlier encoder and finish close together.
The numbers
| System or setting | accuracy % |
|---|---|
| BERT Base Cased | 88.74 |
| ELECTRA Base Cased | 91.06 |
| RoBERTa Base | 95.01 |
| RoBERTa Large (this paper) | 95.10 |
On the validation split, RoBERTa Large reaches 94.99% and RoBERTa Base reaches 94.92%. ELECTRA Base Cased reaches 90.94%, and BERT Base Cased reaches 88.38%. The ranking persists across the two splits. These scores belong to the regenerated Medium task, whose news articles were allocated separately from the NewsPH articles used in pretraining.
The abstract reports an average gain of 4.47% in test accuracy across the classification benchmarks. The individual scores give that aggregate its context. The reference system for each headline comparison is the strongest earlier system on that task, which is BERT Base for the tweet benchmarks and ELECTRA Base for the news benchmark. The paper's two different statements of the gain on Dengue make the individual test scores particularly useful when reporting this result.
What changes when training labels are scarce
The Hatespeech stress test evaluates all the encoders under reduced supervision. On the full test set after adaptation with 50% of the training data, RoBERTa Base scores 76.32%, Large scores 75.78%, BERT Base scores 71.93%, and ELECTRA Base scores 70.94%. RoBERTa Base also leads at 10%, with test accuracy of 72.78%, followed by Large at 72.12%, BERT Base at 68.53%, and ELECTRA Base at 65.22%. These intermediate settings put Base ahead of Large even though Large started with the better full-training test score.
At 1% of the Hatespeech training data, Large recovers the lead with 58.72% test accuracy. Base reaches 56.26%, ELECTRA Base reaches 54.44%, and BERT Base reaches 52.95%. The ordering by relative degradation differs from the ordering by accuracy. At this fraction, ELECTRA Base has a degradation percentage of 24.91% and RoBERTa Large has 24.95%. ELECTRA retains a slightly larger share of its own full-training score, while Large gets more test examples right because it starts from a higher full-training score. The Base variants of BERT and RoBERTa give up larger shares of their respective starting scores at this fraction, with degradation percentages of 28.61% and 27.94%.
Over the three reduced-data Hatespeech runs, Large has the lowest reported degradation speed at 11.97. RoBERTa Base follows at 12.32, then ELECTRA Base at 12.37 and BERT Base at 13.08. This average orders the systems by relative loss across the selected fractions. At a particular fraction, the accuracy columns answer a different question about which system correctly assigns more test labels.
The Dengue comparison among RoBERTa variants changes direction as the training subsets shrink. At 50%, Large still has higher test accuracy, 79.61% against 79.11% for Base. Its relative degradation is 1.83%, compared with 1.36% for Base, since it is evaluated against its own higher starting point. At 10%, Large scores 71.95% and Base scores 74.27%. At 1%, Large scores 58.55%, while Base remains ahead at 60.12%. For the three reduced-data conditions together, the degradation speeds are 13.64 for Large and 11.26 for Base. The size ranking for relative retention on this task reverses the one seen on Hatespeech.
The NewsPH-NLI Medium scores for the RoBERTa variants remain close at the chosen training fractions. With 50% of the training data, Large reaches 93.02% test accuracy and Base reaches 92.47%. The scores at 10% are 88.19% for Large and 87.93% for Base. With 1% they are 71.95% and 71.56%, respectively. The degradation speeds are 11.27 for Large and 11.60 for Base. The similar results for the two sizes hold across the individual fractions as well as in the aggregate. Both still lose a substantial share of their starting accuracy at the smallest fraction, with reported degradation percentages of 24.34% for Large and 24.68% for Base.
What the ablations show
Which comparisons isolate a change
The paper offers controlled comparisons of labeled training fractions and comparisons between encoder sizes, while leaving corpus components and cleaning choices unablated. Within a particular task and encoder, reducing the training fraction changes the amount of task supervision, keeps the full test set, and uses the same fine-tuning hyper-parameters. That intervention has a relatively direct interpretation. The system begins with the same pretrained encoder and has fewer labels available to learn the decision rule for the task.
Comparing Base and Large holds the tokenizer, corpus, and pretraining approach in common. It changes several other things together. Large has a wider and deeper encoder, a longer pretraining run, a different pretraining learning rate, and different fine-tuning settings. The experiment measures the behavior of the two trained variants as released and configured. Attributing the gap specifically to parameter count would require a design that separated it from those other changes.
The comparison with BERT and ELECTRA changes even more. The earlier encoders were trained on different amounts of text, and their pretraining recipes differ from the one used for RoBERTa. Their evaluation in the same downstream setups makes the performance comparison meaningful as a comparison of usable starting points. A separate corpus ablation could train the same encoder with the same recipe on WikiText-TL-39 and TLUnified. Another could compare corpora of equal size with different source mixtures. The reported training runs leave both the scale effect and the diversity effect inside the combined change.
What the matched training fractions reveal on Hatespeech
The intermediate Hatespeech conditions show how an average can conceal changes in rank. At 50%, Large loses 3.15% of its own full-training accuracy in relative terms. At the same fraction, ELECTRA Base loses 2.15%, RoBERTa Base loses 2.24%, and BERT Base loses 3.02%. Thus Large's disadvantage at half data can be seen even after adjusting each system's score for its own starting point. Its higher degradation at that fraction coincides with Base taking the lead in absolute test accuracy.
At 10%, ELECTRA Base records a degradation percentage of 10.04%, the largest at that training fraction in the Hatespeech comparison. RoBERTa Base records 6.78%, BERT Base records 7.60%, and RoBERTa Large records 7.82%. At 1%, ELECTRA moves into the pair with the lowest relative losses alongside RoBERTa Large. Its profile illustrates why degradation speed is an average over selected points and why the separate points matter. ELECTRA fares differently relative to the other encoders depending on which training subset size is used.
The authors suggest that ELECTRA's pretraining objective helps explain its relative retention at the smallest fraction. In their account, the objective provides a learning signal over more of an input than the masked prediction objective used by RoBERTa. That offers a possible explanation for why ELECTRA Base can approach Large's relative retention while coming from less pretraining text. The experiment measures retention directly. Comparing the two objectives on matched text and training budgets would be needed to show how much of that behavior comes from the objective.
RoBERTa Base and ELECTRA Base have very similar aggregate degradation speeds, with a reported difference of 0.05 on Hatespeech. Their curves still differ. RoBERTa Base retains more of its own starting performance at 10%, while ELECTRA gives up a smaller share at 1%. One encoder can have higher absolute test accuracy throughout the reduced-data runs even when another has a lower relative loss at a particular fraction. The Hatespeech results provide both measures, so that distinction can be checked directly.
Where size makes a difference across tasks
The cross-task experiment asks whether the size comparison observed on Hatespeech reappears elsewhere. On Hatespeech, the advantage in relative retention shifts from Base at the intermediate training fractions to Large at the smallest one. On NewsPH-NLI Medium, Large has a slightly smaller relative loss at every reduced fraction. On Dengue, Base has a smaller relative loss at every reduced fraction. The same pair of pretrained encoders thus exhibits different patterns depending on the task used to adapt it.
Dengue is the strongest example of why the full-data ranking can mislead about a reduced-data condition. Large leads with the complete labeled training set and still has higher absolute accuracy at 50%. Its starting advantage then disappears at the smaller fractions. The degradation percentages at 10% are 7.39% for Base and 11.28% for Large. At 1% they are 25.04% for Base and 27.81% for Large. The widening separation at 10% and the continued disadvantage at 1% serve as the basis for the authors' conclusion that Large has more difficulty retaining its performance on this benchmark.
The authors connect the Dengue result to the small starting dataset and the number of possible classes. That explanation is consistent with the structure of the task. If training examples are scarce, the classifier has fewer opportunities to see tweets with the same label combination. A label such as 27 names a particular combination as a class, and a classifier trained in this setup has to learn what text supports that target. The study gives no per-class analysis of the subsets, so the contribution of specific combinations remains open. The results show the change in overall accuracy under scarcity and leave the mechanism of that change to further testing.
For NewsPH-NLI Medium, the authors reason that the benchmark starts with enough examples for even a small fraction to provide meaningful supervision to both sizes. Their observation concerns the closeness of the two variants. It is compatible with both losing substantial accuracy as the training fraction shrinks. This distinction matters because there are two possible senses of robustness in the comparison. One is resistance to losing one's full-training score. The other is whether changing encoder size makes a large difference when the task has fewer labels. The news results show little separation between sizes even where both systems have declined.
The comparison across benchmarks also changes the kinds of inputs and labels. NewsPH-NLI Medium uses sentence pairs with automatically generated relations. Hatespeech focuses on a binary judgment for election-related posts, and Dengue predicts whole combinations of tweet annotations. A fraction is measured relative to each benchmark, so the same fraction represents different quantities of labeled evidence in different tasks. The authors' explanation in terms of absolute dataset size is plausible, and the cross-task experiment gives no way to hold the task definition steady while altering that starting size.
Why the full-training gain from Large is small
The authors hypothesize that TLUnified still falls short of the amount of text needed to exploit the capacity of RoBERTa Large. Their evidence is the small difference between Large and Base on the full-training benchmark results despite the architectural and training differences. The study establishes that the additional capacity yields only a modest improvement on these tasks under the stated setup. A run that increases pretraining data for Large would test the proposed explanation more directly.
The degradation experiments suggest another distinction within the same result. Full-training accuracy shows what happens once the systems can learn from the entire set of task labels. Reduced-data performance shows how the same starting points respond when fewer labels are available. Large's modest full-data lead across tasks can coexist with a reversal on reduced-data Dengue and a stronger result at the smallest Hatespeech fraction. The comparison supports a conditional account of size. The effect depends on the task, the training fraction, and the choice of absolute accuracy or relative retention as the measure.
Limitations
Limits the authors identify
The authors regard TLUnified as a larger and more varied resource than the earlier Filipino pretraining corpus, while suggesting that it may still be too small to make full use of the Large encoder. The small full-training gaps motivate this hypothesis. The authors also acknowledge the practical importance of size and of the availability of task labels when choosing among the encoders. Their reduced-data results give concrete reasons to treat the full-training ranking as one part of that decision.
They also acknowledge uneven source quality at corpus assembly. Crawling and automatic alignment motivate the rules that screen lines before pretraining. The reported method identifies several kinds of surface noise and removes exact line duplicates. The quality control that follows from these choices has a specific scope. It can catch the line patterns the rules describe, and the paper does not report a separate evaluation of the condition of the remaining text across sources or topics.
The paper recognizes source overlap as a threat for the news task. The authors replace the original benchmark with a version generated from material allocated away from the NewsPH contribution to pretraining. This is a stated constraint on which version of the task can support their comparison. It also means that the scores pertain to a regenerated benchmark. Readers comparing results across versions need to know which edition supplied the training and test pairs.
The authors propose that the Large variant may struggle under very limited supervision because effective fine-tuning can require more examples, and they mention catastrophic forgetting as a possible explanation in the Dengue case. Catastrophic forgetting here would mean losing useful abilities learned earlier while adapting to a new objective. The stress tests record the resulting classification scores. They contain no direct measurement of the encoder's retention of its pretraining behavior, so the proposed explanation remains a hypothesis.
Limits of the experimental design
The strongest comparison is between the released RoBERTa encoders and the earlier systems after adaptation to the same tasks. Its conclusions concern the performance of the packages as a whole. The improved corpus, the RoBERTa recipe, the learned sub-word vocabulary, and the training schedule can each influence the outcome. The reported design estimates their combined value in this setup and leaves their individual contributions unresolved. The same issue applies at a finer level to the source mixture. There is no experiment that omits a particular input, varies the proportion of news, or tests the filters separately.
The corpus description establishes breadth through the source inventory. The paper gives no total post-filter corpus size or breakdown of the final material by input source. It therefore leaves the magnitude and distribution of the claimed increase unspecified. A reader can identify the kinds of material used and the rules that select it. The resulting balance among genres, the amount contributed by each source after cleaning, and the proportion removed at each stage remain open.
Reconstruction of the cleaning process also depends on details the paper leaves uncertain. The stated token-count rule describes removing sentences within its printed interval, and the authors give no example of an accepted or rejected line that resolves that direction. The punctuation rule gives an illustration with repeated slashes and leaves the exact cutoff unstated. Likewise, exact deduplication can guarantee uniqueness under a specified string comparison while allowing near-duplicates. These are distinct issues for reproducing the corpus and for estimating how much repeated material survives.
The NewsPH split controls overlap from the deliberate allocation of NewsPH articles. TLUnified contains other web-derived text sources, so a claim about overlap across the whole corpus would require checking those sources as well. The paper does not report such an audit. Keeping NewsPH allocations disjoint is an important design choice within the documented pipeline, and its scope is the overlap the authors identified from reusing that corpus.
The news benchmark measures agreement with automatically generated labels. Its construction relies on a regularity about how news articles organize information. In individual articles, the relation between successive sentences may require a judgment beyond their position or topic. The paper illustrates examples of the resulting task but gives no independent rate of agreement between the automatic labels and human semantic judgments. A high score therefore characterizes performance on NewsPH-NLI Medium under its generation procedure. Its relevance to manually verified inference or to other kinds of writing remains unmeasured.
Limits of the reported scores
Accuracy supplies a common measure across the benchmarks, but each score collapses different kinds of errors. The Hatespeech score leaves the distribution of mistakes across hate and non-hate examples unstated. For Dengue, an erroneous combined class may have several correct underlying labels or very few, and either case counts as an incorrect class prediction. Overall accuracy also leaves the performance on individual combinations unknown. In the smaller subsets, performance could depend on which combinations appear and how often they appear. The reported results give no such breakdown.
The reduced-data tests preserve the test set, which removes one source of ambiguity when tracing a curve. They also hold the fine-tuning settings for a given encoder fixed as labels are taken away. The scores consequently measure performance under a stable adaptation recipe. An independently tuned setup at each fraction could produce a different ordering. The paper gives no dispersion across repeated draws of training subsets or repeated training runs. This leaves the stability of small gaps, especially the close aggregate scores and the nearly tied news results, unquantified.
The degradation speed summarizes the selected fractions with equal weight. A reader interested chiefly in the smallest training condition may care more about the corresponding row than about the aggregate. A reader choosing a system for the highest held-out accuracy may likewise prefer the test score to the percentage of full-training performance retained. The Hatespeech case at 1% illustrates that the two criteria can rank systems differently. Both criteria are defined, and the paper's conclusions about retention are clearest when attached to the measure and fraction used.
Several reporting details also affect how small differences should be interpreted. The formula and tables use opposite signs for the accuracy degradation entries. The Dengue improvement is stated differently in the results discussion and conclusion. The reported observation that inputs stay below 256 sub-words also leaves the coverage of the Base fine-tuning limit of 128 unresolved. The per-split test accuracies and the relative degradation entries give the clearest basis for describing the rankings. The comparisons cover classification under these datasets and settings. Broader performance on Filipino language tasks or on new domains remains outside the measurements.
What came after
The later work linked to this study is a large-scale Tagalog syntactic annotation project. Its subject is a treebank, a corpus in which sentences carry annotations that describe their grammatical structure. That is a different kind of resource from the text collected in TLUnified and from the task labels used to evaluate the RoBERTa encoders. The later paper's title identifies the annotation project and its focus on the challenges encountered in building it. The UD-NewsCrawl Treebank
The citation places Cruz and Cheng's work alongside a later effort to develop Tagalog language resources. The earlier study uses unannotated text to learn representations and classification labels to evaluate them. The later project's defining resource is text with syntactic annotation, where structure within the sentence is itself part of what the corpus records. This connection establishes a shared resource-building context. The citation alone leaves the nature of any direct reuse of TLUnified, the pretrained encoders, or the evaluation procedure unspecified.
Cite
Cite as Jan Christian Blaise Cruz and Charibeth Cheng. 2022. Improving Large-scale Language Models and Resources for Filipino. Proceedings of the Thirteenth Language Resources and Evaluation Conference.
@inproceedings{cruz2022improving,
title = {{Improving Large-scale Language Models and Resources for Filipino}},
author = {Jan Christian Blaise Cruz and Charibeth Cheng},
booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
year = {2022},
url = {https://aclanthology.org/2022.lrec-1.703/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cruz-2022-improving-large-scale-language-models/