Elamur Research

Data Augmentation using Pre-trained Transformer Models

Paper · 2020 · Varun Kumar, Ashutosh Choudhary and Eunah Cho

Summary

Adding training sentences can help a text classifier when labeled examples are scarce. The difficulty is making those extra sentences useful. A rewrite can remain grammatical while changing the property that the classifier must learn: its sentiment, its intended action, or the kind of question it asks. Data Augmentation using Pre-trained Transformer Models investigates how to generate additional examples while keeping their assigned categories. Its central proposal is simple: place a readable class name before each training sentence, adapt an existing language model to this format, and use it to produce category-conditioned text.

The authors compare several ways of generating those examples. BERT reconstructs missing tokens while retaining much of the surrounding sentence. GPT2 continues a supplied prompt. BART reconstructs text after parts of its input have been masked. These approaches therefore offer different degrees of freedom: local replacement, open-ended continuation, and reconstruction of a corrupted sequence. The paper applies a shared conditioning approach across them instead of introducing a separate architectural modification for every generator. It also compares them with random editing through EDA, translation into another language and back, and the earlier conditional BERT method, CBERT.

The main experiments deliberately make text classification difficult by restricting training to 10 examples from each category. The tasks concern movie-review sentiment, assistant intents, and question types, using SST-2, SNIPS, and TREC. Each original training example receives a synthetic counterpart, and a BERT classifier learns from the resulting mixture. Experiments are repeated 15 times with freshly sampled training and development data. The authors report that augmentation using the different pretrained generator families can improve classification under this severe restriction, with BART giving the strongest overall results across the datasets. Backtranslation is also a substantial competitor, outperforming several approaches based on pretrained generators.

The paper’s broader contribution is an explanation of the tradeoffs behind those results. A generator can preserve categories while making few meaningful changes, or produce varied sentences that no longer belong to their intended categories. The authors therefore examine both output variety and category retention. BERT-style reconstruction generally protects labels well; GPT2 can produce coherent continuations that drift away from them; BART offers a useful compromise. These findings have a clear boundary: when training increases to 50 examples per category, augmentation generally ceases to help and frequently reduces accuracy. The study supports a practical method for a particular low-data setting, rather than a general promise that synthetic text always improves a classifier.

Interesting ideas

Readable labels as conditions. A category name can serve as part of the generator’s input instead of requiring a special conditioning mechanism inside its architecture. This is especially appealing when the name already describes the category’s meaning. The same approach can be carried between different generator families because each can receive ordinary text. More generally, it suggests treating meaningful task descriptions as reusable interfaces: the engineering effort goes into preparing examples and controlling generation, while the underlying pretrained system can remain structurally unchanged.

A short authentic beginning. When a category label leaves too much freedom, the opening words of an actual example can provide an additional anchor. The paper’s GPT2context variant uses the first 3 words of a training sentence alongside its label. This narrows the space of plausible continuations without prescribing the whole result. The general idea applies wherever a broad category permits many unrelated outputs: preserve a small piece of authentic context, then allow variation in the continuation. Its usefulness still depends on checking that the continuation retains the intended property.

Corruption as a control over freedom. Masking gives the generator a partially preserved sentence rather than an unrestricted request for new text. What remains visible supplies context; what disappears creates room for change. The authors identify the masking ratio as a way to adjust output variety in sequence-to-sequence generation. This is a useful experimental design principle beyond augmentation: gradually remove information and observe which properties a reconstruction process preserves. The relevant question becomes how much variation can be introduced before the target meaning or category becomes unstable.

Separate variety from correctness. A collection of synthetic sentences can contain many different word sequences and still be poor training material. The paper measures lexical variety separately from whether an independent classifier assigns the intended category. Random editing is especially instructive because it can increase variation without preserving meaning. Engineers can borrow this separation whenever generated material is evaluated: describe how different the outputs are, then independently examine whether they satisfy the task. Neither assessment should silently stand in for the other.

Compare whole pipelines fairly. Earlier GPT2 augmentation work generated a larger candidate pool and selected examples using confidence scores. The authors object that applying such selection to only one method makes generator comparisons difficult to interpret. Their shared generation budget removes that particular asymmetry. The transferable lesson concerns experimental attribution: if sampling, rejection, or ranking differs between systems, the result measures those choices together with the generator. A comparison intended to isolate generation should hold these surrounding procedures as steady as possible.

Test where the benefit disappears. The larger training condition is as informative as the main low-data result. An augmentation method may help when examples are extremely scarce and become unnecessary or harmful once the classifier receives more authentic evidence. Including both conditions reveals whether synthetic data addresses a specific shortage or offers a more persistent improvement. This principle applies to many learning interventions: evaluate the regime that motivates the method, but also examine a nearby regime where its underlying need may be weaker.

Deep dive: Data Augmentation using Pre-trained Transformer Models

Learn how label-conditioned BERT, GPT2 and BART generate training text, what low-data classification tests show, and where augmentation fails. · about 34 minutes to read

How Mova uses it

For Mova, the small transparent language system implemented in Rust, these ideas suggest experiments across its learn, answer, and back stages. They should be treated as proposed uses. The connection does not establish that Mova already trains the generators described in the paper, stores their outputs in particular files, or has measured improvements from them. The useful contribution is a set of concrete designs for producing and checking additional examples while keeping their origin and intended meaning visible.

In the learn stage, readable conditions could be VerbNet class names or frame names. A teacher could undergo fine-tuning on sentences that begin with these labels, then generate candidates for classes with little training material. The resulting sentences would be silver data: automatically produced examples whose labels remain provisional. Mova’s witness parsers could examine whether a candidate supports the requested class or frame before it enters a training collection. This adapts the paper’s category-conditioned generation to semantic parsing, while adding a structural check that the paper’s classification experiments do not perform.

For the files used by such an experiment, the important design choice would be traceability. A generated sentence should remain associated with its requested frame or class, its source example where applicable, the teacher configuration, and the witness decision. These are proposed records, not existing filenames or a claim about Mova’s current storage format. Keeping the information together would make it possible to review why an example was accepted and to remove a teacher’s contributions if later tests exposed systematic errors. Generation would then be a visible stage in learning instead of an unexplained expansion of the corpus.

In the answer stage, the GPT2context idea could help construct variants of mathematics word problems or questions about fables. Starting from the opening words of a real item might keep a generated continuation near the intended problem family. The result would still need checking: a familiar beginning does not guarantee that a mathematics problem remains solvable, that its answer stays consistent, or that a fable question tests the same inference. The proposed role is to supply candidate test items for Mova’s readers. Their suitability would depend on the problem structure and expected answer, not simply on fluent wording.

In the back stage, controlled masking could probe Mova’s text → graph → text compressor. A sentence could be perturbed at different masking levels, reconstructed, and passed through the same meaning analysis as its source. The test would ask whether the relevant meaning representation survives. This is stronger than the paper’s category-retention check: sentences can share a broad label while differing in participants, events, or relations. The paper motivates the perturbation mechanism, but it does not demonstrate graph preservation or establish which masking levels would be appropriate for Mova.

The evaluation ideas are useful even before choosing a teacher. In learn-stage reports, Mova could describe both the variety of accepted silver examples and their agreement with witness analyses. Randomly edited sentences could provide a negative control, showing whether a variety measure rewards changes that damage interpretation. Comparisons between parsers or teacher tiers should use the same candidate budgets and filtering rules. Together, these proposals turn augmentation into an inspectable experiment: generated examples have a known purpose, acceptance is explicit, and tests distinguish additional wording from additional trustworthy evidence.

The problem and its context

More text is useful only when its supervision survives

Data augmentation expands a training collection by transforming existing examples or generating related ones. In the setting studied here, the classifier receives sentences paired with categories. A synthetic sentence is useful only if its assigned category remains appropriate. This makes augmentation different from merely producing readable prose. A fluent sentence with an incorrect label introduces misleading supervision, and that can be especially consequential when authentic examples are already scarce.

The paper motivates augmentation through overfitting. With little training material, a classifier may rely too heavily on accidental features of the examples it sees. Additional examples can expose alternative expressions of the same category and make those accidental associations less decisive. But this rationale assumes that the added material expresses the intended category. If augmentation changes the category while retaining the old label, the procedure creates a different problem from the one it was meant to solve.

The authors illustrate this with a movie-review fragment. Rearranging the words that describe a film’s size and its impact can reverse the evaluative force of the statement, even though much of the vocabulary remains unchanged. The example matters because it separates lexical resemblance from task meaning. A word replacement or rearrangement does not have to be large to alter sentiment. Conversely, substantial changes in wording may leave the category intact. An augmentation method therefore needs more than a rule that keeps generated text superficially close to its source.

The same issue extends across the paper’s tasks. A sentence addressed to a voice assistant must preserve the intended action if it is to retain its intent label. A question must continue to ask for the appropriate kind of answer if it is to retain its question category. These are not identical semantic requirements, but they share the need for task-relevant consistency. The paper uses category conditioning as a common way to address that need.

Earlier editing and generation methods

The authors place their work after approaches that create new training material through word-level operations. EDA is presented as a simple augmentation baseline whose edits can improve classification when labeled data is limited. Its appeal is that it does not require a sophisticated generator trained specifically for the task. Its weakness, in the paper’s account, is that word changes do not inherently protect the category.

Contextual Augmentation brings a language model into the editing process. Context can make replacement words more plausible than a purely local synonym rule would. Nonetheless, a replacement that fits its surrounding sentence can still change sentiment or another supervised property. Linguistic plausibility and compatibility with a training label are different constraints. This distinction motivates conditioning the replacement process on the category itself.

CBERT takes that step by incorporating label information into masked-token prediction. The paper describes it as adapting BERT’s segment embeddings to carry category information. This provides a mechanism through which the predicted replacement can depend on the label. The authors’ objection is architectural instead of a claim that CBERT is ineffective: its conditioning method depends on a component available in BERT and cannot simply be transferred to every other pretrained generator.

The proposed alternative is to make the label part of the visible sequence. The authors connect this to earlier label-conditioning approaches associated with CTRL and multilingual translation. CTRL and Google’s Multilingual Neural Machine Translation System supply precedents for controlling generation through input symbols. The present paper applies that general direction to a comparison of augmentation methods, asking whether a shared textual interface is sufficient across different pretraining arrangements.

Why compare different pre-training arrangements?

The paper distinguishes generators by what they were trained to predict. An auto-encoding approach reconstructs missing material using surrounding context. An auto-regressive approach predicts a continuation from preceding context. A sequence-to-sequence denoiser receives a corrupted sequence and produces a reconstructed sequence. These objectives shape the freedom available during augmentation, even when every system receives category information.

The Transformer architecture supplies a common background, but the study does not assume that all Transformer-based generators behave alike. Its comparison is motivated precisely by differences in how text is reconstructed or continued. BERT represents the auto-encoding family. GPT2 represents auto-regressive continuation. BART represents sequence-to-sequence denoising. The point is to examine these distinct generation behaviors under a broadly shared augmentation framework.

The authors also discuss earlier GPT2 augmentation work in which candidate generation and candidate selection were combined. That procedure generated 10 times the required quantity before selecting sentences according to confidence. Their concern is that competing augmentation methods did not receive the same selection stage. A favorable downstream result could therefore reflect better filtering, a larger candidate pool, or the generator itself. The present study seeks a comparison that makes such differences easier to interpret.

This gives the paper a dual purpose. It proposes an accessible conditioning recipe, and it investigates how generation choices affect the resulting training material. The downstream classifier is the practical test, but the intrinsic analyses are needed to understand why a generator might help. Without those analyses, a method that makes conservative edits and a method that produces varied continuations would be reduced to a single accuracy ranking, hiding their very different failure modes.

The method, step by step

Define the authentic data and the generation task

The starting point is a labeled training collection. Each item contains a sentence and its category. A pretrained generator is adapted using this collection, then produces synthetic material associated with the same category inventory. The generated examples are added to the authentic training examples before the downstream classifier is trained.

The paper’s notation for the training collection can be written as:

D_train = {(xᵢ, yᵢ)}ᵢ₌₁ⁿ

Here, D_train denotes the authentic training dataset. The index i identifies an example, n is the number of examples, xᵢ is the text of that example, and yᵢ is its associated category. The paired notation matters because augmentation must preserve the relationship between the text and its supervision, rather than generate text independently of the category.

The text itself is represented as a word sequence:

xᵢ = {wⱼ}ⱼ₌₁ᵐ

In this expression, xᵢ is the sentence belonging to example i, wⱼ is the word at position j, and m is the sentence’s word count. The paper subsequently uses these word positions when describing prompts and masking. The generator is denoted by G, while D_synthetic names the collection that it produces.

The shared generation setting is:

s = 1

The symbol s denotes the number of generated counterparts assigned to each authentic training example. The synthetic collection therefore matches the original collection in size. This common budget is part of the comparison design: methods are not allowed different amounts of retained synthetic training material merely because their generation procedures differ.

Category-conditioned augmentation and evaluation

The steps in order.

Category-conditioned augmentation and evaluationStep 1: Sample labeled training and development examples1. Sample labeled training and development examplesStep 2: Add readable category labels to sentences2. Add readable category labels to sentencesStep 3: Adapt a pre-trained text generator3. Adapt a pre-trained text generatorStep 4: Generate category-conditioned synthetic examples4. Generate category-conditioned synthetic examplesStep 5: Combine authentic and generated training material5. Combine authentic and generated training materialStep 6: Train and evaluate the downstream classifier6. Train and evaluate the downstream classifierStep 7: Examine output fidelity and lexical variety7. Examine output fidelity and lexical variety

This outline is shared across methods, but the generator’s input and prediction task depend on its family. For BERT, the relevant operation is filling masked positions. For GPT2, it is continuing a prompt. For BART, it is reconstructing a corrupted input. The paper retains the usual training task and loss associated with each generator instead of replacing all of them with a newly invented objective.

Put the category into the sequence

The paper compares two general ways to present category information. In the prepend arrangement, the class name is placed before the sentence and processed using the existing vocabulary. In the expand arrangement, the label is also added as a vocabulary entry. The first arrangement may represent a category name through several pieces; the second gives it a dedicated token.

This difference concerns subword tokenization, which allows a written word or label to be represented through smaller vocabulary units. The paper cites work on sub-word units and SentencePiece in explaining why a category name need not correspond to a single existing token. A readable label can still be supplied without changing the vocabulary. The generator simply processes whatever sequence of units its tokenizer produces.

A dedicated token may seem attractive because it gives the category an explicit identity. It also introduces a new representation that must be learned during adaptation. The authors argue that this is difficult when the task supplies very little training material. By contrast, a descriptive label processed through an existing vocabulary can draw on representations established during pretraining. The subsequent BERT comparison tests these alternatives against CBERT’s internal conditioning mechanism.

The experiments replace numerical category identifiers with written names and lower-case those names. This is a substantive part of the method. A number can identify a class for bookkeeping without describing it, whereas a name may carry information related to the class meaning. The authors specifically emphasize this connection when explaining why simple prepending can work despite its minimal architectural demands.

Reconstruct masked words with BERT

For the auto-encoding experiments, the authors use bert-base-uncased. During adaptation, they apply BERT’s ordinary masked-language objective: selected tokens are hidden, and training rewards recovery of the original tokens from the visible context. Category information is available because it has been added to the sequence, either through prepend or expand.

This creates a constrained form of augmentation. Much of the sentence remains available, so the generator has a detailed context for its replacements. That context can protect category information, but it also limits how far the output can depart from its source. The paper later interprets the strong label retention of auto-encoding methods in light of this restricted generation space.

For BERTprepend, the stated training setup uses 10 epochs and an initial learning rate of 4e−5, selecting a checkpoint through development performance. BERTexpand uses 150 epochs and a learning rate of 1.5e−4. The paper attributes the greater training requirement to the randomly initialized embeddings introduced for the category tokens. These settings are therefore not interchangeable implementation details; they reveal a practical cost of expanding the vocabulary.

The implementation uses the PyTorch-based package described in Transformers: State-of-the-Art Natural Language Processing. The paper also names an official code repository, TransformersDataAugmentation. Its role is to make the comparison’s implementations available; the method itself is defined by the conditioning, adaptation, generation, and evaluation choices described in the study.

Continue prompts with GPT2

GPT2 is adapted using a concatenated stream of labeled examples. The written category is separated from its sentence, and an end marker indicates where that sentence finishes. The paper expresses the training stream in this form:

y₁ SEP x₁ EOS y₂ … yₙ SEP xₙ EOS

The symbols y₁ through yₙ are category labels, and x₁ through xₙ are their corresponding sentences. SEP separates a category from its text. EOS marks a sentence ending. The ellipsis indicates the intervening examples in the concatenated training material. This format teaches the generator to continue from a category into a sentence and then terminate the example.

The basic generation prompt is:

yᵢ SEP

Here, yᵢ is the requested category and SEP is the same separating token used during adaptation. Starting from that prompt, G generates a continuation until it emits EOS. In the paper’s terminology, GPT2 denotes this label-only generation variant.

The authors find that a label alone does not adequately constrain the continuation. Their contextual variant uses:

yᵢ SEP w₁ … wₖ

In this prompt, w₁ through wₖ are the opening words of an authentic training sentence, and k specifies how many are supplied. The study sets k = 3. This version is called GPT2context. The category tells the generator what kind of example is requested, while the authentic opening supplies a more specific linguistic and topical starting point.

The implementation uses GPT2-Small with the package’s default adaptation parameters. SEP is introduced as a separate token, and the end-of-text token serves as EOS. Generation uses nucleus sampling with top_k = 0 and top_p = 0.9. The paper associates this decoding approach with The Curious Case of Neural Text Degeneration. The comparison therefore combines category conditioning with a particular stochastic continuation procedure, instead of testing every possible GPT2 decoding strategy.

Reconstruct corrupted sequences with BART

The sequence-to-sequence experiments use BART. The authors also discuss T5 as an example of pretrained sequence-to-sequence learning, but choose BART for the augmentation study because of its relatively lower computational cost. Category names are again placed before sentences, giving the denoising generator the same general kind of task information.

BART receives a corrupted version of an example and is trained to reconstruct the original. The authors consider several possible corruption operations, including insertion, deletion, and masking. Their preliminary experiments favor masking. They also compare masking sub-word units with masking whole words, finding the word-based approach consistently preferable in their experiments.

The retained variants differ in how masked material is represented. BARTword replaces an individual word with a mask marker. BARTspan hides a continuous stretch using a single marker. A span marker therefore need not reveal the original stretch’s internal word count in the same direct way that separate word masks do. Both variants preserve visible context while leaving the decoder room to reconstruct missing material.

The selected masking level covers 40% of the words. The decoder reconstructs the original labeled sequence, including the category name. This makes the category part of the reconstruction target as well as the input arrangement. The paper does not replace the denoising task with a special classification objective for the generator.

BART is implemented in fairseq using bart_large weights. Its criterion is label_smoothed_cross_entropy with smoothing set to 0.1, and the learning rate is 1e−5. During generation, beam search maintains a beam size of 5. The experiments use f16 precision for BART. These details help delimit the result: the reported BART advantage belongs to this adaptation and decoding setup.

Train the classifier and inspect the generated material

The downstream classifier also uses bert-base-uncased. Its architecture has 12 layers, hidden-state size 768, and 12 attention heads. A pooled representation associated with the initial special token, [CLS], represents the sentence. Dropout with probability 0.1 is applied before the final Softmax layer maps that representation to category predictions.

Optimization uses Adam with an initial learning rate of 4e−5. The classifier receives 100 warmup steps and trains for 8 epochs, with development performance determining the selected checkpoint. The experiments run on a single Nvidia Tesla v100 GPU instance. Validation performance also guides selection for the augmentation systems.

The paper evaluates the resulting material in two ways. Extrinsic evaluation asks whether training with the synthetic examples improves classification on the authentic test set. Intrinsic evaluation examines properties of the synthetic sentences themselves. Keeping these separate is essential: a sentence collection can look varied or category-consistent without necessarily improving the downstream classifier.

For lexical variety, the authors use type–token ratio over n-grams:

TTRₙ = unique generated n-grams / all generated n-grams

TTRₙ denotes the ratio for word sequences of length n. The numerator counts distinct sequences of that length in the generated material; the denominator counts their occurrences, including repetitions. This measure describes how much repetition appears at the chosen sequence length. It does not directly establish grammaticality, category correctness, or preservation of detailed meaning.

For semantic fidelity, a separately trained classifier predicts categories for the generated sentences. Agreement with the intended category serves as the score. That procedure provides an automated check of category retention, but its interpretation requires care: the evaluator is itself a learned classifier, and matching a category is a coarser requirement than reproducing every aspect of an original sentence’s meaning.

Experiments and results

The tasks and the low-data conditions

The evaluation spans three distinct classification tasks. SST-2 concerns the sentiment of movie reviews and distinguishes positive from negative examples. SNIPS supplies assistant utterances organized into 7 intents. TREC concerns question categories, including distinctions based on the kind of entity a question asks about.

The authors use the SST-2 and TREC versions distributed with the earlier CBERT work. For SNIPS, they use the data associated with the SlotGated-SLU repository. These choices matter for reproducibility because a dataset name alone does not identify every preparation or split choice. Across the tasks, class identifiers are converted to lower-cased textual labels for generator conditioning.

To simulate scarce supervision, the study randomly selects equal quantities from each category. The principal condition uses 10 training examples per class. A further condition uses 50. The full test partition is retained for downstream evaluation, so restricting the training collection does not also reduce the test collection to a similarly tiny sample.

Development data receive separate attention. The authors observe that an extremely small development collection can yield 100% accuracy during the first epoch, making checkpoint selection uninformative. They therefore use ten validation examples from each category. This is an important part of the experimental budget: the study concerns limited training data, but it also relies on a deliberately constructed development collection to select systems.

Preliminary experiments include 100 training examples per class. On SNIPS, an unaugmented BERT classifier reaches 94% accuracy in that condition. The authors use this observation to explain their emphasis on more restrictive settings. A dataset may contain relatively few examples by one standard while already offering enough information for a strong pretrained classifier to perform well.

All experiments are repeated 15 times. Training and development examples are resampled for each repetition, addressing variation caused by the particular small collections selected. The reported downstream results use mean accuracy and its standard deviation on the full test set. This is a stronger design than treating a single favorable sample as representative, although it does not remove every possible source of experimental uncertainty.

What the comparison methods contribute

EDA supplies a lightweight editing baseline. It tests whether simple modifications already provide enough useful variation to improve learning. Its presence prevents the evaluation from equating the complexity of a pretrained generator with a demonstrated advantage. A sophisticated generation pipeline must still be judged against inexpensive ways to enlarge the training collection.

Backtranslation supplies a different kind of alternative. The sentence is translated from English into German and then returned to English using pretrained translation systems. The paper identifies the translation resources with Facebook FAIR’s WMT19 News Translation Task Submission. The general augmentation approach is linked to Improving Neural Machine Translation Models with Monolingual Data.

Unlike local replacement, a translation round trip can alter the sentence’s phrasing more broadly. Yet it is still tied to an authentic source sentence through a task intended to preserve its content. This gives backtranslation a different combination of freedom and constraint from either BERT’s masked reconstruction or GPT2’s continuation. The results show why that combination remains a serious baseline.

CBERT supplies the comparison with a category-aware masked generator. It is especially important for the conditioning question: the proposed prepend arrangement should be compared with an existing way to make BERT sensitive to category information. If a simpler textual condition performs similarly, it becomes attractive because it avoids dependence on BERT’s segment-embedding mechanism.

Downstream classification findings

The authors report that BART-based augmentation gives the best classification performance across the datasets in the main low-data experiment. Their interpretation is that sequence-to-sequence reconstruction provides a useful balance: it can change more than a tightly constrained masked-token method while retaining more of the source example’s guidance than label-only continuation.

Backtranslation performs strongly as well. The paper states that it exceeds several augmentation methods using pretrained generators, including CBERT. This is an important qualification to the overall narrative. The relevant conclusion is not that every newer generator beats established augmentation, but that the selected BART approach is strongest overall while a translation-based method remains highly competitive.

The conditioning comparison is more restrained. BERTprepend, BERTexpand, and CBERT achieve similar downstream performance across the tasks. Their practical differences therefore lie partly outside the final accuracy ranking. In particular, the expanded vocabulary demands substantially more adaptation, while the readable prepend interface transfers more naturally to other architectures.

The paper also gives a specific comparison between BERTprepend and a stronger auto-encoding alternative on TREC. The chart reports mean accuracy on the full test set in the paper’s low-data evaluation.

TREC full-test mean accuracy with auto-encoding augmentation

RoBERTa with label prepending exceeds the corresponding BERT variant.

TREC full-test mean accuracy with auto-encoding augmentationBERTprepend: 64.74BERTprepend64.74RoBERTaprepend (this paper): 66.12RoBERTaprepend (this paper)66.12
The numbers
System or settingmean accuracy %
BERTprepend64.74
RoBERTaprepend (this paper)66.12

This comparison supports a limited but useful point: a shared conditioning interface does not eliminate differences between the underlying generators. Improving the generator can still improve the usefulness of its augmented examples. The result does not establish that the same ordering must hold on every task or under every training budget.

Fidelity and variety explain different aspects of success

For intrinsic category evaluation, the authors train a stronger evaluator using the combined training and test partitions of each dataset. Development performance selects the evaluator checkpoint. This is a separate procedure from training the low-data downstream classifier. Its purpose is to obtain a category predictor capable of inspecting generated sentences with access to much more labeled material.

The auto-encoding methods retain category information better than GPT2 and BART according to this evaluator. That result fits their constrained generation process: when much of an original sentence remains fixed, there are fewer opportunities to wander into a different category. Yet superior retention does not produce the strongest downstream result on its own. Conservative synthetic material may contribute less new variation.

Backtranslation obtains the strongest fidelity result on two datasets. The authors interpret this as evidence that the translation systems preserve category-relevant meaning effectively. This finding also helps explain why backtranslation is a demanding baseline. It can change wording without abandoning the source sentence’s intended content as readily as a less constrained generator might.

The diversity analysis produces another ordering. EDA has the greatest trigram variety, whereas backtranslation has the greatest unigram variety. These findings should not be collapsed into a single claim that one method generates “better” text. Trigram variation can arise when random edits disrupt local sequences. Unigram variation can arise when a translation system introduces alternative vocabulary. Each measure describes a property of the output collection, not its complete usefulness.

The downstream and intrinsic results therefore reinforce each other through their differences. High category retention alone is insufficient, and high lexical variety alone is insufficient. The practical objective is generated material that supplies useful variation while remaining appropriately supervised. BART’s overall downstream performance is presented as evidence for that balance in the studied setting.

What changes with more authentic training material?

The appendix examines the condition with 50 examples from each category. Its overall conclusion is unfavorable to augmentation: classification usually does not improve, and accuracy frequently falls. The paper consequently draws a boundary around its main success. The strongest evidence concerns a severe shortage of authentic examples, rather than an enduring advantage as training data become more plentiful.

This boundary should not be interpreted as a universal threshold. The value 50 describes the experimental condition used here, not a general point at which synthetic data becomes useless. Its significance is comparative: within these tasks and procedures, increasing the authentic training allocation changes whether augmentation helps. The result encourages evaluating the entire learning regime rather than treating an augmentation method as beneficial in isolation.

What the ablations show

Conditioning changes engineering costs more clearly than accuracy

The paper contains several controlled comparisons and supporting analyses rather than a single exhaustive ablation matrix. The most direct conditioning comparison uses BERTprepend, BERTexpand, and CBERT. They differ in how category information enters the generator while retaining a common auto-encoding foundation. This makes them useful for examining whether a more specialized conditioning mechanism is necessary.

Their similar downstream results support the authors’ preference for prepend. The simpler input arrangement competes with both an expanded vocabulary and an architecture-specific intervention. This is evidence for sufficiency within the experiment: readable categories can provide useful conditioning without the additional mechanisms. It is not evidence that every possible class name or vocabulary arrangement would behave identically.

Convergence provides a clearer distinction. In the discussion, CBERT and BERTprepend are described as converging before 8 epochs, while BERTexpand takes more than 100. The implementation section gives longer training allocations of 10 and 150 epochs for prepend and expand respectively. These statements concern related but different quantities: the training configurations and the observed convergence behavior.

The authors attribute expand’s difficulty to its new category embeddings. A representation learned from scratch has little task data from which to acquire meaning. The prepend arrangement can instead use existing vocabulary representations. This explanation is plausible within the design and supported by the training behavior, although the paper does not isolate every contributing factor through an independent embedding study.

Authentic context addresses a weakness of label-only continuation

The GPT2 comparison asks whether the class name supplies enough information for useful generation. Label-only prompting allows broad freedom after the separator. The authors observe coherent text but insufficient preservation of the intended category. This distinction matters because fluency can make a synthetic sentence look successful even when its supervision has become unreliable.

GPT2context adds an authentic opening while retaining the category condition. The change narrows the continuation problem. Instead of inventing an example from a broad class description, the generator extends a partial instance of that class. The paper identifies this extra context as crucial for producing meaningful augmentation with its auto-regressive setup.

This comparison supports the use of an anchor, but it does not establish an optimal amount of anchoring. The study uses k = 3 instead of presenting a comprehensive search over prompt lengths. A longer opening might retain more source structure, while a shorter opening might permit greater variation; those possibilities are not quantified here. The demonstrated lesson is that contextual support matters, not that the selected prefix length is universally best.

The corruption operation affects sequence-to-sequence augmentation

BART’s preliminary comparisons examine what kind of denoising task should guide augmentation. Masking is preferred to the other explored operations, including insertion and deletion. Within masking, whole-word corruption is reported to perform consistently better than sub-word corruption. These findings motivate the final word and span variants.

The distinction is meaningful because a masked sub-word can leave fragments of the original word visible. Whole-word masking changes the information available to reconstruction in a different way. The paper reports the preference but does not offer a detailed causal decomposition of why it occurs. A careful interpretation keeps the result at the level tested: the chosen word-based procedure works better in these experiments.

Word masking and span masking also represent different kinds of uncertainty. Separate masks preserve a more explicit local pattern of missing items, while a single marker for a continuous stretch leaves the decoder to reconstruct that stretch as a sequence. The paper uses both as practical augmentation choices. Its broader recommendation is to prefer these masking arrangements over the other denoising operations it explored.

The authors additionally propose the masking ratio as a control over diversity. However, the principal setup uses 40% masking, and the paper does not establish a universal optimum through a comprehensive reported sweep. The conceptual control and the selected experimental value should therefore be kept separate. One motivates further experiments; the other specifies the experiment actually discussed.

Generator strength and training-data quantity remain separate factors

The TREC comparison between RoBERTaprepend and BERTprepend shows that the shared interface can accommodate a stronger auto-encoding generator. It does not turn the framework into a generator-independent guarantee. The base system still matters, even when label presentation is held conceptually constant. This is useful because it locates the contribution: the paper proposes a transferable conditioning method, not a claim that all generators become equivalent.

The comparison between the main training condition and the larger one tests a different factor. At 10 examples per class, synthetic material can offer useful additional evidence. At 50, the same broad intervention often fails to help. This analysis indicates that augmentation’s value depends on what the authentic data already provide. It also cautions against selecting an augmentation procedure solely from its performance in the most favorable scarcity condition.

Intrinsic analyses reveal competing objectives

The fidelity and type–token analyses are not ablations of a single component. They are complementary measurements that help explain system behavior. Auto-encoding methods’ label retention, EDA’s trigram variation, and backtranslation’s vocabulary variation describe distinct properties. The paper’s argument depends on seeing those properties together rather than expecting every measure to rank the methods identically.

That pattern is scientifically useful. If the strongest downstream method also led every intrinsic measure, little would be learned about the tradeoff. Instead, the divergent rankings show that useful augmentation occupies a compromise. The analyses do not supply a formula that predicts downstream gains from fidelity and diversity, but they make a single-dimensional explanation less convincing.

Limitations

Limits the authors identify

The authors explicitly acknowledge that augmentation becomes difficult to justify as more authentic training data are available. The appendix’s 50-example condition generally shows no improvement and frequently shows deterioration. This is a substantial limit because the method’s appeal could otherwise be mistaken for a broad prescription to enlarge every classification dataset with generated text.

They also state that success depends on the task and dataset. An augmentation generator that works well in one setting may not work equally well elsewhere. The paper’s shared framework is intended to make methods comparable and reusable; it does not remove differences in what a task requires. Sentiment, assistant intent, and question type may respond differently to the same corruption or continuation procedure.

Another stated limitation concerns hyper-parameters. The study applies common choices across datasets for settings such as masking, learning rate, and warmup. This supports a unified comparison but may leave individual methods or tasks below their best attainable performance. The reported ranking therefore reflects the chosen experimental configurations, not an exhaustive optimization of every competing pipeline.

The authors suggest that task-specific and generator-specific optimization would be valuable. Their future directions also include combining text augmentation with joint learning of the generator and classifier, or with augmentation in a latent representation space. These are prospective extensions. The experiments do not demonstrate their effectiveness merely because the conclusion identifies them as compatible directions.

Category agreement is narrower than meaning preservation

A careful reader should distinguish the paper’s fidelity measure from a complete semantic test. The evaluator predicts a category. Agreement with the requested category indicates that the generated sentence retains information sufficient for that prediction. It does not establish that all events, entities, relations, or factual commitments match those of the source.

This matters particularly when extending the method beyond classification. A rewritten mathematics problem could retain its apparent topic while changing the required operation. A question could retain its broad answer category while asking about a different entity. Such examples illustrate the logical gap between category agreement and detailed equivalence; the paper’s evaluator is not designed to close that gap.

The evaluator can also make mistakes. It is a learned BERT classifier selected through development performance, rather than a direct measurement of meaning. Its judgments may reward features that correlate with categories without fully capturing the intended semantics. The paper uses it as an automated intrinsic indicator, and its conclusions should be interpreted at that level.

The evaluator’s training procedure deserves separate attention. It uses the combined training and test partitions to increase available supervision. The downstream low-data classification experiment is distinct, but the intrinsic score is consequently not an independent test of generalization to wholly unseen authentic data. It measures generated-text agreement with a well-supervised category predictor constructed for this analysis.

Lexical variation is an incomplete account of diversity

Type–token ratio measures repetition among word sequences. It can reveal that a method introduces alternative vocabulary or produces different local combinations. It does not determine whether those differences correspond to new situations, new linguistic constructions, or useful coverage of a category. A collection may vary its wording without expanding the substantive evidence available to the classifier.

The EDA result makes this limitation concrete. Random changes can create uncommon trigrams, increasing the measured variety while damaging the sentence. The authors explicitly warn that greater diversity under this measure need not preserve semantics. High values should therefore be interpreted as descriptions of lexical behavior, not as automatic evidence of superior augmentation.

The converse also matters. A conservative reconstruction method can receive a less impressive variety score while still producing valid training examples. Whether those examples help depends on their relationship to the classifier’s existing errors and the authentic data. The paper does not provide a complete measure of useful novelty, nor does it claim to solve that evaluation problem.

The comparison covers particular implementations

The study represents each major pretraining family through selected systems and configurations. BERT, GPT2-Small, and BART do not exhaust every possible auto-encoding, auto-regressive, or sequence-to-sequence design. The family-level guidelines summarize observed behavior in this comparison, but they should not be read as immutable properties of every implementation.

Generation procedures also differ. GPT2 uses nucleus sampling, whereas BART uses beam search. Those choices are appropriate parts of the implemented pipelines, yet they mean the comparison does not isolate pretraining objective alone. Output quality can reflect architecture, prior training, adaptation, corruption, prompt design, and decoding together.

Likewise, the common budget of synthetic examples improves fairness without making every resource identical. The generators have different training requirements, and the expand condition demonstrates that even a conditioning change can alter convergence substantially. Equal retained data quantities answer one fairness concern; they do not imply equal computation or equivalent optimization difficulty.

The descriptive labels are another boundary. The authors’ explanation relies partly on names that are meaningfully related to their categories. The paper does not systematically compare informative names with arbitrary identifiers across all methods. It therefore leaves open how much of prepend’s effectiveness depends on label wording, tokenization, or the generator’s prior associations with those words.

Small-data simulation is not every form of scarcity

The low-data setting is constructed by sampling balanced subsets from established labeled datasets. This makes the experiment controlled and repeatable. It does not reproduce every difficulty of collecting scarce supervision in practice, such as uneven category coverage, disputed labels, or a mismatch between development material and deployment traffic.

Development supervision is also part of the setup. The study deliberately provides ten validation examples per category to support checkpoint selection. A setting with little or no trustworthy validation material would present an additional problem. The experiments should therefore be understood as limited-training-data experiments with a specified model-selection procedure, rather than evidence that augmentation removes the need for validation.

Finally, the paper studies classification. It does not demonstrate improvements in structured meaning graphs, question answering, or a text compressor’s reconstruction guarantees. Those may be sensible applications to investigate, as in the proposed Mova experiments, but they require their own acceptance criteria. The transferable mechanism is category-conditioned generation; the correctness conditions of a new application remain to be established.

What came after

A citation connection does not specify an inherited method

The later works connect this paper to a wider discussion of pretraining, limited supervision, and synthetic text. Their citation relationship establishes that the augmentation study entered that research conversation. It does not, on its own, establish that a later system used label prepending, reproduced the BART masking procedure, or confirmed the same ranking. The most defensible account separates the concerns visible in those works’ titles from implementation details that cannot be inferred from citation alone.

Several surveys provide the broadest connections. Pre-trained Models for Natural Language Processing: A Survey and Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Survey place pretrained systems at the center of their subjects. A Survey on Recent Approaches for Natural Language Processing in Low-Resource Scenarios addresses the scarcity setting that motivates augmentation. Their relationship to this paper is therefore naturally understood as contextualization, without assigning them a particular experimental conclusion.

An Empirical Survey of Data Augmentation for Limited Data Learning in NLP makes the augmentation connection more explicit in its subject. It belongs to the same general question: how additional training material can support learning when authentic examples are limited. The present paper contributes a comparison framework and practical distinctions that are relevant to that question. A citation alone still does not show whether the later survey endorses every guideline or obtains the same empirical ordering.

From augmenting examples to generating datasets

Generating Datasets with Pretrained Language Models and ZeroGen: Efficient Zero-shot Learning via Dataset Generation identify dataset generation as their central subject. Their titles indicate a broader emphasis than reconstructing selected words in authentic training sentences. The shared question is whether a pretrained generator can supply material from which another learning system benefits.

GPT3Mix: Leveraging Large-scale Language Models for Text Augmentation and AugGPT: Leveraging ChatGPT for Text Data Augmentation explicitly connect named generators with augmentation. These works make the continued relevance of the generator-as-data-source idea visible. Their titles do not establish their prompting details, filtering procedures, or results, so those should not be projected backward from the earlier paper’s recipe.

Synthetic Data Generation with Large Language Models for Text Classification: Potential and Limitations names both the application and the need to examine its boundaries. That emphasis aligns with the earlier study’s most useful caution: producing plausible examples and improving a classifier are separate achievements. The citation connection supports discussing a continuing research problem, instead of claiming an unbroken sequence of confirmed improvements.

Diversity, accuracy, and application-specific supervision

Increasing Diversity While Maintaining Accuracy: Text Data Generation with Large Language Models and Human Interventions names the same tension that the earlier paper exposes through its intrinsic analyses. Its title also identifies human intervention as part of its subject. Diversity-oriented Data Augmentation with Large Language Models makes diversity an explicit focus. Neither title supplies a basis for assigning particular mechanisms or numerical findings, but both show that useful variation remains a distinct concern.

Other citing works identify tasks beyond the classification benchmarks studied here. DAGA: Data Augmentation with a Generation Approach for Low-resource Tagging Tasks concerns tagging. Generative Data Augmentation for Commonsense Reasoning concerns reasoning. InPars: Data Augmentation for Information Retrieval using Large Language Models concerns information retrieval. These task names indicate different destinations for generated supervision, not evidence that a classification-oriented fidelity test is sufficient for all of them.

Can LLMs Augment Low-Resource Reading Comprehension Datasets? Opportunities and Challenges is especially relevant to proposed reader tests in Mova. Its title frames reading-comprehension augmentation as a question with both possibilities and difficulties. That connection is useful without assuming an answer: generated questions require task-specific validation, just as generated category examples require checks appropriate to classification.

A more concrete deployment concern appears in A Holistic Approach to Undesired Content Detection in the Real World. Its described problem involves classifiers for varied undesired content, rare harmful examples, and production traffic that differs from academic benchmarks. This gives a practical reason to care about data scarcity while also illustrating a boundary of balanced benchmark sub-sampling. The relationship does not establish that this later work adopts the earlier augmentation procedure.

The enduring connection across these works is a research question rather than a guaranteed recipe: when does generated supervision add trustworthy information? This paper offers a particularly clear early comparison because it keeps category conditioning simple, examines generators with different constraints, and checks both variation and retention. Later applications must still define what a correct synthetic example means for their own task and demonstrate that adding it improves the system that ultimately uses it.

 Fields, topics and concepts

Cite

Cite as Varun Kumar, Ashutosh Choudhary and Eunah Cho. 2020. Data Augmentation using Pre-trained Transformer Models. arXiv:2003.02245.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2003.02245 · arXiv 2003.02245

@misc{kumar2020data,
  title = {{Data Augmentation using Pre-trained Transformer Models}},
  author = {Varun Kumar, Ashutosh Choudhary and Eunah Cho},
  year = {2020},
  doi = {10.48550/arxiv.2003.02245},
  eprint = {2003.02245},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2003.02245}
}

References

31 references, from the paper's own bibliography.

  1. Ateret Anaby-Tavor, Boaz Carmeli, Esther Goldbraich, Amir Kantor, George Kour, Segev Shlomov, Naama Tepper, and Naama Zwerdling. 2019. Not enough data? deep learning to the rescue! arXiv preprint arXiv:1911.03118. OpenAlex ↗ · Scholar ↗
  2. Alice Coucke, Alaa Saade, Adrien Ball, Théodore Bluche, Alexandre Caulier, David Leroy, Clément Doumouro, Thibault Gisselbrecht, Francesco Caltagirone, Thibaut Lavril, et al. 2018. Snips voice platform: an embedded spoken language understanding system for private-by-design voice interfaces. arXiv preprint arXiv:1805.10190. our card
  3. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. our card
  4. Sergey Edunov, Myle Ott, M. Auli, and David Grangier. 2018. Understanding back-translation at scale. ArXiv, abs/1808.09381. OpenAlex ↗ · Scholar ↗
  5. Ari Holtzman, Jan Buys, Maxwell Forbes, and Yejin Choi. 2019. The curious case of neural text degeneration (http://arxiv.org/abs/1904.09751). our card
  6. Zhiting Hu, Bowen Tan, Russ R Salakhutdinov, Tom M Mitchell, and Eric P Xing. 2019. Learning data manipulation for augmentation and weighting. In Advances in Neural Information Processing Systems, pages 15738–15749. OpenAlex ↗ · Scholar ↗
  7. Melvin Johnson, Mike Schuster, Quoc V Le, Maxim Krikun, Yonghui Wu, Zhifeng Chen, Nikhil Thorat, Fernanda Viégas, Martin Wattenberg, Greg Corrado, et al. 2017. Google’s multilingual neural machine translation system: Enabling zero-shot translation. Transactions of the Association for Computational Linguistics, 5:339–351. our card
  8. Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. 2019. Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858. our card
  9. Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980. our card
  10. Sosuke Kobayashi. 2018. Contextual augmentation: Data augmentation by words with paradigmatic relations. arXiv preprint arXiv:1805.06201. our card
  11. Taku Kudo and John Richardson. 2018. Sentencepiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. arXiv preprint arXiv:1808.06226. our card
  12. Varun Kumar, Hadrien Glaude, Cyprien de Lichy, and William Campbell. 2019. A closer look at feature space data augmentation for few-shot intent classification. arXiv preprint arXiv:1910.04176. OpenAlex ↗ · Scholar ↗
  13. Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2019. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461. our card
  14. Xin Li and Dan Roth. 2002. Learning question classifiers. In Proceedings of the 19th international conference on Computational linguistics-Volume 1, pages 1–7. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  15. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. our card
  16. George A Miller. 1998. WordNet: An electronic lexical database. MIT press. OpenAlex ↗ · Scholar ↗
  17. Nathan Ng, Kyra Yee, Alexei Baevski, Myle Ott, Michael Auli, and Sergey Edunov. 2019. Facebook fair's wmt19 news translation task submission. In Proc. of WMT. our card
  18. Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. 2019. fairseq: A fast, extensible toolkit for sequence modeling. In Proceedings of NAACL-HLT 2019: Demonstrations. our card
  19. Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openai-assets/researchcovers/languageunsupervised/language understanding paper. pdf. OpenAlex ↗ · Scholar ↗
  20. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI Blog, 1(8). OpenAlex ↗ · Scholar ↗
  21. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683. our card
  22. Melissa Roemmele, Andrew S Gordon, and Reid Swanson. 2017. Evaluating story generation systems using automated linguistic analyses. In SIGKDD 2017 Workshop on Machine Learning for Creativity. OpenAlex ↗ · Scholar ↗
  23. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2015a. Improving neural machine translation models with monolingual data. arXiv preprint arXiv:1511.06709. our card
  24. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2015b. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909. our card
  25. Sam Shleifer. 2019. Low resource text classification with ulmfit and backtranslation (http://arxiv.org/abs/1903.09244). OpenAlex ↗ · Scholar ↗
  26. Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1631–1642. our card
  27. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008. our card
  28. Jason W Wei and Kai Zou. 2019. Eda: Easy data augmentation techniques for boosting performance on text classification tasks. arXiv preprint arXiv:1901.11196. our card
  29. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, R'emi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface's transformers: State-of-the-art natural language processing. ArXiv, abs/1910.03771. our card
  30. Xing Wu, Shangwen Lv, Liangjun Zang, Jizhong Han, and Songlin Hu. 2019. Conditional bert contextual augmentation. In International Conference on Computational Science, pages 84–95. Springer. OpenAlex ↗ · Scholar ↗
  31. Qizhe Xie, Zihang Dai, Eduard Hovy, Minh-Thang Luong, and Quoc V. Le. 2019. Unsupervised data augmentation for consistency training (http://arxiv.org/abs/1904.12848). our card

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kumar-2020-data-augmentation-using-pre-trained/