Elamur Research

Data Augmentation for Text Generation Without Any Augmented Data

Paper · 2021 · Wei Bi, Huayang Li and Jiacheng Huang

Summary

Training a system to translate a sentence or answer a message frequently involves making extra examples from the ones already available. A replacement word can give the system a useful variation, or it can change the meaning enough to make the original target inappropriate. Producing full sentences adds another decision about how to generate them and another set of examples to process during training. Bi and colleagues ask whether text generation can gain some of the benefits of augmentation while training on the original sentence pairs alone.

Their starting point is to describe what an extra example would do to the loss, the quantity training tries to reduce. Imagine a prediction for an original input, a prediction for a modified input, and the correct output. With Euclidean distance as the loss, these form a triangle. The distance from the modified prediction to the correct output can be calculated from the original error, how far the prediction moved, and the direction of that movement relative to the target. The authors replace a collection of actual text modifications with a probability distribution over these distances and angles. An upper bound then leads to a simple training rule. Take the gradient for an original example and scale it by a weight that grows with the example’s loss. The paper considers perturbations to inputs, outputs, and both together.

The experiments cover machine translation and single-turn conversational response generation. On the IWSLT14 German-to-English test set, the proposed rule with cross-entropy training scores 29.16 BLEU, compared with 27.98 for ordinary training and 29.35 for back-translation. Back-translation leads across the recurrent translation comparisons with cross-entropy, while the proposed rule is more competitive against explicit augmentation with the Wasserstein distance loss. On the Reddit test sample rated by annotators, the proposed rule with Wasserstein training receives a relevance score of 3.447, the highest among the trained systems. Other approaches lead on several automatic dialogue measures, including the reported diversity measures.

The paper connects an augmentation objective to a form of example weighting and tests whether that weighting delivers similar gains. Its geometric argument gives an equality for Euclidean distance and a distance bound in the Wasserstein setting. Cross-entropy lacks the same geometric relation, so its improvements are evidence for the weighting rule on these tasks. A separate convergence argument addresses the size of the training gradient under assumptions about stochastic gradient descent. The experiments show where the rule can compete with generating extra examples, with the outcome depending on the task, the loss, and the measure used to compare them.

Deep dive: Data Augmentation for Text Generation Without Any Augmented Data

Bi and colleagues use loss-based gradient weighting to mimic data augmentation in translation and dialogue without generating extra training examples. · about 37 minutes to read

The problem and its context

What makes an extra training pair useful?

A supervised generation example contains an input sequence and a target sequence. In translation, the target expresses the input in another language. In dialogue, the target is a response to the input message. Training uses that pair to determine what the system should predict in that particular context. Data augmentation changes the training material by creating related examples. Its value depends on the relation surviving the change. A modified source sentence paired with an unchanged translation is useful only to the extent that the translation still fits.

The paper contrasts this with the familiar case of text classification. A classification example has an input and a label, and an augmentation can alter the input while preserving the label. Generation opens up more choices because the expected answer is itself text. One can change the source and keep the target, change the target and keep the source, or modify both. The same nominal operation, such as substituting words, can therefore play different roles. Applied to the source, it changes what the system has to respond to. Applied to the target, it changes what counts as the desired response.

That distinction matters even when changes are small. A locally plausible replacement on the source side of a translation might require a corresponding replacement on the target side. A similarly sized edit to a conversational query might still leave a response entirely appropriate. The acceptability of a new pair is a property of the two sequences together. A mechanism that makes each sequence read well has yet to establish that the result is suitable supervision.

The earlier studies discussed by the authors approach this problem in several ways. Word-level methods apply operations such as insertion, deletion, and synonym replacement. A lookup-based system can restrict replacements to entries in a resource. A context-sensitive system can use the rest of the sentence to propose a substitute. The paper also describes embedding mix-up, which changes the representations supplied for training. These are different ways to decide where and how an example should change. EDA and Contextual Augmentation illustrate the operation-based and context-based approaches, respectively.

Masking makes the contextual approach easy to picture. Some words are hidden, and a system trained to fill gaps proposes replacements from the surrounding material. It can produce sentences whose parts still fit together reasonably well. The supervision question involves a separate comparison with whatever sits on the other side of the training pair. If a replacement changes what the sentence says, the unedited side may cease to be an appropriate partner. The method used to propose the edit and the criterion that makes the resulting pair useful address different questions.

Why some approaches generate whole sentences

The paper distinguishes local changes from sentence-level augmentation. Its main example of the latter is back-translation. In the original translation use it describes, a system translating from the target language back into the source language turns monolingual target text into synthetic parallel data. The target sentence is already available, and the reverse translation supplies a source sentence to pair with it. Back-translation was also extended to paraphrasing through a round trip. A sentence goes into another language and returns to its original language in a potentially different form. Improving Neural Machine Translation with Monolingual Data

This distinction is important for the experiments because the authors use back-translation in different ways for the two tasks. Translation naturally provides two languages and a reverse direction. For conversation, the query and the response are already in the same language, so a round trip can introduce changes into either. In each case the pipeline has an explicit operation that produces a new sequence. Once that operation has run, the new training pair can be assigned a weight and used alongside the original pair.

Other work discussed by the authors generates sentences with learned generative systems or retrieves sentences to supplement dialogue data. Task-specific designs can take advantage of what qualifies as a suitable alternative in a particular setting. The cost is that their choices about data construction have to be made for that setting. Even a learned policy that chooses among word edits can start with a repertoire of operations supplied beforehand. The paper also notes approaches that learn to make augmented examples while training the downstream system. Those approaches move more of the decision into learning, while retaining the construction of extra examples.

The paper’s question concerns the need for that construction step. The usual pipeline goes from an original pair to a choice of transformation, then to a new pair, then to its contribution to training. Bi and colleagues start at the last step. If a loss can be expressed in terms of a few properties of the change, perhaps those properties can be specified directly. The problem becomes how to represent and average the effects of possible perturbations on the training loss.

How weighting enters the picture

The authors also distinguish the choice of which examples to train on from the choice of how strongly each should influence an update. Earlier data-weighting approaches assigned importance to examples using fixed rules or learned weighting functions. Weighting also fits naturally into explicit augmentation. The training objective might include an original example at its usual strength, then give a lower or higher weight to each of its variants. Meta-Weight-Net is among the earlier studies the authors cite on learning example weights.

In the proposed method, the connection between these choices is the main result of the derivation. The authors begin with an objective containing explicit weighted variants. They reformulate one variant’s loss in terms of a distance and an angle, then replace the variants with an expectation. Under their distributional assumptions, the resulting upper-bound calculation points back to example weighting. An example’s influence can change as training progresses because its current loss changes.

The paper relates this increased emphasis on high-loss examples to earlier work that favors difficult examples, including Focal Loss. The connection concerns the distribution of training effort. The training rule gives a larger contribution to an original example when the current prediction incurs a larger error. The reason for choosing that rule in this paper comes from the analysis of expected perturbation loss.

The method, step by step

Start with the loss that extra examples would contribute

An original training pair has a source and a target. The generation network takes the source and produces the prediction used to compute the loss. Consider first an augmentation that modifies the source alone. The target stays fixed, so the training objective has an ordinary prediction error and an additional error for every altered input being used. In compact notation, the explicit objective for this case is:

ℒ_aug = ℓ(f(x), y) + ∑_{x̂ : φ_x̂ ∈ F} w_x̂ ℓ(f(x̂), y)

Here, ℒ_aug is the augmented loss for the pair. The input sequence is x, its target is y, and f is the learned generation mapping for this task. The function ℓ measures the error between its arguments. The accented x̂ is a modified input, φ_x̂ is the transformation that produces it, and F is the space of eligible transformations. The summation ∑ collects the selected contributions, each scaled by the weight w_x̂. The notation after the colon specifies which transformations the sum considers.

This objective gives a concrete meaning to the extra work of explicit augmentation. A modified source can induce a different prediction even when the desired target is the same. To compute its loss directly, the system must process that modified source. The paper seeks a different way to represent the term inside the sum. The replacement will retain information about the size and direction of the resulting change in prediction, while dispensing with the corresponding altered source sentence.

Describe the change as a triangle

The first derivation assumes that predictions and targets have representations in Euclidean space. The loss is their ordinary distance:

ℓ(u, v) = ‖u − v‖₂

The symbols u and v denote two sentence representations. The double bars with subscript ₂ denote the Euclidean norm, applied to the difference between the representations. The distance is unsquared at this point. Squaring enters in the relation between the sides of the triangle.

For input augmentation, place the unmodified prediction at the vertex where the angle will be measured. One side extends from that point to the target. Its length is the ordinary training loss. Another side extends from the same point to the prediction for the altered source. Its length measures how far the prediction moves. The side that closes the triangle runs from the new prediction to the target. That is the loss the explicit augmentation would add.

The length and angle of the second side capture different effects. A movement aimed toward the target can reduce the error, while an equally long movement aimed away can increase it. A movement to the side also changes the comparison with the target. The geometry takes place in prediction space. It describes the result of changing the input, so measuring how many words were edited would answer a different question.

The authors write the length of the closing side using the law of cosines:

Φ(e; r, θ) = √(e² + r² − 2er cos θ)

Here, Φ denotes the loss assigned to the hypothetical perturbed prediction. The symbol e is the clean prediction’s distance to the target. The symbol r is the distance between the clean and perturbed predictions. The angle θ lies between the direction towards the target and the direction toward the perturbed prediction, measured at the clean prediction. The notation cos is cosine, the superscript ² denotes a square, and √ takes the square root so that the result is a distance on the same scale as the original loss.

A sentence representation can have many dimensions. The calculation still needs only the geometry of the triangle formed by the three relevant points. Two different text edits can induce triangles with the same side lengths and angle and therefore make identical contributions to this expression. The derivation uses this property to discard details of the underlying transformation after describing its effect on the loss. It gives no procedure for recovering the edited sentence from the resulting length and angle.

Replace a list of edits with a distribution

Applying concrete transformations would give a collection of perturbation lengths and angles. The paper interprets a weighted collection of augmented losses as an empirical analogue of an average over those geometric quantities. The distribution that would describe real transformations is generally unknown. The proposed objective uses a distribution selected by the researcher:

ℒ_ours = ℓ(f(x), y) + E_{(r, θ) ∼ P}[Φ(ℓ(f(x), y); r, θ)]

The quantity ℒ_ours is the authors’ per-example objective. The ordinary term ℓ(f(x), y) is the loss on the original pair. The notation E means an expectation, or probability-weighted average. The pair (r, θ) has joint distribution P, and ∼ indicates that the pair is distributed according to it. The function Φ converts the ordinary error and the selected geometry into the corresponding hypothetical perturbed loss.

The objective retains a direct term for the original example and adds an average of the errors associated with hypothetical movements. Defining the distribution changes which movements have the most influence in that average. It also permits the same idea to be applied regardless of which text operations a separate augmentation pipeline might have used. This flexibility comes from specifying the effect abstractly. The assumed distribution does not need to give every point a corresponding sentence.

The authors take the radius and angle to be independent:

p(r, θ) = p(r)p(θ)

The joint density is p(r, θ). Its factors p(r) and p(θ) are the marginal densities of the radius and the angle. Independence here says the chosen distribution uses the same angle preferences for every distance. A change to the radius distribution can therefore alter how much weight is placed on short movements while leaving the angle distribution intact.

They first choose a bounded uniform radius and a uniform angle:

r ∼ U(0, R),  θ ∼ U(0, π)

The symbol U denotes a uniform distribution over the indicated interval. In the radius distribution, 0 represents no movement and R is the largest allowed movement. In the angle distribution, the interval runs from alignment with the target direction to the opposing direction, with π denoting the angle in radians at the latter endpoint. Uniformity refers to the coordinate distributions. The choice is a simple way to describe hypothetical changes near the original prediction when R is small.

The paper bounds the expected distance under this choice with a combination of a term linear in the clean loss, a quadratic term, and a constant:

E_{(r, θ) ∼ P}[Φ(e; r, θ)] ≤ ½e + C₁e² + C₂(R)

The expectation is over the uniform radius and angle just defined. The coefficient ½ multiplies the linear term in the clean error e. The coefficient C₁ multiplies its square, and C₂(R) collects terms that depend on the radius bound and are constant with respect to the generation parameters. In the appendix argument, the authors treat the ranges of angles on either side of the right angle separately. They use simpler distance bounds on those ranges, then turn a remaining square root into an expression with a square. This is the step that yields the polynomial form.

Turn the bound into a weighted update

The algebra matters because the actual training procedure can use the gradient from an ordinary example. In the uniform case, adding the clean term and differentiating the bound gives the paper’s weighted gradient:

∇_Θ ℒ_bound = (3/2 + 2C₁ℓ(Θ)) ∇_Θ ℓ(Θ)

The vector Θ contains the trainable parameters. The shorthand ℓ(Θ) is the ordinary loss for the current example at those parameters. The operator ∇_Θ denotes differentiation with respect to Θ, and ℒ_bound is the objective obtained by using the upper bound in place of the expectation. The factor 3/2 comes from the original term and the linear part of the bound. The term 2C₁ℓ(Θ) comes from differentiating the squared loss. The additive constant in the bound has no gradient.

Multiplying the whole gradient by a positive scalar preserves its direction for that example and changes its magnitude. The scalar can differ from one training example to another. When the quadratic coefficient is positive, an example with a larger clean loss gets a larger multiplier. This can change the overall direction of training because the contributions of different examples are no longer in the same proportions as under ordinary training. The multiplier can also change for the same example as its prediction improves or deteriorates.

The second choice favors short movements more explicitly:

r ∼ Exp(1/R),  θ ∼ U(0, π)

The notation Exp denotes an exponential distribution, and 1/R is its rate. In this case R is the mean perturbation distance. The radius can exceed R, and the density is greater at shorter distances. The angle is uniform over the same interval as before. The authors give the following form for the bound under this choice:

E_{(r, θ) ∼ P}[Φ(e; r, θ)] ≤ C₁(R)e + (C₁(R)/2)e² + C₂(R)

The symbols e, Φ, P, and E have the same roles as in the uniform calculation. The coefficients C₁(R) and C₂(R) depend on the mean radius R, and the divisor 2 is part of the reported quadratic coefficient. What carries into the training rule is the same structure. The term linear in the ordinary loss gives a fixed gradient contribution, the quadratic term adds a contribution proportional to the current loss, and the constant falls away. The paper treats C₁(R) as a tunable coefficient and later compares choices of it on translation.

This explains which parts of the method have to be computed during training. The distribution and triangle motivate an objective. The update can be implemented using the observed loss and its gradient on the original pair. It does not require computing a clean prediction and a separate hypothetical prediction, or sampling an angle for each example. Clipping can be used to keep the gradient multiplier within the bounds assumed by the convergence analysis.

From hypothetical text perturbations to weighted training

The steps in order.

From hypothetical text perturbations to weighted trainingStep 1: Start with an original input and target1. Start with an original input and targetStep 2: Express a perturbed loss as a triangle2. Express a perturbed loss as a triangleStep 3: Assign distributions to distance and angle3. Assign distributions to distance and angleStep 4: Bound the expected perturbed loss4. Bound the expected perturbed lossStep 5: Compute the ordinary loss on original pairs5. Compute the ordinary loss on original pairsStep 6: Scale its gradient by the loss-dependent weight6. Scale its gradient by the loss-dependent weightStep 7: Update the generation parameters7. Update the generation parameters

Move the target, or move both ends of the pair

An output-side perturbation keeps the original input and changes its target. The corresponding explicit objective is:

ℒ_aug = ℓ(f(x), y) + ∑_{φ_ŷ ∈ F} w_ŷ ℓ(f(x), ŷ)

The symbol ŷ denotes an alternative target for the same input x. The operation φ_ŷ produces that target, and w_ŷ is its importance weight. The clean prediction f(x) appears in both loss terms. The sum ranges over selected output transformations in F.

In this case the angle is measured at the original target. One side of the triangle goes from that target to the clean prediction, and another goes from the original target to the altered one. The third side measures the distance the augmented pair would contribute. Its squared value is:

ℓ(f(x), ŷ)² = ℓ(y, f(x))² + ℓ(y, ŷ)² − 2ℓ(y, f(x))ℓ(y, ŷ) cos θ

The term on the left is the loss against the altered target, squared. The first squared term on the right is the original error, written with the original target y first. The second squared term is the distance from y to ŷ, which now plays the role of r. The angle θ is between the directions toward f(x) and ŷ from y. Euclidean distance is symmetric, so reversing the arguments in the clean term leaves its value intact. The same expectation can thus be used with a different interpretation of the movement.

When both sides change, the explicit objective includes a loss between the perturbed prediction and the perturbed target:

ℒ_aug = ℓ(f(x), y) + ∑_{φ_x̂,ŷ ∈ F} w_x̂,ŷ ℓ(f(x̂), ŷ)

Here, φ_x̂,ŷ is an operation that produces a modified pair, and w_x̂,ŷ is the weight attached to that pair. The term f(x̂) is the prediction for the changed input, while ŷ supplies the changed target. The loss therefore connects two moved points.

The authors bound that distance by considering two paths between those points. One path visits the old target. The other visits the clean prediction. The triangle inequality says each path is at least as long as the direct distance, so the average of their lengths is also an upper bound:

ℓ(f(x̂), ŷ) ≤ ½[ℓ(f(x̂), y) + ℓ(y, ŷ)] + ½[ℓ(f(x̂), f(x)) + ℓ(f(x), ŷ)]

The bracket involving y adds a loss against the original target and the distance by which that target moved. The bracket involving f(x) adds the prediction’s movement and the loss from the clean prediction to the altered target. The coefficients ½ average the two path lengths. The loss terms crossing from a moved point to an original point can be handled with the preceding triangle calculations.

Under the proposed expectation, the resulting form is:

ℒ_ours = ℓ(f(x), y) + E_{(r, θ) ∼ P}[r + Φ(ℓ(f(x), y); r, θ)]

The symbols retain their roles from the earlier objective. The extra r accounts for the movement distances contributed by the paths in the bound. In the chosen distribution its expectation is a scalar independent of the learned parameters. It therefore has no effect on the gradient. The paper arrives at the same optimization rule for pair perturbations by using a bound on their loss. It reaches the input-only and output-only expressions by applying the cosine law directly in the Euclidean case.

Choose a loss for sequences

The Euclidean example makes the mechanism visible, but a sentence can also be represented through its constituent words. The paper discusses Word Mover’s Distance as a way to compare two such representations. It uses a ground cost between word embeddings. A word embedding is a vector associated with a word, and its distance to another word’s vector provides the cost used by the transport calculation. A transport plan chooses how much probability mass from each word position or component of one representation to match with each component of the other. MoverScore is among the work the authors cite for the use of this family of distances in text generation.

The paper’s transport loss is:

WMD(u, v) = min_{T} ∑_{i,j} Tᵢⱼ dᵢⱼ

The sentence representations are u and v. The indices i and j refer to their respective word components. The non-negative entry Tᵢⱼ in the transport plan T is the mass moved between those components. The entry dᵢⱼ is the cost per unit of mass. The summation adds these costs over all pairs, and min selects a feasible plan with the smallest total.

A plan must account for the two sentence distributions:

∑_{j=1}^{M} Tᵢⱼ = pᵤ,ᵢ for every i,    ∑_{i=1}^{N} Tᵢⱼ = pᵥ,ⱼ for every j

Here, N and M are the numbers of components on the u and v sides. The mass available at component i of u is pᵤ,ᵢ, while pᵥ,ⱼ is the mass required at component j of v. Each side has total mass 1. The first sum accounts for all mass sent from a particular component. The second accounts for all mass received by a particular component.

The ground cost and the distance used for training are related as follows:

dᵢⱼ = ‖uᵢ − vⱼ‖₂²

Here, uᵢ and vⱼ are the word vectors at the corresponding components. The squared Euclidean norm measures the cost of moving mass between the two vectors.

WD(u, v) = √WMD(u, v)

The symbol WD denotes the Wasserstein distance used in the experiments. Taking the square root gives the distance corresponding to the squared transport cost in the paper’s definition of WMD. The authors connect the Euclidean sentence example to transport by considering a representation that treats the whole sentence as a unit instead of matching individual words.

Wasserstein distance gives a version of the geometric step in which the cosine expression is an upper bound. In the following formula, the letters represent points in the space of distributions. They are separate from the input and target notation used earlier:

W₂(y, z)² ≤ W₂(x, y)² + W₂(z, x)² − 2W₂(x, y)W₂(z, x) cos θ

The function W₂ denotes the paper’s Wasserstein metric. The points x, y, and z are sentence distributions in that metric space for the purposes of the application. The length on the left is the distance across the triangle. The two distances on the right are the lengths of the sides meeting at x, and θ is the angle between shortest paths from x to the other points. Such shortest paths are called geodesics. The inequality permits the right-hand side of the earlier distance formula to be used as a bound in this setting.

The geometric proof appeals to non-negative curvature of the Wasserstein space in the sense used for geodesic comparison. It compares an angle in that space to the corresponding angle in a Euclidean triangle with the same side lengths. The angle at the starting point is at least the Euclidean comparison angle. Since cosine decreases over the relevant angle interval, substituting the geodesic angle yields an upper bound for the opposite squared side. This is a geometric statement about the chosen metric. The appendix separately addresses how the distance changes with the learned parameters. For the experiments, the authors use an inexact proximal-point method to calculate transport because exact computation is expensive during training.

Use the same weighting with cross-entropy

The other experimental loss is cross-entropy. At each position, the decoder produces a vector of scores that a softmax converts into probabilities over possible next tokens. The reference identifies the desired token. The paper displays the term in its log-likelihood sign convention:

CE(yᵢ, pᵢ) = yᵢᵀ log(pᵢ)

Here, CE is the paper’s notation for the token-level term. The index i specifies the token position, and yᵢ is a vector with value 1 at the reference token and 0 elsewhere. The superscript ᵀ denotes transposition for the inner product with the log probabilities. The vector pᵢ contains the predicted probabilities, and log applies the logarithm to its entries. This expression picks out the log probability of the reference token. Maximizing that log likelihood corresponds to minimizing its negative as a training loss.

The sequence expression adds the token terms:

CE(y, p) = ∑_{i=1}^{|y|} CE(yᵢ, pᵢ)

The target sequence is y, its length is |y|, and p denotes the collection of predicted probability vectors. The summation takes the contribution at each position from the first token to the last. The paper trains by maximum likelihood, supplying the preceding reference tokens when making each prediction. That makes the score at a position a prediction conditioned on the reference prefix.

Cross-entropy lacks the triangle identity used in the original derivation. The authors still apply the loss-dependent multiplier and compare the outcomes with ordinary cross-entropy training. This application can be understood directly through example weighting. A pair that is currently assigned a larger loss makes a larger contribution to the stochastic update. The geometric argument and the cross-entropy experiment therefore address different parts of the paper’s proposal. One motivates the rule for distance losses. The other tests whether that rule helps under a widely used generation loss.

What the convergence argument measures

The formal analysis treats training as minimization of a finite sum. Each original pair contributes a term to an average over the training set. The proof allows this objective to be non-convex, so a small gradient is the measure of progress. Stochastic gradient descent, or SGD, uses the gradient from a sampled example instead of differentiating the entire training set at every update. The paper writes the weighted step as:

Θₜ₊₁ = Θₜ − αₜ wᵢₜ ∇ℓᵢₜ(Θₜ)

The subscript t marks the current iteration, and t+1 marks the next. The vector Θₜ contains the current parameters. The index iₜ is the sampled training example, whose loss and gradient are represented by ℓᵢₜ and ∇ℓᵢₜ. Its gradient weight is wᵢₜ, and the learning rate αₜ sets the step size before that weighting. Subtraction makes the update go in the direction of descent given by the weighted gradient.

The theorem assumes smoothness of the objective, bounded per-example gradients, and gradient weights clipped between positive bounds. Smoothness in this argument describes how rapidly the gradient can change with the parameters. The convergence proof studies the decrease possible in a single step and then aggregates the bound across iterations. The paper takes a learning rate of the following form in the theorem:

αₜ = c/√T

The symbol T is the planned number of updates, and c is a constant chosen in the proof using the objective gap from initialization, the smoothness constant, the gradient bound, and the bounds on the weights. For a given T, the displayed schedule uses the same value at each step. The stated rate is:

O(1/√T)

The notation O expresses how the bound scales with T. The quantity being bounded is the smallest, over the considered iterates, of the expected squared gradient norm of the objective. The expectation accounts for the stochastic choice of training examples. This is a stationarity result under the stated conditions. Its target is a training gradient, while translation and dialogue quality are assessed separately in the experiments.

Experiments and results

Tasks and training comparisons

The experiments cover translation in both directions for each language pair and response generation for single-turn conversations. The translation benchmarks are IWSLT14 English–German, English–French, and English–Italian, and IWSLT15 English–Vietnamese. For the IWSLT14 benchmarks, tst2011 is the validation split and tst2012 is the test split. The English–Vietnamese benchmark uses tst2012 for validation and tst2013 for testing. The authors use the Fairseq preparation script for the IWSLT14 data and the dataset used by earlier work for IWSLT15. fairseq

The main experiments use Fairseq’s sequence-to-sequence implementation. A one-layer long short-term memory network encodes the input, and another one-layer network decodes the output. Attention allows the decoder to draw on different input representations at different output positions. The word embeddings have dimension 256, and the reported dropout rate is 0.1. Parameters are initialized uniformly on [−0.1, +0.1]. Training starts with an SGD learning rate of 1.0, with halving after each epoch beginning after 8 epochs. The runs use a single NVIDIA V100 GPU. The paper says the experimental code would be made available on acceptance. Effective Approaches to Attention-based Neural Machine Translation

For each loss, the comparisons begin with ordinary training on the original data. The proposed weighting approach is compared with masked-word replacement and back-translation. For masked replacement, the authors use pretrained BERT to fill masked positions, selecting 15% of words in each sentence. They make one augmented example for each original. For translation, this method changes only the English side. The altered side is consequently the source in some directions and the target in others. BERT

The translation version of back-translation uses a fixed target-to-source system that was trained on the original dataset. It supplies a synthetic source for an existing target. The conversation version changes both sides of the pair using English-to-German translation followed by German-to-English translation. Those pretrained systems use the WMT14 corpus with 4.5M sentence pairs. As with masked replacement, the authors make one extra example per original example. This produces a doubled training set for each explicit augmentation comparison. In the explicit augmented objective, a shared weight w controls the contribution of the extra examples. The authors tune that weight on the development set for each dataset.

Holding the base loss in view is essential to interpreting the comparisons. The ordinary cross-entropy and ordinary Wasserstein runs already start from different scores. Comparing augmentation against its corresponding ordinary run asks how the intervention changed that setup. Comparing across losses asks which complete training configuration performed best. The paper’s tables support both comparisons, and the answers sometimes differ.

Translation with cross-entropy

Translation quality is measured with BLEU on the named test split for each benchmark. BLEU uses overlap with reference translations, so a higher score here means better performance according to the paper’s reference-based comparison. In the recurrent experiments, German-to-English illustrates the strengths of both the proposed rule and back-translation. The proposed rule is ahead of the ordinary and masked-replacement runs, with back-translation scoring higher still.

Cross-entropy training on IWSLT14 German-to-English test BLEU

Back-translation leads, and loss-based weighting scores above masked replacement and ordinary training.

Cross-entropy training on IWSLT14 German-to-English test BLEUOrdinary training: 27.98Ordinary training27.98Masked replacement: 28.70Masked replacement28.70Back-translation: 29.35Back-translation29.35Loss-based weighting (this paper): 29.16Loss-based weighting (this paper)29.16
The numbers
System or settingBLEU
Ordinary training27.98
Masked replacement28.70
Back-translation29.35
Loss-based weighting (this paper)29.16

For recurrent translation with cross-entropy, back-translation has the highest BLEU among the reported configurations using that loss in every direction. On IWSLT14 English-to-German, ordinary training scores 22.85, the proposed method scores 23.26, and back-translation scores 24.09. On IWSLT15 Vietnamese-to-English, the corresponding test scores are 24.22, 24.74, and 25.00. The proposed method improves on its ordinary baseline in those settings, and back-translation provides the stronger result within the loss family.

A smaller change appears for IWSLT15 English-to-Vietnamese. The proposed rule reaches 27.12 test BLEU, compared with 27.09 for ordinary cross-entropy. Back-translation reaches 27.41. Masked replacement falls to 26.20. One reason the authors offer for the variability of masked replacement is that a plausible word can change a sentence’s meaning, leaving the edited sequence and its untouched partner poorly aligned. The test outcomes show uneven performance for the baseline. They do not directly measure how many synthetic examples lost their alignment.

French-to-English is the recurrent cross-entropy exception to the proposed rule’s improvement over ordinary training. The rule scores 40.46 on the IWSLT14 test split, ordinary training scores 40.49, and back-translation scores 40.87. In the reverse direction, the rule scores 40.94 against 40.86 for ordinary training and 42.64 for back-translation. The difference in outcomes by direction is a reason to retain the direction labels when describing what happened on the French data.

The Italian results follow a similar ordering within cross-entropy. On IWSLT14 Italian-to-English, the proposed rule scores 29.79, ordinary training scores 29.70, and back-translation scores 30.44. On English-to-Italian, the test scores are 27.11 for the rule, 26.85 for ordinary training, and 27.94 for back-translation. Across the recurrent cross-entropy comparisons, the proposed rule exceeds masked replacement in every reported direction. Its recurring advantage over masked replacement is a different finding from catching the best explicit baseline.

Translation with Wasserstein distance

The Wasserstein comparisons give the weighting rule several of its strongest results relative to explicit augmentation. On IWSLT14 English-to-French, it has the highest test BLEU among the Wasserstein runs. In the cross-entropy group for that same direction, back-translation reaches the higher score described above. This distinction illustrates why a win within the Wasserstein comparison does not establish the best score across the whole table.

Wasserstein training on IWSLT14 English-to-French test BLEU

Loss-based weighting leads the Wasserstein runs in this translation direction.

Wasserstein training on IWSLT14 English-to-French test BLEUOrdinary training: 40.48Ordinary training40.48Masked replacement: 40.61Masked replacement40.61Back-translation: 40.60Back-translation40.60Loss-based weighting (this paper): 41.07Loss-based weighting (this paper)41.07
The numbers
System or settingBLEU
Ordinary training40.48
Masked replacement40.61
Back-translation40.60
Loss-based weighting (this paper)41.07

On IWSLT14 German-to-English, the proposed method scores 28.91 with Wasserstein training. Its ordinary baseline is 28.53, masked replacement scores 28.80, and back-translation scores 28.56. In the reverse direction, the rule scores 23.42, compared with 22.95 for ordinary training and 23.10 for back-translation. French-to-English also favors the proposed method within the Wasserstein group. The test score is 40.46, against 39.71 for the ordinary baseline and 39.77 for back-translation. In that direction it reaches the same reported BLEU as the cross-entropy version of the proposed rule, from a different baseline.

Wasserstein training does not make the ordering uniform. On IWSLT15 Vietnamese-to-English, the rule scores 24.26, above the ordinary score of 24.03 and below the back-translation score of 24.51. For English-to-Vietnamese, it scores 26.73, compared with 26.69 for ordinary training and 26.88 for masked replacement. For IWSLT14 Italian-to-English, masked replacement leads the Wasserstein group with 29.98, ahead of 29.86 for weighting. For English-to-Italian, back-translation leads that group with 27.33, ahead of 27.15 for weighting. The proposed rule is above its Wasserstein baseline in these comparisons, while the identity of the strongest method depends on the direction.

Conversation data and automatic evaluation

The response-generation experiment uses English single-round Reddit conversations. Each example consists of a query and a response. To study a restricted-data setting, the authors select pairs whose query and response are each shorter than 20, then randomly split them into 200K training pairs, 2K validation pairs, and 5K test pairs. The automatic evaluation uses the full test split. The filtering and split matter because the results describe short conversations under a deliberately restricted training setup. Dialogue systems

The paper uses several measures because responses can differ in wording and still make sense. Perplexity reflects how much probability the system assigns to the reference token sequences, with lower values indicating better prediction by that measure. BLEU, BLEU-1, and BLEU-2 compare outputs with references through word sequence overlap. The latter measures focus on the indicated lengths of n-grams, which are contiguous groups of tokens. Distinct-1 and Distinct-2 capture lexical diversity at the corresponding lengths. A response generator can lead on one of these measures while trailing on another because they reward different properties. A Diversity-Promoting Objective Function for Neural Conversation Models

With cross-entropy, the proposed rule reports test perplexity of 7.10 versus 7.22 for ordinary training. Masked replacement reaches 6.82. With Wasserstein training, weighting gives 7.01, ordinary training gives 7.10, and back-translation reaches 6.92. These rankings show that the proposed method improves on its own baseline on perplexity for both training losses while explicit augmentation can score better on that measure.

For aggregate dialogue BLEU, cross-entropy weighting reaches 0.85, compared with 0.75 for ordinary cross-entropy. In the Wasserstein group, ordinary training has 0.87 and weighting has 0.84. The ordinary Wasserstein run thus has the higher overall BLEU of those configurations. The proposed method has 1.44 BLEU-2 with cross-entropy, above the corresponding ordinary result of 1.38. With Wasserstein distance it reaches 1.39 BLEU-2, compared with 1.33 for ordinary training. BLEU-1 gives another ordering. Back-translation with cross-entropy leads with 17.04, and the weighted Wasserstein run reaches 16.56, above the ordinary Wasserstein score of 15.09.

Masked replacement is the strongest of the tested augmentation approaches on several diversity comparisons. With cross-entropy it obtains Distinct-1 of 0.917 and Distinct-2 of 0.868. Weighting with the same loss gives 0.894 and 0.864. With Wasserstein training, masked replacement gives 0.913 and 0.881, versus 0.893 and 0.855 for weighting. Human reference responses have values of 0.947 and 0.897. The paper suggests that a dialogue pair can remain coherent after a local semantic change, which would help explain why masked replacement fares differently here than in translation. The reported diversity scores measure the output patterns. The account of what happens inside the synthetic training pairs is the authors’ interpretation.

What annotators found in the responses

For human evaluation, five annotators rate responses on 200 pairs sampled randomly from the Reddit test split. The outputs from the compared methods are shuffled. The annotators judge both fluency and relevance. Fluency concerns how well the response reads, and relevance concerns how well it fits the query. The scale runs from 1 to 5, with 3 indicating an acceptable response and 5 indicating an excellent one. The intermediate values 2 and 4 are available for judgments between the stated anchors.

The proposed Wasserstein setting has the strongest relevance rating among the trained systems. Its score of 3.447 compares with 3.354 for ordinary Wasserstein training. The cross-entropy version of the rule reaches 3.370, against 3.314 for ordinary cross-entropy. With either loss, the two explicit augmentation baselines score below their corresponding ordinary run on relevance. The gold references receive a relevance score of 4.086, giving a point of comparison with the responses already in the conversation dataset.

Human-rated relevance on the sampled Reddit test pairs

Loss-based weighting gives the strongest system ratings for both training losses.

Human-rated relevance on the sampled Reddit test pairsOrdinary cross-entropy: 3.314Ordinary cross-entropy3.314Masked replacement with cross-entropy: 3.184Masked replacement with cross-entropy3.184Back-translation with cross-entropy: 3.249Back-translation with cross-entropy3.249Loss-based weighting with cross-entropy: 3.370Loss-based weighting with cross-entropy3.370Ordinary Wasserstein training: 3.354Ordinary Wasserstein training3.354Masked replacement with Wasserstein distance: 3.188Masked replacement with Wassersteindistance3.188Back-translation with Wasserstein distance: 3.279Back-translation with Wassersteindistance3.279Loss-based weighting with Wasserstein distance (this paper): 3.447Loss-based weighting with Wassersteindistance (this paper)3.447Gold reference: 4.086Gold reference4.086
The numbers
System or settingrelevance rating
Ordinary cross-entropy3.314
Masked replacement with cross-entropy3.184
Back-translation with cross-entropy3.249
Loss-based weighting with cross-entropy3.370
Ordinary Wasserstein training3.354
Masked replacement with Wasserstein distance3.188
Back-translation with Wasserstein distance3.279
Loss-based weighting with Wasserstein distance (this paper)3.447
Gold reference4.086

On fluency, the ordinary Wasserstein run leads among the trained systems with 3.644. Weighting scores 3.632 with cross-entropy and 3.629 with Wasserstein distance. The ordinary cross-entropy run scores 3.571. The rating for the gold references is 4.235. The clearest human-evaluation result for the rule is relevance. Its ranking there holds for both losses, while its fluency ranking depends on which ordinary baseline it is compared with.

What the ablations show

Comparing systems at the same sample count

The paper offers controlled comparisons of data exposure, sensitivity to a weighting coefficient, and performance under a different architecture. It also reports the same augmentation choices under different losses. These comparisons test specific consequences of the method and the stability of the results. They do not systematically remove individual steps from the geometric derivation.

The sample-count comparison focuses on back-translation in the English–German translation experiments. The authors plot test BLEU after updates using the same number of examples, with the horizontal axis expressed relative to the original training-set size. This changes how the comparison should be read. A pass through the back-translation data includes the added pairs. A pass through the proposed method’s data uses the original pairs. Indexing both runs by examples processed makes it possible to compare progress at similar sample exposure even though the underlying training pools differ.

The plotted comparison supports the authors’ claim that the weighted method can give competitive BLEU while drawing from the smaller pool. Under the experiment’s construction, back-translation has one synthetic pair per original, and weighting works with the originals. This concerns the size and composition of the training pool. The plot also compares learning progress by counts of processed examples. These are distinct quantities. Repeated exposure to an original pair counts toward the horizontal axis even though it adds no new sentence to the pool.

There is consequently a concrete efficiency result about what the method needs to process and prepare. No reverse-generated pairs have to be produced for the weighting run, and no extra corpus of the size constructed for back-translation is needed. Matching sample counts makes the comparison more informative than matching epochs alone. It does not give a timing breakdown by augmentation, optimization, and loss computation. The figure supports a claim about learning under the reported sample budgets, while the equality or inequality of end-to-end runtimes remains unmeasured by that comparison.

Varying how much extra influence training assigns

The sensitivity analysis varies C₁(R) for the proposed approach and w for back-translation. For the proposed method, changing the coefficient changes how strongly the current loss affects the gradient multiplier. For back-translation, changing w changes the strength of the synthetic pairs relative to the original ones. The two controls therefore play related experimental roles while acting on different quantities.

The paper rescales the horizontal axes by 10⁻⁴ for C₁(R) and 10⁻¹ for w so that the settings can be displayed over the same visual range. These are axis scaling factors. The corresponding plotted coordinates do not imply equivalent training weights. The authors report that both methods perform robustly across the displayed settings. That suggests the reported translation comparisons are not supported by a single isolated choice of either coefficient.

The sensitivity analysis tests the weighting strength that the derivation exposes as adjustable. It does not test whether an actual distribution of perturbations is uniform or exponential. It also does not directly compare training objectives that explicitly integrate each of those distributions while keeping the final weight fixed. The plots therefore support a result about tuning the training rule. Evidence for the choice of geometric distribution comes from the argument leading to that rule, rather than an empirical identification of the distribution from synthetic examples.

Holding the intervention fixed and changing the architecture

The appendix repeats translation comparisons with a Transformer. The encoder and decoder each have 2 layers, a choice the authors make to reduce overfitting. The experiment keeps SGD because the method was derived in that framework. The authors describe the remaining settings as close to the earlier Transformer setup. The appendix reports German–English and Vietnamese–English translation in both directions. Attention Is All You Need

With cross-entropy, the weighting rule improves on the ordinary Transformer run in all the reported directions. On IWSLT14 English-to-German, the ordinary run scores 24.36 test BLEU, weighting scores 24.62, and back-translation scores 25.45. For IWSLT15 Vietnamese-to-English, ordinary training gives 25.04, weighting gives 25.49, and back-translation gives 25.77. Masked replacement also exceeds weighting there, with 25.68. This is a change from the comparison with masked replacement in the recurrent cross-entropy experiments.

In the Wasserstein group, the proposed rule has the highest result among the compared runs in each reported Transformer direction. For IWSLT14 German-to-English, it gives 29.51 test BLEU against 28.60 for ordinary training and 28.92 for back-translation. For IWSLT15 English-to-Vietnamese, it gives 26.66 against 26.43 for ordinary training and 26.38 for back-translation. The corresponding cross-entropy back-translation scores are 30.01 and 27.62. The change in architecture therefore preserves the broader pattern that back-translation is strong with cross-entropy and the proposed weighting is especially competitive among the Wasserstein variants.

This comparison matters because it gives the weighting rule a setting beyond the recurrent encoder and decoder used in the main experiments. It still uses the same optimizer family and covers a subset of the translation benchmarks. It establishes that the result is reproducible across the tested architecture choices under those conditions, while leaving the effects of other optimizer or architecture changes open.

What changing the loss tells us about the mechanism

The contrast between cross-entropy and Wasserstein training gives an indirect check on the paper’s explanation. The distance geometry gives a reason to expect the rule to be effective with Wasserstein training. In the tables, that is also the loss family in which weighting more frequently leads the explicit augmentation baselines. Cross-entropy, meanwhile, can benefit even in the absence of the cosine-law argument. This makes gradient weighting a plausible source of gains in its own right. The experiments do not isolate how much of the Wasserstein performance should be credited to the geometric approximation.

The dialogue comparisons also show that the weighting and explicit augmentation interventions need not produce the same behavior. Masked replacement is stronger on lexical diversity, while the proposed rule receives stronger relevance judgments. Translation offers a different separation, with back-translation consistently ahead in the recurrent cross-entropy runs. The evidence for a shared effect is that several interventions improve on ordinary training and can yield competitive scores. Their different rankings show why that evidence is best read at the level of the specific metric and setting.

Limitations

Limits the authors identify

The authors emphasize that the radius and angle distributions are simple choices. A continuous distribution includes points that may have no counterpart among valid natural-language sentences. The text space is discrete, and the geometry records only distances and angles with respect to the clean example. It gives no criterion for deciding whether the endpoint corresponds to a grammatical sentence or a suitable new training pair. The paper proposes more informative distributions as future work, including priors estimated from a small collection of augmented examples.

The distinction is important for the method’s interpretation. Choosing a distribution is a way to specify how possible movements enter an average loss. It does not show that real text edits yield that distribution. The paper assumes independence of distance and angle, although in an actual augmentation pipeline a change of a given size might be associated with particular directions. Estimating a prior from augmented examples could make the objective more closely reflect a concrete pipeline, while also changing the role that generated data play in the method.

The authors explicitly qualify the cross-entropy application. It retains the optimization idea of loss-dependent weighting, but the geometric derivation does not make it an upper bound on an explicit cross-entropy augmentation objective. Improvements in BLEU, perplexity, or human ratings show how weighting performed in the reported experiments. They do not validate the triangle construction for cross-entropy.

The authors also identify optimization with Adam as future work. The guarantee is developed for SGD, and even the Transformer runs use SGD to stay within that framework. The paper suggests that the approach could be useful for classification and cross-modality generation such as image captioning. The experiments themselves concern translation and response generation, so those other settings are proposed applications. Adam

Limits visible in the argument and evaluation

The mathematical and empirical claims have different targets. A bound on an expectation under a chosen distribution concerns that distribution. A bound for the loss of an actual augmentation procedure would additionally require a connection between the chosen distribution and the changes that procedure produces. The experiments compare downstream scores. They do not estimate the distribution of actual source or target movements, or measure how closely the surrogate reproduces the example-by-example losses of back-translation or masked replacement.

Some proof steps also warrant a narrower reading than the general claims in the paper. In the exponential case, the distribution is introduced with unbounded support. The appendix introduces a finite upper integration limit in its bounding steps without showing a separate bound for the omitted tail. The resulting expression motivates the tested weighting rule, but the displayed calculation leaves the full-support bound insufficiently justified. The uniform construction and the empirical comparisons can be assessed independently of that issue.

For the SGD analysis, the proof invokes unbiased stochastic gradients. A weight that depends on a sampled example’s current loss can be correlated with that example’s gradient. Unbiasedness of the original stochastic gradient alone is therefore insufficient to justify treating the weighted update as a constant times the full original gradient. For the unclipped rule, one can read the weighted gradient as a sample gradient of the transformed per-example loss. A convergence argument in that interpretation has to apply its assumptions to the corresponding objective and account for clipping when it is used. The rate stated in the paper is conditional on its optimization assumptions. The reported test scores are empirical outcomes.

There is a related issue for Wasserstein training. The geometric inequality concerns distances between distributions. The parameter-continuity theorem in the paper concerns how the value of the distance changes when the parameters change. That is different from the Lipschitz continuity of the gradient assumed in the SGD analysis. The continuity proof also uses a plan that matches corresponding components. Its feasibility requires the mass assigned to the matched components to agree across the two representations. These distinctions matter when carrying the theoretical guarantee into a particular implementation that uses an approximate transport calculation.

The study’s empirical scope is also limited. The main translation evidence uses specific IWSLT benchmarks and primarily a recurrent encoder–decoder. The supplementary architecture comparison covers part of that translation setup. The dialogue evidence is from filtered Reddit pairs under a restricted-data design, and the human ratings come from a sample of that test set. The reported tables provide point scores without uncertainty intervals or repeated-run variation. Close scores can be ranked as reported, while the evidence for a reliable advantage across reruns remains unresolved.

The explicit baselines represent particular ways of constructing extra data. The masked replacement baseline edits only English in translation. The back-translation system for translation is trained from data in the original benchmark setup, and the experiment constructs a synthetic counterpart for each original training example. This gives a comparison with specified augmentation procedures. It leaves open what would happen with other amounts or sources of synthetic data, other transformation policies, and other types of generation tasks. Similarly, the sample-count analysis supports an efficiency comparison in terms of training exposure and synthetic data requirements. Actual runtime depends on the training system and on the cost of the loss computation, which is particularly relevant for Wasserstein distance.

What came after

Best Practices and Lessons Learned on Synthetic Data (2024) cites Bi and colleagues. Its stated subject is practice and lessons concerning synthetic data, which places the citation in a broader discussion of how constructed examples are used. The relationship that can be established here is the citation. A specific reuse of the distance-and-angle construction, the gradient weighting rule, or the experimental protocol is unconfirmed.

Bi and colleagues’ contribution to that subject is a comparison in which one training intervention changes the influence of existing examples and the others add constructed examples. Its translation and dialogue results show why those two choices can be compared without treating them as interchangeable. The weighting rule is competitive in several settings, while the stronger back-translation results in cross-entropy translation and the diversity gains from masked replacement in dialogue show what remains specific to the way new examples are constructed.

Cite

Cite as Wei Bi, Huayang Li and Jiacheng Huang. 2021. Data Augmentation for Text Generation Without Any Augmented Data. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.acl-long.173

@inproceedings{bi2021data,
  title = {{Data Augmentation for Text Generation Without Any Augmented Data}},
  author = {Wei Bi, Huayang Li and Jiacheng Huang},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.173},
  url = {https://doi.org/10.18653/v1/2021.acl-long.173}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bi-2021-data-augmentation-text-generation-without/