Elamur Research

Evaluation of Transfer Learning for Polish with a Text-to-Text Model

Paper · 2022 · Aleksandra Chrabrowa, Łukasz Dragan, Karol Grzegorczyk et al.

Summary

A system that can write in Polish should be able to do more than continue a sentence. It should be able to recognize when passages mean the same thing, turn an article into a useful summary, answer a factual question, or translate between Polish and English. The authors ask how well a single text-to-text design can handle these jobs when it starts from multilingual training and is then adapted to Polish. Their study introduces plT5, compares it with existing systems, and builds an evaluation that includes new resources for text summarization and question answering.

The common design treats each task as a request to produce text. A sentiment prediction is a Polish label, a question calls for an answer, and an article calls for a lead or a headline. To build plT5, the authors start from mT5, replace its multilingual vocabulary with a smaller Polish one, and continue training on Polish text. During this training, they hide stretches of text and ask the system to supply the missing words. They then use fine-tuning to teach it the input and output conventions of each task.

The strongest results depend on the job. On the text-to-text version of KLEJ, plT5-large reaches an average test score of 86.4 across the evaluated tasks. That is the highest average among the systems that generate their labels as text. The Polish encoder HerBERT-large scores 87.5 in the standard KLEJ setting. On the PolEval test-A questions, plT5-large leads with 26.5 accuracy when given only the question and 51.3 when given retrieved Wikipedia passages. For machine translation, plT5-large leads into Polish with 25.5 BLEU on the WMT20 development set, while mT5-large leads into English with 29.0 BLEU. Summarization gives a different ranking. The smaller plBART has the best average ROUGE across the summarization test sets, at 29.3, while plT5-large produces the best scores on the specific task of writing an Allegro article headline.

The experiments show where Polish specialization helps and where the task itself changes the comparison. Retrieved evidence makes a large difference to factual answers. A baseline that copies the beginning of a news article can approach the strongest generated summaries under the paper’s word-overlap measure. Longer inputs also strain the systems unequally, so some news summarizers work with far less of the article than their references cover. The authors release plT5 and the new benchmark resources, making these conditions part of what can be examined in subsequent evaluations.

Deep dive: Evaluation of Transfer Learning for Polish with a Text-to-Text Model

The paper evaluates plT5, a Polish text-to-text system, on language understanding, summarization, question answering, and translation. · about 34 minutes to read

The problem and its context

A common interface for different language tasks

A classification system can answer a sentiment question by returning a class identifier. A translator has to produce a sentence. A summarizer has to decide which parts of a source deserve space and how to express them. These operations have different evaluation criteria, but each can be expressed as a transformation from one piece of text into another. An input can identify a passage as a review, and the requested output can be the word for its sentiment. A source sentence can carry an indication of the desired language, and the output can be its translation. That shared interface is the premise of the study.

The paper places this approach in the history of transfer learning for natural language processing. Earlier work reused word embeddings, numerical representations learned from text, as inputs for other tasks. The authors cite Distributed Representations of Words and Phrases and their Compositionality and GloVe in that line of work. They also cite BERT in their account of learned representations and refer to RoBERTa when discussing the progress of language understanding systems. These examples establish the general idea of learning from one body of text and reusing what was learned for a different objective.

The text-to-text work extends reuse to generation. In the paper’s account, the Transformer made large-scale training practical, and T5 demonstrated that a shared input and output format could be competitive across many tasks. The same architecture could receive a sentence pair and produce a short judgment, then be adapted to receive an article and produce a longer passage. BART is another example of training for generation by recovering text that has been deliberately damaged. The Polish study uses these precedents to ask how well the approach transfers to a particular language and how its benefits vary with the work assigned to it.

The reuse in question concerns the architecture, the initialization, and the kind of prediction made during training. The shared format still leaves important choices at the task level. A sentiment label needs a stable spelling. A headline needs enough information to capture the article’s subject under a tight length constraint. A factual answer needs to match what the question asks. A collection of experiments across these outputs can test the reach of the shared design while preserving each task’s own definition of success.

Why specialize a multilingual starting point?

The T5 work that motivates the study was available for English. Multilingual successors, including mT5, made a pretrained starting point available for a wider range of languages. A Polish system could therefore inherit weights that had already been trained and continue learning from Polish material. The practical question was how to reuse those weights when the set of text units the new system would read and write was deliberately different.

The paper describes earlier language-specific work, including CamemBERT, FlauBERT, and German’s Next Language Model, as evidence motivating specialization. It also cites earlier methods for adapting multilingual weights to a target language, including work on the Polish encoder HerBERT. The principle is to retain the parts of the pretrained network that can transfer directly and adapt the parameters whose meaning depends on the vocabulary. A vocabulary shared across languages has to accommodate many different text units. A Polish vocabulary can devote its entries to units useful in Polish and requires a smaller table of embeddings.

Specialization also creates an empirical question about the scope of transfer. The study asks a Polish system to write English as well as Polish in its translation evaluation. The conditions that help a system recognize Polish sentiment or generate a Polish headline may have different consequences when the output is English. Likewise, learning a great deal from Polish text could help a system understand a question while leaving it without the information needed to answer. The benchmark puts these possibilities into different experiments, where the input and expected output are explicit.

What the Polish evaluation needed

The authors had KLEJ as a starting point for language understanding. They could take existing tasks and specify how each should be performed through text generation. They also had an English–Polish translation setting through WMT20. For summarization and factual question answering, they describe a gap in Polish benchmarking. Materials existed that could be turned into evaluation data, but the authors had to decide what would count as an input, a reference answer, or a reference summary.

For summarization, they use professionally written titles and leads from articles on the Allegro marketplace, as well as human-written summaries of Polish news. The references reflect different editorial intentions. A marketplace headline is a short piece of writing that gives the reader the article’s subject. A news extract represents a choice about which passages are important enough to keep. An abstractive news summary gives the writer the freedom to rephrase. An evaluation that includes all of these forms can reveal whether a system responds to the source and the target style in the ways the task requires.

The factual question evaluation poses a related design choice about where answers should come from. A system can be asked to answer using what it learned during training. It can also be given candidate evidence at the time of the question. The paper follows earlier work on knowledge stored in pretrained parameters in motivating the question-only condition. For the evidence condition, it builds a retrieval procedure because the question collections do not come with passages suitable for this experiment. Together, the conditions make it possible to study the same answer-generation problem with different information available at prediction time.

The authors also identify plBART and papuGaPT2 as earlier attempts to train systems that generate Polish text. They describe a lack of detailed benchmark evaluations for these systems. The paper therefore undertakes both a construction problem and a measurement problem. It creates a Polish T5 variant and establishes comparable tasks on which that variant and the available alternatives can be evaluated. A useful comparison requires decisions about label wording, how much source text fits into an input, and how generated answers are scored. Those decisions are part of the experiment because they determine what each system has the opportunity to demonstrate.

The method, step by step

From multilingual weights to a Polish system

The authors build plT5 in small, base, and large sizes. Each uses an encoder to represent the input and a decoder to generate the output. In ordinary use, the encoder might receive an article while the decoder writes a lead, or the encoder might receive a question while the decoder writes a short answer. The framework can also generate a classification label. That label goes through the same general output mechanism as a piece of longer prose, even though the evaluation expects a tightly specified string.

The starting points are the corresponding sizes of mT5. The small architecture has 8 layers, 6 attention heads, and hidden dimension 1024. The base architecture has 12 layers, 12 attention heads, and hidden dimension 768. The large architecture has 24 layers, 16 attention heads, and hidden dimension 1024. An attention head is one of the components that lets a layer use information from distinct positions in a sequence. The hidden dimension describes the width of an internal representation. The configurations make clear that the size labels refer to complete architectures. Depth, head count, and width do not all increase in the same way.

From multilingual initialization to Polish task evaluation

The steps in order.

From multilingual initialization to Polish task evaluationStep 1: Assemble a mixture of Polish corpora1. Assemble a mixture of Polish corporaStep 2: Learn a Polish subword vocabulary2. Learn a Polish subword vocabularyStep 3: Transfer mT5 weights and initialize vocabulary embeddings3. Transfer mT5 weights and initialize vocabulary embeddingsStep 4: Hide spans of Polish text4. Hide spans of Polish textStep 5: Train the decoder to recover missing spans5. Train the decoder to recover missing spansStep 6: Format downstream examples as input and target text6. Format downstream examples as input and target textStep 7: Fine-tune and score each task7. Fine-tune and score each task

The new vocabulary uses subword tokenization. A tokenizer can represent a word as a sequence of smaller units, and each unit has an entry in the vocabulary. The paper uses SentencePiece with a unigram approach, drawing on Kudo’s subword work. The vocabulary contains 50k tokens. The authors train the tokenizer on Polish Wikipedia and a random 25% subset of the National Corpus of Polish. This tokenizer training uses selected parts of the available material. The subsequent denoising stage samples from a wider set of sources.

Changing the vocabulary requires care because an embedding is tied to the token it represents. Copying a whole embedding table unchanged would retain associations with the old vocabulary. The authors copy the remaining layers from the matching mT5 checkpoint and initialize the vocabulary entries by token identity. If a Polish vocabulary token already exists in the multilingual vocabulary, it receives the corresponding mT5 vector. If it is absent, they split it into subtokens recognizable to the source vocabulary and initialize it from the mean of those vectors. That gives an unfamiliar whole unit a starting representation based on components for which trained weights exist.

e(t) = Σᵢ v(sᵢ) / k

Here t is a token in the new vocabulary that lacks a whole-token match in the source vocabulary, and e(t) is its initial embedding. The symbols sᵢ denote the subtokens of t under the source tokenizer, with i indexing their positions. The function v gives the source embedding for a subtoken. The sum Σᵢ adds those vectors across all positions, and division by k, the number of subtokens, gives their componentwise mean. The equality describes the initialization before Polish denoising training updates the weights.

The vocabulary change also affects the parameter counts. mT5 uses 250k vocabulary entries in each of the compared sizes, while plT5 uses 50k. The paper gives 300M trainable parameters for mT5-small and 95M for plT5-small. The base versions have 582M and 275M, respectively. For large, the counts are 1.23B and 820M. The other Polish generators in the main comparisons also have vocabularies of 50k, with 139M trainable parameters for plBART and 124M for papuGaPT2. These counts matter when reading the results because systems grouped under a common size label can have quite different totals.

Learning from gaps in Polish text

The authors continue training on a mixture of Polish Wikipedia, the National Corpus of Polish, Wolne Lektury, Polish Open Subtitles, and Common Crawl material from Polish websites. Sampling is weighted by the size of each corpus. A larger source is therefore drawn more frequently. The corpus mixture establishes what text the system can learn from during this stage. The tokenizer establishes how that text is divided into the units the network will see.

The pretraining objective is span corruption. A span is a consecutive stretch of tokens. The training procedure removes selected spans and puts a special marker, called a sentinel, in place of each one. The encoder reads the damaged sequence, and the decoder is trained to produce the missing content. The objective is self-supervised because the unaltered text supplies the target. Preparing an example requires selecting and hiding parts of the existing material, without paying an annotator to write an answer.

The authors use the original T5 training scripts built on Mesh TensorFlow. The corruption rate is 15%, and the mean span length is 3 tokens. The optimizer is AdaFactor, which controls how the weights change in response to the training objective. The learning-rate schedule combines a warmup with inverse square root decay. The paper gives a peak learning rate of 5e-3, a batch of 1,048,576 tokens, 0% dropout, and 1024 warmup steps. The training run lasts 50k steps and uses a single preemptible TPU v3. The batch is expressed in tokens here, a different unit from the downstream batch sizes expressed in examples.

To choose the pretraining learning rate, the authors compare plT5-base checkpoints after 10k steps at 1e-3, 2e-3, and 5e-3. They use KLEJ tasks with validation data to judge the checkpoints. The tasks are AR, NKJP-NER, PolEmo2.0-OUT, and CDSC-E. This choice connects the pretraining decision to how well the intermediate checkpoints transfer to downstream work. The selected training continues to 50k steps. The procedure describes a search over rates for the chosen initialization, so it answers a practical training question about this adaptation route.

Teaching the decoder what each task asks for

Once the Polish pretraining is complete, supervised examples show the system what to produce for a task. The source is text arranged in a specified format and the target is the desired text. In KLEJ, the authors put descriptive prefixes before the input fields and convert the answer classes into meaningful strings. For example, a pair in the PSC paraphrase task has separately identified summary fields. The desired response names the relationship between the summaries. In Czy wiesz?, the format identifies the question and its proposed answer, and the output judges whether the pairing is correct.

A general task identifier could have been added to the front of the input. The authors omit it because they train a separate system for each KLEJ task. The field prefixes still appear and communicate the role of each piece of text. The decoder-only papuGaPT2 receives an additional [SEP] marker after the input. That marker gives its single stream of tokens an explicit boundary before the answer it should generate.

During KLEJ evaluation, generation is greedy, meaning the procedure chooses the locally most likely output token at each step. It stops at the end-of-sequence token or when it reaches the task’s output limit. The authors set that limit from the longest valid label after tokenization. The decoder can choose from the full vocabulary. After the tokens are converted back into text, the evaluator checks for an exact match with the expected label. A prediction thus has to satisfy the task judgment and express it in the prescribed form. A semantically sensible alternative wording would fail that example’s exact-match rule.

Summarization uses the same distinction between source and target while allowing much longer outputs. In Allegro Articles, the article body becomes the source for body2lead, with its original opening paragraph as the target. For body+lead2title, the body and lead are combined and the title is the target. The authors remove Markdown formatting and normalize whitespace before preparing the examples. They use the marketplace’s top-level article categories to stratify the splits, meaning the splits are designed to preserve the distribution of those categories. They assign 80% to training and 20% to testing, then set aside 10% of the training portion for validation and tuning.

For the Polish Summaries Corpus, the authors keep the available summaries and prepare variants called whole, extract, and abstract. Whole mixes both kinds of reference. Extract keeps summaries whose authors selected material from the article, and abstract keeps references written as new text. The paper again describes an 80% training and 20% test split for the news data, stratified by summary ratio, summary type, and article category, with 10% of the training split reserved for validation. Keeping the references means that a source can be repeated alongside targets that differ by author, length, or style.

The article collections let the authors describe how much shorter the target is than the source. They define the compression ratio using average lengths.

C = Lₛ / Lₜ

Here C is the compression ratio, Lₛ is the average source length, and Lₜ is the average length of the target summaries. The division compares the lengths in the same units. The paper reports average lengths in characters for this dataset comparison. A larger C indicates that the task asks for a shorter target relative to the source. The authors separately describe abstractedness using distinct reference n-grams absent from the source. An n-gram is a consecutive sequence of text units of a specified length. This statistic concerns how much wording is new, which can vary independently of how short the target is.

Building the question and passage inputs

The factual questions come from several sources. MKQA provides manually translated questions whose originals were sampled from Natural Questions. The authors inspect a sample and filter out questions they deem unsuitable for their Wikipedia-based setting. They remove specialized questions of the kinds they found problematic, open-ended requests for explanations, questions without an answer, and questions whose answer depends on when they are asked. The resulting portion contains 1875 questions. The authors also collect 1004 question–answer pairs from the Polish quiz show Jeden z Dziesieciu. From PolEval they use the validation set of 1000 questions for training and test-A for evaluation. The resulting combined training set has 3879 items, with 2500 items in the PolEval test set.

The question-only input lets the authors test how well the system can produce an answer using its learned weights. For the passage condition, they prepare a second source of information through information retrieval. Early passage candidates come from a bag-of-words retriever, which uses the words present in the text, and from the Multilingual Universal Sentence Encoder, which represents text for semantic retrieval. The authors also train a retriever based on HerBERT-base and annotate passages that it finds. For a candidate question–passage pair, the annotation indicates whether the passage contains the correct answer.

The paper describes 10k annotated pairs, of which 2215 are matching passages for 1347 distinct questions. The authors combine those annotations with Czy wiesz? data to train the HerBERT-based retriever used to prepare the final passage task. That retriever finds the top 10 Wikipedia passages for each question in the benchmark. The answer generator then receives the question and retrieved information and is trained to generate the answer. The procedure gives it evidence that may help, while leaving it with the task of finding and expressing the relevant fact among the material supplied. The authors release the Polish question–passage data alongside the resources they prepare for summarization.

Handling both translation directions

Translation uses pairs of English and Polish sentences. The authors train both directions in one run for each system, alternating examples of the two directions. A special token that precedes the rest of the input specifies the language to use for the output. The token <2pl> requests Polish and <2en> requests English. As in the other tasks, the system learns from source and target sequences. Here each source has a counterpart in another language, and the direction marker tells the decoder how to interpret the text transformation.

The translation experiments include a shared vocabulary condition. The authors train a SentencePiece unigram tokenizer with 32k entries on the filtered WMT20 training text. This vocabulary includes material from both languages, whereas the plT5 tokenizer was prepared from Polish material. For vocabulary entries that need new embeddings, the authors apply the same kind of transfer procedure used during initialization. They make the conversion across architectures for a comparison under the shared vocabulary and also report original-vocabulary conditions where tested. At evaluation time, the system uses beam search, which keeps several candidate continuations during decoding. The beam count is five, and the length limits for the input and generated sequence are both 100 tokens.

Experiments and results

KLEJ as a text generation benchmark

The KLEJ experiments cover the benchmark tasks other than the CDSC-R regression task. The evaluated columns include the adapted NKJP-NER classification task, CBD, Czy wiesz?, PolEmo2.0-IN, PolEmo2.0-OUT, AR, PSC paraphrase identification, and CDSC-E. Together they ask for different kinds of judgment, including sentiment, whether texts are paraphrases, and whether a proposed answer fits a question. PolEmo2.0-IN and PolEmo2.0-OUT give the sentiment task in its in-domain and out-of-domain settings. AR uses rating labels written as text. The PSC column here concerns paraphrase identification, even though the paper also uses news summaries from the Polish Summaries Corpus for generation experiments.

The individual KLEJ columns use different metrics. CBD, Czy wiesz?, and PSC are reported with F1 scores. F1 combines precision and recall, which describe how frequently a predicted positive is correct and how often an actual positive is found. AR uses a score based on mean absolute error, which assesses how far predicted ratings are from the references. The remaining evaluated columns use accuracy. The reported AVG gives the average of the individual task scores. It is an overview of performance across different evaluations, while each column retains its own interpretation.

The KLEJ fine-tuning comparison searches learning rates on tasks with validation sets. Its candidate values range from 2e-5 to 1e-3. The chosen rate for a system is then used on the KLEJ test runs. The default setup uses 1600 training steps and a batch size of 64 examples. The test results summarize runs by their median, using 7 runs for the small and base versions and 3 for the large ones. HerBERT’s results come from the earlier Polish encoder study and use the standard KLEJ setting. They provide a comparison with an established way of performing the tasks, alongside the comparisons within the generation setup.

Large systems on the KLEJ test-set average

plT5 leads the text generators, while HerBERT scores higher in the standard KLEJ setting.

Large systems on the KLEJ test-set averagemT5-large: 84.9mT5-large84.9plT5-large (this paper): 86.4plT5-large (this paper)86.4HerBERT-large, standard setting: 87.5HerBERT-large, standard setting87.5
The numbers
System or settingAverage KLEJ score
mT5-large84.9
plT5-large (this paper)86.4
HerBERT-large, standard setting87.5

Within the base group, plT5 averages 83.4, compared with 82.4 for mT5, 81.9 for plBART, and 76.5 for papuGaPT2. The large plT5 has the best score among the evaluated generators on 6 of the 8 tasks. Its own scores increase with size in each KLEJ column. Comparing it with mT5 reveals a more varied pattern. On NKJP-NER, mT5-large reaches 94.8 accuracy, ahead of plT5-large at 94.5. HerBERT-large reaches 96.4 in its standard setting. The authors note that the generation experiment recasts NKJP-NER as classification, a simpler task formulation than the original.

The strongest score for a particular task can also come from outside the leading base system. On the Czy wiesz? test, plBART reaches 68.5 F1 and plT5-base reaches 63.8. On CBD, plT5-base obtains 62.3 F1, mT5-base 65.6, and papuGaPT2 33.3. The authors call attention to the variability on CBD and Czy wiesz?, both of which they describe as highly unbalanced. On such tasks, the overall benchmark average can conceal a consequential difference in how well the systems recognize the cases that the task’s F1 evaluation is designed to capture.

Summaries of marketplace articles and news

Allegro Articles contains over 33k marketplace articles, including shopping advice and product reviews. The body2lead and body+lead2title tasks use the same kind of publication, with different source fields and different editorial targets. In the dataset statistics, both tasks have 24.4k training examples, 2.7k development examples, and 6.8k test examples. The reported compression ratio is 13.0 for body2lead and 82.0 for body+lead2title. These ratios help explain why a copied sentence is a poor fit for the headline task. The desired output is especially short relative to the available source.

The Polish Summaries Corpus starts from 569 news articles. There are 5 extractive summaries per article, each written by a different annotator. The extraction instructions involve retaining roughly 5%, 10%, or 20% of the source. A subset of 154 articles has an additional 5 abstractive summaries per article. These references give the authors multiple examples of how a person can summarize a common source. They also mean that a source can have different legitimate targets even within the same summary type. The dataset construction retains this variation.

The default summarization setup uses Adam, a batch size of 32, and ten epochs of training under three seeds. Large T5 versions run for four epochs, as does papuGaPT2 on the Polish Summaries Corpus. Learning rate is the hyper-parameter the authors tune. On the news corpus, they search on the whole subset and reuse the resulting rates for extract and abstract. They also set input limits according to the architecture and available memory. The differences in how much text survives those limits are especially relevant to the news results.

The central metric is ROUGE, used here to measure textual overlap between a generated summary and a reference. ROUGE-1 concerns individual words, ROUGE-2 concerns adjacent word pairs, and ROUGE-L uses a longest common subsequence. For ROUGE-L, words in that subsequence can have other words between them as long as the shared words occur in the same order. The authors use a Polish word tokenizer in their implementation and take an arithmetic mean of the component F-measures for each task.

R = (R₁ + R₂ + Rₗ) / 3

Here R is the mean ROUGE reported for a task. R₁, R₂, and Rₗ are the F-measures for ROUGE-1, ROUGE-2, and ROUGE-L, respectively. The additions combine the component scores, and division by 3 gives them equal weight. The experiment reports test scores as means across three runs. For a system’s overall summarization score, the paper also averages the resulting task scores.

The copy baselines make the news experiments easier to interpret. One takes the first 3 sentences of the source. The other adapts the number of leading sentences to the typical length of the targets. The paper relates the fixed lead baseline to earlier work including SAMSum. The comparison asks how far training can improve on a procedure that exploits the position of important material. The authors also compare summaries by different people for the same news article. They present this human-reference overlap as an estimate of upper-bound performance under ROUGE.

Mean ROUGE on the Polish Summaries Corpus extract test split

plBART leads the trained systems and exceeds the adaptive lead baseline.

Mean ROUGE on the Polish Summaries Corpus extract test splitFirst three sentences: 23.4First three sentences23.4Adaptive lead: 31.7Adaptive lead31.7plT5-small: 23.2plT5-small23.2mT5-small: 25.0mT5-small25.0plT5-base: 24.7plT5-base24.7plT5-large: 15.1plT5-large15.1plBART (this paper): 34.3plBART (this paper)34.3
The numbers
System or settingMean ROUGE F-measure
First three sentences23.4
Adaptive lead31.7
plT5-small23.2
mT5-small25.0
plT5-base24.7
plT5-large15.1
plBART (this paper)34.3

Across the summarization tasks, plBART’s overall mean ROUGE is 29.3, with plT5-small next at 25.5. On the whole news subset, plBART reaches 32.6, the adaptive lead baseline reaches 30.3, and human-reference overlap is 34.3. On extract, the baseline remains competitive, as the chart shows, and the human-reference estimate is 39.0. On abstract, the three results lie close together. plBART reaches 25.5, the adaptive lead reaches 25.6, and the comparison between human references gives 25.4. The placement of the baseline illustrates how little separation the aggregate overlap score gives these different ways of producing text on this subset.

Allegro Articles gives a different comparison. On body2lead, plBART scores 15.6 mean ROUGE. plT5-base reaches 14.9 and the adaptive lead baseline reaches 12.4. On body+lead2title, plT5-large scores 39.4, ahead of plT5-base at 38.9 and plBART at 38.3. The adaptive lead baseline reaches 7.9. A short generated title can share important wording with the reference without reproducing the opening of the article. The lead baseline, which was so competitive on the news material, has a much weaker fit to this editorial task.

The appendices show examples as well as component metrics. Several generators produce a headline about starting to play speedminton where the reference emphasizes its suitability for windy days. On this example the topic survives while the editorial angle changes. A reference about furnishing an interior in Scandinavian style elicits very similar suggestions across several systems. Such cases help explain why a headline experiment measures more than whether the system has identified the article’s subject. The wording and emphasis the editor chose also shape the score.

Factual answers with and without Wikipedia passages

The question-answering experiments compare plT5-base, plT5-large, and a base variant called plT5-wiki that receives additional training on Wikipedia. The other comparisons include mT5-base, plBART, papuGaPT2, and a T5 system initialized at random. The randomly initialized T5 supplies a reference for what can be achieved with the supervised question data and no pretrained starting weights. Training uses Adam on a single NVIDIA A100. Most systems train for 50 epochs and plT5-large for 30. The paper describes a learning-rate search from 5e-4 to 1e-2 with one seed, and reports the best result for each system.

Answer accuracy with retrieved passages on PolEval test-A

plT5-large leads the passage condition, and pretrained systems outscore T5-random.

Answer accuracy with retrieved passages on PolEval test-AT5-random: 8.0T5-random8.0papuGaPT2: 24.0papuGaPT224.0plBART: 37.1plBART37.1mT5-base: 39.8mT5-base39.8plT5-base: 42.8plT5-base42.8plT5-wiki: 43.1plT5-wiki43.1plT5-large (this paper): 51.3plT5-large (this paper)51.3
The numbers
System or settingAccuracy
T5-random8.0
papuGaPT224.0
plBART37.1
mT5-base39.8
plT5-base42.8
plT5-wiki43.1
plT5-large (this paper)51.3

In the question-only condition on the same test set, plT5-large gives 26.5 accuracy, plT5-wiki 21.9, and plT5-base 20.9. mT5-base reaches 17.2 and the randomly initialized T5 reaches 10.9. Among the base-sized systems, plT5-wiki is the strongest with either input format. Across most pretrained systems, the passage condition gives higher scores than the question-only condition. The answer table labels these values as accuracy. The surrounding discussion describes the passage effect using F1, so the numerical comparisons here follow the metric named in the table.

The authors report that question-only systems mainly learned to handle yes-or-no questions and could frequently give fluent responses that were factually wrong. They illustrate a tendency to reuse an answer from a familiar kind of question. In one example, the system names Montmartre when asked for the highest peak in the Beskids. The form of the answer is plausible for a question about a high point. Its content reveals the difference between learning the expected shape of a response and supplying the relevant fact. Retrieved passages address that problem by giving the generator information at the time it answers, subject to the quality of retrieval and its own use of the evidence.

Translation in each direction

The parallel training material comes from EuroParl v10, TildeRapid, WikiTitles v2, and ParaCrawl v5.1. The authors apply filtering to the four corpora. They leave out the available WikiMatrix material because of concerns about noise discussed in the paper. They evaluate on the WMT20 development set using the BLEU score, a measure of how closely generated translations match reference wording through overlapping sequences. The comparison gives a separate result for each output language because the two directions can behave differently under Polish specialization.

The runs use Adam, gradient accumulation over 8 batches, 10k warmup steps, and an inverse square root learning-rate schedule. The reported learning rates are 1e-1 for small systems and 1e-2 for base and large ones. To fit the runs within the 40 GB of memory available on one NVIDIA A100 GPU, the batch size varies. Small and base systems train for five epochs, and the large versions run for two. Along with the shared direction markers and decoding settings, these are the conditions under which the paper compares original and WMT20 vocabularies.

Under the shared WMT20 vocabulary, plT5-large reaches 25.5 BLEU into Polish and 28.9 into English. mT5-large reaches 24.8 into Polish and 29.0 into English. The direction of the lead therefore depends on which language the decoder must write. In the base group with the original vocabularies, plT5 gets 23.2 into Polish and 26.7 into English, while mT5 gets 22.4 and 27.0, respectively. The shared-vocabulary base comparison has plT5 ahead in both directions, with 22.7 into Polish and 26.8 into English versus 22.5 and 26.7 for mT5. These results qualify the overall directional pattern with a case in which vocabulary and size matter.

The Polish baselines are competitive in the base group. With the WMT20 vocabulary, plBART reaches 21.6 BLEU into Polish and 26.3 into English. In the same vocabulary condition, papuGaPT2 reaches 22.0 into Polish and 26.2 into English. The authors repeat the plT5-base and plBART experiments across three seeds, reporting variation up to 0.1 BLEU for plT5 and up to 0.5 BLEU for plBART. They frame the experiment as a comparison among similar systems under similar settings. They report that the strongest plT5 is below the WMT20 winning submission, while its result into Polish slightly exceeds that submission’s bidirectional baseline.

What the ablations show

Specialization and scale in KLEJ

The paper compares several choices through targeted variants and baseline experiments. Its broad plT5 and mT5 comparisons change the vocabulary and the additional training together. The narrower comparisons, such as changing the vocabulary during translation or matching input truncation for particular experiments, let the reader separate some of the explanations. The resulting picture depends on which aspect of the system the comparison actually manipulates.

In KLEJ, the base T5 comparison is especially revealing on out-of-domain sentiment. On the PolEmo2.0-OUT test, plT5-base scores 79.3 accuracy and mT5-base scores 70.2. The authors describe the difference as over 9 pp. They suggest that this task’s change of domain may expose a benefit of specialization for Polish. That interpretation is consistent with the direction of the result in the other sizes. It remains an interpretation of the adaptation package, since the specialized and multilingual versions differ in what they read during continued training and in the vocabulary used to represent the input and output.

The PSC paraphrase task shows a different interaction with scale. The authors report a difference of 4.6pp on the test F1 score between the small T5 versions and 3.9pp between the base versions, both in favor of plT5. The large versions score 98.9 and 97.9 for plT5 and mT5. The smaller difference at large size concerns this particular task. Out-of-domain sentiment still shows a benefit from Polish specialization at large size, and the adapted NKJP-NER classification task gives the better text-to-text result to multilingual mT5-large. Taken together, the tasks indicate that a KLEJ average can describe overall performance while leaving different interactions between scale and specialization visible in the columns.

The within-plT5 comparison also gives a clearer reading of the architecture groups than their names alone. The authors report the largest average step when going from plT5-small to plT5-base, a change of 6.8pp on KLEJ. They identify the paraphrase and Czy wiesz? tasks as having especially large differences at that step. This comparison changes several architectural dimensions together, so the result applies to the small and base configurations as trained. The experiment gives a practical estimate of what changes when using the larger configuration on these tasks.

Added evidence and added Wikipedia training

The question-answering study tests two ways in which Wikipedia can help. One is to continue training a base variant on Wikipedia before using it for the task, yielding plT5-wiki. The question-only comparison gives 21.9 accuracy for that variant and 20.9 for regular plT5-base on PolEval test-A. With passages, the values are 43.1 and 42.8. These comparisons are evidence that the extra Wikipedia training helps under both input formats in this setup. The reported scores also show the scale of the effect relative to supplying passages directly.

The passage comparison changes the information present in the input. The system can draw on text found for the specific question, and the test gives credit for the answer produced at the end of this process. The gain therefore pertains to the combined retrieval and generation procedure as evaluated. A correct answer in the passage condition could come from reading the evidence, from previously learned information, or from both. Likewise, a failure can arise because the retrieved material misses the answer or because the generator fails to use an available answer. The experiment establishes the end-to-end advantage of providing passages, with these sources of success and failure still combined.

The paper also probes a possible explanation for papuGaPT2’s weaker passage results. Its input limit prevents it from receiving the entire passage input. The authors therefore repeat the plT5-wiki and plBART training with a 1024 input-size setting. They report that the results are close to those obtained with unrestricted input for those systems. Under this check, the input limit alone has little explanatory power for their lead over papuGaPT2. Different pretraining histories and architectures remain part of the system comparison.

The randomly initialized T5 offers a second reference. Its passage accuracy is 8.0, while its question-only accuracy is 10.9 on PolEval test-A. The benefits of supplying retrieved text appear among the pretrained systems, with the random initialization failing to show such a benefit in this setup. This illustrates a condition of the approach. Even when potentially useful text is present, the answer generator still needs to learn to connect the question, the passage, and the requested response. The training set and procedure used here yield much stronger performance when the generator starts with pretrained weights.

Vocabulary changes in translation

The translation vocabulary experiments make it possible to compare a system with its own counterpart using a different set of text units. With its original vocabulary, plT5-small reaches 20.3 BLEU into Polish and 24.7 into English on the WMT20 development set. With the WMT20 vocabulary, it reaches 20.8 into Polish and 25.4 into English. The base plT5 gives a mixed result for the same change. Its metric into Polish moves from 23.2 with the original vocabulary to 22.7 with the WMT20 vocabulary, while its metric into English is 26.7 with the original and 26.8 with the shared one. Both size and output direction matter to the observed effect.

The comparison with the other Polish systems provides further evidence that the vocabulary choice has consequences beyond plT5. plBART goes from 21.2 to 21.6 into Polish and from 25.4 to 26.3 into English on the WMT20 development set when it switches to the WMT20 vocabulary. papuGaPT2 also has higher BLEU in both directions with that vocabulary. The operation changes how sentences are segmented and how the associated embeddings are initialized. It thus tests a vocabulary conversion as a procedure, encompassing both the new segmentation and its preparation for training.

The authors suggest that continued pretraining on Polish can weaken the ability to write English, an explanation they use for the overall direction of the comparison with mT5. The strongest shared-vocabulary systems still split the lead by output language. The base shared-vocabulary comparison, however, shows a narrower and different pattern. The evidence supports reading the language of the output as an important condition of the result. It gives a limited basis for attributing the English scores to any single part of the adaptation.

What the summary controls reveal

The lead baselines expose how a task can reward a strong prior about where the answer is located. On the paper test set, the adaptive lead scores 31.7 mean ROUGE, whereas selecting the first 3 sentences gives 23.4. Adjusting the amount of copied material makes a substantial difference even with no learned content selection. The effect is also clear on the whole news subset, where the paper reports 30.3 for the adaptive lead and 22.0 for the fixed lead. Some of the apparent strength of a summary procedure therefore comes from matching the expected extent of the reference and from the position of useful content in these articles.

The authors suggest that plBART benefits from having learned to reconstruct entire inputs during pretraining. They propose that this objective encourages copying, which is helpful when the references themselves preserve source wording. The paper scores are compatible with the explanation. The experiments also contain relevant evidence about length limits. In an appendix comparison for Allegro headline generation, the authors train plBART and plT5-base under the input and target truncation used for papuGaPT2. Under this condition, both get 38.7 mean ROUGE, compared with their standard scores of 38.3 for plBART and 38.9 for plT5-base. papuGaPT2 gets 14.0. Matching the truncation leaves a large separation on this task, while the full comparison still includes differences in architecture and training.

The authors also inspect generated lengths. Encoder–decoder systems usually produce shorter summaries than the references, while papuGaPT2’s lengths tend to be closer to them. There are exceptions within the encoder–decoder group. mT5-large reaches the maximum output length on the whole news subset and produces summaries much longer than their targets. plT5-base produces extremely short outputs on the abstract subset. In an appendix example about consumer protection, it supplies only a fragment instead of a developed summary. These observations identify distinct forms of failure that an average overlap score would otherwise collapse into a single number.

Limitations

Limits identified by the authors

The KLEJ results apply to the prefixes and output labels the authors selected. They did not optimize alternative phrasings, and they describe the measured performance as a lower bound. That qualification matters because success through text generation depends on a system mapping from a particular presentation of the input to an exact answer string. Another descriptive prefix or another valid way of representing a class might change how readily the pretrained system learns that mapping. The reported comparison shows what happened with the chosen format. The omission of CDSC-R and the classification form of NKJP-NER also define its coverage.

The paper treats source truncation as a major limitation for summarization. The usual length limit is 1024 tokens. Fixed positional encodings impose this default limit for BART and GPT-2. T5 uses relative positional encodings, which can in principle accommodate longer sequences, but available memory still limits the experiment. Some configurations require further trimming. Since different tokenizers can divide the same article into different numbers of tokens, a shared numerical cap can give two systems different amounts of readable text.

The appendix reports that mT5-large sees, on average, 25% of the source tokens for the Polish Summaries Corpus, and papuGaPT2 sees 26%. plBART and the Polish T5 versions see above 50% in the principal comparisons discussed by the authors. The appendix gives 98-100% as the range of target tokens that fit. The larger loss is consequently on the source side. A target can summarize information that the system was never given. This creates a particularly difficult condition for abstractive generation, because producing an apparently relevant passage from incomplete evidence is a different achievement from condensing the entire article accurately.

The authors identify ambiguity in the desired length as another issue. In the news data, several summaries can accompany an article, and their intended proportions can vary. The source by itself gives the system little indication of which degree of detail to produce for a particular reference. The authors suggest adding a prefix that specifies the desired length. They leave the effect of that change open. The suggested experiment would address a source of ambiguity independently from the limit on how much of the input the system can read.

The authors also temper their reading of ROUGE. On the abstract news subset, the adaptive lead, the strongest generator, and the human-reference estimate have nearly the same aggregate overlap. The result suggests that lexical overlap has limited power to distinguish systems and people when acceptable summaries differ in wording and emphasis. The human-reference score is valuable as context for what people tend to reproduce from one another’s summaries under the metric. Its interpretation as an upper bound is approximate, as the adaptive lead result on this subset demonstrates.

On translation, the authors explicitly frame the setting as an architectural comparison. Their results come from the WMT20 development set with the data, training schedules, and decoding choices described in the study. They compare with the winning submission for context and report a gap to its strongest results. This sets the scope of the translation claim. The experiment measures how the compared systems fare in the paper’s bidirectional setup and shows conditions under which the Polish adaptation helps.

Limits visible in the experimental design

The main comparison between plT5 and mT5 changes the vocabulary, the embedding initialization, and continued exposure to Polish text together. It therefore establishes performance for the combined adaptation. It cannot quantify how much of the advantage comes from a better Polish segmentation, how much comes from the data sampled during continued training, or how much comes from interactions between them. The work demonstrates that the transfer recipe can produce a competitive system after the training the authors report. A matched from-scratch Polish pretraining comparison would be needed to measure the training savings against that alternative. The random initialization experiment in question answering concerns downstream learning and supplies a different kind of evidence.

Comparisons with plBART and papuGaPT2 also bundle together several design choices. The paper reports their trainable parameter counts, and it tests some effects of truncation. The systems still differ in architecture, pretraining, and how they represent or see the source. The stronger results for encoder–decoder systems are a finding about the systems compared in these conditions. Similarly, the paper’s explanation for plBART’s summarization strength is a plausible account based on its reconstruction objective. The experiments do not hold the system fixed while exchanging only the reconstruction objective, so the strength of that mechanism is undetermined.

The apparent size pattern has different interpretations across tasks. plT5 grows stronger as its size increases on the KLEJ columns, and the large version leads in question answering. On much of summarization, the large versions perform poorly, show length anomalies, or encounter training difficulties. They can also have different fine-tuning schedules and usable input lengths. These factors prevent a clean attribution of the summarization ranking to parameter count alone. The headline result shows that a large configuration can lead on a particular summarization task within the same study. It adds a reason to read the news results in relation to their long inputs, reference styles, and reported stability.

The passage-based question results measure the complete path from retrieval to answer generation. The paper gives the annotation process and how passages were selected, but the accuracy comparison does not identify how often the best attainable answer was absent from the retrieved set. It also does not independently score whether a correct generated answer was supported by the passages. As a result, the passage score cannot serve as a direct measure of reading skill, and the question-only score cannot count how many facts are stored in the pretrained weights. The latter depends on what was learned during supervised training and on whether the system can express a fact in a form credited by the evaluation.

The question collection also defines which facts are being sampled. The authors deliberately filter the MKQA contribution to fit a setting that uses Wikipedia, and the evaluation uses a specific PolEval test set. This is a test of factual answers in that task mixture. It leaves open how the systems would handle the kinds of open-ended, specialized, or time-dependent questions that the authors excluded. The choice makes the evidence-based task easier to define while limiting what the results say about Polish question answering in general.

Finally, generated-language quality has dimensions beyond the reported automatic metrics. In KLEJ, exact matching makes it possible to score labels unambiguously. In summarization, the examples illustrate how a response can stay on topic while changing the emphasis or failing to cover the material a human author selected. The comparison between human references measures overlap between those references. It gives no direct judgment of the factual fidelity or usefulness of the generated outputs. For translation, BLEU likewise evaluates agreement with the chosen references under a defined decoding setup. The paper’s rankings are meaningful within those operational definitions, with the example outputs and baseline comparisons showing where a reader should be careful about giving a score a broader interpretation.

What came after

Subsequent research building on plT5 or on the benchmark is undocumented here. The paper’s documented contribution is the release of plT5 and the new Polish evaluation resources. Its proposed follow-up experiments concern the wording of KLEJ inputs and labels and conditioning a news summary on its desired length. Those proposals identify questions the study left open. Their effects remain unverified in the paper.

Cite

Cite as Aleksandra Chrabrowa, Łukasz Dragan, Karol Grzegorczyk, Dariusz Kajtoch, Mikołaj Koszowski, Robert Mroczkowski and Piotr Rybak. 2022. Evaluation of Transfer Learning for Polish with a Text-to-Text Model. Proceedings of the Thirteenth Language Resources and Evaluation Conference.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{chrabrowa2022evaluation,
  title = {{Evaluation of Transfer Learning for Polish with a Text-to-Text Model}},
  author = {Aleksandra Chrabrowa, Łukasz Dragan, Karol Grzegorczyk, Dariusz Kajtoch, Mikołaj Koszowski, Robert Mroczkowski and Piotr Rybak},
  booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
  year = {2022},
  url = {https://aclanthology.org/2022.lrec-1.466/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chrabrowa-2022-evaluation-transfer-learning-polish-text/