Elamur Research

Saturated Transformers are Constant-Depth Threshold Circuits

Paper · 2022 · William Merrill, Ashish Sabharwal and Noah A. Smith

Summary

A transformer can compare information across an entire sequence, but that does not tell us how much computation it can perform. “Saturated Transformers are Constant-Depth Threshold Circuits” studies this question through formal language recognition: deciding whether an input string belongs to a specified set. The paper connects transformers and attention to Boolean circuits, which describe computation using gates connected in layers. Its central finding concerns saturated attention, an attention rule that retains every position tied for the highest score and averages their values. With the paper’s floating-point representation and restrictions on the growth of internal values, any such transformer can be simulated within the circuit class TC⁰.

The distinction between selecting and averaging is essential. Earlier circuit-based results placed hard-attention transformers inside AC⁰, a class built from shallow networks of ordinary logical gates. Hard attention selects a single position, even when several positions receive the same score. Saturated attention can instead combine the tied positions. That small change enables a form of counting unavailable under the earlier bound. The authors demonstrate it with the majority language, whose members contain more occurrences of the binary symbol indicating membership than of the other symbol. A transformer with a single layer and a single uniform-attention head can recognize this language, which lies outside AC⁰. A training experiment also shows that shallow transformers can learn the task, although their generalization depends on positional encoding.

The upper bound requires a second distinction: how numbers are represented. If internal values can be unrestricted rational numbers and internal functions need only preserve representation size, the authors construct saturated transformers capable of recognizing arbitrary languages. This construction uses position-dependent prime numbers to pack information about the input into a rational value, followed by an unrestricted decision function. The authors present this as a warning about permissive mathematical assumptions. Their floating-point setting prevents that particular accumulation of information. They prove that each position’s vector requires only O(log n) bits for an input of length n, while an entire layer occupies O(n log n) bits.

That local size bound makes the circuit simulation possible. Functions acting on a small vector can be represented by shallow Boolean circuits, while summation and the other arithmetic needed for averaging can be handled by threshold circuits. Because the transformer has a fixed number of layers, composing these simulations preserves constant circuit depth. The result is an upper bound, instead of an exact characterization: the paper does not establish that saturated transformers recognize every language in TC⁰. It also leaves open whether the bound can be made uniform and how far the argument extends to ordinary softmax attention. Its contribution is a more informative account of attention’s computational power, together with a precise explanation of why attention rules, numerical representations, and internal function assumptions must be analyzed together.

Deep dive: Saturated Transformers are Constant-Depth Threshold Circuits

How saturated attention gives transformers counting power, and why floating-point representations place their computation within TC⁰. · about 36 minutes to read

The problem and its context

Expressive power needs a computational description

The paper begins from a question about interpretability: what kinds of structure can a neural architecture represent, and what operations can it carry out on that structure? Looking at a network’s output on familiar examples gives only a partial answer. Successful predictions can reveal useful behavior without identifying the computational mechanism responsible for it. Conversely, failure during training does not establish that the architecture lacks the required capacity.

Formal language recognition offers a controlled setting for separating these questions. A formal language is a set of strings over a finite alphabet. Recognition requires an accept-or-reject decision for every possible input string, including strings longer than those considered during a training experiment. This makes the task suitable for architectural analysis. Rather than asking whether a network performs well on a collection of examples, a theorem can ask whether a fixed architecture can implement a decision rule across all input lengths.

The authors place this work within research connecting neural networks to familiar descriptions of computation. For recurrent networks, automata have been a natural comparison. A recurrent network updates a state as it consumes successive symbols, which resembles an automaton processing a string. The paper cites earlier work on finite-precision recurrent computation, including On the Practical Computational Power of Finite Precision RNNs for Language Recognition, as part of that background.

The transformer architecture introduced in Attention Is All You Need suggests a different comparison. In the computation studied here, positions are processed through layers that can exchange information across the sequence. The architecture is not being treated as a recurrent machine consuming tokens through a single evolving state. A circuit, with many operations carried out in parallel and a limited number of successive stages, therefore provides a more direct analytical framework.

This choice concerns the transformer computation being formalized. It should not be read as a general claim that every use of transformers lacks an autoregressive component. The paper’s object is a fixed sequence-processing network used to decide language membership. Its circuit analysis follows the information flow inside that network.

Why hard attention was an incomplete starting point

The earlier circuit results considered an especially sharp attention rule. Each position assigns scores to possible sources of information, and hard attention retains only a single source. When several positions tie, a deterministic convention selects one of them. The resulting output is a selected value instead of a combination of several values.

The paper credits Hahn and the work associated with Hao, Angluin, and Frank with establishing restrictive consequences of this assumption. In the circuit perspective developed by Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexity, hard-attention computation can be bounded using AC⁰. This class permits polynomially many gates and a depth that remains bounded as input length increases. Its gates perform ordinary logical combinations with unrestricted fan-in.

An AC⁰ upper bound is meaningful because some elementary language properties cannot be recognized within that class. The paper discusses parity as an example of a basic regular-language property lying outside AC⁰. Such results let architectural theorems inherit established circuit limitations. Once a transformer has been simulated by a circuit family of the relevant kind, a known circuit impossibility result becomes an impossibility result for that transformer setting.

The difficulty is that practical attention can combine information rather than merely select it. The paper points to On the Ability and Limitations of Transformers to Recognize Formal Languages for evidence that uniform attention supports synthetic counting tasks. A head that attends evenly across a sequence can recover token proportions. A head restricted to copying a single selected position cannot perform that aggregation in the same direct way.

The authors therefore ask whether the hard-attention restriction removes a computational operation that matters in practice. If it does, the earlier bound may be correct for its assumptions while describing too narrow a setting to explain observed behavior.

Saturation preserves ties

Saturated attention changes what happens at the highest score. It gives equal weight to all positions reaching that score and zero weight elsewhere. A unique maximum produces the same result as hard attention. If every position has the same score, the head averages across the entire sequence.

This provides a connection between selection and aggregation. A saturated head can select when its scoring function distinguishes a unique position, but it can also pool information when the scoring function creates ties. The authors use this broader rule for their upper bound.

They also define a weaker variant in which every head is restricted to either hard selection or completely uniform attention. This distinction helps establish the strength of their conclusions. The constructive results need only the weaker variant, whereas the upper-bound proof covers the more general rule that averages an arbitrary set of maxima. Thus, the argument does not depend on showing that complicated tie patterns are easy to learn.

The choice is motivated by earlier work on parameter growth during transformer training. As described by the authors, that work connects increasing parameter norms with attention approaching saturated patterns. It also reports approximate saturation in pretrained systems including RoBERTa and T5. These observations motivate the abstraction; they do not make exact saturation an established property of every practical attention computation.

Why circuits need threshold gates

A Boolean circuit has input bits, internal gates, and an output. Its size counts gates. Its depth measures the longest chain of dependencies from an input to the output. A family contains a circuit for each input length.

AC⁰ uses logical gates such as AND and OR, together with access to negated input values. The gates may receive arbitrarily many inputs. TC⁰ extends the available operations with threshold gates, which test whether sufficiently many input bits satisfy a condition. Both classes describe highly parallel computation under their respective gate sets.

That distinction makes threshold circuits a natural candidate for analyzing averaging attention. Pooling values requires more than selecting a source: it can involve accumulating contributions and tracking how many sources contributed. The paper’s eventual simulation uses threshold-circuit arithmetic to perform those operations.

The circuit framework also keeps separate two resources that are easy to conflate. A network may operate on many positions simultaneously while having few sequential layers. Polynomial circuit size allows substantial parallel work. Constant depth limits how many stages of dependent work can occur. The paper investigates this combination instead of treating “powerful” and “limited” as mutually exclusive descriptions.

The method, step by step

Begin with strings, positions, and fixed architecture

The theoretical analysis fixes a transformer architecture and considers what happens as the input becomes longer. The alphabet is finite. The number of layers, the number of attention heads, and the vector dimension belong to the fixed architecture. Input length varies.

Let w denote the input string, and let n denote its length. Its symbol at position i is wᵢ. Every position receives a vector, and successive transformer layers update those vectors. The authors use a position-aware embedding function so that token identity and location can both influence the initial representation.

v₀,ᵢ = φ(wᵢ, i)

Here v₀,ᵢ is the vector at position i before any attention layer. The subscript 0 identifies the embedding stage. The function φ maps the symbol wᵢ and its position i to a vector whose coordinates use the chosen numerical datatype. Position information is therefore part of the formal input to the embedding function, rather than an unspecified extra resource.

For each layer and head, a scoring function compares the receiving position with every possible source position.

aℓ,h,i,j = sℓ,h(vℓ,i, vℓ,j)

The value aℓ,h,i,j is the attention score from receiving position i to source position j. The indices ℓ and h identify the layer and head. The function sℓ,h takes the corresponding pair of vectors as arguments. Its mathematical form is deliberately more general than a particular query-and-key parameterization.

The attention rule converts the scores for a receiving position into weights, and the head combines source vectors using those weights.

bℓ₊₁,h,i = ∑ⱼ₌₁ⁿ α(aℓ,h,i,:)ⱼ · vℓ,j

The vector bℓ₊₁,h,i is the head output. The function α is the attention rule. The colon in aℓ,h,i,: means the complete score sequence obtained by varying j, and the final subscript j selects one attention weight. The sum ranges over all n source positions. Addition and multiplication follow the semantics of the chosen datatype.

A local activation block then combines the previous vector with the outputs of the heads. This block covers the processing that, in a conventional parameterization, includes value transformations, head aggregation, and feedforward computation. The formal analysis focuses on the block’s input and output sizes instead of requiring one specific implementation.

From saturated attention to a circuit bound

The steps in order.

From saturated attention to a circuit boundStep 1: Embed tokens with their positions1. Embed tokens with their positionsStep 2: Compute attention scores in parallel2. Compute attention scores in parallelStep 3: Retain every position attaining the maximum3. Retain every position attaining the maximumStep 4: Average the retained value vectors4. Average the retained value vectorsStep 5: Bound each vector’s binary representation5. Bound each vector’s binary representationStep 6: Simulate components with shallow circuits6. Simulate components with shallow circuitsStep 7: Compose layers within a threshold circuit7. Compose layers within a threshold circuit

Make the attention rule explicit

The highest-scoring positions determine saturated attention. The authors collect them into a set.

M(a) = {i | aᵢ = maxⱼ aⱼ}

Here a is a sequence of scores, aᵢ is its score at position i, and M(a) contains every position whose score equals the maximum. The notation maxⱼ means that the maximum is taken across all positions j.

Hard attention chooses the earliest member of this set. Saturated attention instead assigns equal weight throughout the set.

ζ(a)ⱼ = 1 / |M(a)| if j ∈ M(a), and 0 otherwise

The function ζ denotes saturated attention. The expression |M(a)| is the number of maximizing positions. A position j receives a non-zero weight precisely when it belongs to M(a). All such positions receive the same weight.

This definition isolates the computational operation being added. The network is allowed to combine a collection of selected vectors through averaging. It does not retain arbitrary soft weights across all nonmaximal scores. The proof is therefore about a specific attention mechanism, even though the mechanism is motivated by behavior associated with trained transformers.

For the weaker saturated setting, a head may either perform hard selection or ignore score differences and use the uniform pattern.

υ(a)ⱼ = 1 / n

Here υ denotes uniform attention and n is the sequence length. Every position j receives the same weight. The score sequence a remains in the notation because υ is an attention function, although its output does not depend on the score values.

Uniform attention is enough for the majority construction and the rational-number universality construction. The authors thus separate the breadth needed to prove an upper bound from the simpler mechanisms sufficient to demonstrate additional power.

Specify what counts as recognition

The network must ultimately return an accept-or-reject decision. The authors define recognition through an affine classifier applied to the first position’s final vector.

W · vL,1(w) + b > 0 ⇔ w ∈ ℒ

The vector vL,1(w) is the representation at the first position after the final layer L, computed on input w. The classifier uses weights W and bias b. The language ℒ is the set of strings to be accepted. The equivalence requires the inequality to hold exactly for those strings belonging to ℒ.

This resembles the use of an initial classification position in BERT. The resemblance explains the readout convention without making the theorem a statement about BERT’s complete training or deployment behavior.

The definition also clarifies the role of distributed computation. Only one final vector is passed to the classifier, but earlier layers can use the entire sequence of vectors to compute what that vector should contain. A small final representation can hold a decision without holding a lossless account of the input.

Treat numerical representation as part of computation

The authors represent every internal value as a binary string. A datatype determines how that string is interpreted and how arithmetic is performed. This makes the amount of information stored in a value explicit.

A rational number is encoded using a sign and a pair of unsigned integers, a numerator and a denominator. The pair is stored by padding its components to equal lengths and interleaving their bits. Consequently, representation length depends on both components.

|r| = 2 max(|p|, |q|) + 1

The rational value r has numerator p and denominator q. The expressions |p| and |q| count their binary digits. The extra term accounts for the sign. The outer bars on r likewise refer to encoding length, rather than numerical magnitude.

The paper’s floating-point datatype is a restricted family of rationals: denominators must be powers of 2. Addition and multiplication remain within that family. Division uses an approximate inverse, because the exact reciprocal of a permitted value need not have a permitted denominator.

This is a mathematical datatype with variable representation length. It should not be silently identified with a fixed-width hardware format. What matters for the proof is the denominator restriction and the growth of the encoded numerator and denominator.

The difference between rationals and these floats becomes decisive when many values are added. General rational denominators can introduce independent factors. Power-of-2 denominators share a common structure, so they can be aligned without multiplying together unrelated factors. That is the property the later size lemma exploits.

Restrict growth without prescribing every function

The main results allow embedding, scoring, and activation functions to be quite general. They are constrained by size preservation.

|f(x)| ≤ c · |x|

The function f maps an encoded input x to an encoded output. The constant c does not depend on x. The inequality is required once the input is sufficiently large, as specified in the paper’s definition. Representation length may grow by a constant factor, but not arbitrarily relative to the input representation.

This is a restriction on output size, not a direct restriction on running time. A function can be difficult to compute while producing a short answer. In particular, returning a membership decision produces little output, regardless of how complicated the decision rule may be.

The distinction explains both the strength and the danger of the setting. Size preservation is broad enough to cover ordinary transformer components, but it does not by itself stop an activation block from acting as a powerful decision oracle when supplied with enough information.

The appendix justifies the assumption for fixed feedforward computations over the chosen datatype. It examines addition, multiplication, division, ReLU, and the square-root operation associated with layer normalization. A fixed composition of operations that each preserve representation size also preserves size. The number of operations must remain fixed with respect to input length.

Test an overly permissive setting with rationals

Before proving the floating-point bound, the authors examine what goes wrong with unrestricted rationals. They use a single-layer construction whose embeddings associate positions with distinct prime numbers.

φ(wᵢ, i) = 1 / pᵢ if wᵢ = 1, and 0 otherwise

The symbol pᵢ denotes the prime associated with position i. The embedding contributes its reciprocal when the token is 1 and contributes zero otherwise. Because the primes grow in a controlled way, the paper argues that this embedding respects size preservation relative to the binary encoding of the position.

The role of primes is informational. Different input positions leave distinguishable arithmetic traces. When these rational contributions are combined, the denominator can carry information about which positions contributed. An activation function allowed to decode that information and apply an arbitrary membership test can then recognize an arbitrary language.

The construction demonstrates why a short description of each initial value does not guarantee a short pooled representation. Combining many rational values may produce a denominator whose structure records contributions from across the sequence. Size-preserving local functions do not prohibit that information from arriving through the attention aggregation itself.

The authors explicitly reject a practical interpretation of this universality result. The embedding is unconventional, and the final activation is permitted to decide any language, including uncomputable ones. The construction diagnoses permissive assumptions; it does not describe a learnable feedforward network with ordinary fixed parameters.

There is also a presentational issue in the proof. Its discussion moves between a uniform-attention head and a sum of reciprocal primes. Uniform attention introduces normalization, which needs to be handled when decoding. The intended information-packing argument is clear, but the displayed sketch does not spell out every detail needed to reconcile normalization and recovery. This matters when interpreting it as an exact implementation specification.

Establish counting power with majority

The next construction returns to the restricted floating-point setting and uses a much simpler task. Majority asks whether a nonempty binary string contains more 1 symbols than 0 symbols.

maj = {w ∈ {0, 1}⁺ | #₁(w) > #₀(w)}

The set maj is the language to recognize. The notation {0, 1}⁺ restricts inputs to nonempty binary strings. The quantities #₁(w) and #₀(w) count the occurrences of the respective symbols.

Each token receives a one-hot embedding, meaning that its identity is represented by activating the corresponding coordinate. The scoring function gives every source position the same score, so the head uses uniform attention.

bᵢ = #(w) / n

The vector #(w) contains the token counts. Dividing by n gives their proportions under the averaging computation. The result bᵢ is the same at every receiving position because the attention pattern is uniform.

The activation or final readout compares the coordinates associated with the binary symbols. Their order is the same as the order of the underlying counts. Recognizing majority therefore requires aggregation and comparison, rather than preserving token order or reconstructing the string.

The authors also show how the construction fits a standard transformer parameterization. Query and key parameters can be set to 0 to make attention uniform. The transformation combining head outputs can form a coordinate containing the normalized count difference.

⟨(#₁(w) − #₀(w)) / n, 0⟩

The angle brackets denote a vector. Its first coordinate is the difference between the counts divided by input length, and its other displayed coordinate is zero. A positive first coordinate indicates majority membership.

After layer normalization, the ordering of these coordinates is preserved in the construction. A linear classifier can therefore recover the decision. This step matters because the authors are connecting the abstract mechanism to the components used in a conventional network, instead of relying solely on unrestricted activation functions.

Bound the information stored at a position

The main upper-bound argument begins with a lemma about adding floats. Suppose every value in a sequence has a binary representation of size at most z.

|∑ᵢ₌₁ⁿ vᵢ| ≤ 4cz + 2 log n + 1

The values vᵢ are floats, n is the number of values, and z bounds each input representation. The constant c captures the encoding bounds used in the proof. The bars measure the size of the encoded sum.

The important feature is how the bound depends on n. Adding more terms introduces a logarithmic contribution rather than forcing the result to retain all the terms separately. If each input already has logarithmic size in n, the sum remains logarithmic in n.

To prove this, the authors write each float using a numerator and a denominator. Since every denominator is a power of 2, the largest denominator is a common denominator for the whole sum. Each numerator can be rescaled to that denominator, and the rescaled numerators can then be added.

∑ᵢ₌₁ⁿ pᵢ · (qmax / qᵢ) ≤ n pmax qmax

Here pᵢ and qᵢ are the numerator and denominator of a summand. The quantities pmax and qmax denote the maxima used in the size argument. The expression bounds the magnitude needed for the combined numerator; the representation analysis accounts for the corresponding bit length and sign.

The shared denominator is the crucial difference from unrestricted rational arithmetic. The proof does not require preserving a separate prime factor for every source position.

The authors then apply induction across transformer layers. A token comes from a fixed alphabet, while its position can be written using O(log n) bits. Size-preserving embedding therefore produces a logarithmic-size vector. If the preceding layer’s vectors have that bound, size-preserving scoring gives logarithmic-size scores.

The attention-weight condition ensures that individual weights do not introduce uncontrolled representation growth. Products of weights and values remain size-preserving. The sum lemma bounds the aggregated head output, and the local activation block preserves the bound again.

|vℓ,i| = O(log n)

The vector vℓ,i is the representation at layer ℓ and position i. The notation O(log n) means that its binary length grows no faster than a constant multiple of the logarithm of sequence length, for the fixed architecture.

The proof therefore controls every local representation, not merely the final classifier input. That makes it possible to replace each component with a circuit operating on a bounded number of bits.

Replace local functions with shallow lookup circuits

A general finite function can be represented by a Boolean circuit constructed from its truth table. The paper uses a lemma bounding the resources required.

f : {0, 1}ᶜ → {0, 1}ᵈ

The function f receives c input bits and returns d output bits. The symbols c and d refer to fixed lengths for the particular finite function being represented.

size(f) ≤ (2ᶜ + c + 1)d

The expression size(f) bounds the number of gates in the construction. The term 2ᶜ accounts for possible input patterns, c accounts for input negations, and the remaining term supplies the final combination for an output bit. Multiplication by d covers all output bits.

The construction has depth 3. It forms the required input negations, identifies input patterns using conjunctions, and combines the relevant patterns using a disjunction. Each output bit is computed separately in parallel.

For arbitrary c, this can be an expensive representation because the truth table grows exponentially with input length. Here, however, local transformer inputs contain only O(log n) bits. The same construction then has polynomial size in n.

This step is one reason the non-uniform setting matters. The proof may choose an appropriate finite circuit for each input length without providing an efficient algorithm that generates all those circuits. It establishes representability within the circuit class, not a practical compiler for arbitrary internal functions.

Simulate averaging with threshold arithmetic

Local lookup circuits do not by themselves handle attention, because a head combines information from across the sequence. The authors therefore construct a threshold-circuit simulation of the aggregation.

For a receiving position, the circuit computes every attention score in parallel. It identifies the maximum score and masks out all nonmaximizing source values.

uᵢ,ⱼ = vⱼ if aᵢ,ⱼ ≥ aᵢ,max, and 0 otherwise

The vector uᵢ,ⱼ is the masked contribution from source j to receiver i. The score aᵢ,ⱼ is compared with the maximum aᵢ,max. Since the latter is already the maximum, satisfying the comparison means that the source is tied for that maximum.

The circuit then sums the retained vectors. A parallel mask of indicator bits records which sources were retained, allowing a second sum to count them. Dividing the retained-value sum by that count produces the saturated head output.

The arithmetic simulation again uses the power-of-2 denominator structure. It finds a common denominator, rescales numerators, adds the resulting integers, and removes shared trailing zeros where reduction is needed. The paper invokes threshold-circuit results for the relevant arithmetic operations.

Float division is defined through a truncated reciprocal.

p⁻¹ ≈ ⟨⌊2^|p| / p⌋, 2^|p|⟩

Here p is an encoded positive integer, |p| is its binary length, and the angle brackets identify the numerator and denominator of the approximate inverse. The floor symbol makes the integer division’s truncation explicit. The approximation remains within the permitted float datatype.

This definition gives the simulation a specified finite arithmetic operation to reproduce. It also makes division size-preserving and places it within the threshold-circuit arithmetic used by the proof.

Finally, the authors compose the subcircuits for embedding, attention, activation, and classification. All heads and positions within a stage can be simulated in parallel. Because the architecture has a fixed number of layers, the composition retains constant depth.

AHAT(𝔽) ⊆ TC⁰

The notation AHAT(𝔽) denotes the languages recognized by saturated transformers over the paper’s float datatype, with size-preserving internal functions. The containment places every language in that transformer class inside TC⁰. It does not assert equality.

Experiments and results

The principal results are mathematical

The paper’s main evidence consists of constructions, representation bounds, and a circuit simulation. Its empirical component is a targeted majority-language experiment. There is no broad benchmark suite comparing language-understanding systems, and the central upper bound is not estimated from performance measurements.

The theoretical results distinguish attention rules and numerical representations. Earlier hard-attention work supplies the AC⁰ upper bound. The majority construction shows that allowing uniform averaging is sufficient to escape that limitation. The float representation theorem then places saturated-attention recognition within TC⁰.

These statements answer different questions. The majority construction supplies a witness: a particular language outside AC⁰ that the architecture can recognize. The TC⁰ theorem supplies a ceiling: no language recognized under the stated assumptions can lie outside that circuit class. The paper does not close the gap by giving a transformer construction for every TC⁰ language.

The rational-valued construction serves a different purpose again. It shows that size preservation alone cannot yield the desired restricted characterization when the datatype permits more elaborate arithmetic encodings. Its conclusion concerns the entire permissive formal setting, including the allowed internal decision functions.

The only directly stated numerical circuit-depth comparison available for a chart concerns the generic finite-function lemma and its logarithmic-input application. The following chart records those proof bounds. It is not an empirical accuracy comparison.

Local-function simulation, circuit-depth upper bounds

The finite-function construction remains shallow when applied to logarithmic-size transformer components.

Local-function simulation, circuit-depth upper boundsGeneral finite Boolean function: 3General finite Boolean function3Size-preserving local transformer function (this paper): 3Size-preserving local transformerfunction (this paper)3
The numbers
System or settingcircuit depth
General finite Boolean function3
Size-preserving local transformer function (this paper)3

The equal depths should not obscure the change in size. The unrestricted finite-function construction can have exponentially many truth-table terms in its input length. The transformer application is useful because its local inputs have logarithmic size relative to the full sequence. That restriction is what makes the circuit size polynomial in sequence length.

The majority experiment

The empirical task asks the trained network to recognize majority on binary strings. Labels follow directly from token counts, so the experiment isolates a precise aggregation behavior. It does not require a natural-language corpus or an externally annotated dataset.

The network has 1 layer. The theoretical result shows that a single uniform head is sufficient, while the training experiment asks whether a shallow transformer can acquire suitable behavior instead of being manually assigned the constructive parameters.

Training lengths are sampled from a binomial distribution with n=100. Evaluation varies that distribution’s parameter, with n ranging from 100 to 500. The figure caption specifies that its horizontal axis uses mean length n/2. The parameter n in that description should therefore not be mistaken for a statement that every evaluated string has length n.

This setup tests generalization to longer strings after training under a shorter-length distribution. It is relevant because formal recognition is defined across lengths, while learning takes place on finite examples. A network might fit the training distribution without acquiring the length-independent counting behavior exhibited by the theoretical construction.

The paper compares three positional-encoding choices. One supplies no positional information. Another learns an embedding for each position. The remaining choice uses the sinusoidal scheme associated with the original transformer architecture. These conditions vary how location enters the representation while keeping the target language unchanged.

The reported ordering is clear. Omitting positional embeddings yields the strongest generalization, learned embeddings come next, and sinusoidal embeddings are least favorable in this comparison. The authors interpret the sinusoidal condition as imposing an unhelpful inductive bias for majority.

The paper’s prose and caption do not state numerical accuracy values for the curves. Exact percentages, endpoint scores, and numerical gaps cannot therefore be reported from those statements. The empirical conclusion is qualitative: shallow transformers can learn this task, and the positional-encoding choice materially affects extrapolation to longer inputs.

What the experiment establishes

The experiment supports the relevance of the constructive result. Majority is not merely recognized by an abstract machine whose local functions have been allowed unusual computational freedom. The authors show both a conventional parameterization implementing the mechanism and learned behavior consistent with the task’s being accessible in practice.

That support has a specific scope. The experiment does not train hard-attention and saturated-attention systems across a range of circuit-separating languages. It also does not measure whether learned heads match the ideal uniform pattern exactly. Its target is narrower: demonstrate learned majority recognition and examine how positional information influences length generalization.

The result consequently bears most directly on the adequacy of hard attention as an abstraction. If a practical transformer learns a language excluded by an AC⁰ bound for hard attention, the bound cannot simply be transferred to that practical computation. An assumption in the abstraction has removed behavior that the practical architecture can exhibit.

The same evidence does not empirically verify the TC⁰ ceiling. No finite evaluation can establish an all-length upper bound on the languages an architecture recognizes. That conclusion comes from the representation and simulation proofs, not from the plotted generalization curves.

Representation size as a substantive result

The O(log n) bound is more than an intermediate technical convenience. It describes what can be stored at an individual position. A vector can carry a count or a position-sized pointer without having enough capacity to preserve an arbitrary large combinatorial object in full.

The full layer has O(n log n) bits across its positions. This permits a different kind of representation: structure can be distributed. The authors illustrate this with a tree representation in which a position stores its token, its own index, and a parent pointer. Each index-sized component remains logarithmic in sequence length.

This observation separates local compression from global representational capacity. A final classification vector need not contain an entire tree. Earlier positions may collectively encode relationships, while attention and local computation extract the information required for the decision.

The memory result nevertheless does not prove that any desired computation over such a distributed structure is available at fixed depth. Storage capacity and computational accessibility remain distinct. The circuit theorem constrains the operations that can be completed through the architecture’s bounded sequence of layers.

What the ablations show

Positional encoding is the direct controlled comparison

The paper’s empirical controlled comparison changes positional encoding while retaining the majority task. It does not present a broad component-removal study or a systematic search over architectural variants.

This comparison is informative because majority depends on token counts, not their order. A successful decision rule can ignore where occurrences appear. Position information is therefore unnecessary for the constructive solution, even though it may influence what training discovers.

The condition without positional embeddings generalizes best. That result is consistent with the task’s symmetry: removing position-specific features makes it harder for the learned computation to depend on irrelevant location patterns. The paper reports the performance ordering, while this symmetry-based explanation describes why that ordering is meaningful for the task.

Learned positional embeddings perform less well than omitting positional information but better than the sinusoidal condition. The result does not show that learned embeddings are generally superior. It concerns a counting language under the stated training and evaluation distributions.

The authors connect their observation to Self-Attention Networks Can Process Bounded Hierarchical Languages, which they describe as also finding that positional encoding affects generalization to longer formal-language inputs. The connection is about sensitivity to representation choices, rather than a claim that majority and hierarchical-language recognition use the same mechanism.

Attention comparisons are established by construction

The theoretical comparison between hard and saturated attention is not a training ablation. The authors do not remove averaging from a trained majority recognizer and report an accuracy decline. They instead compare formal possibilities under different attention definitions.

Hard attention is bounded by AC⁰ through earlier results. Uniform averaging supports the majority construction. Since majority is outside AC⁰, the two settings differ in expressive power under the relevant assumptions.

The weak-versus-strong saturated distinction makes this comparison especially useful. The lower-bound witness uses a fully uniform head, so arbitrary partial tie sets are unnecessary to demonstrate the extra capability. The upper bound nevertheless covers those richer tie sets.

This produces a carefully matched pair of statements. A simple permitted mechanism already defeats the old restriction, while a theorem controls the broader attention family. The paper avoids relying on a highly specialized tie pattern to establish the basic separation.

Datatype comparisons expose information accumulation

The rational-versus-float analysis also functions as a controlled theoretical comparison. Both settings permit size-preserving internal functions and saturated aggregation. Changing the arithmetic representation changes what the aggregation can store.

In the rational construction, arithmetic structure can encode the input across denominator factors. In the float analysis, the power-of-2 restriction yields a compact representation of sums. The resulting difference is therefore not adequately described as one setting having “more precision” in a casual numerical sense. The arrangement of representable numbers matters.

This comparison explains why an expressivity statement must name its arithmetic assumptions. Allowing exact rational values is not an innocuous mathematical convenience when internal values are used as information stores. Likewise, treating all finite arithmetic as interchangeable can conceal the property on which a proof depends.

The resource-bounded analysis changes a different assumption

The appendix explores what happens when positional embeddings may take time linear in the full sequence length. This permits an embedding component involving a position-dependent power of 2. Such a component can require a representation growing much faster than the binary encoding of the position.

Pooling can then assemble a representation of the complete input, after which an activation function applies a decision procedure. The paper describes the resulting computational capacity in terms of the time allowed to internal functions.

This does not contradict the main logarithmic representation theorem. The stronger embedding allowance changes the conditions. The comparison shows why “computed in linear time” must specify the quantity with respect to which time is measured. Linear time in total sequence length permits much more output than linear time in a position’s short binary encoding.

The resource-bounded construction therefore complements the datatype analysis. Both identify ways in which a seemingly modest local assumption can allow an entire input to become available to a final decision function.

Limitations

Author-stated: saturated attention is an abstraction

The authors motivate saturated attention through observed training behavior and earlier parameter-growth analysis. They do not prove that ordinary softmax computation is exactly equivalent to it.

The limitation is technical as well as conceptual. Their representation argument uses an elementwise size condition on attention weights. Softmax includes exponentiation, which is not guaranteed to satisfy the condition required by the proof. The authors explicitly identify this obstacle to extending their method.

As a consequence, the TC⁰ result belongs to the specified saturated-attention setting. Approximate saturation in practical networks makes that setting interesting, but approximation alone does not establish an exact language-recognition theorem for those networks.

A careful interpretation also distinguishes numerical closeness from decision equivalence. Two attention patterns can be close while producing different classifier decisions on inputs near a boundary. The paper does not supply a robustness theorem converting approximate saturation into identical recognition behavior for all lengths.

Author-stated: the circuit bound is non-uniform

The circuit classes used for the main result are non-uniform. For every input length, the proof may choose a separate circuit. It does not require an efficiently computable relationship between circuits for different lengths.

The paper explains why this matters. Non-uniform families can recognize some uncomputable languages. Uniformity conditions restrict how the family is generated and connect the resulting classes more closely to familiar computational resources.

The authors leave open whether saturated transformers fall within uniform TC⁰. They note that transformers appear to possess an intuitive kind of uniformity, but their proof does not establish the required formal result.

This prevents a direct substitution of familiar time-complexity conclusions for the theorem they actually prove. The paper discusses containments involving uniform circuit classes, log-space computation, and polynomial time, but the main transformer containment remains non-uniform.

Author-stated: the universal constructions are unrealistic

The rational-valued universality result permits internal functions that ordinary fixed feedforward networks cannot implement. The authors explicitly mention both the unusual prime-based encoding and the unrestricted activation decision rule.

They also describe the resource-bounded embedding allowance as unrealistic. Computing a position-aware embedding in time linear in the full input length can generate representations that defeat the information restriction used in the main analysis.

These constructions are therefore boundary tests for formal assumptions. They reveal how universality can arise when a representation packs the input and an activation is allowed to solve the remaining problem. They do not demonstrate a practical training procedure for arbitrary language recognition.

The authors suggest that stronger restrictions on rational-valued internal functions might support more informative bounds. They do not pursue that alternative characterization in the paper.

Careful-reader limit: the upper bound is not an equality

The paper proves containment in TC⁰ and gives majority as a language outside AC⁰ that saturated transformers can recognize. It does not show that all of TC⁰ is reachable.

This distinction matters when interpreting the title. Saying that a transformer can be simulated by a threshold circuit identifies a sufficient circuit class for reproducing its computation. It does not establish that the transformer and the circuit class have identical expressive power.

The lower-bound construction also should not be expanded into an inventory of recognized languages. The fact that TC⁰ contains parity does not, on its own, give a saturated transformer construction for parity. Membership in an upper-bound class is permission from the bound, not an existence proof.

Likewise, the paper discusses unresolved relationships between circuit classes. Those open relationships limit what can be concluded about particular language families from the containment alone. A precise theorem can still leave substantial architectural questions unanswered.

Careful-reader limit: fixed depth is essential

The architecture is held fixed while input length increases. Its layer count does not grow with n. This assumption is what allows component simulations to be composed without producing a circuit whose depth increases with the input.

The theorem consequently does not analyze a procedure that repeatedly invokes a transformer, adds recurrence, or expands the number of processing stages with problem size. Such procedures change the computational object.

This is especially important for reasoning tasks described as requiring successive dependent steps. The paper bounds a fixed stack’s computation under its assumptions. It does not establish a bound for every larger system that might use such a stack as one component.

The same caution applies to the number of heads and vector dimension. They are architecture parameters, not unrestricted resources that can be enlarged as the input grows while retaining the identical theorem statement.

Careful-reader limit: the float abstraction needs its own interpretation

The paper’s floats are rationals with power-of-2 denominators, encoded using explicit binary numerator and denominator strings. Their representation length is allowed to vary. This differs from simply assuming that every scalar occupies a fixed machine word.

The O(log n) theorem should therefore be read within that encoding. It is not a claim that a particular deployed implementation dynamically allocates precisely that much hardware storage to each position. Nor does it estimate memory usage in bytes for a practical network.

Division is approximate, and the appendix defines it through a truncated inverse. That choice makes the arithmetic finite and supports the size and circuit arguments. It also means that identities involving exact rational division must be handled carefully.

The majority construction is persuasive as a counting mechanism because applying a common positive scaling preserves the comparison between counts. More elaborate recovery constructions require greater care: exact input reconstruction can depend on normalization, reduction, and truncation details.

Careful-reader limit: some auxiliary statements need reconciliation

The resource-bounded section describes a correspondence between transformer capacity and the complexity allotted to internal functions. Its formal presentation is not entirely consistent. The displayed theorem states a containment, while the surrounding discussion and proof aim at a stronger characterization.

The proof also moves between numerator extraction, pooled encodings, and recovery of the original input under rational and approximate float arithmetic. Those steps require conventions to be tracked carefully. The exposition should not be treated as a fully worked implementation specification for exact reconstruction.

These issues are distinct from the main threshold-circuit proof strategy. The central float result uses local representation bounds and arithmetic simulation, instead of depending on the resource-bounded universality construction. Keeping the claims separate avoids allowing an auxiliary presentation problem either to invalidate unrelated arguments or to disappear behind the main theorem.

Careful-reader limit: the empirical evidence is narrow

The majority experiment addresses a synthetic recognition task with a shallow network and a positional-encoding comparison. It does not measure broad linguistic competence or establish how often trained attention heads implement counting in other settings.

The stated experimental description also leaves out details needed for a complete replication account. It does not give numerical curve values, training-set counts, optimization settings, or a run-by-run variability analysis in the text available for the experiment. Those quantities should not be inferred from the qualitative result.

Length generalization over the reported evaluation range is evidence of useful extrapolation. It remains different from the theorem’s requirement of correct recognition across all input lengths. A finite experiment cannot replace that universal quantification.

Finally, the distributed-tree observation is a memory argument. It shows how a tree-shaped object can fit across position vectors within the local size bound. It does not prove that a fixed-depth saturated transformer can build, traverse, or decide every property of that representation.

What came after

A continuing distinction between storage and computation

The later citing works span length generalization, retrieval, graph computation, and reasoning. Their titles show that the questions surrounding transformer capacity continued to develop along several paths. The citing-work information identifies these connections but does not supply their technical arguments or results. It therefore supports a map of subsequent topics, instead of a detailed account of how each theorem was reused.

A useful starting point is the distinction this paper makes between holding information and computing with it. A transformer layer can distribute information across many positions, while each local vector remains small. Attention provides access to those positions, but a fixed number of layers constrains the stages of dependent computation.

That distinction provides context for several later research directions. It should not be mistaken for evidence that every citing work adopts the same datatype, attention definition, or circuit simulation.

Length generalization after a constructive capacity result

What Algorithms can Transformers Learn? A Study in Length Generalization takes up the relationship between learned algorithms and behavior on longer inputs. Its stated subject connects directly to the gap visible in the majority experiment: an architecture may contain a length-independent solution, while training and representation choices determine whether that solution is acquired.

The saturated-transformer paper makes this gap unusually concrete. It provides a hand-specified averaging construction and then reports different generalization behavior across positional encodings. That combination establishes why expressive capacity alone is insufficient to explain learning outcomes.

Improving Length-Generalization in Transformers via Task Hinting addresses length generalization through task hinting, as its title states. This places it on the learning side of the distinction. The earlier circuit bound concerns what computations fit within an architectural setting; a hinting approach concerns how task information may influence the computation learned.

The citing-work information does not specify what hints were used or what improvements were measured. It also does not establish that either later work directly extends the majority construction. Their connection can be stated at the level of the problem: explaining and improving behavior beyond the lengths encountered during training.

Copying and retrieval as architectural tests

Repeat After Me: Transformers are Better than State Space Models at Copying turns to copying and an architectural comparison named in its title. Copying is relevant to the earlier paper’s representational discussion because preserving sequence information raises a different demand from returning a short membership decision.

The saturated-transformer result does not require every input detail to pass through a single vector. Its distributed-state account leaves room for information to remain associated with positions. This supplies useful conceptual context for copying questions, while the later title alone does not reveal the proof or empirical conditions behind its comparison.

Zoology: Measuring and Improving Recall in Efficient Language Models concerns recall in efficient architectures. Its topic relates to another distinction emphasized by the circuit analysis: information can be present in a distributed representation without every desired access pattern being equally available.

The title establishes a focus on measuring and improving recall. It does not identify which recall tasks, mechanisms, or quantitative results are involved. Those details cannot be supplied merely because the work cites an attention-capacity theorem.

RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrieval explicitly centers an architectural comparison on in-context retrieval. This continues the broader contrast between a recurrent state and a sequence of accessible position representations.

The earlier paper’s contribution to that context is precise: local vectors have a bounded representation size, but the network’s full state is distributed. It does not itself establish the later work’s retrieval bottleneck. The citation identifies an intellectual connection without supplying the later argument.

Graph computation and successive reasoning

Understanding Transformer Reasoning Capabilities via Graph Algorithms uses graph algorithms as the subject of a transformer-capacity analysis. Graphs make the relation between representation and computation especially visible: encoding connections is different from carrying out a sequence of dependent operations over them.

The earlier paper already illustrates distributed structure with parent pointers. Its threshold-circuit result also directs attention towards depth as a resource. These are relevant points of contact with a graph-algorithm perspective, but the citing-work information does not specify which algorithms were analyzed or which bounds were obtained.

Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought names chain-of-thought and formal reasoning as its focus. This extends the surrounding discussion towards computations expressed through successive reasoning steps.

The saturated-transformer theorem concerns a fixed sequence-processing computation. Any comparison with a process that generates and then consumes additional reasoning text must keep that difference in view. The later work’s title does not establish a specific extension or contradiction of the TC⁰ bound, and no such claim follows from the citation alone.

Different meanings of saturation

Why do small language models underperform? Studying Language Model Saturation via the Softmax Bottleneck also uses the word “saturation,” but its title connects that word to the softmax bottleneck.

In the paper examined here, saturation has a specific attention definition: uniform weighting over positions attaining the maximum score. A shared word does not establish that the later work studies the same limiting operation or uses the same computational assumptions.

The later title supports identifying a separate investigation of underperformance and a softmax-related bottleneck. It does not justify importing its meaning of saturation into the earlier theorem, or treating the earlier theorem as a direct explanation of the later work’s findings.

Broader accounts of depth and added computation

Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidth names several dimensions that are central to interpreting the saturated-transformer result. Depth controls stages of dependent computation. Exactness concerns the arithmetic and decision semantics. Bandwidth concerns how much information can move or be made available.

The earlier proof demonstrates why these resources should be separated. A large distributed state does not remove the depth restriction, and a permissive numerical representation can alter what aggregation preserves. The survey title indicates a broader treatment of these dimensions, although its specific synthesis and conclusions are not described in the citing-work information.

Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scaling addresses added recurrence, memory, and computation at test time. These are especially relevant when considering what lies outside a fixed-depth theorem’s scope.

The saturated-transformer bound does not evaluate such extensions. It establishes a result for an architecture whose processing depth remains fixed as input length changes. A system that adds repeated processing or expands its available computation poses a new formal question.

Across these later topics, the durable contribution is the precision of the original question. Attention’s computational role cannot be understood from aggregation alone, numerical capacity alone, or layer count alone. The paper gives a setting in which those assumptions are explicit and proves what follows from their combination, while leaving subsequent work to investigate learning, retrieval, richer tasks, and additional computational resources.

Cite

Cite as William Merrill, Ashish Sabharwal and Noah A. Smith. 2022. Saturated Transformers are Constant-Depth Threshold Circuits.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1162/tacl_a_00493 · arXiv 2106.16213

@misc{merrill2022saturated,
  title = {{Saturated Transformers are Constant-Depth Threshold Circuits}},
  author = {William Merrill, Ashish Sabharwal and Noah A. Smith},
  year = {2022},
  doi = {10.1162/tacl\_a\_00493},
  eprint = {2106.16213},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1162/tacl_a_00493}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/merrill-2022-saturated-transformers-are-constant-depth/

References

26 references, from the paper's own bibliography.

  1. Afra Alishahi, Yonatan Belinkov, Grzegorz Chrupała, Dieuwke Hupkes, Yuval Pinter, and Hassan Sajjad, editors. 2020. Proceedings of the Third BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (https://www.aclweb.org/anthology/2020.blackboxnlp-1.0). Association for Computational Linguistics, Online. OpenAlex ↗ · Scholar ↗
  2. Sanjeev Arora and Boaz Barak. 2009. Computational Complexity: A Modern Approach (https://books.google.com/books/about/Computational_Complexity.html?id=8Wjqvsoo48MC). Cambridge University Press. OpenAlex ↗ · Scholar ↗
  3. Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. 2016. Layer normalization. ArXiv, abs/1607.06450. OpenAlex ↗ · Scholar ↗
  4. Satwik Bhattamishra, Kabir Ahuja, and Navin Goyal. 2020. On the ability and limitations of transformers to recognize formal languages (https://doi.org/10.18653/v1/2020.emnlp-main.576). In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 7096–7116, Online. Association for Computational Linguistics. our card
  5. Liliana Cojocaru. 2016. Advanced Studies on the Complexity of Formal Languages (https://trepo.tuni.fi/bitstream/handle/10024/99577/978-952-03-0184-2.pdf). Ph.D. thesis, University of Tampere. OpenAlex ↗ · Scholar ↗
  6. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding (https://doi.org/10.18653/v1/N19-1423). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. our card
  7. Peter van Emde Boas. 1991. Machine Models and Simulations, chapter 1. MIT Press, Cambridge, MA, USA. OpenAlex ↗ · Scholar ↗
  8. Merrick Furst, James B. Saxe, and Michael Sipser. 1981. Parity, circuits, and the polynomial-time hierarchy (https://doi.org/10.1109/SFCS.1981.35). In Proceedings of the 22nd Annual Symposium on Foundations of Computer Science, SFCS '81, page 260–270, USA. IEEE Computer Society. OpenAlex ↗ · Scholar ↗
  9. Larry J Goldstein. 1973. A history of the prime number theorem. The American Mathematical Monthly, 80(6):599–615. OpenAlex ↗ · Scholar ↗
  10. Michael Hahn. 2020. Theoretical limitations of self-attention in neural sequence models (https://www.aclweb.org/anthology/2020.tacl-1.11). Transactions of the Association for Computational Linguistics, 8:156–171. OpenAlex ↗ · Scholar ↗
  11. Yiding Hao, Dana Angluin, and Robert Frank. 2022. Hard attention transformers and constant depth circuits. Unpublished manuscript. OpenAlex ↗ · Scholar ↗
  12. John Hewitt, Michael Hahn, Surya Ganguli, Percy Liang, and Christopher D. Manning. 2020. RNNs can generate bounded hierarchical languages with optimal memory (https://doi.org/10.18653/v1/2020.emnlp-main.156). In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1978–2010, Online. Association for Computational Linguistics. our card
  13. David S. Johnson. 1991. A Catalog of Complexity Classes, chapter 2. MIT Press, Cambridge, MA, USA. OpenAlex ↗ · Scholar ↗
  14. Neeraj Kayal. 2015. Lecture notes for topics in complexity theory (https://www.csa.iisc.ac.in/~chandan/courses/arithmetic_circuits/notes/lec5.pdf). OpenAlex ↗ · Scholar ↗
  15. Meena Mahajan. 2007. Polynomial size log depth circuits: Between $\NC^1$ and $\AC^1$. (https://www.uni-ulm.de/fileadmin/website_uni_ulm/iui.inst.190/Mitarbeiter/toran/beatcs/column91.ps) Bulletin of the EATCS, 91:42–56. OpenAlex ↗ · Scholar ↗
  16. William Merrill. 2019. Sequential neural networks as automata (https://doi.org/10.18653/v1/W19-3901). In Proceedings of the Workshop on Deep Learning and Formal Languages: Building Bridges, pages 1–13, Florence. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  17. William Merrill. 2021. Formal language theory meets modern NLP (https://arxiv.org/pdf/2102.10094.pdf). ArXiv, abs/2102.10094. OpenAlex ↗ · Scholar ↗
  18. William Merrill, Vivek Ramanujan, Yoav Goldberg, Roy Schwartz, and Noah A. Smith. 2021. Effects of parameter norm growth during transformer training: Inductive bias from gradient descent (https://doi.org/10.18653/v1/2021.emnlp-main.133). In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 1766–1781, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  19. Hao Peng, Roy Schwartz, Sam Thomson, and Noah A. Smith. 2018. Rational recurrences (https://doi.org/10.18653/v1/D18-1152). In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1203–1214, Brussels, Belgium. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  20. Jorge Pérez, Javier Marinković, and Pablo Barceló. 2019. On the Turing completeness of modern neural network architectures (https://openreview.net/forum?id=HyGBdo0qFm). In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  21. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need (https://proceedings.neurips.cc/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf). In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc. our card
  22. Gail Weiss, Yoav Goldberg, and Eran Yahav. 2018. On the practical computational power of finite precision RNNs for language recognition (https://doi.org/10.18653/v1/P18-2117). In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 740–745, Melbourne, Australia. Association for Computational Linguistics. our card
  23. Gail Weiss, Yoav Goldberg, and Eran Yahav. 2021. Thinking like transformers (https://arxiv.org/pdf/2106.06981.pdf). ArXiv, abs/2106.06981. OpenAlex ↗ · Scholar ↗
  24. Andrew C.-C. Yao. 1990. On ACC and threshold circuits (https://doi.org/10.1109/FSCS.1990.89583). In Proceedings of the 31st Annual Symposium on Foundations of Computer Science, pages 619–627 vol.2. OpenAlex ↗ · Scholar ↗
  25. Shunyu Yao, Binghui Peng, Christos Papadimitriou, and Karthik Narasimhan. 2021. Self-attention networks can process bounded hierarchical languages (https://doi.org/10.18653/v1/2021.acl-long.292). In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 3770–3785, Online. Association for Computational Linguistics. our card
  26. Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank Reddi, and Sanjiv Kumar. 2020. Are transformers universal approximators of sequence-to-sequence functions? (https://openreview.net/forum?id=ByxRM0Ntvr) In International Conference on Learning Representations. our card