Elamur Research

Universal Transformers

Paper · 2018 · Mostafa Dehghani, Stephan Gouws, Oriol Vinyals et al.

Summary

A sequence system can succeed on familiar examples while failing to learn the procedure behind them. Copying a string illustrates the problem: good performance on short inputs does not establish that the same system can copy a much longer input. Universal Transformers investigates an architectural reason for this gap. The standard Transformer processes a sequence through a predetermined stack of layers. Each layer can exchange information across the input, but the number of successive processing stages stays fixed. The paper asks whether repeatedly applying a shared transformation can preserve the Transformer’s parallel computation while giving it a stronger bias toward learning procedures.

The proposed Universal Transformer, or UT, maintains a vector at every sequence position and repeatedly revises these vectors. Each revision first uses attention to gather information from other positions, then applies a shared transition function. The recurrence runs through processing depth rather than through successive input symbols: positions are updated together instead of waiting for a left-to-right state to reach them. Parameters are reused across refinement steps, so additional processing does not require a separate learned layer for every step. Position and step encodings tell the shared transformation where it is operating and which revision it is performing.

An optional mechanism lets different positions receive different amounts of computation. Adapted from Adaptive Computation Time, or ACT, it predicts when each position should stop being revised. A position that halts retains its representation while others continue. This makes processing depth a decision conditioned on the input instead of a uniform architectural constant. The experiments support this choice on several structured tasks and on LAMBADA, a benchmark requiring broad context to predict a missing word. They also show an important exception: adaptive halting slightly worsened translation performance.

The authors evaluate the architecture on synthetic reasoning, grammatical agreement, long-context word prediction, algorithmic transformations, program execution, and translation. UT generally improves on the tested LSTM and standard Transformer baselines. It obtains the strongest reported results on LAMBADA in both evaluated formulations, and its fixed-step translation configuration improves WMT14 English–German performance by 0.9 BLEU over the standard Transformer. The theoretical argument is separate from these results: with sufficient memory and a suitable input-dependent number of steps, UT can simulate a computationally universal architecture. This establishes an architectural possibility under stated assumptions, rather than showing that training automatically discovers arbitrary algorithms.

Interesting ideas

Shared computation across depth. Reusing a transformation encourages successive processing stages to behave like applications of a common procedure. In UT, both attention and the transition function share parameters across refinement steps. This makes repeated computation an explicit architectural choice rather than something that must emerge independently in unrelated layers. The idea applies wherever an intermediate representation should be revised repeatedly: the useful question is whether another pass of the same operation can improve the current state.

Separate communication from transformation. Each UT step distinguishes gathering information from changing a position’s representation. Attention provides communication across the sequence; the transition function processes the resulting state. This separation makes the architecture easier to reason about because global access and local computation have different responsibilities. A researcher can reuse this distinction when designing a system that must combine evidence from many locations while maintaining a representation attached to each location.

Allocate effort by position. Some parts of an input may need more refinement than others. UT’s adaptive version turns that observation into a learned decision at each position. The bAbI analysis suggests that processing effort changes with the supporting evidence needed for an answer, while many irrelevant positions stop early. This is a useful design hypothesis for tasks with uneven difficulty across their inputs. Its value should be tested against a fixed computation budget, since adaptive execution adds decisions and bookkeeping of its own.

Test generalization by changing the required procedure length. Ordinary held-out examples can resemble training examples closely enough to conceal a brittle strategy. The algorithmic experiments make the challenge explicit by training on length 40 and testing on length 400. This tests whether a learned transformation continues to work when it must operate across substantially longer inputs. The transferable idea is to vary a dimension that changes the amount or organization of computation, instead of relying only on a random division of examples.

Compare adaptivity with extra fixed computation. A variable-depth system may improve simply because it performs more work. The LAMBADA analysis addresses this by comparing adaptive halting against longer fixed-step alternatives. Those alternatives improve over the shorter fixed configuration but remain behind the adaptive version. This kind of comparison helps distinguish the benefit of allocating computation selectively from the benefit of increasing computation everywhere. It is useful whenever a proposed controller changes both the amount and the distribution of processing.

Keep expressivity separate from learned behavior. The universality argument describes what an appropriately configured UT can represent and execute. The experiments ask what training actually produces on particular tasks. These are related questions, but they require different evidence. Borrowing this distinction helps prevent an architectural capability from being treated as an empirical guarantee. A system may have enough computational freedom to implement a procedure while still failing to learn it from the available examples.

Deep dive: Universal Transformers

How Universal Transformers use repeated attention and adaptive computation to improve sequence reasoning, generalization, and translation. · about 38 minutes to read

How Mova uses it

For Mova, the small transparent language system written in Rust, the clearest connection is a possible architecture for explicit refinement. An initial pass could construct representations associated with input positions. A shared processing block could then revisit those representations, drawing on the current state of the whole sequence before updating each position. This is a proposed application of UT’s design; no implemented UT component or measured Mova result is established here.

The attraction for a transparent system is that refinement provides an observable sequence of intermediate states. Instead of presenting only an input and an answer, an experimental implementation could expose which representations changed between passes and which other positions received attention. Such observations would help inspect the computation. They would still need careful interpretation: an attention weight indicates how information was combined within an operation, and does not on its own establish a complete explanation for an answer.

A sensible first experiment would use a fixed number of refinement passes. That would isolate parameter sharing and repeated information exchange before introducing learned stopping decisions. Mova could compare the shared block with a configuration that uses distinct transformations at successive stages. The paper motivates that comparison, but does not supply an outcome for Mova. Any gain in accuracy, generalization, or compactness would have to come from an evaluation of the Rust implementation.

Adaptive halting is a further possibility. A per-position controller could decide whether another revision is warranted, preserving completed states while other positions continue. For Mova, transparency would benefit from making those decisions inspectable alongside the final output. An early halt could then be examined as an actual execution decision rather than inferred from a final answer. The controller would also require a maximum processing budget so that execution remains bounded in the deployed system.

The paper supplies useful evaluation patterns for such work. Copying and reversal test whether a transformation survives a change in sequence length. Agreement prediction tests whether intervening words distract the system from the relevant grammatical relationship. Evidence-based question answering tests whether repeated passes can connect information distributed across an input. These are candidate checks for a Mova experiment, not evidence that Mova already possesses the corresponding capabilities.

The most relevant lesson is therefore architectural and methodological. A compact system can investigate repeated computation without assigning unrelated parameters to every stage, and it can test whether that repetition learns a reusable procedure. The paper does not establish that a Rust implementation would be faster, easier to inspect, or more accurate. Those are practical questions for Mova’s own implementation and measurements.

The problem and its context

Parallel access does not guarantee a reusable procedure

The paper starts from a tension between efficient sequence processing and learning iterative computation. Recurrent neural networks update a state as successive symbols arrive. That organization naturally reuses the same transformation, but it also creates a dependency chain across input positions. Processing a later position depends on an earlier update, which limits how much of the sequence can be handled concurrently.

The Transformer takes a different approach. Attention allows a position to gather information directly from other positions, and those gathering operations can run together. A word does not need to wait for information to travel through every intervening word in a recurrent chain. This gives the architecture a global receptive field: the operation can access representations throughout the sequence.

The authors regard this as an important practical advantage, especially for machine translation. They also argue that it leaves a particular weakness unresolved. A fixed collection of distinct layers does not explicitly encourage the repeated application of one learned operation. Global access answers where information can come from; it does not answer how many successive transformations the system can perform.

That distinction matters for procedures whose work grows with their input. A system may need to revisit information, combine an intermediate result with another piece of evidence, and continue. Giving every position access to the entire sequence does not automatically provide a mechanism for extending this chain of dependent computations. UT introduces that mechanism through recurrence over depth.

The paper’s motivation is therefore more specific than a general preference for recurrence. It does not propose abandoning attention or returning to left-to-right input processing. It asks whether an attention-based architecture can retain concurrent updates across positions while sharing a transformation across successive revisions.

The earlier sequence-to-sequence setting

UT retains the encoder–decoder organization associated with earlier sequence-to-sequence work. In that arrangement, an encoder builds representations of an input, and a decoder uses them while generating an output. The paper cites Sequence to Sequence Learning with Neural Networks and Learning Phrase Representations using RNN Encoder–Decoder as part of this background.

Attention supplies a further connection between the generated sequence and its conditioning input. The paper relates decoder attention to Neural Machine Translation by Jointly Learning to Align and Translate. UT changes how representations are refined, but it continues to use an encoder representation that the decoder can consult.

The immediate architectural starting point is Attention Is All You Need. UT uses its multi-head dot-product attention and follows its autoregressive output formulation. The paper also places this development alongside Convolutional Sequence to Sequence Learning, another approach that permits concurrent processing across sequence positions.

The contrast with convolution helps clarify the role of attention. A convolution normally gathers information from a limited neighborhood. Attention can consult representations across the sequence within a single operation. UT preserves this broad access while making the number of successive revisions potentially variable.

Recurrence, memory, and intermediate states

The recurrent component is important because it creates a sequence of intermediate representations governed by shared parameters. Each step receives the state produced by the preceding step. The next attention operation can therefore depend on what earlier refinement has already established.

The authors connect this behavior to iterative memory-based reasoning. In a question-answering problem, an initial pass may identify a relevant person or object. A later pass can use that intermediate state when attending to other facts. The computation can proceed through a chain of evidence instead of asking an unrelated layer to start from an completely separate learned transformation.

Ask Me Anything: Dynamic Memory Networks for Natural Language Processing provides one related example in the paper’s discussion. UT also uses repeated attention conditioned on earlier results. Its memory organization differs, however: the maintained states correspond to individual input or output positions.

This positional organization matters. A conventional recurrent state has a fixed size as it moves through a sequence. UT instead maintains a collection of states distributed across positions and can attend to that collection during a refinement step. The authors use this distinction when explaining the architecture’s computational power.

The paper also discusses Neural GPUs, Neural Turing Machines, and stack-based recurrent architectures as relevant algorithm-learning systems. These comparisons motivate the search for a design that can support procedural computation while remaining useful on natural-language tasks. UT’s intended contribution is to bring these concerns together within an attention-based encoder–decoder.

Why variable processing depth matters

The optional halting mechanism builds on Adaptive Computation Time for Recurrent Neural Networks. Its purpose is to let a system spend different amounts of effort on different parts of an input. UT adapts that idea to a setting where many position-specific states evolve together.

A word or fact can be easy to represent in one context and ambiguous in another. A uniform depth budget treats both cases alike. Adaptive halting allows the system to stop revising some positions while continuing to work on others.

This is a plausible allocation strategy, but the paper treats it as an empirical question. The reported gains on structured tasks do not establish that adaptive depth always helps. The translation result supplies a useful boundary: the architecture benefits from recurrence there, while its adaptive variant performs slightly worse.

That distinction keeps the problem well defined. Shared iterative computation is the central architectural proposal. Learned stopping is an additional mechanism whose usefulness depends on the task and configuration.

The method, step by step

Begin with a state at every position

Consider an input sequence containing m symbols. Each symbol is mapped to an embedding with d components. These embeddings form the rows of the initial state matrix.

H⁰ ∈ ℝ^(m × d)

H⁰ is the initial matrix of representations. The superscript indicates that no refinement step has yet occurred. The symbol m denotes input length, d denotes representation width, and ℝ indicates real-valued entries.

An individual row belongs to an input position. This alignment remains important throughout the architecture: a representation can change substantially while continuing to serve as the state associated with the same position.

The next stage is not a sweep through the input. Instead, all positions participate in a common revision step. Each can gather information from the preceding collection of states, after which the shared transition changes its representation.

Refinement in a Universal Transformer

The steps in order.

Refinement in a Universal TransformerStep 1: Embed symbols at each sequence position1. Embed symbols at each sequence positionStep 2: Add position and refinement-step coordinates2. Add position and refinement-step coordinatesStep 3: Exchange information through multi-head attention3. Exchange information through multi-head attentionStep 4: Apply the shared transition function4. Apply the shared transition functionStep 5: Continue refinement or halt each position5. Continue refinement or halt each positionStep 6: Decode outputs using refined representations6. Decode outputs using refined representations

The arrows describe dependencies between operations. Concurrent processing applies across positions within a step; successive refinement steps still depend on their predecessors. UT therefore combines parallel work across the sequence with sequential work through depth.

Exchange information through attention

Attention uses queries, keys, and values. A query represents what a position is seeking. Keys provide representations against which that query is compared. Values supply the information combined according to the resulting weights.

Attention(Q, K, V) = softmax(QKᵀ / √d)V

Q is the query matrix, K is the key matrix, and V is the value matrix. The superscript ᵀ denotes matrix transposition. The product QKᵀ contains query–key scores. Dividing by √d scales them, with d denoting the width of the vectors entering this attention operation. Softmax converts the scores into normalized weights, and multiplication by V forms weighted combinations of values.

The role of d needs attention when reading the architecture. The overall state has width d, while an individual head operates on a projected portion of that width. The scaling in the attention operation concerns the width of the vectors supplied to that operation.

In self-attention, queries, keys, and values are projected from the same collection of position states. They have different roles even though they originate in the same matrix. A position’s query can emphasize one kind of relationship while the corresponding values carry information useful for its next representation.

The architecture uses several attention heads rather than only one. Each head has its own learned projections, allowing different information-gathering patterns within the same refinement step.

headᵢ = Attention(HᵗWᵢ^Q, HᵗWᵢ^K, HᵗWᵢ^V)

Hᵗ denotes the collection of states at refinement step t. The index i identifies an attention head. Wᵢ^Q, Wᵢ^K, and Wᵢ^V are learned matrices that produce that head’s queries, keys, and values. With k heads and overall state width d, the paper specifies these projection matrices with dimensions d × d/k.

The individual head outputs are then joined and projected.

MultiHeadSelfAttention(Hᵗ) = Concat(head₁, …, headₖ)Wᴼ

Concat joins the head representations along their feature dimension. The symbol k denotes the number of heads, and Wᴼ is the learned output projection, specified with dimensions d × d. The complete operation returns one attention-informed representation for each position.

This step gives UT broad communication. Every encoder position can use the preceding states across the input, subject to the attention distribution it computes. The recurrent structure means that those preceding states may already contain information accumulated through earlier revisions.

Tell the shared block where and when it operates

A shared transformation needs information about position. It also benefits from knowing which refinement step it is performing. UT adds fixed sinusoidal coordinates for both quantities.

Pᵗᵢ,₂ⱼ = sin(i / 10000^(2j/d)) + sin(t / 10000^(2j/d))

Pᵗ is the coordinate matrix added at step t. The index i denotes the sequence position, j indexes a sinusoidal frequency, and d is the state width. The expression specifies an even-indexed component by adding a position-dependent sine term to a step-dependent sine term. The constant 10,000 sets the frequency scale used in the encoding.

The corresponding odd-indexed component uses cosine.

Pᵗᵢ,₂ⱼ₊₁ = cos(i / 10000^(2j/d)) + cos(t / 10000^(2j/d))

The symbols have the same meanings as in the preceding expression. Together, the sine and cosine components provide coordinates for sequence position and processing step. They are fixed encodings rather than separately learned parameter sets for each layer.

These coordinates preserve a distinction between sharing an operation and forcing every application of that operation to receive an identical input. The transformation is reused, but its state and coordinates change. A later application can therefore behave differently in response to the representations produced so far and the step coordinate it receives.

For the algorithmic experiments, the authors additionally randomize the offsets from which positions start. Their stated purpose is to encourage transformations based on relative position rather than dependence on a particular absolute starting index.

Apply the recurrent update

A refinement step contains an attention block and a transition block. Both have residual connections, which add a block’s input to its output. The architecture also uses dropout and layer normalization, citing Dropout and Layer Normalization.

The attention stage is written as follows.

Aᵗ = LayerNorm((Hᵗ⁻¹ + Pᵗ) + MultiHeadSelfAttention(Hᵗ⁻¹ + Pᵗ))

Hᵗ⁻¹ is the matrix from the preceding revision. Pᵗ supplies the current coordinates. MultiHeadSelfAttention gathers information across the coordinate-augmented states. The residual addition retains the augmented input alongside the attention result, and LayerNorm normalizes the resulting representations. Aᵗ names the intermediate matrix passed to the transition stage.

The transition completes the step.

Hᵗ = LayerNorm(Aᵗ + Transition(Aᵗ))

Transition is the learned recurrent transformation. Its output is added to Aᵗ, and another layer-normalization operation produces Hᵗ. The same attention parameters and transition parameters are reused at later refinement steps.

The paper uses alternative transition functions depending on the task. One is a position-wise fully connected network with a rectified-linear activation between affine transformations. Applied position-wise, it transforms each row without itself mixing rows; the attention stage has already supplied cross-position information.

The other choice is a depthwise separable convolution. This provides a convolutional transformation in the recurrent block. The distinction matters when interpreting the architectural description: the fully connected transition operates separately on rows, whereas the convolutional option introduces neighborhood-based processing.

After the chosen number of revisions, the encoder returns the final collection of states. With a fixed step budget T, the final matrix has the same positional organization and feature width as the initial matrix. Its entries now reflect repeated information exchange and transformation.

Understand what sharing changes

If UT runs for a fixed number of steps, it can be viewed as a stack whose corresponding layers share parameters. This is a useful implementation-level interpretation. It makes clear that recurrence is achieved through reuse of the processing block, rather than through moving a single hidden state along the input.

The alternative interpretation is a collection of interacting recurrent processes, each attached to a position. Each process receives information from the preceding states of the others. The processes evolve together, and their common parameters express the same update rule.

These views describe the same computation from different angles. The tied-stack view emphasizes parameter sharing. The interacting-state view emphasizes memory access and repeated revision. The second becomes particularly useful once positions are allowed to stop at different times.

Sharing also makes it meaningful to change the number of processing steps without introducing a new independently parameterized layer. That architectural permission is central to the computational-power discussion. It does not, by itself, ensure that a trained system remains accurate when run for a different number of steps.

Add the decoder

The decoder follows the same recurrent pattern but includes attention to the final encoder states. Its self-attention combines information within the output sequence. Its additional attention operation uses decoder-derived queries with keys and values derived from the encoder.

This division gives the decoder access to two kinds of context: the output prefix and the conditioning input. Repeated decoder revisions can update how those sources are combined before producing a distribution for an output position.

Training uses teacher forcing. The target sequence is shifted so that each output position receives preceding target symbols as its decoder input. A causal mask prevents decoder self-attention from consulting later target positions. Without that restriction, training could expose the answer being predicted.

The paper expresses the output readout as follows.

p(y_pos | y_[1:pos−1], Hᵀ) = softmax(OHᵀ)

The left side is the conditional probability of output symbol y_pos. The term y_[1:pos−1] denotes the preceding output symbols, and Hᵀ denotes the final refined representations used in the conditioning and readout description. Here the superscript T identifies the final refinement step; it is not a transpose. O is the learned affine output map, and softmax produces probabilities over vocabulary entries.

The paper specifies O with dimensions d × V, where V is vocabulary size. Its displayed multiplication is shorthand for mapping a final decoder vector into vocabulary scores; the row-stacked state convention requires the corresponding matrix orientation. The essential operation is an affine vocabulary projection followed by normalization at each output position.

At generation time, the encoder processes the input once. The decoder then repeatedly receives the output produced so far and generates a distribution for the next symbol. That symbol can be selected by highest probability or sampled. Refinement across positions does not remove this dependence between successive generated symbols.

Let positions halt independently

ACT introduces a scalar halting prediction for each position at each step. The implementation computes this prediction from the current state using a learned transformation followed by a sigmoid. The result contributes to an accumulated halting quantity.

A threshold controls when a position is considered finished. Positions that have not reached it continue through the recurrent block. A remainder adjusts the contribution of the final update when a position crosses the threshold. The implementation also tracks how many updates each position has received.

This is more specific than simply rounding a predicted depth to an integer. The appendix uses update weights to interpolate transformed states with the previously accumulated state. Already halted positions receive no further effective update, while active positions continue contributing according to their halting weights.

The loop ends when every position has halted or the maximum step allowance is reached. Finished representations remain available while unfinished positions continue their computation. Halting therefore changes which states continue to evolve without discarding the states already produced.

The paper calls the resulting amount of processing a position’s ponder time. It is useful as an analysis variable because it reveals how computation is distributed. A high ponder time is not automatically evidence of correct reasoning, just as a low ponder time is not automatically evidence of irrelevance. Its meaning has to be assessed alongside task behavior.

Adapt inputs and supervision to the task

The bAbI experiments use fact-level inputs instead of passing every story word directly into UT as a separate position. A learned multiplicative position mask is applied to word embeddings within a fact, and the resulting embeddings are summed. The question is encoded in the same fashion. UT then processes the resulting representations of facts and question.

This preprocessing matters because the units receiving attention and adaptive computation are tied to that encoding. An observed ponder time for a story fact is not equivalent to a measurement showing independent halting for every word inside the fact.

The subject–verb agreement task uses next-word prediction during training. Evaluation compares the ranking of the grammatically appropriate verb against the competing number form. The system is therefore not trained simply as a dedicated binary classifier for grammatical number.

LAMBADA has separate language-modeling and reading-comprehension formulations. In the language-modeling setup, training predicts words generally, while evaluation concentrates on the selected difficult targets. The reading-comprehension formulation instead uses the unfinished target sentence as a query for choosing a word from the surrounding context.

For Learning to Execute, the authors generate examples using the mixed strategy described in the earlier task work. They train without curriculum learning and do not provide target sequences during testing. Translation follows the setup used for the original Transformer comparison. The paper identifies Tensor2Tensor as the official implementation used for training and evaluation, connecting it to Tensor2Tensor for Neural Machine Translation.

Experiments and results

The evaluation is broad because the proposal has several distinct claims. Algorithmic tasks test generalization of procedures. Synthetic stories test evidence combination. Agreement prediction probes sensitivity to grammatical relationships. LAMBADA tests broad-context prediction, and translation checks whether the architectural change remains useful on a large sequence-to-sequence task.

These experiments should not be collapsed into a single notion of intelligence or reasoning. Their inputs, supervision, and scoring rules differ. A perfect memorization score has a different meaning from improved perplexity, and a translation gain answers a different practical question from successful processing of longer digit strings.

Evidence-based questions in bAbI

The bAbI benchmark contains 20 synthetic tasks. Their stories supply facts from which a question must be answered. The task collection includes different demands, such as combining supporting statements, tracking temporal relationships, counting, and handling negation.

The authors evaluate separate-task training and joint training. In the separate setting, each task receives its own trained system. In the joint setting, a common system learns across the task collection. The latter is especially relevant to the benchmark’s intention that a single architecture handle varied reasoning requirements.

The data regimes use 1K and 10K training examples. The smaller regime places more pressure on learning effectively from limited data. The paper evaluates average error and counts tasks whose error exceeds 5%, treating that threshold as task failure.

The reported procedure uses 10 initializations and selects the best run according to validation performance. This is important context for the strength of the results: the selected outcome should not be interpreted as a guarantee that every initialization reaches it.

The authors report leading results for UT and its adaptive variant under the evaluated combinations of data regime and training arrangement. They also state that the standard Transformer overfits in spite of trying different sizes and hyper-parameters. That makes bAbI evidence particularly relevant to the proposed inductive bias, rather than merely to scaling up a baseline.

The analysis goes beyond answer error. On test tasks requiring increasingly many supporting facts, average ponder times rise from 2.3 ± 0.8 to 3.1 ± 1.1 and then 3.8 ± 2.2. These figures describe processing depth across positions and examples; they are not answer accuracies.

The attention visualizations show another associated pattern. Early attention is diffuse, while later steps concentrate more strongly on facts relevant to the answer. Together with the ponder-time measurements, this suggests that refinement is being used in a task-sensitive way.

The authors further observe that many positions halt early in stories requiring more supporting evidence, while a smaller subset continues. Those stories also contain more irrelevant material. The finding is consistent with selective processing, although it does not establish that every halted fact was correctly identified as irrelevant.

Subject–verb agreement under distraction

The agreement experiment asks whether the system prefers the verb form matching the sentence’s subject. Intervening nouns can make the task harder when their grammatical number differs from the subject’s number. The paper calls these nouns agreement attractors.

For the example involving plural keys and a singular cabinet, the correct continuation is plural. A strategy based on the most recently encountered noun could favor the wrong verb. The task therefore probes whether prediction reflects the relevant grammatical relationship rather than a simpler local cue.

The evaluation follows the language-modeling protocol associated with Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependencies. Training predicts the next word; testing asks which competing verb receives the better ranking.

Subject–verb agreement, reported average ranking accuracy

Universal Transformer reaches an average comparable to the strong recurrent reference.

Subject–verb agreement, reported average ranking accuracyAttention-equipped LSTM reference: 99.18Attention-equipped LSTM reference99.18Universal Transformer (this paper): 99.2Universal Transformer (this paper)99.2
The numbers
System or settingaccuracy %
Attention-equipped LSTM reference99.18
Universal Transformer (this paper)99.2

The paper reports that UT substantially improves on the standard Transformer and reaches an average comparable to the strongest cited result. The aggregate figures establish competitive agreement prediction, but the analysis by attractor count is more informative about the intended capability.

As attractors become more numerous, UT’s relative performance improves, with the adaptive variant especially strong in the harder groups. This pattern supports the claim that repeated refinement helps when the input contains misleading alternatives. It remains a targeted grammatical test rather than a complete assessment of syntactic understanding.

LAMBADA and broad-context prediction

LAMBADA requires predicting a final target word from a passage. Its selected examples are intended to be answerable when readers see the broader passage but difficult when they see only the unfinished target sentence. The surrounding context usually spans 4-5 preceding sentences.

The language-modeling setup is the more demanding of the evaluated formulations. Training does not single out the specially selected test targets; it learns next-word prediction generally. Success must therefore transfer from a broad training objective to a subset chosen to require contextual understanding.

The reading-comprehension setup frames the task differently. The unfinished target sentence becomes a query, and the answer is selected from words in the context. The paper states that the target is present there in 81% of cases. In the remaining 19%, this restricted answer mechanism cannot return the target.

That distinction is essential when interpreting performance. Reading comprehension supplies a narrower candidate space and a more targeted formulation. Its accuracy should not be read as equivalent to unrestricted prediction over the vocabulary.

The authors report that UT achieves the strongest results in both formulations, improving on the tested LSTM and standard Transformer baselines. Language modeling is evaluated with perplexity and accuracy; reading comprehension uses accuracy. Lower perplexity indicates better probability assignment under that metric, whereas accuracy counts correct target predictions.

A separate control set checks ordinary prediction behavior. Its passages are sampled in a similar form without the filtering used to select broad-context challenges. Performance there helps distinguish a general weakness in word prediction from a more specific difficulty using discourse context.

The depth comparison is especially useful. The strongest fixed-step UT uses 6 refinement steps. The best adaptive configuration averages 8.2 ± 2.1 steps across test positions and examples. Since it performs more refinement on average, an obvious alternative explanation is that its gain comes completely from greater processing.

The authors therefore train fixed configurations with 8 and 9 steps. Both improve on the 6-step version, but neither overtakes adaptive halting. The result supports selective computation as a useful component, while leaving open how much of its benefit comes from allocation, regularization, or other effects of the changed training problem.

Algorithmic transformations on longer inputs

The algorithmic experiments use copying, reversal, and integer addition with decimal-symbol sequences. Their central stress test changes input length: training examples have length 40, while evaluation examples have length 400.

This setup asks more than whether a system can interpolate among familiar examples. It tests whether a transformation remains usable when applied to a longer sequence. Copying is particularly revealing because its specification is simple, yet a learned strategy can still depend on the training length.

UT outperforms the LSTM and standard Transformer baselines by a large margin across these tasks, according to the paper. Randomized position offsets are part of the training setup, intended to discourage reliance on an absolute position range.

The Neural GPU is a relevant comparison because the cited work reports perfect performance. Its training, however, uses a specialized curriculum that the other systems do not receive. The paper flags this difference instead of presenting the results as a perfectly matched architectural contest.

The evidence supports improved length generalization under this particular training and testing design. It does not establish correct behavior at every longer length, or show that every UT configuration learns an algorithm with an unrestricted domain.

Learning to Execute

Learning to Execute tests generated programs and sequence memorization. The program tasks involve numerical operations, control flow, assignments, and combinations of operations. The memorization tasks require copying, doubling, and reversing sequences.

The paper reports both character-level and sequence-level accuracy. These measure different kinds of success. Character accuracy can remain high when an output contains a small error; sequence accuracy requires the complete output to match. For program execution, the latter is especially important because a nearly correct result can still be unusable.

The memorization evaluation has maximum length 55. UT receives perfect scores on the reported memorization tasks. This is stronger than a high average character score because it also establishes exact sequence performance within that setup.

The program-evaluation comparison uses maximum nesting 2 and length 5. Nesting governs the permitted composition of operations, while the length setting concerns the integers used in generated programs. UT improves substantially on the tested LSTM and Transformer baselines across the reported program tasks.

The training conditions help define the claim. The authors do not use a curriculum and do not expose target sequences at test time. The result concerns learned execution behavior on generated tasks under those conditions; it does not show general execution of arbitrary programs.

Translation at a larger scale

The translation experiment uses WMT 2014 English–German and follows the original Transformer setup. It is scored with BLEU, making it a test of translation output rather than exact reproduction of a deterministic algorithmic answer.

The UT configuration with a fully connected recurrent transition and fixed depth improves by 0.9 BLEU over the standard Transformer. It also improves by 0.5 BLEU over the Weighted Transformer comparison. The paper describes the compared base configurations as having matched parameter counts, with training on 8xP100 GPUs.

This result matters because it shows that the recurrent change is useful beyond small structured benchmarks. The architecture remains competitive on a large sequence-to-sequence application while sharing parameters through depth.

The adaptive mechanism does not supply the best translation configuration. Its slight degradation is a material result, not an incidental exception. It shows that evidence for recurrence should be kept separate from evidence for learned per-position stopping.

Translation also places a limit on the efficiency interpretation. The reported quality comparison does not establish a general reduction in runtime or memory. Parameter sharing, refinement count, and execution cost are connected, but they are different quantities requiring separate measurement.

What the ablations show

The paper offers targeted comparisons and behavioral analyses rather than a complete factorial dissection of every component. Its strongest checks examine fixed versus adaptive depth, standard versus recurrent attention architectures, and the relationship between task difficulty and the computation actually used.

More computation explains part of the LAMBADA gain

The longer fixed-step LAMBADA configurations are an important control. Adaptive UT performs more steps on average than the strongest shorter fixed version. Without further comparison, improved prediction could be attributed simply to giving the architecture more opportunities to revise its state.

The fixed configurations with 8 and 9 steps address that explanation. Their improvement shows that additional uniform refinement is useful. Their failure to surpass adaptive UT shows that the observed benefit is not reproduced merely by choosing those longer fixed budgets.

The authors suggest a regularization interpretation. A controller that favors fewer updates for some positions while allowing more for others may encourage a useful division of computational effort. This is an explanation consistent with the results, instead of a separately demonstrated causal mechanism.

The comparison still leaves questions open. Different depth choices change the optimization problem as well as the execution pattern. The analysis does not identify a single isolated cause for the adaptive advantage, but it does rule out a particularly simple account based only on the shorter baseline’s step count.

Ponder time follows reasoning demand in bAbI

The bAbI measurements connect average processing depth with the number of supporting facts needed for an answer. This is useful because the controller is not assigned a fixed depth for each such task by the analysis. Its behavior is examined after learning.

The increasing averages support the idea that harder evidence combinations receive more refinement. They do not establish a literal correspondence between each update and one reasoning operation. A step can alter many positions, and attention can mix information from several facts at once.

The distribution across positions adds another observation. In the more demanding stories, many positions stop early while fewer continue. This makes the mechanism more interesting than a controller that simply increases depth uniformly for every position whenever a story is long.

However, the observations remain behavioral evidence. Longer ponder time could reflect useful evidence integration, unresolved ambiguity, or inefficient computation. Its positive interpretation comes from its association with successful task performance and relevant attention patterns, not from the count alone.

Attention changes across refinement

The attention visualizations reveal a progression from broad distributions towards more focused ones. Because a later step operates on earlier revised states, its attention can reflect information already accumulated. This is the operational basis for viewing UT as iterative evidence processing.

The examples involve questions about entities, objects, and prior locations. They illustrate why a single initial match may be insufficient: determining an answer can require tracking how a state changed across several statements.

The visualizations make the repeated computation concrete, but they do not prove that the highlighted attention is a complete causal account of the answer. No intervention in these analyses establishes that removing a particular attended fact necessarily changes the prediction in the expected way.

The appropriate conclusion is narrower and still useful. Attention is not static across steps, and its later organization is consistent with the evidence required by the question. The analysis helps show that the recurrent block is doing changing work rather than merely repeating an identical weighting.

Harder agreement cases reveal more than the average

Agreement accuracy is high in aggregate, so an overall score can hide where architectures differ. Grouping by attractor count makes the comparison more demanding. The relevant question becomes whether the system maintains the subject–verb relationship as misleading intervening nouns accumulate.

UT’s stronger relative performance in harder groups supports the usefulness of repeated refinement for this targeted dependency. The adaptive version’s behavior is consistent with the broader motivation that difficult inputs may benefit from additional processing.

This analysis does not show that the architecture learns a complete grammatical representation. The supervision and evaluation remain word-prediction based, and the tested contrast concerns grammatical number. It supplies evidence about one structural sensitivity under controlled distraction.

Recurrence and adaptive stopping have different evidence

Across the experiments, the standard Transformer comparison supports the combined UT design. It does not isolate every ingredient independently. Reusing attention weights, reusing transition weights, supplying step coordinates, and changing processing depth all participate in the architecture.

A more exhaustive ablation would vary those choices separately under matched conditions. The paper’s comparisons do not justify assigning the entire improvement to any single one of them. The cleanest claim is that the recurrent package works well across the tested tasks.

The translation exception reinforces that caution. Fixed-step recurrence improves the reported translation comparison, while adaptive stopping does not. A useful architectural bias can therefore survive even when a particular control mechanism fails to help.

Taken together, the analyses support iterative refinement and task-sensitive computation without establishing a universal recipe for choosing depth. They explain why the design is plausible and show behavior aligned with its motivation, while leaving optimization and efficiency questions for further study.

Limitations

The authors’ stated conditions on computational universality

The universality claim depends on sufficient memory and a number of sequential steps that can grow appropriately with the input. The paper contrasts this with a standard Transformer whose layer count remains fixed. Its argument also explicitly invokes finite precision when discussing the fixed-depth limitation.

These assumptions are central to the claim. A UT restricted to a fixed processing budget does not acquire unlimited sequential computation merely because it shares parameters. Reuse makes variable execution possible; an execution policy must still supply enough steps.

The argument proceeds by showing how UT can reproduce a Neural GPU under an appropriate configuration. The decoder is ignored, the attention-plus-residual operation is made an identity transformation, a convolution supplies the transition, and refinement depth is chosen according to input length.

This is a construction demonstrating expressive capacity. It is not a training guarantee and does not imply that gradient-based optimization will discover the required configuration. The distinction is especially important when connecting the theoretical discussion to the finite empirical experiments.

ACT is also not required for the theoretical point. A deterministic rule that assigns a suitable nonconstant depth can provide the needed growth. Learned halting is one mechanism for controlling computation, not the source of universality on its own.

The authors’ empirical exceptions and qualifications

The paper reports a slight translation degradation from dynamic halting. This qualifies any broad claim that conditional computation consistently improves the architecture. Its benefits are demonstrated on particular tasks, and the best translation setting uses fixed refinement.

The Neural GPU comparison has a training-procedure qualification. Its perfect reported algorithmic result depends on a curriculum absent from the other systems’ training. The comparison is informative, but it cannot be interpreted as isolating architecture alone.

LAMBADA’s reading-comprehension formulation also has a stated boundary. Selecting an answer from the context cannot succeed when the target does not occur there. Strong results in that formulation therefore concern a different prediction problem from unrestricted vocabulary-based language modeling.

The bAbI procedure selects the strongest validation run among multiple initializations. This follows the comparison practice described by the authors, but it means the selected performance is not a direct measure of reliability across all runs.

Limits visible in the experimental design

A careful reader should distinguish synthetic reasoning from open-ended language understanding. bAbI offers controlled tasks with explicit supporting facts. Its clarity is valuable for diagnosis, but success does not establish the ability to identify trustworthy evidence in unrestricted documents or resolve every kind of linguistic ambiguity.

The fact-level input encoding narrows the interpretation further. Words within each fact are combined before UT processes the resulting states. The benchmark therefore evaluates the recurrent attention system together with a specific representation pipeline. It does not independently establish how raw word-level processing would behave under the same conditions.

Length generalization is tested across a specific change in sequence length. That is stronger evidence than same-length testing, but it remains finite. The experiments do not demonstrate correct execution for all input lengths, and a successful longer-input evaluation does not establish an unrestricted algorithmic guarantee.

The program tasks likewise use generated inputs with controlled length and nesting. Their structure makes execution behavior measurable. It also limits the claim: accurate evaluation within that generation scheme is not equivalent to executing arbitrary software with unrestricted control flow and state.

Agreement prediction is another focused probe. It tests sensitivity to the number relationship between subjects and verbs under intervening distraction. It does not evaluate every grammatical dependency, nor does it prove that the internal representations match a particular linguistic theory.

Computational flexibility is not an efficiency result by itself

UT preserves concurrent updates across positions, but refinement steps remain sequentially dependent. Increasing depth adds work. Adaptive halting may reduce effective updates for some positions, yet the system still has to manage active positions and maintain the information other positions can consult.

The experiments establish quality benefits more clearly than a general runtime advantage. Matched parameter counts in translation help assess representational reuse, but they do not make execution costs identical. A shared block can be applied many times even though it has relatively few independently learned parameters.

The broad receptive field also remains. Nothing in the recurrent construction removes the cost of attention over the maintained sequence states. Depth sharing addresses one architectural dimension; it does not by itself solve every scaling issue associated with long inputs.

Autoregressive generation supplies another practical boundary. Even though decoder positions can be processed concurrently during a refinement step, producing a new output still depends on the existing prefix. The architecture does not claim that an entire generated sequence becomes available simultaneously.

Behavioral analyses have interpretive limits

Sharper attention and longer ponder time provide useful evidence about execution. They should not be treated as self-explanatory measures of reasoning quality. A system can concentrate attention incorrectly or spend more steps without making progress.

The paper’s analyses are persuasive because they occur alongside successful task performance and fit the tasks’ structure. They remain observational. Establishing exactly which intermediate updates are necessary would require additional controlled interventions.

Similarly, the apparent benefit of adaptive halting does not establish the authors’ suggested regularization explanation by itself. The longer fixed-depth controls make a simple alternative less convincing, but several effects of adaptation can still coexist.

These boundaries leave a substantial contribution intact. UT demonstrates that shared refinement can improve tested sequence tasks while supporting a stronger computational construction. What remains unproven is a general guarantee of learning, efficiency, explanation, or transfer beyond those settings.

What came after

Universal Transformers connects several research questions that later work continued to investigate: parameter reuse, computational effort, algorithmic generalization, and the interpretation of attention. The later papers discussed below cite it. That citation relationship establishes that UT entered their scholarly context; it does not by itself show that each paper adopted its recurrent architecture.

This distinction is especially important for works whose available identification establishes a topic through the title but does not describe their treatment of UT. Their relationship can be stated carefully as a continuation of a question or a related research direction, without assigning them an undocumented mechanism or result.

Compact architectures and efficient processing

ALBERT: A Lite BERT for Self-supervised Learning of Language Representations belongs to the later discussion of lighter language architectures. UT offers a relevant distinction for that discussion: the amount of computation performed need not equal the number of independently parameterized stages. A shared transformation can be used repeatedly.

The citation alone does not establish exactly how ALBERT uses that distinction. The useful connection is the question UT makes explicit: when do additional stages need separate parameters, and when can repeated use of a common operation supply the desired computation?

TinyBERT: Distilling BERT for Natural Language Understanding and ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers represent other efficiency directions, identified respectively through distillation and quantization. Their titles establish different intervention points from UT’s recurrent processing design.

Reading these directions together helps keep efficiency claims precise. Reducing independent parameters, changing numerical representation, and changing how computation is allocated are different choices. UT directly investigates sharing and adaptive depth; its citation by later efficiency work does not make all those techniques equivalent.

Efficient Transformers: A Survey supplies a broader connection. It describes the quadratic growth of time and memory associated with comparing every token against every other token. That concern complements UT’s focus on processing depth.

A recurrent attention architecture can reuse parameters and still retain expensive sequence-wide communication. The survey connection therefore helps separate two axes of design: how much successive computation is performed, and how costly each information-exchange step becomes as inputs grow.

Efficient Methods for Natural Language Processing: A Survey belongs to this broader efficiency landscape as well. Its citation of UT places repeated, shared computation among the approaches relevant to that discussion, without establishing a specific endorsement or comparative result.

Intermediate computation and iterative attention

Perceiver: General Perception with Iterative Attention has an evident thematic connection through iterative attention. UT demonstrates how successive attention operations can use representations already changed by earlier operations.

The title establishes iteration as part of Perceiver’s subject, but the citation relationship alone does not specify that it reproduces UT’s positional states, shared transition, or halting controller. The shared research question is how repeated information access should be organized, instead of a documented identity between the architectures.

Show your work: Scratchpads for intermediate computation with language models addresses intermediate computation explicitly. UT provides one architectural reason to care about intermediate states: an answer may require successive transformations whose outputs become inputs to later work.

The two directions should not be collapsed. UT’s intermediate activity occurs in refined vector states. The later title concerns scratchpads. The documented connection supports discussing a common interest in giving computation room to proceed through intermediate stages, while leaving the later work’s detailed use of UT unspecified.

Solving math word problems with process- and outcome-based feedback raises a related evaluation question through its distinction between process and outcome. UT’s attention and ponder-time analyses similarly show why final accuracy alone may leave questions about execution unanswered.

That comparison is conceptual. It does not establish that the later feedback method uses adaptive halting or recurrent attention. It illustrates how UT’s separation between intermediate computation and final prediction remains relevant when researchers ask what should be supervised or inspected.

Length generalization remains a distinct test

Exploring Length Generalization in Large Language Models directly continues the concern that success within a training range may not survive longer inputs. UT’s algorithmic setup makes that concern concrete by deliberately changing the tested sequence length.

The later citation does not establish that this work adopts UT. It places the architecture within an ongoing question about whether learned behavior reflects a procedure that can continue beyond familiar input sizes.

What Algorithms can Transformers Learn? A Study in Length Generalization sharpens the same question in its title. UT’s contribution is relevant because it changes the architecture’s bias toward repeated operations and then evaluates a longer-input regime.

The important continuity is methodological as well as architectural. Learning an answer pattern and learning a reusable computation can look similar on familiar examples. Changing the required extent of the computation helps distinguish them, though no finite test establishes unrestricted correctness.

Investigating the Limitations of Transformers with Simple Arithmetic Tasks belongs to the related use of controlled numerical tasks. UT’s addition experiments show why a simple task description can still expose architectural weaknesses. The title supports this thematic relationship without supplying a later result to compare numerically.

Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets also centers generalization on algorithmic data. Its citation of UT connects to the broader distinction between fitting examples and acquiring behavior that transfers. The available record does not establish a specific recurrent mechanism or experimental conclusion inherited from UT.

Scaling and architectural bias

Scaling Laws for Neural Language Models and Scaling Laws vs Model Architectures: How does Inductive Bias Influence Scaling? place UT beside a broader question about resources and architecture.

UT’s experiments motivate that comparison because the proposal is not simply to add unrelated layers. It changes how parameters and computation are reused. The later titles identify scaling and inductive bias as subjects, but do not establish a particular scaling law for UT or a numerical advantage that can be reported here.

Language Models are Few-Shot Learners and Emergent Abilities of Large Language Models likewise cite UT within a wider language-capability literature. Their presence does not justify attributing their behavior to adaptive halting or recurrent depth.

The careful connection is that UT makes architecture an explicit part of the capability discussion. Its evidence shows that sharing an iterative operation can matter for particular tasks, even when the baseline already has broad attention access. Later capability research can cite that finding without adopting the full design.

Expressive power and understanding attention

Are Transformers universal approximators of sequence-to-sequence functions? continues the theoretical examination of Transformer expressivity. Its title concerns universal approximation, while UT’s argument concerns computational universality under memory and execution-depth assumptions.

Those phrases describe different questions. The UT construction asks whether an architecture can simulate unrestricted computation given the required resources. An approximation question concerns representational possibilities for functions. The citation relationship does not make one result a replacement for the other.

Quantifying Attention Flow in Transformers connects to the interpretation of information movement through attention-based systems. UT’s visualizations show attention distributions changing over refinement steps, inviting questions about how information actually travels through a sequence of operations.

The later title establishes attention flow as its subject, but does not establish a specific finding about UT. The continuing question is still clear: observing an attention distribution at one stage is different from understanding the cumulative computation that produces an answer.

Across these directions, UT contributes a precise architectural hypothesis. Broad information access becomes more useful when a shared transformation can repeatedly revise what each position knows. Its experiments show several settings where that hypothesis works, its controls reveal why uniform extra depth is an incomplete explanation, and its exceptions show where the evidence stops.

Cite

Cite as Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit and Łukasz Kaiser. 2018. Universal Transformers. arXiv:1807.03819.

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

@misc{dehghani2018universal,
  title = {{Universal Transformers}},
  author = {Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit and Łukasz Kaiser},
  year = {2018},
  doi = {10.48550/arxiv.1807.03819},
  eprint = {1807.03819},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1807.03819}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dehghani-2018-universal-transformers/

References

35 references, from the paper's own bibliography.

  1. Karim Ahmed, Nitish Shirish Keskar, and Richard Socher. Weighted transformer network for machine translation. arXiv preprint arXiv:1711.02132, 2017. OpenAlex ↗ · Scholar ↗
  2. Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. URL http://arxiv.org/abs/1607.06450. OpenAlex ↗ · Scholar ↗
  3. Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. URL http://arxiv.org/abs/1409.0473. our card
  4. Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. URL http://arxiv.org/abs/1406.1078. our card
  5. Francois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. OpenAlex ↗ · Scholar ↗
  6. Zewei Chu, Hai Wang, Kevin Gimpel, and David McAllester. Broad context language modeling as reading comprehension. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, volume 2, pp. 52–57, 2017. OpenAlex ↗ · Scholar ↗
  7. Bhuwan Dhingra, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Linguistic knowledge as memory for recurrent neural networks. arXiv preprint arXiv:1703.02620, 2017. OpenAlex ↗ · Scholar ↗
  8. Bhuwan Dhingra, Qiao Jin, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Neural models for reasoning over multiple mentions using coreference. arXiv preprint arXiv:1804.05922, 2018. our card
  9. Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. CoRR, abs/1705.03122, 2017. URL http://arxiv.org/abs/1705.03122. our card
  10. Edouard Grave, Armand Joulin, and Nicolas Usunier. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016. our card
  11. Alex Graves. Generating sequences with recurrent neural networks. CoRR, abs/1308.0850, 2013. URL http://arxiv.org/abs/1308.0850. our card
  12. Alex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016. our card
  13. Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. CoRR, abs/1410.5401, 2014. URL http://arxiv.org/abs/1410.5401. OpenAlex ↗ · Scholar ↗
  14. Caglar Gulcehre, Misha Denil, Mateusz Malinowski, Ali Razavi, Razvan Pascanu, Karl Moritz Hermann, Peter Battaglia, Victor Bapst, David Raposo, Adam Santoro, et al. Hyperbolic attention networks. arXiv preprint arXiv:1805.09786, 2018. OpenAlex ↗ · Scholar ↗
  15. Mikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. arXiv preprint arXiv:1612.03969, 2016. our card
  16. Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies. A Field Guide to Dynamical Recurrent Neural Networks, 2003. OpenAlex ↗ · Scholar ↗
  17. A. Joulin and T. Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Advances in Neural Information Processing Systems, (NIPS), 2015. OpenAlex ↗ · Scholar ↗
  18. Łukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016. URL https://arxiv.org/abs/1511.08228. OpenAlex ↗ · Scholar ↗
  19. Łukasz Kaiser, Aidan N. Gomez, and Francois Chollet. Depthwise separable convolutions for neural machine translation. CoRR, abs/1706.03059, 2017. URL http://arxiv.org/abs/1706.03059. our card
  20. Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In International Conference on Machine Learning, pp. 1378–1387, 2016. our card
  21. Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. our card
  22. Tal Linzen, Emmanuel Dupoux, and Yoav Goldberg. Assessing the ability of lstms to learn syntax-sensitive dependencies. Transactions of the Association of Computational Linguistics, 40 (1):0 521–535, 2016. our card
  23. Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernandez. The lambada dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1525–1534, 2016. our card
  24. Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing, 2016. URL https://arxiv.org/pdf/1606.01933.pdf. OpenAlex ↗ · Scholar ↗
  25. Jack Rae, Jonathan J Hunt, Ivo Danihelka, Timothy Harley, Andrew W Senior, Gregory Wayne, Alex Graves, and Tim Lillicrap. Scaling memory-augmented neural networks with sparse reads and writes. In Advances in Neural Information Processing Systems, pp. 3621–3629, 2016. OpenAlex ↗ · Scholar ↗
  26. Minjoon Seo, Sewon Min, Ali Farhadi, and Hannaneh Hajishirzi. Query-reduction networks for question answering. arXiv preprint arXiv:1606.04582, 2016. OpenAlex ↗ · Scholar ↗
  27. Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 150 (1):0 1929–1958, 2014. our card
  28. Sainbayar Sukhbaatar, arthur szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2440–2448. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/5846-end-to-end-memory-networks.pdf. OpenAlex ↗ · Scholar ↗
  29. Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pp. 3104–3112, 2014. URL http://arxiv.org/abs/1409.3215. our card
  30. Ke Tran, Arianna Bisazza, and Christof Monz. The importance of being recurrent for modeling hierarchical structure. In Proceedings of NAACL'18, 2018. our card
  31. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. CoRR, 2017. URL http://arxiv.org/abs/1706.03762. our card
  32. Ashish Vaswani, Samy Bengio, Eugene Brevdo, Francois Chollet, Aidan N. Gomez, Stephan Gouws, Llion Jones, Łukasz Kaiser, Nal Kalchbrenner, Niki Parmar, Ryan Sepassi, Noam Shazeer, and Jakob Uszkoreit. Tensor2tensor for neural machine translation. CoRR, abs/1803.07416, 2018. our card
  33. Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merriënboer, Armand Joulin, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015. our card
  34. Dani Yogatama, Yishu Miao, Gabor Melis, Wang Ling, Adhiguna Kuncoro, Chris Dyer, and Phil Blunsom. Memory architectures in recurrent neural network language models. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=SkFqf0lAZ. OpenAlex ↗ · Scholar ↗
  35. Wojciech Zaremba and Ilya Sutskever. Learning to execute. CoRR, abs/1410.4615, 2015. URL http://arxiv.org/abs/1410.4615. OpenAlex ↗ · Scholar ↗