---
title: "Latent Alignment and Variational Attention — Deng 2018"
description: "Latent Alignment and Variational Attention explains how learning where to look from known answers can improve translation and visual…"
canonical: "https://research.elamur.ai/free/en/papers/deng-2018-latent-alignment-variational-attention/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/deng-2018-latent-alignment-variational-attention/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Latent Alignment and Variational Attention

# Latent Alignment and Variational Attention

Paper · 2018 · Yuntian Deng, Yoon Kim, Justin Chiu et al.

**Authors:** [Yuntian Deng](https://md.research.elamur.ai/free/en/authors/yuntian-deng/), [Yoon Kim](https://md.research.elamur.ai/free/en/authors/yoon-kim/), [Justin Chiu](https://md.research.elamur.ai/free/en/authors/justin-chiu/), [Demi Guo](https://md.research.elamur.ai/free/en/authors/demi-guo/) and [Alexander M. Rush](https://md.research.elamur.ai/free/en/authors/alexander-m-rush/) · **Year:** 2018 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**68** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2859444450) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1807.03756)
- [arXiv 1807.03756](https://arxiv.org/abs/1807.03756)
- [OpenAlex](https://openalex.org/W2859444450)

Citations: OpenAlex, 2026-10-14.

## Summary

When a system translates a word or answers a question about an image, several parts of the input may offer clues. Standard soft attention builds a weighted average of those clues and makes a prediction from that average. Latent Alignment and Variational Attention asks what happens if the system instead makes a prediction for each possible alignment and averages the resulting probabilities. The distinction matters because a predictor can respond differently to a blend of inputs than it does to the inputs individually. Treating the alignment as an unobserved variable also makes it possible to revisit the alignment once the correct output is known.

Evaluating every possible alignment can be expensive. A cheaper approach, hard attention, samples an alignment from the same distribution the system uses before it knows the answer. The authors propose drawing that sample from a separate distribution that can see the answer during training. In [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/), this second distribution sees the full source and target sentences, while the predictor still works from the source and the target prefix. Training uses the extra information to help the predictor learn where to look. At test time, the predictor combines possible alignments using the distribution it can compute without the answer.

Exact averaging over alignments improved on soft attention in the reported translation and visual [question answering](https://md.research.elamur.ai/free/en/topics/question-answering/) comparisons. Hard attention fell behind soft attention even when the researchers replaced sampling with enumeration during training, implicating its training objective as well as the difficulty of estimating gradients. Categorical variational attention, which chooses one input position per draw, recovered much of the benefit of exact training at a training speed the authors describe as comparable to ordinary attention. On the WMT 2017 English-German test set, soft attention scored 24.10 and variational attention scored 24.98 on [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/). For visual question answering, variational attention improved negative log-likelihood over the soft and hard baselines, while its score on the task’s answer-agreement metric was slightly worse.

The paper also tested a continuous variant that draws a mixture of input positions. It tended to spread its weight more evenly and performed worse than the other approaches. The categorical variant gave the authors a way to examine how alignments change when the full target sentence becomes available. Some translation examples show the later words helping to resolve an earlier alignment. The result is a distinction between the alignment available when making a prediction and the alignment that can be inferred after seeing what was produced.

## Deep dive: Latent Alignment and Variational Attention

Latent Alignment and Variational Attention explains how learning where to look from known answers can improve translation and visual question answering. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Where an output gets its evidence

A translator has a source sentence and the target words it has already generated. To produce the next word, it may need to consult a source position that is far from the position it consulted on the previous step. An image question has a similar structure from the predictor’s point of view. There is a collection of image regions, a question that determines which regions matter, and an answer to predict. Neither task ordinarily supplies a label for which source position or image region supported a given output. The paper calls that missing choice an alignment.

Earlier statistical translation research had already treated alignment as an unobserved part of the task. The paper traces that line through the IBM alignment work, hidden Markov approaches to word alignment, and a later log-linear formulation of an IBM alignment system. In that tradition, different ways of linking source and target can account for the same observed pair. A system can give those alternatives different probabilities, combine them when scoring a translation, or infer them from an already observed translation. The 2018 paper asks how to retain those operations when the input representations and the output predictor are neural.

Soft attention entered neural translation as an efficient way to look across the source while generating the target. In [Neural Machine Translation by Jointly Learning to Align and Translate](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/), the decoder computes relevance weights for the source positions and uses them to form a context vector. The 2018 paper describes how attention subsequently served related purposes across [speech recognition](https://md.research.elamur.ai/free/en/topics/speech/), image captioning, and [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/). An output can depend on different input positions at different steps, while the weighted average gives gradients a route back into the input representations and the scoring network.

An attention distribution is also a quantity that researchers can inspect or use. In [Incorporating a Copying Mechanism in Sequence-to-Sequence Learning](https://md.research.elamur.ai/free/en/papers/gu-2016-incorporating-copying-mechanism-sequence-sequence/), attention is relevant to what the system can copy into its final output. Other work discussed in the paper used attention decisions to investigate predictions, making the meaning of the weights a question of [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). A weight can tell a reader how much an input vector contributes to a blend. A probability of alignment answers a different question about which unobserved choice could have generated an observed answer. The latter has a prior, available from the input and query, and a posterior, which updates that distribution in light of the answer.

The difference becomes concrete when possible source positions point towards different output words. In soft attention, the output predictor sees a single vector obtained by blending the source positions. In a latent alignment formulation, the predictor evaluates what each position implies, and the final probability accounts for each candidate’s alignment weight. A blend of source vectors can land in a part of the predictor’s input space where its behavior differs from its behavior on any individual candidate. The question is whether that difference matters in practice and whether the cost of evaluating candidates can be avoided during training.

#### Why sampling was an incomplete answer

Hard attention supplies the unobserved alignment explicitly. The paper discusses captioning work that samples a location and predicts with the selected evidence, including [Show, Attend and Tell](https://md.research.elamur.ai/free/en/papers/xu-2015-show-attend-tell-neural-image/). Because selecting an index is a discrete operation, ordinary differentiation through the index cannot train the selection itself. Several earlier approaches handled this by treating the choice as an action and using the log probability of the correct output as a reward. A choice that makes the output more plausible provides a stronger signal to the network that gave it probability.

There are two sources of difficulty in that setup. The training objective compares the log probability of the answer across sampled choices, while the predictive objective assigns the answer a probability by combining the choices first. Taking the logarithm at different stages gives different objectives. Also, a single draw may tell the trainer very little about which alternatives would have predicted the answer better. The authors want to distinguish the consequences of the objective from the noise introduced by estimating its gradient. That distinction makes it possible to ask whether earlier hard attention results reflect a weak approach to alignment or a weak way of fitting it.

The paper places its answer in the tradition of amortized variational inference, associated with [Auto-Encoding Variational Bayes](https://md.research.elamur.ai/free/en/papers/kingma-2013-auto-encoding-variational-bayes/) and [Stochastic Backpropagation and Approximate Inference in Deep Generative Models](https://md.research.elamur.ai/free/en/papers/rezende-2014-stochastic-backpropagation-approximate-inference-deep/). Here a shared inference network learns to approximate the posterior for each example. Earlier attention work had already learned distributions from which to draw alignments for methods using multiple samples. The authors focus on making a single sample useful for training and compare it with alternatives that use more samples or change how the gradient is estimated.

Other sequence research cited in the paper introduced latent variables to represent additional information, and some work called the context vector itself a variational attention variable. The object of inference here is the alignment. It has a direct definition in terms of the available source positions. With a categorical distribution it picks one position, and with a continuous distribution it specifies a mixture. In either case, the answer can change the probability assigned to a candidate alignment. That is what allows the authors to examine posterior alignments alongside predictive performance.

### The method, step by step

#### From inputs and a query to an alignment

Start with the candidate pieces of evidence. In translation they are contextual representations of source tokens. In the image task they are representations of proposed object regions. A query specifies the prediction being made. It represents the words already generated in translation or the question in the image task. An alignment scorer uses the candidates and the query to assign a distribution over where to look. A separate output predictor assigns probabilities to possible answers given the selected evidence.

The important change during training is to add a second route to an alignment. Since the correct output is available in a training pair, an inference network can use it to identify likely sources of evidence. The authors draw from this answer-aware distribution and assess how well the drawn alignment explains the correct output. Training also compares the answer-aware distribution with the original alignment distribution. At prediction time, the system uses the original distribution to score outputs because the answer is the quantity it is trying to predict.

Categorical variational attention in training and prediction The steps in order.

The answer-aware network is useful even though it is absent from ordinary prediction. Its role is comparable to going back over a completed translation and seeing which source word best explains the wording that was chosen. The newly available evidence can improve the alignment estimate, and the training objective gives the predictive system a way to learn from that estimate. The distinction is especially important for translation because the inference network reads the whole target sentence, while the predictor must generate it in order.

#### What gets averaged

The paper describes each source item as a vector. It puts those vectors in the columns of a matrix so that applying an alignment vector to the matrix returns the evidence used for prediction.

```
X = [x₁, …, xᵢ, …, x_T] ∈ ℝᵈˣᵀ
```

Here `xᵢ` is the vector for source position `i`, `T` is the number of source positions, and `d` is the dimension of each vector. The brackets describe a matrix `X` that stacks the source vectors as columns. The ellipses stand for the unlisted columns. The membership symbol `∈` says that `X` belongs to the space of real matrices `ℝᵈˣᵀ`, with `d` rows and `T` columns.

```
z ∼ 𝒟(a(x, x̃; θ))
```

Here `z` is the alignment vector, `∼` means “is drawn from,” and `𝒟` is the chosen family of alignment distributions. The scoring function `a` outputs the parameters of that distribution from the observed source collection `x` and the observed query `x̃`. The symbol `θ` denotes the parameters of the predictive system. The semicolon in the notation separates those learned parameters from the example-specific inputs.

```
y ∼ f(x, z; θ)
```

Here `y` is a discrete output drawn from the distribution returned by `f`, the output predictor. The arguments `x` and `z` give it the source and the alignment, and `θ` again denotes predictive parameters. The general notation leaves the query implicit in `f`. In the concrete translation and image systems, the predictor also receives the query representation.

The vector `z` is confined to the simplex, the set of non-negative weights over the source positions that sum to one. In the categorical case, exactly one entry is one and all remaining entries are zero. Selecting an index and selecting the corresponding source vector are therefore equivalent descriptions of that draw. In the relaxed case, `z` can lie in the interior of the simplex and assign positive weight to several positions. Multiplying `X` by `z` then forms a convex combination of the corresponding vectors.

For an observed training answer, the alignment is still unknown. Its contribution is averaged out before taking the logarithm.

```
max_θ log p(y = ŷ | x, x̃) = max_θ log 𝔼_z[f(x, z; θ)₍ŷ₎]
```

Here `ŷ` is the recorded value of `y`, `p` denotes probability under the latent alignment formulation, and `|` means “given.” The expectation `𝔼_z` averages over alignments drawn from the prior for `x` and `x̃`. The subscript `₍ŷ₎` extracts the probability assigned to the observed answer by `f`. The operator `log` takes its logarithm, and `max_θ` indicates that training seeks predictive parameters that maximize the objective. The answer probability inside the logarithm is called the marginal likelihood because it includes the contributions of the possible hidden alignments.

For a categorical alignment, the expectation is a weighted sum. The paper illustrates it with a predictor that maps the selected vector to output scores and applies a softmax, which converts scores into probabilities.

```
log p(y = ŷ | x, x̃) = log ∑ᵢ₌₁ᵀ p(zᵢ = 1 | x, x̃) p(y = ŷ | x, zᵢ = 1) = log 𝔼_z[softmax(WXz)₍ŷ₎]
```

Here `i` indexes the source positions and `∑ᵢ₌₁ᵀ` sums from the first through position `T`. The event `zᵢ = 1` is selection of position `i`. The factors inside the sum are the prior probability of that event and the conditional probability of `ŷ` under that selection. In the illustrative predictor, `Xz` returns the selected input vector, `W` maps it to scores over the output vocabulary, and `softmax` normalizes those scores. The last expectation gives the same answer probability before `log` as the explicit sum does. A Dirichlet alignment can use the same expression with a continuous mixture `Xz`, but the expectation then integrates over possible mixtures and the paper treats it as intractable to evaluate exactly.

#### What soft and hard attention optimize

Soft attention computes a mean alignment first. It uses that mean to blend the source vectors, then applies the output predictor to the blend. The expected alignment is itself a vector on the simplex, so this construction produces a valid weighted average even when the latent formulation would draw a single index.

```
log p_soft(y = ŷ | x, x̃) = log f(x, 𝔼_z[z]; θ)₍ŷ₎ = log softmax(WX𝔼_z[z])₍ŷ₎
```

Here `p_soft` denotes the predictive probability under soft attention, `ŷ` is the observed output, and `𝔼_z[z]` is the mean alignment under the prior for input `x` and query `x̃`. The product `X𝔼_z[z]` is the context vector. With learned parameters `θ`, the output function `f` maps that context to probabilities, and the final expression shows the example using `W` and `softmax`. The subscript `₍ŷ₎` picks the answer component in either representation.

Moving the expectation inside the predictor saves repeated evaluations of `f` across the `T` source positions. The paper describes the extra cost of enumerating those positions as a multiplicative factor of order `O(T)`, meaning it grows with the number of candidates. There are also cases where soft attention and the latent calculation agree. When the alignment is deterministic, the mean is the alignment itself and both procedures give the same answer probability. More broadly, the authors examine how the output predictor’s curvature limits the error.

```
|p(y = ŷ | x, x̃) − p_soft(y = ŷ | x, x̃)| ≤ c
```

The vertical bars around the difference denote absolute value. The probabilities are the latent and soft attention probabilities of the same observed output `ŷ` given `x` and `x̃`. The constant `c` is a uniform upper bound on the spectral norm of the Hessian of the answer probability as a function of alignment. A Hessian is the matrix of second derivatives. Its spectral norm measures the largest magnitude of curvature along a unit direction for this symmetric matrix. The proposition assumes that the answer probability is twice differentiable and that the curvature bound holds across the alignments, inputs, and outputs in question.

The proof makes the connection between curvature and averaging explicit. Write the answer probability as a function of `z` and expand that function around the mean alignment. Taking the expectation removes the first-order term because the deviations from the mean average to zero.

```
𝔼[g(z)] = g(𝔼[z]) + ½ 𝔼[(z − 𝔼[z])ᵀ H_g(ẑ)(z − 𝔼[z])]
```

Here `g` is the answer component of `f` with the input and observed answer held fixed, and `𝔼` averages over the prior distribution of the alignment `z`. The symbol `ᵀ` transposes the vector before multiplication, `H_g` is the Hessian of `g`, and `ẑ` is a point on the segment from the mean alignment to the draw `z`. The factor `½` comes from the second-order Taylor expansion. The product inside the expectation measures the curvature in the direction of the deviation from the mean.

The appendix bounds that product by the spectral norm times the squared length of the deviation. Both the draw and the mean lie on the simplex, so each has squared Euclidean norm at most one, and their dot product is non-negative. These facts give the bound used in the proof.

```
‖z − 𝔼[z]‖₂² ≤ ‖z‖₂² + ‖𝔼[z]‖₂² ≤ 2
```

Here `‖·‖₂` is Euclidean length for a vector, the outer superscript `²` squares that length, `z` is the drawn alignment, and `𝔼[z]` is its mean. The bound `2` is the appendix’s upper limit on the squared separation. In the Taylor remainder the curvature bound is multiplied by this separation bound and by `½`, giving the stated probability bound `c`. The proof describes how close the two probabilities can be for a given predictor under a curvature condition. It leaves open how well separately trained systems perform.

Hard attention keeps the latent alignment and changes the objective used for training. Jensen’s inequality, applied to the concave logarithm, gives the following lower bound.

```
log 𝔼_z[p(y | x, z)] ≥ 𝔼_z[log p(y | x, z)]
```

Here `p(y | x, z)` is the conditional probability of the training output `y`, and `𝔼_z` is taken under the prior for the source `x` and the query `x̃`. The symbol `≥` marks the right-hand expression as a lower bound. On the left the system averages probabilities and takes the log. On the right each alignment receives a log score before the alignment average is computed. A choice that predicts the observed answer very poorly can substantially lower the average log score even when another choice gives the answer appreciable marginal probability.

Training hard attention requires adjusting the answer predictor and the distribution that supplies the sampled choice. The likelihood-ratio gradient separates those jobs. Writing `f_y` for the predictor’s probability of the observed output makes the two contributions explicit.

```
∇_θ 𝔼_z[log f_y(x, z; θ)] = 𝔼_z[∇_θ log f_y(x, z; θ) + (log f_y(x, z; θ) − B) ∇_θ log p(z | x, x̃)]
```

Here `∇_θ` denotes differentiation with respect to the predictive parameters `θ`. The first contribution differentiates `f_y`, the answer probability, with the drawn alignment held fixed. The second differentiates the log prior probability of the chosen alignment and weights that direction by the difference between the alignment’s log score and the baseline `B`. The expectations average over draws `z` from that prior. The baseline depends on the example and is independent of which alignment was drawn. Subtracting it leaves the expected gradient unchanged while allowing the estimator to vary less from one draw to another. The sampled training setting approximates the expectation with a single draw.

#### Giving the training distribution access to the answer

An alignment sampled from the prior can miss the source position that would account for a known answer. The central proposal is to sample from a different distribution, closer to the posterior that would result from conditioning on the answer. The prior describes the alignment before observing `y`. The posterior considers both how plausible the location was beforehand and how well it explains the realized `y`. For a given example, the inference network approximates this posterior with a distribution called `q`.

```
log 𝔼_{z∼p(z | x, x̃)}[p(y | x, z)] ≥ 𝔼_{z∼q(z)}[log p(y | x, z)] − KL[q(z) ‖ p(z | x, x̃)]
```

Here `𝔼_{z∼p(z | x, x̃)}` averages over the prior, and `𝔼_{z∼q(z)}` averages over the variational distribution `q`. The conditional probability `p(y | x, z)` scores the observed output under an alignment. `KL` denotes Kullback–Leibler divergence, a directional measure of the discrepancy between the distribution before `‖` and the one after it. In this expression it charges the approximate posterior for moving away from the prior. The support condition in the paper requires `q` to put mass only where the posterior has support. The right-hand side is the evidence lower bound, or ELBO, with the observed answer providing the evidence.

The two terms have different consequences for learning. The expected log probability rewards an inference network that puts weight on alignments that predict the observed output well. The divergence keeps that distribution tied to the prior and gives the predictive alignment scorer a signal from the answer-aware network. When `q` is exactly the posterior given the input, query, and answer, the lower bound is tight. When `q` is set equal to the prior, the divergence vanishes and the expected log probability becomes the hard attention objective. Hard attention therefore remains a comparison within the same family of bounds.

The system could try to optimize a separate distribution from scratch for each example. Amortized inference learns a single function that generates its parameters from the example instead. This shares the work of learning how to infer alignments across training pairs.

```
λ = enc(x, x̃, y; φ)
```

Here `enc` is the inference network, `x` is the source collection, `x̃` is the query, and `y` is the known output. The symbol `φ` denotes the learned inference parameters, while `λ` denotes the parameters of the variational distribution for this particular example. The network is allowed to use `y` because this computation takes place with an observed output. In translation it can use the wider target sequence as context for that output.

```
max_{φ, θ} {𝔼_{z∼q(z; λ)}[log p(y | x, z)] − KL[q(z; λ) ‖ p(z | x, x̃)]}
```

The maximization is over the inference parameters `φ` and predictive parameters `θ`. The alignment `z` is drawn from `q` with the example-specific parameters `λ`. The expectation scores the answer `y` under these draws, and `KL` compares `q` with the alignment prior given `x` and `x̃`. The braces indicate that both parts belong to the joint training objective. The prior is the distribution used to predict a new answer, so the effect of this objective carries over even when the inference network is absent.

#### Training with a categorical draw

With categorical alignments, the prior and approximate posterior give probabilities to the same set of source positions. Their divergence can be computed without evaluating the output predictor for every position. The expensive part is the expected answer score because each alignment can produce a different set of output probabilities. The authors estimate that expectation during sampled training with a single alignment from `q`.

For the predictive parameters, the draw lets the system differentiate the answer score directly, while the divergence provides a separate update for the prior. For the inference parameters, the answer score has to teach the network which categorical choices to make more or less likely. The paper uses the likelihood-ratio technique known as REINFORCE for this part. The sampled score contributes through the gradient of the log probability of the selected position.

```
∇_φ 𝔼_{z∼q(z)}[log p(y | x, z)] = 𝔼_{z∼q(z)}[(log p(y | x, z) − B) ∇_φ log q(z)]
```

Here `∇_φ` differentiates with respect to the inference parameters, `q(z)` is shorthand for the answer-conditioned distribution, and `z` is an alignment drawn from it. The reward `log p(y | x, z)` is the log probability of the observed output `y` under that alignment. `B` is the baseline. Its subtraction changes the weight applied to the gradient of `log q(z)` for this draw. The divergence term is differentiated separately. This expression describes the inference-network gradient through the alignment distribution, with any direct parameter sharing handled through the predictor.

The baseline the authors would like to have is the average log score over the same alignment distribution, which would itself require evaluating multiple positions. They use a cheaper score derived from soft attention. It comes from running the output predictor on the context given by the mean alignment under the prior.

```
B = log f_y(x, 𝔼_{z′∼p(z′ | x, x̃)}[z′]; θ)
```

Here `B` is the baseline log score and `f_y` is the probability of the observed answer under the predictor with parameters `θ`. The dummy variable `z′` ranges over alignments from the prior `p(z′ | x, x̃)`. The expectation forms the soft alignment passed into the predictor. Using `z′` distinguishes the average used for the baseline from the actual draw `z` whose score is being compared to it. The alignment average comes from the prior, so the baseline does not react to which position `q` happened to sample. Subtracting the baseline log score is equivalent to taking the log of the ratio of the two answer probabilities.

The same soft baseline is used in the sampled hard attention comparison. That gives the sampled methods a common reference for the quality of a draw. Hard attention draws from the prior, while variational attention draws from the answer-conditioned distribution. The latter also has the divergence term, which supplies its own training signal. These differences are crucial to the comparisons with enumeration, since they remain even when random sampling is removed.

#### Training with a continuous mixture

The relaxed variant replaces the categorical distribution with a Dirichlet distribution for both the prior and the approximate posterior. The Dirichlet supplies a random vector of source weights. As in soft attention, a particular vector can assign weight to multiple positions. The relaxed variant nevertheless treats that vector as an unobserved draw and averages output probabilities across such draws for prediction. Soft attention uses a single deterministic mean vector.

For a continuous alignment, the authors seek to differentiate through how a sample changes with the inference parameters. In a reparameterized draw, randomness comes from a fixed distribution and a transformation converts the random value into an alignment. The resulting gradient has a term that follows the effect of the transformed sample on the answer probability.

```
𝔼_{u∼𝒰}[∇_φ log p(y | x, g_φ(u))] − ∇_φ KL[q(z) ‖ p(z | x, x̃)]
```

Here `u` is drawn from a fixed base distribution `𝒰`, and `g_φ` transforms it into an alignment with the desired variational distribution. The gradient `∇_φ` in the expectation follows the output score through that transformation. The arguments `y` and `x` are the observed output and the source. The second gradient differentiates the divergence between the variational distribution `q(z)` and the alignment prior for `x` and `x̃`. The subtraction comes from the divergence penalty in the ELBO.

The inverse cumulative distribution needed for a direct construction has no analytical solution in the Dirichlet case described by the authors. They use rejection-based sampling to get a draw and implicit differentiation to estimate how it moves when the distribution parameters change. Random initialization tended to lead to uniform variational parameters. The authors therefore warm up the latent alignment system using the Jensen objective before adding the inference network. Their interpretation is that the optimization can more readily find low-divergence solutions towards the center of the simplex, where weight is shared among positions.

#### Instantiating the alignment in translation

The source encoder in the translation system is a bidirectional long short-term memory network, or LSTM. It processes the source sentence in both directions so that each source vector includes information about surrounding words. The decoder uses another LSTM and summarizes the target words already generated. At a given step that summary becomes the query. A multilayer perceptron, an ordinary feed-forward network, scores each combination of source vector and query to produce alignment parameters. For a categorical choice, the selected source vector is concatenated with the query and passed to an output network that assigns probabilities to the next target token.

The inference network runs bidirectional LSTMs over both sentences. It can therefore use target-side context around the position it is aligning. It scores a source position and a target position together with a bilinear function.

```
sᵢ⁽ʲ⁾ = exp(hⱼᵀ U xᵢ)
```

Here `sᵢ⁽ʲ⁾` is the positive alignment score for source position `i` at target position `j`. The vectors `hⱼ` and `xᵢ` are the inference network’s target and source hidden states, and `U` is a learned matrix that determines which features from the two states interact. The superscript `ᵀ` transposes the target vector to form the bilinear score, and `exp` exponentiates that score. The authors use this kind of scoring in the tradition of [Effective Approaches to Attention-based Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/luong-2015-effective-approaches-attention-based-neural/). The predictive alignment scorer uses the feed-forward attention parameterization, and the paper reports little difference between the parameterizations in this setup.

```
q(zᵢ⁽ʲ⁾ = 1) ∝ sᵢ⁽ʲ⁾
```

Here `q` is the approximate categorical posterior, and `zᵢ⁽ʲ⁾ = 1` says that source position `i` was selected for target position `j`. The symbol `∝` means that the probabilities are proportional to the positive scores `sᵢ⁽ʲ⁾`, so they are obtained by normalizing the scores across source positions. Conditioning on the full sentences is implicit in this formula.

```
αᵢ⁽ʲ⁾ = sᵢ⁽ʲ⁾
```

Here `αᵢ⁽ʲ⁾` is the Dirichlet concentration parameter for source position `i` at target position `j`. In the relaxed version the positive score `sᵢ⁽ʲ⁾` is used directly as this parameter. This retains the scale of the scores as well as their relative values. For either version, the inference and predictive networks share [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/). Their remaining parameters are separate.

The translation appendix specifies an encoder with two bidirectional layers and 512 units in each direction, and a decoder with two layers and 768 units. The word embeddings are 512-dimensional. The decoder also receives the attention-weighted combination of source states from the preceding timestep as additional input. The inference encoders for source and target each have two bidirectional layers and are described as 512-dimensional. These choices matter when interpreting the alignment variable. A choice of one source position gives the predictor a contextual representation of that position, and the decoder has its own recurrent context as well.

Training uses batches of 6, dropout of 0.3, uniform initialization over the interval from −0.1 to 0.1, and gradient norm clipping at 5. The schedule allows 30 epochs and starts halving the learning rate when validation perplexity fails to improve. Most settings converged before that epoch limit. The authors use [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) with a learning rate of 0.0003 and moment coefficients of 0.9 and 0.999 for translation. At decoding time, beam search keeps several candidate target prefixes, and a length penalty adjusts the comparison of candidates of different lengths.

#### Instantiating the alignment in visual question answering

For an image, the candidate positions are object bounding boxes. [Faster R-CNN](https://md.research.elamur.ai/free/en/papers/ren-2015-faster-r-cnn-towards-real/) proposes the regions. The system averages convolutional features from a pretrained ResNet-101 across each region to obtain its vector, using the residual network described in [Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/). The region features are 2048-dimensional and remain fixed during training. An image supplies at most 36 candidate regions. The query comes from an LSTM with one layer of 1024 units reading the question. Its 300-dimensional word embeddings are initialized with [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/).

```
p(zᵢ = 1 | x, x̃) ∝ exp(wᵀ tanh(W₁xᵢ + W₂x̃))
```

Here `p` is the prior probability of selecting region `i`, `zᵢ = 1` denotes that selection, and `x` is the collection of region vectors. The matrix `W₁` projects the region vector `xᵢ`, and `W₂` projects the question representation `x̃`. The `+` adds the projections, `tanh` applies a hyperbolic tangent to the resulting features, and the learned vector `w` maps them to a scalar through the transposed multiplication `wᵀ`. Exponentiating gives a positive score, and `∝` indicates that the region scores are normalized to probabilities. The answer predictor concatenates the selected region vector with the question representation and passes them through a feed-forward layer with a rectified linear activation and 1024 hidden units.

The inference network receives the answer embedding as well. It uses that embedding to scale components of the region and question representations before scoring a region. This allows different answers to change which components contribute to the inferred alignment.

```
q(zᵢ = 1) ∝ exp(uᵀ tanh(U₁(xᵢ ⊙ ReLU(V₁h_y)) + U₂(x̃ ⊙ ReLU(V₂h_y))))
```

Here `q` is the categorical variational distribution, with conditioning on the image, question, and answer left implicit. The event `zᵢ = 1` selects region `i`. The vector `h_y` is the embedding of answer `y`. The learned matrices `V₁` and `V₂` transform it for interaction with the region `xᵢ` and question `x̃`, respectively. `ReLU` is the rectified linear function, which sets negative inputs to zero, and `⊙` multiplies corresponding components. The matrices `U₁` and `U₂` project the resulting features so they can be added. The function `tanh` transforms their sum, the learned vector `u` reduces it to a scalar through `uᵀ`, and `exp` makes the score positive. The symbol `∝` again signals normalization over regions.

The answer embeddings are 256-dimensional and initialized randomly. The predictive and inference scoring networks each have 1024 hidden units. The authors found the answer-conditioned interaction more effective than the alternatives they tried. They use categorical alignment for the image experiments because a candidate bounding box already allows a selection to span a larger portion of an image. Their image training runs for 50 epochs with batches of 512, dropout of 0.5 on the penultimate layer, and Adam with a learning rate of 0.0005 and coefficients of 0.9 and 0.999.

#### Making predictions with an unknown output

At test time the prior supplies the alignment probabilities. Where every candidate can be evaluated, the system can enumerate categorical alignments, predict under each one, and combine the answer probabilities. The predictions for the candidates can be evaluated in parallel, although the amount of prediction work still grows with the number of candidates. For the continuous version, the paper uses sampling because there is no corresponding finite list of all mixtures.

A cheaper categorical option keeps the `K` highest-scoring positions and renormalizes their weights over that subset. Here `K` is the number of retained alignments. This caps the number of output-predictor evaluations used to average an answer score, even as the number of source candidates changes. Finding the positions still requires identifying the top scores. In translation the resulting next-token probabilities are used in beam search. Enumerating alignments concerns the evidence for the next token, while beam search concerns which target prefixes the decoder carries forward.

The authors also evaluate alternatives to the categorical gradient procedure. Reweighted Wake-Sleep and VIMCO use multiple samples for importance-based inference. A Gumbel-Softmax relaxation gives a differentiable approximation to a categorical sample, providing another way to update the inference network. Stochastic variational inference offers a different comparison by optimizing local variational parameters for each example rather than predicting them with a shared network. These alternatives separate the question of what distribution training should use from the question of how to update it.

### Experiments and results

#### What is held fixed and what is varied

The comparisons change the alignment formulation and objective, the method used to evaluate a training expectation, and the method used to predict at test time. Soft attention provides the deterministic baseline. Hard attention uses the prior and the Jensen lower bound. Exact latent alignment training evaluates the categorical marginal likelihood. The categorical variational settings train on the ELBO, either by enumerating the relevant expectation or by estimating it with a sample. The translation experiments also include relaxed attention.

The shared predictive architecture has the same number of learned predictive parameters across the comparisons. The additional inference parameters vary by training method and are absent from ordinary prediction. Sampled hard and variational attention both use the same soft attention baseline. These controls matter because a gain under sampled variational attention could otherwise reflect a larger test-time predictor or a variance reduction technique given to only one method. Each result still reflects its particular training objective and test procedure.

Enumeration has two meanings in the experiments. During training it can remove the sampling approximation from an expectation, including an expectation inside a lower bound. An exactly evaluated lower bound can still differ from the log marginal likelihood. At test time, categorical enumeration averages output probabilities under the learned prior. The main evaluation uses test-time enumeration for the categorical settings and sampling for the relaxed setting. The separate decoding comparison varies how much of the prior is retained.

#### Translation benchmarks and metrics

The principal translation experiment uses the IWSLT 2014 German-English task. The authors follow the earlier preprocessing setup using byte pair encoding on the combined source and target training data. This kind of [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) represents text using units that can include pieces of words, as in [Neural Machine Translation of Rare Words with Subword Units](https://md.research.elamur.ai/free/en/papers/sennrich-2016-neural-machine-translation-rare-words/). The appendix specifies a vocabulary of 14,000 tokens. For faster training, the authors use sequences up to length 125 in place of the earlier setup’s maximum length of 175.

The translation evaluation has an intrinsic and an output-level measure. Perplexity summarizes how much probability the system assigns to the observed target tokens, with lower values preferred. BLEU scores the generated translation against reference text, with higher values preferred. When computing BLEU the authors decode with a beam size of 10 and a length penalty with coefficient 1. The appendix reports that the penalty adds about 0.5 BLEU points across the translation systems. The common decoding setting lets the paper compare alignment methods under that length treatment.

On IWSLT 2014 German-English, optimizing the exact marginal likelihood improves on soft attention. Categorical variational attention comes close to the exact objective’s reported performance with either enumeration or sampling in training. In contrast, hard attention trails soft attention even when the expectation in its objective is enumerated. The authors also compare their results with the best published values they assemble for this benchmark and report an improvement even with sampled variational training. The numerical IWSLT entries referred to in the table captions are unspecified, so the relationship among systems is more precise here than the size of the differences.

The WMT 2017 English-German experiment checks whether the method remains usable on a larger dataset. The authors follow the preprocessing of [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/), with newstest2017 as the test set. Soft attention scores 24.10 BLEU and variational attention scores 24.98 BLEU on that split. The authors characterize the run as a reasonable configuration without exhaustive tuning. The comparison establishes that they could train variational attention at this scale and reproduce the direction of the smaller translation comparison in a setting with the opposite translation direction.

Soft and variational attention on WMT 2017 English-German newstest2017 BLEU Variational attention scores higher than soft attention on the larger translation benchmark.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Soft attention | 24.10 |
| Variational attention (this paper) | 24.98 |

The larger result gives an output-level comparison for that test split. The IWSLT discussion supplies a different piece of evidence by comparing sampled variational training against the exact objective and against hard attention with enumeration. The scale experiment and the controlled training comparison answer related questions, and the WMT figures apply to the particular soft and variational settings tested there.

#### Visual question answering data and metrics

The image experiments use VQA 2.0. The authors need access to human answer labels to compute likelihood, so they randomly choose half of the usual validation set to serve as their test set. Several human responses can be recorded for an image and question. When multiple answers are available, the procedure draws a single label with probability proportional to the number of annotators who supplied it. This turns the distribution of human responses into a sampled target for the likelihood calculation and for cases in training where several answers are given.

The standard visual question answering metric retains the idea of agreement with human responses. Its per-answer score increases with the number of people who gave the answer and is capped.

```
VQA score = min{n ÷ 3, 1}
```

Here `n` is the number of humans who gave the predicted answer, `÷` denotes division, and `min` takes the smaller of the agreement term and `1`. The denominator `3` and the cap `1` belong to the metric as defined in the paper. For the intrinsic comparison, negative log-likelihood scores the probability assigned to the observed label, with lower values preferred. The agreement score instead judges the output against the human responses, with higher values preferred.

Exact latent alignment improves on soft attention in the visual question answering comparison. Variational attention improves negative log-likelihood over hard and soft attention, while its score on the task-specific metric is slightly worse. The two measurements can diverge because increasing probability on observed labels can improve likelihood even when the chosen answers and their human agreement scores do not improve. The authors report weaker scores than the earlier bottom-up top-down work, identifying the omission of techniques such as data augmentation and label smoothing. Their different test split also matters when comparing published scores.

The paper describes categorical variational training as retaining much of the benefit of latent alignment at a training speed comparable to standard attention. That observation concerns training with the inexpensive approximation. Exact test-time prediction can still require an output evaluation for each alignment, which is why the paper examines a shortened candidate list separately.

### What the ablations show

#### How much the training objective matters

The comparison between sampled and enumerated hard attention isolates the effect of the expectation estimator. Training with enumeration removes the variation introduced by drawing a single position. Hard attention continues to underperform soft attention in that setting. The result supports the authors’ argument that the Jensen bound itself can be too loose for this task. If the sampling gradient had been the entire problem, evaluating the hard attention expectation directly would have addressed it.

The contrast with exact marginal training matters because both methods retain categorical alignments. Exact training gives an output credit according to its total probability across alternatives. Hard attention gives each alignment’s log probability a contribution to the objective. The performance advantage of exact training therefore gives evidence that the underlying categorical alignment can be useful with this predictive architecture. The weaker result for hard attention is a result for a particular objective used to learn those alignments.

Enumerated variational attention tests what happens when the training expectation uses an answer-conditioned distribution and the sampling approximation is removed. Sampled variational attention tests how much of that behavior survives the cheaper update. Both are reported as comparable to exact marginal optimization on IWSLT 2014 German-English. The authors attribute part of the success to the inference network’s ability to read the entire source and target and pass a training signal to the prior through the divergence term. The comparison establishes the behavior of this combination, while the suggested explanation identifies a mechanism consistent with it.

#### How many alignments matter at decoding time

The translation decoding analysis compares full enumeration with retaining the highest-scoring alignments at `K = 5`. Exact enumeration performs better across the compared methods. The authors still describe the restricted version as a reasonable approximation. Their additional perplexity comparison varies `K`, finding that good performance requires `K > 1` and that the benefits beyond `K > 5` are marginal. That pattern shows that the highest-scoring position alone leaves out useful predictive alternatives in this setup.

The paper also changes the prediction rule after training. A system trained with soft attention can be evaluated by retaining high-scoring positions and combining their predictions, with a small reported performance drop. The authors suggest that this behavior is consistent with soft attention approximating a latent alignment calculation in the translation setup. Applying the reverse substitution gives a different result. A system trained with latent alignments performs poorly when evaluated on a single soft mean. Its output predictor has been fitted to operate on sampled or enumerated alignment inputs, and the averaged vector presents it with a different input.

The decoding study also distinguishes alignment uncertainty from search over translations. Keeping more alignments can change the probability assigned to a word even when the beam policy is fixed. The result concerns the amount of useful probability mass in alternative source positions. The reported `K` behavior comes from the tested translation settings and depends on how their prior weights and conditional predictions are distributed.

#### What the alignment distributions reveal

The authors compare the entropy of learned alignment distributions. Entropy measures how spread out the mass is across choices. A low-entropy distribution places much of its weight on a few positions, while a higher-entropy distribution spreads it more broadly. Hard attention gives the lowest entropy in this comparison. Soft attention gives a more diffuse distribution, and the categorical variational prior falls between them. The combination of low entropy and weaker performance for hard attention shows why concentration alone is an inadequate measure of alignment quality.

The alignment visualizations show what the entropy difference looks like on sentences. Soft and variational attention can put their weight on similar source locations, while the variational prior assigns more concentrated mass. In one appendix example, both associate an inserted English word, “orientation,” with a comma because the source has no direct counterpart for that word. This is a case where the top-scoring position is visible and the alignment’s linguistic interpretation still requires care.

The comparison between the variational prior and posterior illustrates what the answer contributes. In one German-English example, the posterior alignments for “actually” and “violent” benefit from the next target word. The appendix gives reordering examples in which the full target context helps the posterior link “turning” to “verwandelt” and align the clause “that’s my brand” with its German counterpart. Another example shows trouble with the sub-word ending “-ial” for both distributions, while the posterior handles more of the surrounding phrase. These are examples of how a completed target can revise the alignment, alongside a case where extra context leaves an ambiguity unresolved.

#### Alternatives to the sampling gradient

The inference comparison on IWSLT 2014 evaluates the authors’ REINFORCE approach alongside Reweighted Wake-Sleep and Gumbel-Softmax. Reweighted Wake-Sleep reaches comparable performance but uses more memory because it requires multiple draws. Gumbel-Softmax reaches nearly the same performance and can therefore serve as an alternative way to estimate gradients. The authors find its performance sensitive to the temperature, which controls how closely the continuous draw resembles a discrete choice. The result gives some evidence that the gain is available with more than one training estimator.

The authors also test a version of stochastic variational inference without a shared inference network. At a similar runtime it gives unsatisfactory results. They suggest that it had too few updates to optimize the local parameters adequately. Under the runtime comparison, having a network produce the example-specific distribution was more effective than fitting those local parameters separately. The paper mentions semi-amortized inference as a possible way to combine the shared prediction with further example-specific updates.

The continuous alignment variant tests a different assumption about how an output can use evidence. With categorical attention, a draw picks one contextualized source position. A Dirichlet draw can mix several positions within a single draw. The latter performs worse, and its learned alignments are more uniform than those of soft or categorical variational attention. The authors report difficulty reaching low-entropy regions with the Dirichlet divergence. Trying Logistic-Normal and Gumbel-Softmax distributions in the relaxed setting did not resolve that problem. This result is distinct from the near-comparable Gumbel-Softmax result as an estimator for categorical inference, where the experimental role of the relaxation is different.

### Limitations

#### Limits identified by the authors

The sampled methods depend on a good baseline for their gradient estimates. In the experiments, a soft attention prediction supplied that baseline, and the authors say they needed it for adequate training. This creates a practical dependency when the number of candidate positions is so large that even soft attention is intractable. Using one categorical draw for the answer score reduces the number of output evaluations. The baseline still needs the weighted combination of the candidate representations.

Variational attention also relies on the quality of the answer-conditioned inference network. The visual question answering system benefited from a parameterization built around interactions between the answer embedding, question, and image regions. The translation inference network uses the full target sentence and is designed around the sequence structure of both languages. These examples show that the predictive and inference networks can share the same alignment space while needing different inputs and architectural choices.

The paper raises a scaling concern for the [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) architectures it discusses. It gives the example of a translation system with the equivalent of 150 attention queries per translated word. Combining alternative alignment assignments across many attention operations can make predictive inference combinatorial. The WMT experiment demonstrates larger-data training for the paper’s translation architecture. Scaling to architectures with many interacting attention operations is left open.

The authors report a further practical limitation for the relaxed formulation. The Dirichlet training procedure had difficulty producing concentrated alignments and was sensitive enough to initialization that the authors introduced a warm-up stage. The experiments with other continuous distributions retained the difficulty. The paper also restricts its image experiments to the categorical case because the region proposals already cover extended portions of the image. Its evidence about the relaxed version consequently concerns translation.

#### Limits visible in the evaluation

The main comparisons use specific recurrent prediction systems and specific ways of building the input candidates. A source vector can carry information from neighboring words because it comes from a bidirectional encoder. An image vector can summarize many convolutional features because it pools a region. The hidden choice therefore identifies which contextualized representation enters the predictor. The experiments offer no direct measurement of how much information from other input positions those representations still convey.

The qualitative translation examples illustrate correction and concentration but cannot establish improvement across a benchmark of labeled alignments. Entropy describes certainty rather than agreement with a linguistic annotation. A posterior can become more plausible when it sees the surrounding target context, as the examples suggest, and broader claims about its alignment accuracy would require evaluation beyond those examples. The inserted word attached to punctuation shows a case where the system still has to place weight somewhere within the available source positions.

The predictive and retrospective uses of the distributions also have different information budgets. The target-aware network can revise an alignment using later words. The left-to-right decoder still has to choose each word from the source and the prefix available at that point. The paper suggests that a complete draft might allow the posterior to contribute to iterative refinement, but evaluates the ordinary decoder using the prior. The illustrated corrections therefore concern inference after seeing a target.

The visual question answering evaluation has its own limits of comparability. Its held-out data are drawn from the usual validation set, and the authors omit some methods used to improve earlier systems. The split supports the internal comparison and the likelihood calculation because human labels are available. The relation between likelihood and answer agreement also limits how to describe the result. Variational attention assigns better probabilities by the intrinsic measure and produces a slightly weaker score under the task metric. The evidence supports a change in the quality of the predicted probabilities, with a different result for the chosen answers.

Finally, exact training and exact prediction carry different costs. Sampling under an answer-conditioned distribution can make the training step economical. It leaves test-time averaging over the prior as a separate computation. The restricted decoding experiment shows one way to reduce that work on the translation benchmark and also shows the cost in performance relative to full enumeration. Its result depends on the learned distribution putting useful probability on a small set of positions. The paper’s curvature bound, meanwhile, explains a condition under which soft and latent probabilities are close for a fixed predictor. It supplies neither a benchmark-wide estimate of the gap nor a guarantee that a given training procedure will find a better predictor.

### What came after

[Pay Less Attention with Lightweight and Dynamic Convolutions](https://md.research.elamur.ai/free/en/papers/wu-2019-pay-less-attention-lightweight-dynamic/) (2019) cites the paper and addresses the cost of attending to input through lightweight and dynamic convolutions. The connection is computational. Latent Alignment and Variational Attention had separated the cost of forming a weighted input from the cost of evaluating outputs across possible alignments. The later title points to a different operation for selecting or combining information. The citation establishes a connection to the line of attention research, with no specified adoption of its answer-conditioned inference network.

[Adaptively Sparse Transformers](https://md.research.elamur.ai/free/en/papers/correia-2019-adaptively-sparse-transformers/) (2019) cites the paper in later work on adaptive sparsity in Transformers. The 2018 experiments raised a related question when they compared the number of candidate positions used for prediction and examined how diffuse their learned weights were. Sparsity concerns which positions receive weight. Variational alignment concerns how a distribution over unobserved choices is fitted and how its choices are averaged. The topics meet in the study of how broadly attention needs to distribute its weight, although the citation leaves the specific use of the variational objective unspecified.

[Unsupervised Recurrent Neural Network Grammars](https://md.research.elamur.ai/free/en/papers/kim-2019-unsupervised-recurrent-neural-network-grammars/) (2019) cites the paper in the setting of unsupervised [syntax and grammar](https://md.research.elamur.ai/free/en/topics/syntax-grammar/). The conceptual connection is the role of hidden structure in explaining observed sequences. In the alignment paper that structure is a link to a source position or a distribution of weight across positions. In the grammar work the title identifies grammatical structure as the object of study. The citation relates these settings without specifying that the grammar work reuses the alignment estimator, the soft attention baseline, or the decoding procedure.

## Cite

Cite as Yuntian Deng, Yoon Kim, Justin Chiu, Demi Guo and Alexander M. Rush. 2018. Latent Alignment and Variational Attention. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1807.03756](https://doi.org/10.48550/arxiv.1807.03756) · [arXiv 1807.03756](https://arxiv.org/abs/1807.03756)

```bibtex
@misc{deng2018latent,
  title = {{Latent Alignment and Variational Attention}},
  author = {Yuntian Deng, Yoon Kim, Justin Chiu, Demi Guo and Alexander M. Rush},
  year = {2018},
  doi = {10.48550/arxiv.1807.03756},
  eprint = {1807.03756},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1807.03756}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
