---
title: "Online and Linear-Time Attention by Enforcing Monotonic"
description: "Monotonic attention learns where to stop reading so a system can emit outputs before the input ends, with linear-time attention at test time."
canonical: "https://research.elamur.ai/free/en/papers/raffel-2017-online-linear-time-attention-enforcing/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/raffel-2017-online-linear-time-attention-enforcing/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/) / Online and Linear-Time Attention by Enforcing Monotonic Alignments

# Online and Linear-Time Attention by Enforcing Monotonic Alignments

Paper · 2017 · Colin Raffel, Minh-Thang Luong, Peter J. Liu et al.

**Authors:** [Colin Raffel](https://md.research.elamur.ai/free/en/authors/colin-raffel/), [Minh-Thang Luong](https://md.research.elamur.ai/free/en/authors/minh-thang-luong/), [Peter J. Liu](https://md.research.elamur.ai/free/en/authors/peter-j-liu/), [Ron J. Weiss](https://md.research.elamur.ai/free/en/authors/ron-j-weiss/) and [Douglas Eck](https://md.research.elamur.ai/free/en/authors/douglas-eck/) · **Year:** 2017 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

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

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

Citations: OpenAlex, 2026-10-14.

## Summary

A speech recognizer can begin transcribing an utterance while the speaker is still talking. Standard soft attention makes that difficult. Each time the decoder produces a symbol, it scores every position in the encoded recording, including positions that may have yet to arrive. The paper replaces that repeated search with a forward scan. At each position, the decoder decides whether to use the current input representation and produce an output, or continue reading. The next scan starts at the last position selected. This fits the order of [speech](https://md.research.elamur.ai/free/en/topics/speech/), where earlier sounds generally support earlier parts of the transcription.

The decisions made during decoding are discrete. The authors train them indirectly by calculating where a scan would stop in expectation. A dynamic program adds up the probabilities of reaching and accepting each input position, then uses those probabilities to average the encoder states. This gives the decoder a differentiable training signal from target sequences alone. Training still evaluates attention across the input for each target step. At test time, the decoder uses hard decisions, which allow attention to run in linear time and, with a forward encoder, to operate on an unfinished input.

The experiments cover speech recognition on TIMIT and the Wall Street Journal corpus, headline generation for [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/), and English-to-Vietnamese [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). The hard decoder achieved lower word error than the other online approaches in the Wall Street Journal comparison. Switching the same architecture to offline soft attention lowered word error by 1.4% WER, as the paper reports it. The headline and translation experiments also showed that an alignment can stay in input order even when the output changes the order of some words. Both tasks still favored unrestricted soft attention in the closest comparisons.

A synthetic benchmark measured the cost of attention separately from the cost of producing a sequence. Hard monotonic attention was about 4-40× faster there, depending on the input and output lengths. The quality comparisons and timing test establish different parts of the result. The former show how well a forward-only alignment can support useful outputs on the tasks studied. The latter shows how much computation the attention mechanism itself can save under favorable conditions.

## Deep dive: Online and Linear-Time Attention by Enforcing Monotonic Alignments

Monotonic attention learns where to stop reading so a system can emit outputs before the input ends, with linear-time attention at test time. · about 38 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

#### Giving the decoder access to the input

Sequence transduction turns an ordered input into an ordered output. For a speech recognizer, those sequences can be acoustic frames and phonemes. For a translator, they can be words in different languages. The sequences can differ in length, and the parts that correspond may occupy different positions. An encoder reads the input and builds a representation. A decoder uses that representation and its own previous outputs to generate the target sequence. The paper traces this setup to early recurrent encoder–decoder work, including [Sequence to Sequence Learning with Neural Networks](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/) and [Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/cho-2014-learning-phrase-representations-rnn-encoder/).

In the original setup, the decoder received a single vector summarizing the input. The encoder had to store whatever details the decoder might later need in a representation whose size stayed fixed as the input grew. The paper points to earlier evidence that this makes it difficult to generalize to longer sequences. An attention mechanism gives the decoder a collection of encoder states instead. Each state stands at a particular input position, and the decoder can use a different part of that collection for each output. An early example is [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/).

Soft attention gives each encoder state a score based partly on what the decoder has generated so far. It normalizes the scores across the input and uses them to calculate a weighted average of the states. A state can contribute strongly at one output step and weakly at the next. The collection of weights can also be displayed as an alignment, with an output position on one axis and an input position on the other. Earlier work cited by the authors had used attention in translation, summarization, and recognition of spoken utterances. Image captioning showed how widely attention could shift when the input lacked a useful reading order. [Show, Attend and Tell](https://md.research.elamur.ai/free/en/papers/xu-2015-show-attend-tell-neural-image/)

This flexibility creates two costs. The decoder needs the whole set of states to normalize its scores, so the usual calculation depends on the end of the input even if the eventual weight on unseen positions would have been small. It also repeats the scoring for each output. The score count increases as the input length multiplied by the output length increases. A system can therefore have an encoder that reads from left to right and still need to wait until the input is complete before it applies standard attention.

#### When input order gives the decoder a useful constraint

The authors start from two features of alignment plots in earlier work. Attention sometimes concentrates strongly on an individual input position, and the positions receiving attention frequently progress in approximately the order in which they arrived. A speech utterance makes the second pattern particularly clear. When a speaker says a greeting, the sounds at the beginning support the beginning of the transcription. Pauses may produce no output, and a region of the encoded signal may support several output symbols. Both behaviors are compatible with a pointer that can stay in place or advance.

Translation and summarization make the premise less secure. A target-language phrase can use a different word order from its source. A headline can draw related words together even when they occurred in a different order in the opening sentence. The premise the paper tests is that the decoder may still be able to move through the *representations* in order. An encoder state can carry information from surrounding words or from words already read. The position where the decoder obtains that information and the position occupied by the corresponding source word can therefore differ. The experiments use different encoder directions to examine what this means in practice.

The hard constraint has a concrete consequence for the reader of an alignment plot. If a decoder emits an output while attending to a particular state, all earlier states are removed from consideration on the next scan. An ordinary soft decoder may distribute weight across distant states or return to an earlier position. That freedom is valuable when the task demands it. The paper cites image captioning as a case in which successive words may refer to widely separated regions, and attention for a single output may be spread across much of the image. A left-to-right scan is motivated by the structure of particular tasks.

#### How earlier approaches managed the alignment

Earlier speech recognition work used the previous attention distribution as an input to the next scoring operation. It also considered restricting scoring to a window of encoder states. This saves work when successive focus positions are close. Another change replaced the softmax with sigmoids and normalized their outputs across the window. The paper distinguishes that use of sigmoids from a sequential choice to stop or continue. A normalized window still treats its contents as a group. A stopping decision can be made as soon as the current state is available. [Attention-Based Models for Speech Recognition](https://md.research.elamur.ai/free/en/papers/chorowski-2015-attention-based-models-speech-recognition/)

Local attention for translation also limits how much of the input a decoder scores. The work the authors discuss considered advancing a window position with the output step or predicting its center from the decoder state. In the proposed scan, rather than predicting a window center and examining a neighborhood around it, the decoder evaluates the states in order and learns where to end the current scan. A gap between useful states can be as long as the input requires. The next output can also use the same state, since the subsequent scan begins at the position last accepted. [Effective Approaches to Attention-based Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/luong-2015-effective-approaches-attention-based-neural/)

Other earlier systems already framed sequence generation as a succession of decisions to read or emit. Some trained those decisions with reinforcement learning. The authors tried that route themselves and report that they did not find a procedure that behaved reliably across their tasks. They also describe an earlier hard monotonic formulation that learned from alignments produced by a separate statistical procedure. In the present work the encoder and decoder learn from input and target sequences, with the alignment treated as unknown during training.

Connectionist Temporal Classification and the recurrent neural network transducer give a different role to the unknown alignment. The paper explains that they add a symbol for advancing without producing a label. Related approaches introduce explicit shifting and emitting operations, or treat a segmentation of the input as hidden. Dynamic programming can sum over alignments to obtain probabilities for label sequences under those systems' assumptions. The proposed method uses a dynamic program to calculate the context fed into an attention decoder. The decoder can then condition its next prediction on its output history and this context. That location of the expectation is central to understanding what the method computes. [Sequence Transduction with Recurrent Neural Networks](https://md.research.elamur.ai/free/en/papers/graves-2012-sequence-transduction-recurrent-neural-networks/)

The authors also describe an online design that splits an input into chunks and applies ordinary soft attention within each chunk. This allows output while more chunks are arriving. Each chunk must still be available for its own attention calculation. Under hard monotonic attention, the learned probability at the current position governs the decision to emit. In this sense, the scan determines the boundaries as it runs. Work on structured attention and differentiable sub-sampling gave the authors additional points of comparison for averaging over hidden decisions. The defining choice here is to combine that kind of training calculation with a pointer whose position never goes backward at test time.

### The method, step by step

#### From a read decision to an output

Think of the encoder's states as an ordered memory. For speech, the memory grows as the encoder receives more frames and produces new states. The decoder keeps track of its current position and of what it has emitted. It examines the state at the current position and decides if that state offers enough information for its next output. If the decision is to continue, the decoder moves forward without emitting. If it accepts the state, it uses that state as its context and generates an output through the usual decoder.

On the next output step, the decoder tests the same position again with an updated history. Its decision can now be different even though the encoder state is unchanged. This permits several output symbols to draw on one input location. It also permits the decoder to pass over a stretch of input without generating anything. If it reaches the end of available memory without selecting a state and the input is known to be finished, the procedure supplies a zero vector as context. Reaching the boundary of an unfinished stream means that the next state, if needed, has yet to arrive.

Hard monotonic attention at test time The steps in order.

There are two calculations to keep distinct. At test time, the decoder follows a single sequence of decisions. During training, it keeps track of the positions it could have reached and uses their probabilities to construct an average context. The paper introduces that distinction by giving ordinary soft attention a probabilistic interpretation.

#### The soft attention calculation

Let the encoder read an input sequence of length T and produce T memory states, one for each input position at the encoder's output resolution. In the speech systems, that resolution can be coarser than the original frame sequence because the encoder downsamples it. The output length is U. Throughout the equations, i indexes outputs and j indexes memory. The decoder's recurrent state is a vector that summarizes information available from its previous steps.

```
eᵢ,ⱼ = a(sᵢ₋₁, hⱼ)
```

Here eᵢ,ⱼ is the scalar score, which the authors call an energy. The learned function a takes sᵢ₋₁, the decoder state from the preceding output step, and hⱼ, the encoder state stored at position j. The score depends on the pair. The same encoder state can receive a different score when the decoder is about to produce a different output.

```
αᵢ,ⱼ = exp(eᵢ,ⱼ) / Σₖ₌₁ᵀ exp(eᵢ,ₖ)
```

Here αᵢ,ⱼ is the normalized weight on position j for output step i. The function exp is the exponential, and Σ sums over the memory index k from the initial position through T, the memory length. Each term eᵢ,ₖ is the score at one position in that memory. The denominator includes all positions. This softmax makes the weights add to 1 and lets them be interpreted as the probabilities of a categorical draw, a draw that would select exactly one memory index.

```
cᵢ = Σⱼ₌₁ᵀ αᵢ,ⱼ hⱼ
```

Here cᵢ is the context vector supplied to the decoder at step i. The sum runs through positions j up to T. At each position, the scalar weight αᵢ,ⱼ multiplies the vector hⱼ. If a categorical draw selected an index with those probabilities and returned its state, cᵢ would be the expected value of the returned state. Soft attention uses that average directly.

```
sᵢ = f(sᵢ₋₁, yᵢ₋₁, cᵢ)
```

Here f is the recurrent update. It combines the previous decoder state sᵢ₋₁, the previous output symbol yᵢ₋₁, and the new context cᵢ to produce the current state sᵢ. The architectures in the experiments use long short-term memory layers, or LSTMs, for this recurrence.

```
yᵢ = g(sᵢ, cᵢ)
```

Here g is the learned output mapping using the state sᵢ and context cᵢ at step i to produce the prediction for yᵢ. In the experiments, the output layer assigns probabilities to discrete symbols such as phonemes, characters, or words. Its softmax is over those symbols. Changing the attention mechanism changes how cᵢ is obtained while leaving a softmax available for predicting symbols.

#### A scan with local stopping probabilities

Suppose tᵢ₋₁ is the position accepted for the previous output. At output step i, the hard process examines j beginning at tᵢ₋₁ and proceeds toward the end of memory. The initial pointer is t₀ = 1, the first position. The score at each position is computed with the same kind of function a just introduced. The next operation converts that individual score to the chance of stopping at that position, conditional on having reached it.

```
pᵢ,ⱼ = σ(eᵢ,ⱼ)
```

Here pᵢ,ⱼ is the probability of accepting position j when it is examined during output step i. The function σ is the logistic sigmoid, which maps the energy eᵢ,ⱼ to a value between 0 and 1. There is no denominator involving other memory positions. Several states can have high stopping probabilities, and a scan that reaches the earliest of them may never evaluate the others.

```
zᵢ,ⱼ ∼ Bernoulli(pᵢ,ⱼ)
```

Here zᵢ,ⱼ is the discrete decision in the stochastic formulation. The symbol ∼ means that it is drawn from the indicated distribution. A Bernoulli draw returns 1 with probability pᵢ,ⱼ and 0 with the remaining probability. The first 1 ends the scan. The decoder sets its pointer to that j and its context to hⱼ. A 0 advances the scan by a position. If every position remaining in a completed input is rejected, the context is a vector of zeros. In the expectation calculation, any mass that leaves the real memory is absent from subsequent rows of real positions as well.

Why is the scan linear? An advance permanently passes over a location, and an acceptance produces an output step. A position can be scored again after acceptance because the next output may start there. That repeated work is charged to the outputs. Every inspection therefore either advances the pointer or completes a selection. For comparison, soft attention computes a score for every pairing of an output step and a memory position.

```
O(TU)
```

Here O gives an asymptotic order of growth, T is the length of the memory, and U is the length of the output sequence. The product TU describes the attention work for usual soft decoding and the expected-attention training calculation, counting the work associated with each pair of positions.

```
O(T + U)
```

Here T counts the positions available for advances, and U counts the output steps available for selections. The sum gives the linear order of growth of the hard attention scan along a decoding path. Counting advances and stops separately gives the linear conclusion without requiring an exact upper bound of the larger of the two lengths, which the paper also states. For instance, a run can examine several rejected states, then use the next state to generate successive outputs, incurring both kinds of work.

Online operation follows from the same local computation under a further condition. If the encoder produces hⱼ using only input that has arrived by position j, the scoring function has the information it needs at that point. The decoder can wait for the next encoder state only when it decides to advance and that state is unavailable. A bidirectional encoder changes when its representations are ready. It can still use the linear attention scan after encoding the input, but it does not supply the same streaming property.

#### Summing the ways of reaching a position

The training problem is that a sampled accept-or-advance decision does not give ordinary back-propagation a derivative through the selected index. The authors instead calculate αᵢ,ⱼ, the probability that the attention process selects memory position j at step i, given the stopping probabilities used in the calculation. This differs from pᵢ,ⱼ because a position must be reached before its stopping probability matters. For the first output, the path to position j is especially simple.

```
α₁,ⱼ = p₁,ⱼ ∏ₖ₌₁ʲ⁻¹ (1 − p₁,ₖ)
```

Here α₁,ⱼ is the probability that the first output selects position j. The product symbol ∏ multiplies the factors indexed by k, starting at the first position and ending just before j. Each factor is the probability of passing position k during the first output step. The factor p₁,ⱼ is the probability of accepting j once reached. For j at the initial position, the product has no factors and is defined to equal 1.

For a later output, the scan can start from any position that the previous output could have selected. A previous selection to the right of j gives no path back to j. A previous selection at j allows the current scan to accept j immediately. A previous selection to the left requires that the current scan reject every position between its starting point and j, including the starting point itself.

```
αᵢ,ⱼ = pᵢ,ⱼ Σₖ₌₁ʲ [αᵢ₋₁,ₖ ∏ₗ₌ₖʲ⁻¹ (1 − pᵢ,ₗ)]
```

Here k indexes possible previous selections, while l indexes positions passed over on the current scan. The weight αᵢ₋₁,ₖ supplies the probability of starting at k. The product supplies the probability of passing from k up to j without an earlier acceptance. The sum combines paths from all eligible starting points. Multiplying by pᵢ,ⱼ makes j the accepted position. The initial row, α₀,ⱼ, places weight 1 at the first position and 0 elsewhere. Using that row in the general expression recovers the formula for the first output.

A direct sum over starting points would repeat much of the calculation for neighboring memory positions. The authors notice that the probability of reaching j has two sources. The scan can reach the previous position and pass it, or it can begin at j because the previous output selected j. Keeping the probability of *arrival* separate from the probability of *acceptance* lets the calculation reuse work.

```
qᵢ,ⱼ = (1 − pᵢ,ⱼ₋₁) qᵢ,ⱼ₋₁ + αᵢ₋₁,ⱼ
```

Here qᵢ,ⱼ is the probability that position j is reached at step i before its accept-or-advance decision. The quantity qᵢ,ⱼ₋₁ is the probability of reaching the preceding position during the same output step. The factor 1 − pᵢ,ⱼ₋₁ is the chance of continuing past it. The other term, αᵢ₋₁,ⱼ, represents scans that begin at j. The paper uses the boundary values qᵢ,₀ = 0 and pᵢ,₀ = 0 so there is no contribution from before the memory.

```
αᵢ,ⱼ = pᵢ,ⱼ qᵢ,ⱼ
```

Here αᵢ,ⱼ counts arrivals at j that accept, using the arrival probability qᵢ,ⱼ and stopping probability pᵢ,ⱼ at the same step. Where pᵢ,ⱼ is non-zero, qᵢ,ⱼ is also the ratio of αᵢ,ⱼ to pᵢ,ⱼ. Substituting that ratio gives the paper's equivalent recurrence directly in terms of the selection probabilities.

```
αᵢ,ⱼ = pᵢ,ⱼ [(1 − pᵢ,ⱼ₋₁) αᵢ,ⱼ₋₁ / pᵢ,ⱼ₋₁ + αᵢ₋₁,ⱼ]
```

Here αᵢ,ⱼ₋₁, divided by pᵢ,ⱼ₋₁, describes arrival at the preceding state when the ratio is defined. Multiplication by 1 − pᵢ,ⱼ₋₁ gives the mass that continues. The previous row contributes αᵢ₋₁,ⱼ, and the outer factor pᵢ,ⱼ gives the acceptance probability at the destination. The recurrence using q avoids this division when propagating the arrival probability directly.

The context is the same weighted sum of encoder states used in the soft attention equations, with these selection probabilities as weights. Their total can be below 1. The difference is the probability mass assigned to the zero context rather than to a real encoder state. Renormalizing would condition on finding an accepted real position. It would also require knowing how much mass was assigned across the completed memory. Using the weights as they stand keeps the expectation consistent with the possibility that the hard scan finds nothing to accept.

The dynamic program gives the expectation for the attention calculation with the decoder states and scores used in training. At each step the recurrent decoder receives that expected vector. This is a different operation from running a separate decoder along every possible sampled alignment, predicting along each entire path, and averaging their final predictions. A nonlinear recurrent update applied to an average context generally differs from an average of the updates obtained from the individual contexts. The distinction explains both why the training procedure is tractable and why the paper tries to make the soft and hard contexts agree closely.

#### Evaluating a training row in parallel

The recurrence for q appears to require stepping serially through memory because the value at j depends on the previous position. The appendix rewrites it as a product and a sum over prefixes. Dividing by the product of the preceding continuation probabilities makes the difference between successive scaled arrival probabilities depend on the previous row alone. Adding those differences then cancels the intermediate terms. The resulting form is as follows.

```
qᵢ,ⱼ = [∏ₖ₌₁ʲ (1 − pᵢ,ₖ₋₁)] [Σₗ₌₁ʲ αᵢ₋₁,ₗ / ∏ₖ₌₁ˡ (1 − pᵢ,ₖ₋₁)]
```

Here qᵢ,ⱼ is the current arrival probability, k indexes the factors in the products, and l indexes positions contributing probability from the previous row, αᵢ₋₁,ₗ. The multiplication outside the sum restores the prefix scale at j. The p terms come from the current output step and use the index k − 1, so the product for a position excludes its own stopping probability. The initial term pᵢ,₀ supplies the boundary value.

```
qᵢ = cumprod(1 − pᵢ) · cumsum(αᵢ₋₁ / cumprod(1 − pᵢ))
```

Here qᵢ and pᵢ are vectors over memory positions for the current step, and αᵢ₋₁ is the vector of selection probabilities from the previous step. The function cumprod is an exclusive cumulative product, so at each position it multiplies the entries strictly before that position. The function cumsum is a cumulative sum that includes the current entry. The subtraction, division, and multiplication of vectors are elementwise. Both prefix operations can be parallelized across the memory dimension. The decoder still needs the preceding output step to construct the next row.

The product in the denominator can become extremely small. The authors compute products using sums of logarithms and recommend clipping the denominator, with a lower bound of 10⁻¹⁰ and an upper bound of 1. They report no discernible effect on their results from clipping, while observing that the resulting alignment weights can differ from the exact recurrence, especially around high stopping probabilities.

```
∏ₙ xₙ = exp(Σₙ log(xₙ))
```

Here xₙ denotes an individual positive product factor indexed by n. The symbol ∏ multiplies the factors, Σ adds the logarithms, log is the natural logarithm, and exp converts the sum back to product scale. The authors use this form to address unstable gradients in cumulative product implementations. They also clip the overall gradient in their experiments because the recurrence can produce large gradients. These are distinct issues. The denominator problem concerns the values used in a forward calculation, while gradient clipping controls how large a training update can become.

#### Keeping the stopping decisions close to discrete

The authors use an additive scoring function as their starting point. It projects the memory state and the decoder state into a shared space, combines them, then reduces that combination to a scalar.

```
a(sᵢ₋₁, hⱼ) = vᵀ tanh(Wsᵢ₋₁ + Vhⱼ + b)
```

Here a is the score for the pair, sᵢ₋₁ is the preceding decoder state, and hⱼ is the encoder state under consideration. W and V are learned projection matrices, and b is a learned bias vector. The function tanh acts on each component of the sum. The vector v provides the final weights, and its transpose vᵀ forms a dot product with the transformed vector. The superscript T in vᵀ denotes transpose and is unrelated to the sequence length T.

Adding the same constant to all softmax inputs leaves their normalized weights unchanged. With sigmoid stopping probabilities, a common shift changes the chance of continuing at each position. This matters because the chance of reaching a distant position contains a product of continuation probabilities. High stopping probabilities early in training can keep much of the available probability from reaching later states. The authors introduce a learned offset initialized to a negative value. This initially gives the scan greater freedom to reach positions farther into the memory.

```
a(sᵢ₋₁, hⱼ) = g (vᵀ / ‖v‖) tanh(Wsᵢ₋₁ + Vhⱼ + b) + r
```

Here ‖v‖ is the norm of the vector v, so the quotient isolates its direction. The scalar g controls the scale of that score component and starts at one divided by the square root of the attention layer’s hidden dimension. The scalar r is the learned offset. The remaining terms retain the meanings of the additive scoring function. In this equation g is a scalar parameter. The g in the earlier output equation is the output mapping.

For translation the authors also test a form based on a projected dot product.

```
a(sᵢ₋₁, hⱼ) = g (sᵢ₋₁ᵀ W hⱼ) + r
```

Here W projects the encoder state hⱼ for comparison with the previous decoder state sᵢ₋₁. The transpose of that decoder state turns the parenthesized expression into a scalar. The learned g and r again set scale and offset. The translation experiments use separate learning-rate searches for the two scoring forms.

During training, the authors add zero-mean, unit-variance Gaussian noise to the score before the sigmoid. A score near the decision boundary is sensitive to this noise. Moving the score well to one side or the other makes the choice more consistent and gives a stopping probability close to 0 or 1. If all decisions are effectively discrete, the distribution over selected positions can concentrate on the same path that a hard decoder would follow. The authors report that this noise was sufficient in their experiments and that they did not need a temperature schedule.

```
zᵢ,ⱼ = 𝟙(pᵢ,ⱼ > τ)
```

Here 𝟙 is an indicator, returning 1 if the condition in parentheses holds and 0 otherwise. The condition tests the local stopping probability pᵢ,ⱼ against the threshold τ. The experiments use τ = 0.5 and remove the pre-sigmoid noise at test time. This turns the attention decision into a deterministic test. Where the experiments use beam search, different candidate output histories can still have different decoder states and therefore different hard scans.

The training objective is cross-entropy on the target symbols, with teacher forcing. Teacher forcing means that the previous symbol supplied during training comes from the target sequence. The alignment itself is learned through the expected context and the downstream prediction loss. The authors optimized the networks with [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) and implemented them in [TensorFlow](https://md.research.elamur.ai/free/en/papers/abadi-2016-tensorflow-system-large-scale-machine/). They made an example implementation available and added a reference implementation to TensorFlow's `tf.contrib.seq2seq` module.

### Experiments and results

The experiments compare hard test-time attention with the expected, or soft monotonic, attention used in training. This soft monotonic setting still restricts the paths whose probabilities it combines. Standard softmax attention is a separate baseline that can put weight at any input position on any output step. The authors also distinguish attention over encoder positions from the output distribution over symbols. They use a beam over output predictions for speech recognition and headline generation, and greedy symbol selection for translation. These choices matter when interpreting the quality results and the separate timing experiment.

The main performance tables are identified by task and metric, but the paper's prose gives only some exact scores. It specifies the ordering of several comparisons, reports a numerical word-error change for the matched Wall Street Journal baseline, and gives exact figures for two offline TIMIT reference systems. The Gigaword and English-to-Vietnamese comparisons are described in terms of their reported ranking and the size of the gap in words.

#### TIMIT phoneme recognition

TIMIT tests whether the system can transcribe the phonemes in a speech utterance. The input is a sequence of acoustic feature frames. The paper uses 40-filter mel-filterbank spectra plus energy, sampled every 10 milliseconds, with first and second changes in the features included. The encoder is a stack of three unidirectional LSTM layers. After each of the first two layers, it keeps every other state before passing the sequence on. By the time a state reaches the attention mechanism, it therefore represents part of a compressed timeline.

The appendix specifies 512 hidden units per encoder layer and 256 in the single decoder layer. The initial attention offset is -1. The output layer has 62 dimensions, covering the 60 TIMIT phonemes and the start and end symbols. For decoding, beam search retains candidate output histories with a beam width of 10. A standard mapping to 39 phonemes is applied for evaluation. The reported metric is phone error rate on the standard TIMIT test split, where lower error indicates closer agreement with the reference phoneme sequence.

The hard monotonic approach performs better than the online sequence-to-sequence alternatives the authors compare it with. The comparison includes work that learned online alignment with a reinforcement-learning objective and work that used an online neural transducer. The paper also notes that the latter could improve by using alignments computed with a separate hidden Markov system as training supervision. The monotonic attention experiment did not add such supervision. Connectionist Temporal Classification still gives the lowest error among the online results discussed. Speech Recognition with Deep Recurrent Neural Networks

The offline references help put this result in perspective. Softmax attention with bidirectional recurrence achieves 17.6% phone error rate, and a pretrained recurrent neural network transducer achieves 17.7% on TIMIT. These figures illustrate the performance available when the encoder can use information from the rest of the utterance. The authors emphasize that the dataset is small and results vary enough to make a definitive ranking difficult. They use a larger corpus to test the approach beyond this setting.

#### Wall Street Journal word recognition

The Wall Street Journal task evaluates full words. The authors train on si284, validate on dev93, and test on eval92. The recognizer receives 80-filter mel-filterbank features along with their changes over time. It uses speaker-level mean and variance calculated offline for normalization. Two convolutional layers first reduce the time resolution, followed by a unidirectional convolutional LSTM and further unidirectional LSTM layers with projections and batch normalization. Thus the recurrent encoder retains information from preceding frames while the top-level attention consumes a shorter sequence than the raw features.

The decoder is a single unidirectional LSTM. At each step it takes an embedding of the preceding symbol and the attention context. Its output layer predicts one of 49 symbols, including characters, punctuation, and a word delimiter. The predicted character string is split at the delimiter so it can be scored by word error rate against the reference. In their beam search, the authors prune by rank to eight hypotheses and apply a threshold of three. They do not use a separate predictor of word sequences to improve decoding.

The training recipe includes label smoothing over neighboring target symbols. In this experiment, the target distribution for a character gives a small amount of weight to the labels nearby in the target sequence. The aim of this calculation is to define what the decoder is trained to predict at each output step. The attention recurrence continues to define how the decoder obtains its encoder context.

```
(0.015 ŷₜ₋₂ + 0.035 ŷₜ₋₁ + ŷₜ + 0.035 ŷₜ₊₁ + 0.015 ŷₜ₊₂) / 1.1
```

Here t is the output position, and each ŷ is the target label vector at the indicated position. The center vector ŷₜ has the greatest weight. The decimal coefficients give smaller weights to neighboring labels, and 1.1 is the stated normalizer. The target construction is part of the shared recognition setup for assessing the attention change.

On eval92, hard monotonic decoding achieves lower word error rate than the other online approaches in the comparison. Because those systems have substantially different architectures, the authors also train a version of their own recognizer with conventional softmax attention. This comparison keeps the encoder and decoder architecture fixed. Switching from hard monotonic attention to softmax attention gives a decrease reported as 1.4% WER on eval92. That softmax baseline uses a unidirectional encoder but is offline at the attention stage, since it needs the complete encoder memory when scoring an output.

The two systems' alignment plots show much the same broad progression through the utterances examined. In both, stretches of silence and pauses can leave gaps along the input axis. The hard alignment follows discrete positions and always progresses in order. The softmax alignment distributes weight and has more freedom around local transitions. The plots suggest that the task structure makes that freedom less consequential than it might be for an input whose elements need extensive rearrangement.

#### Generating a headline from a news sentence

The Gigaword experiment supplies the first sentence of a news story and asks the decoder to generate its headline. This is a test of approximately monotonic alignment. Headlines can compress a long sentence, omit qualifications, and change phrase order. The original sentence is already available in full, so the authors use a bidirectional encoder. They keep the architecture of their close baseline and replace its attention mechanism. Following the setup in [A Neural Attention Model for Abstractive Sentence Summarization](https://md.research.elamur.ai/free/en/papers/rush-2015-neural-attention-model-abstractive-sentence/), they use the established Gigaword test set.

The input is split into words, and the vocabulary contains the 200,000 most frequent training tokens. The encoder maps tokens into a 200 dimensional embedding space and passes them through four bidirectional LSTM layers. The decoder uses one LSTM layer. The attention and recurrent layers have a hidden dimension of 256. For this task the attention offset starts at -4, and the decoder uses a beam width of 4 at test time. The training loss uses sampled softmax with 4096 negative samples to work with the large output vocabulary.

The reported quality metrics are ROUGE F-measures. R-1 evaluates overlap of individual words, R-2 evaluates overlap of adjacent word pairs, and R-L uses a longest common subsequence, which can preserve order across gaps. The F-measures combine how much of the reference is recovered with how much of the prediction matches. The paper uses F-measures from earlier evaluations for comparison where the original benchmark reported recall, drawing on [Abstractive Sentence Summarization with Attentive Recurrent Neural Networks](https://md.research.elamur.ai/free/en/papers/chopra-2016-abstractive-sentence-summarization-attentive-recurrent/).

The monotonic system is ahead of earlier approaches in the reported ROUGE comparison and slightly behind the softmax-attention system on which its architecture is based. The authors attribute some of the advantage over earlier systems to encoder depth, shared by the two closest systems in the comparison. The result against that softmax baseline is the more direct measure of what happens when the task is kept the same and the attention rule changes.

The paper also reports how long the two training runs took to reach early stopping according to validation loss. This counts optimizer steps and is separate from ROUGE as well as from the runtime of computing attention.

Training steps to validation-loss early stopping on Gigaword The monotonic attention run reached its early stopping point in fewer training steps.

**The numbers**

| System or setting | approximate training steps |
| --- | --- |
| Softmax attention baseline | 300,000 |
| Monotonic attention (this paper) | 180,000 |

The two counts describe runs stopped by their own validation trajectories. The monotonic run's shorter schedule does not establish a lower cost per update or equal quality at the stopping point. In particular, both attention mechanisms still compute training weights for every memory position at each output step. The chart shows a difference in the reported training schedules under the paper's validation criterion.

#### Translating English TED talks into Vietnamese

The translation experiment uses TED talks from the IWSLT 2015 campaign. The parallel corpus contains 133K sentence pairs. The authors tokenize both languages with the default Moses tokenizer, preserve case, and replace words occurring fewer than 5 times with an unknown token. This yields vocabularies of 17K for English and 7.7K for Vietnamese. Hyper-parameter selection uses TED tst2012 with 1553 sentences, and final evaluation uses TED tst2013 with 1268 sentences.

The baseline is an encoder–decoder with softmax attention following the work of Luong and colleagues. Its encoder and decoder each use two unidirectional LSTM layers. The paper's variants change the attention mechanism and test both the additive score and the projected dot-product score. The recurrent and attention hidden dimensions are 512. The two monotonic variants start with r = -2, and their hyper-parameters are tuned separately. The authors preserve the source order in the monotonic experiments, since reversing the input would change the direction in which the attention pointer encounters the source words. At test time they choose the next symbol greedily.

The paper reports perplexity and [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/). Perplexity concerns the probabilities assigned to the reference tokens, with lower values indicating that those tokens were less surprising to the system. BLEU concerns overlap between the produced translations and references. The paper describes a small BLEU decrease relative to the softmax baseline. Its printed discussion also emphasizes where the hard alignment places its context. When a phrase needs reordering, attention can move to a position near the end of the source phrase and use that state while the decoder produces the phrase in Vietnamese.

The translation trial is therefore a test of how a forward encoder and a nondecreasing pointer handle local reorderings. The encoder state at the end of a phrase has had access to the earlier parts of the phrase. In a system receiving input incrementally, that strategy would spend more of the input before producing the corresponding target words. The evaluation here measures translation quality on the complete text benchmark.

#### Timing the attention calculation

The synthetic benchmark isolates attention from encoding, recurrence in the decoder, and search over output sequences. The authors implement both hard monotonic attention and softmax attention in C++ using Eigen. They supply random memory vectors and random decoder states drawn from the stated uniform range of [-1, 1]. The inputs to the attention calculation are therefore already available. For each setting of input and output lengths, they time the generation of the corresponding contexts and average over 100 trials.

The hard attention mechanism is about 4-40× faster in this comparison. The largest gains occur when the input is short and the output is long. Under those conditions, the scan can exhaust the input before the benchmark finishes requesting contexts and can stop doing the scoring work for subsequent requests. Softmax attention continues to score the memory for each requested context. This is an attention-only speedup under favorable conditions. Speech recognition or translation still incurs the cost of preparing input, computing encoder states, updating decoder states, and predicting symbols. The benchmark does not measure how those costs combine in an end-to-end system.

### What the ablations show

#### Changing attention while holding the architecture steady

The Wall Street Journal comparison changes the attention rule while holding the rest of the architecture steady. The harder inference constraint costs some word-recognition quality on eval92, even when unrestricted attention uses the same unidirectional encoder. That makes the comparison more informative about the contribution of attention than the ranking against online systems with different encoders and decoders. The experiment changes several properties of attention together. Conventional softmax can spread weight over several states, revisit earlier positions, and consult the full input before it decides on the context. The reported WER gap belongs to that bundle of capabilities.

The paper evaluates both hard and soft monotonic test-time attention in the task experiments. This comparison concerns how to use a decoder trained with the monotonic expectation. One setting follows a single thresholded path. The other averages over possible stops and continues to carry probability across multiple positions. A difference between them can reflect how concentrated the learned probabilities are and how much the decoder benefits from averaging. Since both settings use monotonic paths, this comparison addresses a different question from the switch to unrestricted softmax. The paper's account gives the qualitative result that the hard procedure remains competitive. It does not give a numerical breakdown of the hard-versus-expected gap in the prose for each task.

#### When the modified score makes a difference

The appendix compares the standard additive energy with the version that learns an offset and normalizes the scale. In speech recognition, the authors report the same performance with the standard and modified scoring functions. For summarization, they report that the systems failed to learn to make use of attention when trained with the standard score. This makes the scoring change consequential for optimization in at least one of the reported settings. An architecture can support an effective monotonic alignment and still need its sigmoid scores initialized and scaled so that useful positions receive a training signal.

The comparison involves both scoring modifications together. It leaves open how much of the summarization result comes from the negative offset, how much comes from the scale parameter, and whether the task or its architecture explains the difference from speech. Across tasks the authors report small gains from selecting different initial offsets, using values from the set {-5, -4, -3, -2, -1}. The experiment details specify distinct settings for TIMIT, Wall Street Journal recognition, translation, and headline generation. These choices help document the systems used for the reported evaluations.

The researchers also test a projected dot product in translation because that scoring family had worked well in the architecture underlying the baseline. They search for learning-rate settings separately for the additive and projected forms. This comparison asks whether hard monotonic alignment can operate with a score adapted to the translation architecture. Since the training schedules differ, any comparison between the two settings includes those tuned schedules as part of each configuration.

#### How the alignment plots explain the outputs

The speech examples show that the forward-only scan can skip pauses and place its accepted states near the same regions as ordinary soft attention. The headline examples show a different behavior. Some output words line up with source positions that contain an obvious counterpart, particularly near the beginning of a headline. Other words line up with states at input positions whose visible words appear less directly related. A bidirectional encoder state can already contain information about words elsewhere in the sentence. The authors interpret these plots as evidence consistent with the encoder making reordered information accessible to the decoder.

In the additional headline example, a source phrase that places criticism before the topic of human rights is turned into a phrase that places the topic first. A strictly monotonic path through states is compatible with that change in surface order. The contrast with the softmax plots is informative because the latter spread attention broadly and can move backward. The softmax system has another way to deal with reordering, by moving its focus among representations at the positions where the words appear.

Translation uses a unidirectional encoder, so a state cannot carry information from words that appear later in the source. The plots show the monotonic decoder focusing later than the softmax decoder in some regions. The authors discuss a phrase describing a large famine. The hard scan uses the encoder state at the noun, by which time the encoder has read the earlier parts of the phrase. This is consistent with the hypothesis that delayed selection lets the decoder generate a reordered phrase from a single prefix representation.

The additional translation examples include wins and errors for each approach. In one case the hard system resolves an ambiguous word in its human sense but omits a verb. In another it translates the name North Korea, while the softmax system produces an unknown symbol. Both omit a time reference in that example. These examples show what kinds of behavior can coexist with the reported aggregate quality gap. The authors use them to interpret individual alignments, where an average translation score would hide the location and nature of an error.

### Limitations

#### Limits the authors identify

During training, multiplying the input length by the output length still gives the scaling factor for attention computation. Parallel prefix operations can reduce the cost of computing a row in practice, but every row still involves the full set of memory positions in the described procedure. The authors suggest investigating gradient estimators for discrete decisions as one route towards cheaper training. They also tried replacing the product of continuation probabilities with a thresholded remainder and report that their preliminary experiments with that idea failed to learn the desired alignments.

Strict monotonicity can also make the mechanism fail when its scoring function is poorly scaled. If a sigmoid assigns high stopping probabilities too early, a large share of the probability can be absorbed near the start of the memory. If the cumulative product becomes numerically tiny, the parallel formula may be unstable. The appendix treats scaling, clipping, and log-space computation as practical parts of using the method. The clipping used in the parallel calculation can alter the expected weights, even though the authors report no discernible effect on their experimental results.

The authors identify tasks where a single forward pointer is a poor structural fit. They name English–Japanese and English–Korean as pairs for which they do not expect the requisite monotonicity. They also discuss image captioning, where output steps can attend to different regions without a useful fixed order. Among the extensions they propose are a soft penalty for moving backward, allowing a bounded step back before starting a scan, and running several monotonic mechanisms in parallel. Those are proposals. The experiments evaluated hard monotonic attention with the one-position context described in the method.

The speech results have their own stated boundaries. TIMIT has enough variability to make strong claims about the best approach difficult, and offline bidirectional recognizers still have an advantage in the reported comparison. The Wall Street Journal comparison with other online systems is affected by architecture differences. The synthetic speedup likewise reflects an isolated calculation designed to show the savings available to attention itself.

#### Limits apparent from the evaluation

Online attention depends on the full system's access to input. The Gigaword experiment uses a bidirectional encoder and can establish that hard monotonic attention works after the sentence has been encoded. It cannot establish that the same setup produces a headline while the sentence is arriving. The Wall Street Journal recognizer uses a unidirectional encoder, and its reported feature preparation uses speaker statistics computed offline. The WER result therefore characterizes that preparation and recognition pipeline. It does not measure performance under a strictly causal procedure for estimating those normalization statistics.

An online algorithm can emit before it sees the whole input, but the particular output step may still need to wait. The hard scan could reject many states before selecting one. A successful translation strategy may even depend on waiting until the phrase to be translated has ended. The paper reports no distribution of delays between source arrival and output emission for the English-to-Vietnamese experiment. Neither BLEU nor the attention-only timing range supplies that information. Output quality, the cost of processing states, and the amount of input consumed before an output are separate properties.

The alignment plots offer examples of plausible behavior rather than direct evidence about what information an encoder state stores. A headline word aligned to an unexpected position could be explained by the bidirectional encoder carrying nearby information, as the authors propose. The plots do not measure which words or features contributed causally to that prediction. Likewise, the Vietnamese example supports the explanation that the decoder waits until it has a complete source phrase, but it gives no estimate of how often that strategy occurs or how far a system could extend it across larger reorderings.

The training procedure also leaves a distinction between the attention calculation and the decoded sequence. During training the decoder receives an expected context and a preceding reference symbol. At test time it follows a thresholded path using its own output history. The noise encourages a close match between the expected context and a single chosen state. The paper does not establish that this agreement holds at every output step, or that each target sequence would receive the same probability under a calculation that kept a separate decoder state for every alignment path. Its empirical question is whether the training signal is good enough to learn useful hard choices under that difference.

Finally, the linear scan analysis applies to the attention work on a path. When beam search keeps several possible output histories, each history can supply different scores and choose different positions. The synthetic benchmark bypasses that search, as well as the encoder and decoder computation. The timing numbers should therefore be interpreted at the level measured. A full system's speed depends on how much work attention accounts for and how its decoder explores possible outputs.

### What came after

#### Keeping a forward decision while changing what the decoder can use

The closest follow-up named in the citing work is *Monotonic Infinite Lookback Attention for Simultaneous Machine Translation*. It combines a monotonic idea with lookback and places the resulting mechanism in simultaneous translation. This is a direct response to a restriction of the original method. The decision about when to advance through a source can be monotonic even when information from earlier positions remains relevant to the output. The distinction is especially pertinent to the famine example, where the earlier paper's translation system uses a state late in the phrase to carry information from the words that precede it. The follow-up's stated scope makes access to earlier input part of the attention question itself. [Monotonic Infinite Lookback Attention for Simultaneous Machine Translation](https://md.research.elamur.ai/free/en/papers/arivazhagan-2019-monotonic-infinite-lookback-attention-simultaneous/)

*Exact Hard Monotonic Attention for Character-Level Transduction* places hard monotonic alignment in a character-level setting and brings exactness to the foreground. The earlier paper computes exact selection weights for its attention recurrence before feeding the average context through the decoder, subject to its numerical implementation. It then uses a deterministic hard choice at test time. That distinction makes the object of any exact calculation important. The later title identifies exact hard monotonic attention for character transduction. It does not establish from its title alone which computation is exact or how its training objective compares. [Exact Hard Monotonic Attention for Character-Level Transduction](https://md.research.elamur.ai/free/en/papers/wu-2019-exact-hard-monotonic-attention-character/)

The morphological inflection work is a closely related line with an earlier version already discussed by the authors. Its application is [morphology](https://md.research.elamur.ai/free/en/topics/morphology/), specifically generating an inflected word form with hard monotonic attention. A character-level inflection system poses a related ordering problem within a word. The paper describes the earlier Aharoni and Goldberg approach as using target alignments produced by a statistical alignment algorithm. That allows a concrete comparison between the forms of supervision in the two lines of work. The attention mechanism studied here uses a differentiable expected context to learn from the target sequence without supplying alignment targets. [Morphological Inflection Generation with Hard Monotonic Attention](https://md.research.elamur.ai/free/en/papers/aharoni-2017-morphological-inflection-generation-hard-monotonic/)

#### Taking simultaneous translation from text to speech

*SimulMT to SimulST* addresses the adaptation of simultaneous text translation to end-to-end simultaneous speech translation. That direction connects two tasks that the original paper tested separately. In text translation the input positions are words and output order may differ from source order. In speech recognition the input positions are acoustic states and the ordering of the transcription largely follows the input. Simultaneous speech translation puts the two requirements in the same task. A system must decide when enough speech has arrived to generate translated text, which makes the read-or-emit question central to the application. [SimulMT to SimulST](https://md.research.elamur.ai/free/en/papers/ma-2020-simulmt-simulst-adapting-simultaneous-text/)

*Seamless* takes up streaming speech translation together with multilingual and expressive translation. Its scope shows where the earlier concern with delivering outputs from an unfinished sequence reappears. Streaming is part of a wider task that also concerns the languages and expression supported by the system. The citation and topic establish this link. They do not establish that the system uses the earlier paper's threshold, recurrence, or single-position context. [Seamless: Multilingual Expressive and Streaming Speech Translation](https://md.research.elamur.ai/free/en/papers/communication-2023-seamless-multilingual-expressive-streaming-speech/)

*Fairseq S2T* is another citing work in speech-to-text. It presents fast speech-to-text processing with Fairseq. The original paper isolates attention computation to ask how much a forward scan can save. A speech-to-text system has a wider performance problem, since it also has to encode the speech and generate text. The two works therefore share a concern with efficient processing at different levels of the system. The citation identifies that connection, while the title alone leaves the later system's use of monotonic alignment unspecified. [Fairseq S2T](https://md.research.elamur.ai/free/en/papers/wang-2020-fairseq-s2t-fast-speech-text/)

## Cite

Cite as Colin Raffel, Minh-Thang Luong, Peter J. Liu, Ron J. Weiss and Douglas Eck. 2017. Online and Linear-Time Attention by Enforcing Monotonic Alignments. arXiv (Cornell University).

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

```bibtex
@misc{raffel2017online,
  title = {{Online and Linear-Time Attention by Enforcing Monotonic Alignments}},
  author = {Colin Raffel, Minh-Thang Luong, Peter J. Liu, Ron J. Weiss and Douglas Eck},
  year = {2017},
  doi = {10.48550/arxiv.1704.00784},
  eprint = {1704.00784},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1704.00784}
}
```

> 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)
