Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention
Paper · 2021 · Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty et al.
Summary
Reading a longer document should give a language system more evidence, but ordinary Transformer attention makes that additional evidence expensive to process. Every position is compared with every position, creating a matrix whose size grows quadratically with the input length. Nyströmformer investigates whether a much smaller collection of representative vectors can support nearly the same computation. Its objective is to retain useful communication across an entire sequence while reducing the memory and arithmetic required by attention.
The authors develop their solution from Nyström approximation, a numerical approach that reconstructs a large matrix through selected representatives. Attention presents an obstacle to a straightforward application: its weights are normalized across complete rows. Obtaining even a restricted collection of normalized columns therefore depends on scores outside those columns. Nyströmformer changes where the approximation begins. It averages groups of query and key vectors into landmarks, constructs smaller softmax matrices from these vectors, and connects the matrices through a pseudoinverse. The resulting factors can operate on the values without assembling the complete attention matrix.
Several implementation choices make this construction practical. Contiguous segment averages replace an iterative clustering procedure for landmark selection. A matrix-multiplication iteration approximates the pseudoinverse, avoiding a singular value decomposition during the main calculation. A parallel depthwise convolution processes the values and is intended to support training. With the landmark count and feature dimensions fixed, the attention calculation has linear dependence on sequence length. Increasing the landmark count remains costly, so this is a statement about scaling along a particular dimension, rather than a claim that approximation capacity is free.
The experiments examine language pretraining, supervised language tasks, and longer-sequence classification. Within BERT-based architectures, the authors report pretraining behavior close to ordinary attention and competitive validation performance after task-specific adaptation. Their Long Range Arena comparison reports an average accuracy advantage of +0.18% over standard attention. The reported advantages over Reformer and Linformer are +3.91% and +3.36%; the comparison with Performer gives +5.32%. A separate attention-module benchmark measures runtime and memory on a Nvidia 1080Ti. At length 8192, the paper reports a 3× speedup relative to Longformer, alongside memory savings.
These findings make Nyströmformer a concrete contribution to efficient architectures: the paper supplies an executable organization of the computation, rather than only an appealing approximation formula. Its evidence nevertheless has boundaries. Classification results do not establish preservation of every attention behavior, a visual resemblance between attention patterns is not a general error bound, and the exactness argument assumes much stronger landmark coverage than practical segment averaging provides. The demonstrated achievement is a useful resource–quality balance in the tested configurations.
Interesting ideas
Inspect the cost of obtaining the sample. A small sampled object can conceal a large dependency. For attention, selected normalized entries still require normalization information from an entire row. The authors recognize that reducing the reconstruction size would accomplish little if preparing its inputs retained the original expense. This reasoning applies to statistical summaries, database sampling, graph extraction, and approximate inference: resource analysis should begin with how evidence becomes available, rather than with the final array’s dimensions.
Make representative selection part of the budget. A sophisticated summary can cost enough to undermine the calculation it is meant to accelerate. Segment averaging avoids repeated clustering updates and fits naturally into a sequence scan. Its regularity also makes execution predictable. Similar reasoning can guide repeated corpus aggregation or graph summarization, provided the application checks whether the inexpensive representatives retain the distinctions that matter. Simplicity is valuable when its information loss is measured.
Match numerical procedures to the hardware. The pseudoinverse has a familiar mathematical definition, but that does not determine the best implementation. Nyströmformer uses an iterative polynomial calculation because its matrix products suit the execution setting better than the decomposition considered by the authors. This is a transferable lesson for GPU computation: the useful algorithm is the mathematical operation together with the route by which a machine evaluates it. Convergence conditions and finite-iteration error remain part of that choice.
Keep compressed structure intact until the output. A factored expression saves memory only when execution respects the factorization. Multiplying the factors into a dense sequence-by-sequence matrix would defeat the purpose. The paper instead combines smaller intermediate products with the values. This idea extends to low-rank statistics, compressed graph operators, and batched algebra: multiplication order determines the objects that exist in memory, making it a substantive algorithmic decision.
Give a compressed operation a complementary route. The architecture places a depthwise convolution beside the landmark calculation. That route handles values through a different computational structure, while the approximation supplies broader interaction. The authors introduce the connection to help learning, but do not separately establish its contribution. Elsewhere, the reusable hypothesis is that a compact global mechanism may benefit from a simpler parallel operation. Its value should be tested by removing or changing that route.
Separate fidelity from usefulness. A numerical approximation can look convincing while changing downstream decisions, and similar task accuracy can coexist with different internal behavior. Nyströmformer offers an attention illustration, pretraining comparisons, and supervised evaluations, each addressing a different question. This separation is useful whenever a system component is replaced: measure resemblance to the reference, then measure the consequences for actual tasks, without treating either measurement as a substitute for the other.
Compare under shared conditions. The long-range experiments place attention alternatives inside a common architecture and implementation framework. The resource benchmark likewise uses a shared device and specified input shapes. Such controls make the comparison more interpretable, even though they cannot erase every implementation choice. The broader lesson for evaluation is to identify the unit being compared, hold its surroundings as stable as possible, and disclose deviations from earlier experimental settings.
Deep dive: Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention
How Nyströmformer uses landmark vectors to reduce attention costs, how its approximation works, and what the experiments establish. · about 38 minutes to read
How Mova uses it
Mova is a transparent language system implemented in Rust, with explicit linguistic rules, graph knowledge, and bounded operational interfaces. Its CPU language core is different from the neural attention architecture studied here. A separate GPU parser does use a Transformer, making attention approximation a conceivable experimental extension, but the available implementation evidence does not establish a Nyströmformer integration. The connections below are proposals assessed against that evidence. Their status marks describe the apparent relationship to existing mechanisms; they are not application receipts or measured outcomes.
Idea: Account for the work needed to obtain a sample. Where: “Nyström Method for Matrix Approximation,” discussion of softmax normalization. Area: data processing and complexity. Mova: частково є (tools/dictindex/README.md, source streaming and bounded-import limits). Mova already documents cases where resuming an operation still requires reading and hashing a source. The paper suggests making such upstream dependencies explicit when evaluating new graph or corpus summaries. A small output should not receive a cheap-cost label unless its acquisition path is also bounded.
Idea: Treat representative construction as part of the algorithm. Where: “Linearized Self-Attention via Nyström Method,” landmark-selection discussion. Area: data summarization. Mova: частково є (world/src/knowledge/retention/mice.rs, shared document graph and bounded specialist work). Existing mice reuse a common representation instead of rebuilding independent readings. A related experiment could compare inexpensive summaries of that graph with more elaborate selection procedures. The transfer is about budgeting representation work; segment means themselves are not established as a suitable summary for symbolic facts.
Idea: Select numerical routines for their execution environment. Where: “Linearized Self-Attention via Nyström Method,” pseudoinverse computation. Area: numerical computing. Mova: частково є (README.md and docs/architecture.md, distinct CPU and GPU execution paths). Mova already distinguishes reference calculations from GPU approximants. Any experimental inverse or matrix routine could similarly declare its algorithm, stopping rule, and agreement with a reference. The paper supplies a specific example of replacing a decomposition with multiplication-based iteration, without supplying Rust performance evidence.
Idea: Preserve factored execution. Where: “Linearized Self-Attention via Nyström Method,” complexity analysis. Area: memory management and algebra. Mova: нове. A proposed numerical operator could expose the intended multiplication order and reject an execution plan that materializes a dense pairwise intermediate. The available evidence does not establish this particular mechanism. Why Mova: it could make memory promises reviewable before a bounded worker starts an expensive calculation, especially when groupants describe an approximate operator and its resource assumptions.
Idea: Test a parallel local route beside a compressed global operation. Where: “Our Model: Nyströmformer,” architecture description. Area: architecture evaluation. Mova: нове. An experimental GPU-parser branch could compare landmark attention with and without the paper’s convolutional value connection. This is a candidate experiment, not a recommendation to change the rule-based core. Why Mova: an isolated comparison could reveal whether a promising approximation needs an additional mechanism to retain parsing quality, instead of attributing the full architecture’s result to landmarks alone.
Idea: Evaluate immediate agreement separately from task success. Where: attention-comparison figure and “Experiments.” Area: evaluation. Mova: вже є (docs/architecture.md, measured GPU approximants and separate student assessments). Mova already separates agreement with the CPU reference from assessment outcomes. Nyströmformer reinforces the need for both levels. For a parser experiment, closeness of attention arrays would remain numerical evidence, while changes in dependency structures and reader answers would determine practical consequences. No Nyström-specific agreement measurement is available.
Idea: Compare alternatives inside common surroundings. Where: “Long Range Arena (LRA) Benchmark,” implementation details. Area: experimental control. Mova: вже є (README.md, deterministic comparisons and held-out gates; docs/architecture.md, regression-gated extensions). Mova’s existing practice supports controlled comparisons rather than interpreting unrelated runs as equivalent. A new approximation should retain tokenization, training data, and assessment conditions wherever possible. The paper’s shared architecture is a useful example, while its implementation discrepancy also shows why common conditions must be documented rather than assumed.
Idea: Explore landmark attention only where sequence-wide numerical interaction already exists. Where: “Linearized Self-Attention via Nyström Method” and “Our Model: Nyströmformer.” Area: dependency parsing. Mova: нове. The plausible target is the separate GPU parser, not the perceptron CPU parser or the explicit frame reader. A prototype could replace that parser’s attention and preserve its output interface. Why Mova: this would test a concrete resource bottleneck without confusing a neural approximation with an improvement to Mova’s logical mechanisms. Integration and benefit remain unknown.
Idea: Declare the reference operator precisely. Where: “Self-Attention,” mathematical definition of the output. Area: mathematical contracts. Mova: вже є (docs/hybrid-system.md, source-bound observations and conformance profiles). Mova already requires an approximant to state which behavior it reproduces. A Nyström candidate would need to identify ordinary row-normalized attention as its numerical reference, together with supported shapes and tolerances. A successful task score would not by itself establish conformance to that operator, just as a tool receipt does not establish a proof.
Idea: Keep the assumptions behind a complexity label visible. Where: “Linearized Self-Attention via Nyström Method,” time and memory accounting. Area: resource estimation. Mova: частково є (docs/architecture.md, jobs with estimates and measured actual use; tools/twin described there). Existing tooling records prospective cost and observed execution. It could represent landmark count and feature width as explicit cost parameters rather than storing only a label such as linear. The paper’s cubic dependence on the landmark core is particularly relevant to such estimates.
Idea: Track approximation stages independently. Where: landmark construction and iterative pseudoinverse subsections. Area: numerical analysis. Mova: частково є (README.md, exact stages distinguished from measured approximants). Nyströmformer combines a landmark approximation with a finite approximation to a pseudoinverse. A Mova experiment could record the discrepancy introduced by each stage before measuring their combined output. This would help distinguish inadequate representatives from insufficient numerical refinement. Existing approximation boundaries support the reporting principle, but no such decomposition for Nyström attention is evidenced.
Idea: Record landmark membership for inspection. Where: landmark-selection subsection and architecture figure. Area: interpretability. Mova: нове. A proposed attention adapter could retain segment boundaries, contributing positions, and the resulting vectors in a diagnostic artifact. Such a record would explain the arithmetic construction without pretending that an average vector is a linguistic explanation. Why Mova: it would help reviewers locate where information was merged while preserving Mova’s distinction between a trace of computation and evidence for a grammatical or semantic conclusion.
Idea: Test what contiguous pooling erases. Where: Segment-means description. Area: syntax and representation analysis. Mova: нове. Parser evaluation could examine whether errors concentrate when syntactically different positions share a segment, or when a dependency crosses a segment boundary. These are hypotheses prompted by the mechanism, not findings reported by the authors. Why Mova: dependency trees provide a concrete way to inspect whether a cheap numerical summary loses distinctions that matter to Mova’s downstream frame construction.
Idea: Preserve dictionary evidence independently of statistical representatives. Where: landmark approximation and the attention-fidelity illustration. Area: lexicography and provenance. Mova: частково є (tools/dictindex/README.md, statistical selectors separated from reviewed labels and dictionary admission). A representative corpus profile could help prioritize dictionary review, but should not replace exact occurrence witnesses. The analogy has a clear boundary: numerical reconstruction of attention is not recovery of a word’s meaning. Mova’s current provenance gates already supply the essential separation between a convenient summary and admitted lexical knowledge.
Idea: Prefer shared preparation when many observations use the same input. Where: construction of the smaller factors from common query and key landmarks. Area: workflow organization. Mova: вже є (world/src/knowledge/retention/mice.rs, shared parse and retained document graph). The paper illustrates how reusable intermediates support several parts of a calculation. Mova already applies the broader principle through specialists operating over shared document state. Further work could profile redundant preparation between workers, but the paper does not demonstrate any improvement to the mice implementation.
Idea: Use an idealized exact case as a consistency check. Where: “Analysis of Nyström Approximation,” landmark-coverage lemma. Area: mathematical validation. Mova: частково є (docs/hybrid-system.md, declared invariants and model checks). An experimental implementation could test cases satisfying the lemma’s coverage condition before assessing compressed settings. Passing such a check would establish a limited algebraic property, not general task reliability. This fits Mova’s use of explicit contracts while adding a paper-specific condition whose implementation status is unknown.
Idea: Avoid turning a sufficient condition into an empirical guarantee. Where: “Analysis of Nyström Approximation,” discussion following the lemma. Area: reasoning and evidence. Mova: вже є (docs/hybrid-system.md, finite agreement distinguished from equivalence and error bounds). Mova already separates a checked observation from a broader theorem. The same discipline applies here: exact recovery with complete landmark coverage cannot certify segment-mean accuracy. A groupant should keep the lemma, the practical configuration, and measured error as distinct evidence objects.
Idea: Tune approximation capacity on development data. Where: landmark-selection discussion and resource-benchmark caption. Area: experimental design. Mova: частково є (README.md, held-out checks and test-set discipline). Landmark count could become an explicit development parameter, evaluated for both resource use and parsing consequences. Existing Mova gates support that process, but the digest does not identify a Nyström capacity search. The paper’s application-dependent guidance is a starting hypothesis instead of a universal setting to import into the parser.
Idea: Separate module measurements from workflow measurements. Where: “Experiments,” random-input efficiency evaluation and downstream evaluations. Area: performance measurement. Mova: частково є (tools/dictindex/README.md, cache scope, startup exclusions, and bounded-coverage reporting). Existing index reports already qualify what their timings include. A numerical-attention experiment could similarly distinguish kernel execution, complete parsing, and reader performance. This would prevent an attention speedup from being presented as an equivalent improvement in a full Mova workflow.
Idea: Evaluate migration from an existing trained component. Where: language-pretraining comparison initialized from BERT-base. Area: training and maintenance. Mova: нове. A GPU-parser experiment could compare adaptation from its existing trained state with training under the replacement attention from the beginning, while keeping their histories explicit. Why Mova: a useful migration route could reduce experimental cost, but it would also reveal whether inherited parameters conceal weaknesses that appear under another initialization. No transfer result for Mova is established.
Idea: Record implementation deviations alongside benchmark outcomes. Where: Long Range Arena table caption and implementation discussion. Area: reproducibility. Mova: вже є (tools/dictindex/README.md, immutable source versions; docs/hybrid-system.md, configuration identity). Mova already retains source and configuration boundaries. A benchmark port should likewise identify its implementation and report deviations from earlier results. The authors’ higher retrieval outcomes illustrate why reproducing a protocol does not make every published result directly interchangeable.
Idea: Report task-level outcomes alongside an aggregate. Where: “Long Range Arena (LRA) Benchmark,” datasets and metrics. Area: statistics. Mova: частково є (docs/architecture.md, course traces and separate student evaluations). Mova retains detailed decisions rather than only a headline score. An approximation study could preserve that granularity across parsing domains and reader tasks. The paper’s average result is informative, but the associated task outcomes are needed to understand where an apparently favorable compromise may fail.
Idea: Resolve notation through explicit dimensions before implementation. Where: landmark equations and the pseudoinverse derivation. Area: mathematical software validation. Mova: частково є (docs/hybrid-system.md, typed interfaces and declared failure behavior). The paper contains indexing and orientation inconsistencies that a programmer must resolve against the matrix-level construction. A typed operator description could expose incompatible shapes early. This is a proposed use of existing contract machinery, not evidence that Mova currently validates these particular equations.
The problem and its context
The cost of unrestricted interaction
The attraction of self-attention is that a position can use evidence from anywhere in its input. A word need not rely exclusively on neighboring words to update its representation. Instead, the architecture compares its query vector with keys associated with the sequence and combines the corresponding values.
Queries, keys, and values have different roles. A query participates in deciding which information is relevant to the current position. A key supplies the vector against which that query is compared. A value supplies the information that the resulting attention weight will scale. These roles are implemented through learned projections of the input representations.
The difficulty lies in the number of comparisons. With n positions, ordinary attention evaluates a square collection of query–key relationships. Both the arithmetic for these relationships and the storage associated with their weights depend quadratically on n. The paper targets this sequence-length cost.
The motivation comes from the success of architectures such as BERT across language tasks. The authors connect attention with translation, inference between sentences, paraphrase judgments, and other applications. They regard the interaction mechanism as valuable enough to approximate carefully, rather than discard without a reference.
For scale, the introduction describes BERT-large training as requiring 4 months with a single Tesla V100 GPU, or 4 days with a 4x4 TPU pod. That example concerns a substantial training workload, not a timing measurement of Nyströmformer. It explains the motivation for resource savings without identifying attention as the only source of expense.
The paper also uses n=2048 to illustrate the difficulty of longer sequences. Elsewhere it characterizes ordinary attention as restricting practical input lengths, with n<1000 as an example. These statements express the computational setting motivating the work; they are not universal hardware-independent limits.
Several efficiency problems coexist
Reducing attention cost is only one way to make a Transformer more economical. The related-work discussion mentions pruning, parameter factorization, quantization, and distillation. ALBERT, Q8BERT, and DistilBERT appear in that context.
These approaches intervene at different places. Some concern parameter storage or representation. Others alter how a smaller system learns from another system. Their inclusion matters because a reduction in sequence-dependent attention work should not be conflated with every possible meaning of architectural efficiency.
The authors also discuss training arrangements such as micro-batching and gradient checkpointing. Such techniques change how work and memory are scheduled. Nyströmformer instead changes the attention operator itself. The approaches can address related constraints while leaving different mathematical calculations intact.
Another distinction concerns the pattern of communication. Sparse attention performs selected interactions instead of every possible interaction. The paper describes Sparse Transformers as obtaining O(n√n) complexity through a sparse factorization. Its account of Reformer emphasizes locality-sensitive hashing and O(n log n) complexity.
For Reformer, the authors additionally note an assumption relating keys and queries. Their discussion treats this as part of the mechanism that reduces dot-product work. Nyströmformer does not use that hashing route; it builds representative matrices and a reconstruction around them.
Longformer combines local windows with task-related global attention. Big Bird also belongs to the sparse-attention group in the paper’s review. These strategies structure which interactions receive direct calculation.
Algebraic approximations offer another route
Rather than selecting a sparse set of explicit edges, an approximation can change the algebra used to represent attention. Linformer reduces the sequence dimension through projections. Other linear-attention approaches separate query and key computations so that they can be combined without a complete pairwise array.
The authors discuss softmax-related approximation beyond attention as well. Sampled softmax methods reduce work over output classes, and random-feature methods provide another way to approximate relevant quantities. This history helps explain why the paper considers numerical linear algebra a natural source of ideas.
The concurrent Performer approach uses positive orthogonal random features for a softmax-kernel approximation. Nyströmformer pursues the same broad resource objective through landmarks instead. The distinction is mechanistic, not merely a change of terminology.
The authors caution that some methods separating queries and keys can incur substantial approximation error in certain situations. Their response is to develop a construction connected to Nyström matrix approximation and test whether it preserves useful behavior. The paper does not establish that every competing approximation fails, or that its own construction dominates under all conditions.
Why matrix sampling is not enough
Nyström approximation begins from the possibility that a large matrix contains structure recoverable through a much smaller representative part. Relationships involving the representatives can support estimates of relationships elsewhere. This becomes attractive when a full matrix is expensive but the selected information is cheap.
The paper reviews extensions involving clustering, adaptive sampling, and changes to the reconstruction. Particularly relevant are methods for general matrices rather than only symmetric matrices. Attention involves separate query and key projections, so symmetry cannot simply be assumed.
A direct plan would select rows and columns from the attention matrix, calculate their intersection, and use that intersection to reconstruct the rest. The problem is that attention uses softmax after its query–key score calculation. Each row’s denominator includes contributions from every key.
As a result, sampling normalized columns does not remove the need to evaluate the omitted scores. The selected entries carry a hidden dependence on the full row. Nyströmformer’s central modification is designed around this obstacle: its representatives are vectors available before full attention normalization, and its smaller matrices receive their own softmax operations.
This departure also changes what must be justified. The factors are no longer simply samples from the exact normalized matrix. They constitute a different construction inspired by the sampled-matrix formula. Efficiency follows from the construction’s shapes; approximation quality requires mathematical analysis and experiments.
The method, step by step
Establish the exact operation
The input is a matrix whose rows represent sequence positions and whose columns contain features. Learned linear projections create the vectors used by attention.
Q = XW_Q
X has shape n × d: n positions and d input features. W_Q has shape d × d_q. Q therefore contains a query of width d_q for each position.
K = XW_K
W_K projects the same input into keys. Its output width is d_k, which the paper sets equal to d_q so that key and query dot products are compatible.
V = XW_V
W_V creates values of width d_v. V retains a row for every input position, but its feature width need not equal the query width.
S = softmax(QKᵀ / √d_q)
S is the attention-weight matrix. The superscript ᵀ denotes transpose, and division by √d_q scales the dot products. Softmax is performed across each row, producing a distribution over keys for the corresponding query.
D(Q, K, V) = SV
D names the attention output. Each output row combines the rows of V using a row of S as weights. The expensive matrix is S, whose dimensions are n × n.
The normalization dependency is essential. An individual dot product can be computed in isolation, but its final softmax weight cannot be recovered from that score alone. It also depends on the competing scores in the same row.
Examine the classical reconstruction
The authors introduce the Nyström idea by arranging selected rows and columns together. Their intersection becomes a small central block.
S = [ A_S B_S ; F_S C_S ]
The semicolon separates the block rows. A_S is the m × m intersection of the selected rows and columns. B_S contains the rest of the selected rows, F_S the rest of the selected columns, and C_S the remaining block.
The small intersection can be decomposed into singular directions.
A_S = UΛRᵀ
U and R contain orthogonal singular-vector directions, while Λ is diagonal and contains singular values. R is used here to distinguish the right singular-vector matrix from the attention values V.
The Nyström reconstruction is then expressed through sampled columns, a central correction, and sampled rows.
Ŝ = [ A_S ; F_S ] A_S⁺ [ A_S B_S ]
Ŝ denotes an approximation to S. A_S⁺ is the Moore–Penrose pseudoinverse, which extends the inverse operation to cases where an ordinary inverse is unavailable.
In this construction, the unobserved block is estimated from its connections to the selected part.
Ĉ_S = F_S A_S⁺ B_S
Ĉ_S is the reconstructed counterpart of C_S. The multiplication expresses an assumption that relationships outside the sample can be mediated through relationships involving the sample.
For attention, however, the sampled columns themselves are expensive to obtain. Computing their normalized entries requires complete row denominators. The construction therefore supplies mathematical inspiration without yet supplying the desired attention algorithm.
Construct representatives before normalization
Nyströmformer introduces query landmarks Q̃ and key landmarks K̃. Both contain m vectors, with m chosen much smaller than n in the intended efficient setting.
The first smaller matrix relates original queries to representative keys.
F = softmax(QK̃ᵀ / √d_q)
F has shape n × m. Its row normalization compares a query with the key landmarks, rather than with every original key.
The central matrix relates representative queries to representative keys.
A = softmax(Q̃K̃ᵀ / √d_q)
A has shape m × m. It occupies the central role played by the sampled intersection in classical Nyström reconstruction, although it is produced differently.
The remaining factor relates representative queries to the original keys.
B = softmax(Q̃Kᵀ / √d_q)
B has shape m × n. Each row is normalized across the original key sequence, but the number of such rows is restricted to the query landmarks.
The proposed approximation combines these factors.
Ŝ = FA⁺B
A⁺ corrects the relationship between the outer factors through the landmark core. F and B supply the links between original positions and representatives.
This factorization does not claim that F is an exact selected-column view of S. Its normalization has changed. The algorithm gains efficiency precisely because it computes these landmark-based relationships directly instead of extracting them from an already normalized full matrix.
Nyströmformer attention computation
The steps in order.
Understand the feature-based derivation
The paper also derives its matrix expression through compact features associated with individual queries and keys. This explains the appearance of the pseudoinverse, instead of treating it as an arbitrary correction.
For a query, the relevant starting vector is its softmax relationship with key landmarks. For a key, the starting vector corresponds to its column in the landmark-query-to-key factor. These vectors are transformed using the singular directions of the core A.
φ_K̃(q) = Λ⁻¹ᐟ²Rᵀκ_K̃(q)ᵀ
q is an original query vector. κ_K̃(q) is its row of normalized relationships to key landmarks. φ_K̃(q) is the transformed feature vector, while Λ⁻¹ᐟ² rescales the singular directions.
φ_Q̃(k) = Λ⁻¹ᐟ²Uᵀκ_Q̃(k)
k is an original key. κ_Q̃(k) is the corresponding column from B, and φ_Q̃(k) is its transformed representation. U and R come from the singular value decomposition of A.
These features produce an approximate entry by an inner product.
Ŝ_ij = φ_K̃(q_i)ᵀφ_Q̃(k_j)
i identifies an original query position and j an original key position. Expanding the transformed features introduces the inverse of A when A is nonsingular. The pseudoinverse supplies the generalized expression used by the method.
There is a useful distinction between this derivation and execution. Singular values explain the mathematical construction, but the implementation need not obtain them at every attention call. The authors choose a different computational route for the pseudoinverse.
The matrix-level formulation also clarifies normalization. A column taken from B inherits the row-wise normalization of B. It should not be interpreted as a newly column-normalized vector merely because the derivation discusses a single key.
Build landmarks through contiguous averages
The authors consider clustering as a way to select representative points. K-means could adapt landmarks to the distribution of vectors, but its repeated updates are inconvenient during mini-batch learning. They choose a simpler operation based on contiguous sequence segments.
The sequence is divided into m segments. Each segment contributes an average query vector and an average key vector. The corresponding nominal segment length is:
l = n / m
l denotes segment length, n sequence length, and m landmark count. The description assumes that n is divisible by m and notes that padding can make this possible.
This operation can be performed in a scan over the sequence. It requires no repeated reassignment of vectors to clusters. Its predictable construction is part of the efficiency argument.
There is an inconsistency in the printed averaging equation: the summation endpoint and divisor use m, while the preceding description defines l as the segment length. The surrounding explanation identifies the intended operation as averaging within the segments. A literal implementation of the conflicting symbols would therefore require clarification.
The authors state that 64 landmarks frequently give adequate approximation in their experiments, while qualifying this by application. That observation does not establish a fixed relationship between sequence length and sufficient landmark capacity.
Contiguous averages also impose a representational choice. Nearby vectors are merged whether or not they express similar relationships. The training process may accommodate this structure, but the paper does not show that adjacency always defines the best representative groups.
Replace decomposition with inverse iteration
The landmark core still needs a pseudoinverse. The authors regard singular value decomposition as inefficient on GPUs in their setting, and instead adopt an iterative procedure from earlier numerical work.
Z_(j+1) = (1/4)Z_j(13I − AZ_j(15I − AZ_j(7I − AZ_j)))
Z_j is the current inverse estimate, Z_(j+1) the refined estimate, and A the landmark core. I is the identity matrix of compatible shape. The nested products define a polynomial refinement using matrix multiplication.
The starting estimate rescales the transpose of the core.
Z_0 = Aᵀ / (‖A‖₁‖A‖∞)
‖A‖₁ is the maximum absolute column sum. ‖A‖∞ is the maximum absolute row sum. Their product provides the normalization used to initialize the iteration.
The cited convergence statement requires a suitable starting point.
‖AA⁺ − AZ_0‖ < 1
A⁺ is the target pseudoinverse. The expression compares the product obtained with that target against the product obtained with the initial estimate. Under the stated condition, the lemma gives third-order convergence.
For a nonsingular A, the authors relate the initialization to a condition involving the identity matrix. They report that the initialization also works well in their experiments without imposing nonsingularity. That empirical observation is narrower than a universal convergence guarantee over all possible landmark cores.
Their experiments use about 6 iterations for an adequate inverse approximation. A finite iteration therefore introduces a numerical approximation in addition to the approximation already introduced by landmarks.
The authors emphasize that the resulting operations fit matrix-based deep-learning computation and permit gradient propagation. This makes the numerical design compatible with training, instead of leaving the approximation as an inference-only formula.
Apply the factors directly to values
Let Z⋆ denote the inverse estimate after refinement. The attention output becomes:
ŜV = FZ⋆BV
F and B are the landmark-based softmax factors, Z⋆ approximates A⁺, and V contains the original values. The output has a row for every original query.
The product must be evaluated without first creating Ŝ. The paper’s accounting combines F with Z⋆ and B with V, then multiplies the resulting intermediates. This avoids the dense attention-weight matrix.
That execution order is a central part of the contribution. A mathematically equivalent expression can have very different storage requirements depending on its intermediate arrays. The advertised memory benefit would disappear if the factorization were expanded into a full square matrix.
The complete architecture additionally processes V through a depthwise convolution along the sequence. This path runs in parallel with the approximate attention calculation. The authors introduce it to assist training, although they do not provide a separate experiment establishing its individual contribution.
Interpret the resource analysis
The paper includes landmark construction, inverse approximation, and the remaining products in its time accounting.
O(n + m³ + nm² + mnd_v + m³ + nmd_v)
n is input length, m landmark count, and d_v value width. The cubic terms concern work on the landmark core; the mixed terms concern products connecting landmarks, sequence positions, and values.
Its storage expression is:
O(md_q + nm + m² + mn + nd_v)
d_q is query and key width. The terms cover landmark representations and intermediate matrices associated with the approximation and output.
With m and feature widths fixed, increasing n produces linear growth in these expressions. The condition is important. If maintaining quality requires increasing m, the landmark-related costs also grow, including the cubic contribution.
The analysis is about this attention construction. It does not make every operation in the surrounding architecture linear in every parameter, nor does it predict an identical wall-clock improvement across devices.
Put the component into a learning procedure
The authors test the replacement inside BERT-small and BERT-base architectures. Pretraining uses BookCorpus together with English Wikipedia, followed by supervised adaptation to individual tasks.
They adopt masked-language prediction and sentence-order prediction. The former learns to recover hidden tokens from context; the latter supplies supervision about sentence ordering. The sentence-order objective follows the approach associated with ALBERT.
The corpus split assigns 80% to training and 20% to validation. Adam uses batch size 256 and learning rate 1e-4, with β₁=0.9 and β₂=0.999. The L2 weight-decay setting is 0.01.
The learning rate warms up for 10,000 steps before linear decay. BERT-small training runs for 0.1M steps. The from-scratch base-size systems receive 0.5M steps, while a Nyströmformer initialized from pretrained BERT-base receives roughly 0.25M steps.
The paper announces an official implementation and accompanying supplementary material. Its method is therefore evaluated as a trained architectural replacement, including the supporting numerical choices, rather than only as a standalone reconstruction exercise.
Experiments and results
Distinct experiments answer distinct questions
The evaluation contains several layers of evidence. Language pretraining asks whether replacing attention disrupts learning under the chosen objectives. Supervised adaptation asks whether useful representations remain available for downstream tasks. Long Range Arena examines longer inputs, while the attention-module benchmark measures resource use.
These experiments should not be merged into a single claim. A fast numerical operator might produce poor task predictions. Conversely, comparable task accuracy would not establish that an implementation saves memory. The paper’s argument depends on evidence addressing both behavior and resources.
The comparison set also changes with the question. The small pretraining study includes ordinary attention, Linformer, and an ELU-based linearized alternative. The downstream language study uses BERT-base as its reference. The long-range evaluation compares several attention mechanisms inside a common architecture.
Language pretraining behavior
The BERT-small configuration has 4 layers. It provides a less expensive setting for comparing learning curves across attention mechanisms before moving to the base-size architecture.
Validation is measured through masked-language-modeling accuracy and sentence-order-prediction accuracy. The authors describe Nyströmformer as close to ordinary attention and stronger than the tested linear alternatives in this setting.
For the base-size comparison, they again report similar learning behavior between their architecture and the ordinary-attention baseline. Their figures additionally show a run that begins with pretrained BERT-base parameters. The authors interpret this initialization as accelerating training.
The figures support qualitative statements about the curves, but the paper’s narrative does not state exact final validation percentages for them. Assigning precise endpoints from a visual impression would imply evidence more specific than the numerical reporting supports.
Training cost influences the setup. The authors state that BERT-base training with 1M updates takes more than a week using 8 V100 GPUs. Their from-scratch comparison is limited to 0.5M steps for both the baseline and replacement.
This shared update budget helps make the comparison interpretable. It also identifies the regime in which the reported similarity holds. The experiment does not establish whether the systems would maintain the same relationship after a substantially different training schedule.
Measured runtime and memory
The resource study supplies random inputs to attention modules. It varies sequence length across 512, 1024, 2048, 4096, and 8192. Each implementation is evaluated on a Nvidia 1080Ti under the same machine setting.
The reported units are milliseconds for runtime and megabytes for memory. The measured object is an attention module processing an input instance. These measurements are distinct from complete pretraining duration or the full cost of a downstream application.
The configurations include Nyströmformer-32 and Nyströmformer-64, identifying their landmark counts. Linformer uses projection width 256. The Longformer comparison uses a sliding window of 257.
At length 8192, the authors report 1.2× memory savings relative to Longformer, together with a 3× runtime speedup. Their comparison with Linformer reports 1.7× memory savings and similar execution time.
These are the paper’s stated relative comparisons. They do not supply absolute timing or memory values in the narrative, so an absolute resource chart cannot be reconstructed from them.
The experiment shows why asymptotic class alone is insufficient. Several approaches can have linear sequence-length dependence while differing in intermediate storage, internal dimensions, and device execution. The measured implementation remains important.
Random inputs also define a particular kind of control. They provide reproducible matrix shapes for a resource comparison, but they do not test whether the chosen landmark count captures meaningful relationships in real documents. Task evaluation addresses that separate question.
Supervised language tasks
The downstream study uses tasks from GLUE alongside IMDB review classification. The GLUE selection includes SST-2 and MRPC, together with QNLI and QQP. MNLI is evaluated as well.
These datasets cover different language decisions. SST-2, associated with the sentiment-treebank work, contributes a sentiment task. MRPC concerns paraphrase judgments and is associated with the cited paraphrase-corpus study. The remaining tasks broaden the comparison beyond a single classification problem.
The paper reports F1 for MRPC and QQP. Other downstream results use accuracy. Fine-tuning uses task training data, while reported outcomes come from validation data.
For the larger datasets, the authors use AdamW with learning rate 3e-5, batch size 32, and 4 epochs. MRPC receives a separate search because the authors identify it as sensitive to fine-tuning choices.
That search considers batch sizes 8, 16, and 32. Its candidate learning rates are 2e-5, 3e-5, 4e-5, and 5e-5. The authors select the best validation outcome.
The paper characterizes the downstream results as competitive with BERT-base. Its narrative does not provide individual numerical scores for all these task comparisons. The appropriate conclusion is therefore the authors’ stated competitive behavior, without inventing a complete numerical leaderboard.
The longer-input experiment supplies a specific numerical comparison for IMDB. The discussion introduces n=1024 against n=512 and reports accuracy of 93.0 versus 93.2, describing the outcomes as almost unchanged.
Nyströmformer on IMDB validation, accuracy by input length
Increasing the input length leaves the reported result close to the shorter setting.
The numbers
| System or setting | accuracy % |
|---|---|
| Nyströmformer with input length 1024 | 93.0 |
| Nyströmformer with input length 512 (this paper) | 93.2 |
The chart concerns a comparison between Nyströmformer settings, instead of a comparison with another architecture. It shows stability for this task and procedure. It does not identify whether the additional positions contained evidence essential to the classification decisions.
Long Range Arena
The longer-sequence evaluation includes ListOps, byte-level IMDB classification, and byte-level document retrieval. It also evaluates classification from pixel sequences and Pathfinder.
This range matters because the approximation is being asked to support more than conventional word-level language input. The shared issue is processing extended sequences, but the information represented by sequence positions differs across tasks.
The authors follow Long Range Arena’s train/test divisions and report classification accuracy for individual tasks, together with an average. They reimplement the benchmark in PyTorch because the official version uses Jax/Flax and their comparison implementations use PyTorch.
Each attention alternative sits inside a Transformer with 2 layers. The embedding width is 64, the hidden width is 128, and the architecture uses 2 attention heads. Mean pooling is used across the tasks.
Reformer uses 2 hashes in this comparison. Linformer’s projection dimension is 256, and Performer’s random-feature dimension is 256. These settings identify the particular alternatives evaluated; they do not exhaust the possible configurations of those methods.
Nyströmformer’s average accuracy exceeds ordinary attention by the reported +0.18%. Relative to Reformer and Linformer, the reported advantages are +3.91% and +3.36%. The advantage over Performer is +5.32%.
The narrative also says that the method compares favorably with Performer across the tasks. However, absolute task accuracies are not stated in that discussion. The reported margins should remain margins, rather than being converted into invented absolute scores.
The authors disclose an implementation discrepancy: retrieval performance is higher for every method in their PyTorch version than in the earlier benchmark reporting. Their common implementation supports an internal comparison, while the discrepancy limits simple comparisons across implementations.
Together, the long-range tasks and resource measurements support the paper’s practical argument. They show useful task behavior in one experiment and favorable attention-module costs in another. They do not constitute a direct measurement of every long-range task’s complete training or inference cost.
What the ablations show
The paper offers analytical checks and several configuration comparisons, but does not report a comprehensive study that removes each component in turn.
Landmark count is visible, but not fully characterized
The resource benchmark includes 32-landmark and 64-landmark settings. This makes representative count an explicit part of the experimental configuration. The complexity analysis explains why it affects both sequence-related products and the central inverse calculation.
What is missing is a broad quality curve connecting landmark count to every downstream task. The statement that 64 landmarks often suffice is application-dependent guidance from the authors, not an established capacity rule.
This distinction matters when interpreting linear scaling. Holding the landmark count fixed creates the favorable dependence on sequence length. Whether that fixed capacity remains adequate as the task changes is a separate empirical question.
Initialization changes the learning trajectory
The pretraining figures compare a Nyströmformer starting from existing BERT-base parameters with a version trained from scratch. The authors report that initialization from the pretrained baseline speeds learning.
This analysis concerns a practical migration strategy. It suggests that changing the attention mechanism need not force all other parameters to begin without useful structure. The experiment is relevant to engineering cost as well as predictive quality.
It does not isolate attention approximation from training history. The continuation run has approximately 0.25M steps, whereas the from-scratch runs use 0.5M steps. Those trajectories answer different questions and should not be treated as identical budgets with only an initialization switch.
Longer input is a compatibility test
The IMDB comparison changes input length while leaving the reported classification accuracy close. It therefore shows that the tested longer setting remains usable for the task.
It does not demonstrate what information the architecture retrieves from the additional context. A task may contain sufficient evidence in the shorter input, making unchanged accuracy compatible with several different internal behaviors.
A stronger analysis would identify examples whose answers depend on distant evidence and examine how landmark grouping affects them. The paper does not provide that error-level investigation. Long Range Arena broadens the task coverage, but does not replace a causal analysis of the IMDB comparison.
Visual resemblance and exactness address different cases
The attention illustration shows a recognizable resemblance between the approximate and ordinary calculations. Its role is explanatory: it makes the proposed reconstruction intuitively plausible.
An example image does not quantify approximation error over the full evaluation distribution. The paper does not report a comprehensive distribution across inputs, layers, or attention heads. Visual similarity therefore supplements task results without certifying them.
The theoretical lemma considers a stronger condition. It requires landmark coverage such that every original query and key is represented by a matching landmark. Under that idealized condition, the approximate formulation recovers the exact attention behavior.
Practical segment averages generally do not satisfy that condition. The lemma supplies a consistency case for the construction, but not an error bound for a compact collection of averages. The authors point towards spectral structure and earlier low-rank observations as reasons stronger analysis may be possible.
The convolution remains part of a combined result
The architecture includes a depthwise convolutional route from the values. The stated purpose is to help training.
There is no separately reported comparison removing that connection. Consequently, the experiments establish the behavior of the complete proposed architecture, not the isolated contribution of the landmark reconstruction.
The same caution applies to landmark selection. K-means is discussed as an alternative, but the paper does not present a controlled quality–cost comparison establishing segment means as superior to all clustering choices. Their appeal is the inexpensive, convenient procedure and the performance of the resulting system.
Limitations
Qualifications stated by the authors
The authors acknowledge that an exhaustive comparison with the rapidly growing efficient-attention literature would require substantial computation. Their runtime and memory evaluation therefore focuses on selected alternatives.
This limits the scope of comparative claims. Favorable measurements against the chosen configurations are evidence about those configurations. They do not establish a universal ranking of efficient attention methods.
The training budget is another explicit constraint. Base-size from-scratch pretraining is capped at 0.5M steps because of computational cost. Competitive behavior should be understood within that schedule.
The authors also qualify landmark adequacy. Their observation about 64 landmarks is not presented as application-independent. A task with different interaction structure could require another setting, and the paper does not prescribe how to determine it analytically.
The inverse discussion includes a mathematical qualification. The stated convergence result requires a suitable initialization. The nonsingular case receives a more direct argument, while satisfactory behavior beyond that case is reported experimentally.
Finally, the Long Range Arena implementation produces higher retrieval outcomes across methods than the earlier benchmark. The authors disclose this difference. It does not erase the value of their shared comparison, but it prevents treating all implementations as numerically interchangeable.
Boundaries visible to a careful reader
The resource benchmark measures attention modules on random inputs using a particular GPU. This is a useful controlled experiment, but it does not measure complete application latency on every architecture or device.
The overall system includes projections, feed-forward operations, optimization, and task-specific computation. Reducing attention cost can help without producing the same relative improvement in total runtime. The paper does not provide a general conversion from module speedup to complete-system speedup.
Likewise, the language experiments use English Wikipedia and BookCorpus before adaptation to selected tasks. They do not establish behavior for every language, specialized domain, or document-level reasoning problem.
The reported supervised language outcomes are validation results. MRPC additionally uses validation performance to choose hyper-parameters. This is a legitimate development procedure, but the selected validation outcome has a different evidential role from an untouched final evaluation.
The long-range comparison uses a compact common architecture. That helps control the attention comparison, while limiting extrapolation to substantially different depth, width, or learning regimes.
Compression may remove useful distinctions
Routing interactions through landmarks creates a representational bottleneck. A segment mean can merge vectors whose differences matter to a task. The paper’s successful results show that this compromise can be useful, but do not map its failure conditions comprehensively.
The construction also changes normalization domains. Original queries are normalized against representative keys in F, while representative queries are normalized against original keys in B. This is not an exact shortcut for extracting the same normalized entries from ordinary attention.
Accordingly, the practical approximation deserves analysis in its own right. Classical Nyström intuition provides motivation, but the modified normalization means that guarantees for another matrix-sampling setup cannot simply be assumed.
The idealized exactness result is similarly limited. Complete matching coverage is much stronger than a small landmark set formed by averaging. The lemma does not show that a compact setting retains rare but decisive interactions.
The paper connects approximation quality with the spectrum and low-rank structure discussed in earlier work. Those observations make the approach plausible, but do not supply a task-specific numerical error certificate for every evaluated input.
Several uncertainties remain separate
There are at least distinct conceptual sources of discrepancy: representative construction changes the operator, while finite inverse iteration changes its numerical evaluation. The paper does not comprehensively separate their contributions to final errors.
The convolutional value path creates another attribution issue. Strong results from the complete architecture cannot identify what would happen with the approximation alone. An isolated removal study would be needed for that conclusion.
The notation also requires care. The segment-average equation conflicts with the segment-length definition, and some individual-vector expressions obscure orientation or normalization. The matrix construction supplies the clearest operational account, but a programmer should resolve these issues explicitly.
Classification accuracy is not a complete description of behavior. Similar averages can conceal different mistakes, and success on a benchmark does not prove that the approximation uses the same evidence as ordinary attention.
No detailed linguistic error taxonomy is reported. The paper therefore cannot explain precisely which syntactic or semantic relationships are retained, improved, or lost. Its task-level evidence is broader than an attention picture, but less diagnostic than an example-level behavioral analysis.
What the paper supports
The supported result is an implemented attention approximation with favorable measurements under stated conditions. It shows that landmarks introduced before full normalization can support useful pretrained representations and longer-sequence classification while avoiding a complete attention matrix.
It does not establish arbitrary long-context comprehension, hardware-independent savings, or exact equivalence with ordinary attention in practical compressed settings. Those claims would require different evidence.
For Mova specifically, the paper supplies a numerical candidate and evaluation principles. It contains no Mova experiment, no Rust benchmark, and no evidence that a neural approximation improves the explicit logical core. Any integration would remain a separate, source-bound engineering investigation.
What came after
The later citation record spans attention architecture, retrieval, architectural efficiency, and domain-specific pretraining. The available information identifies the citing works and their subjects, but does not describe their technical use of Nyströmformer. A citation supports a research connection; it cannot by itself establish adoption of segment averaging, pseudoinverse iteration, or the same factorization.
Attention and access to large inputs
Perceiver appears in the citation record in 2021. Its title identifies general perception and iterative attention as its focus.
That places it near the broad architectural question Nyströmformer addresses: how can attention operate over substantial inputs without relying exclusively on a dense interaction matrix? The precise relationship remains unspecified by the citation information. It would be unwarranted to claim that Perceiver implements Nyströmformer’s numerical procedure.
Retrieval meets Long Context Large Language Models follows in 2023. Its title brings retrieval and long-context processing into the same research question.
Nyströmformer studies the cost of interactions within an input already supplied to the architecture. Retrieval raises an adjacent issue concerning access to information. The later citation connects these research areas, but the available account does not identify an experiment or mechanism transferred from Nyströmformer.
Efficiency and retained information
Simple linear attention language models is listed in 2024. Its title explicitly names a balance between recall and throughput.
That framing is relevant to the distinction running through Nyströmformer: inexpensive processing matters only alongside the information-dependent behavior it preserves. The citation record does not supply the later paper’s results or its specific assessment of landmark attention, so neither can be attributed to it.
A Survey of Small Language Models also appears in 2024. Its subject places Nyströmformer in a wider discussion of resource-conscious language architectures.
The connection should remain precise. Nyströmformer changes the cost of sequence interaction; it does not primarily present a parameter-reduction technique. Its inclusion in a survey of smaller systems does not make those efficiency dimensions equivalent.
Other architectural changes
PanGu-π is a 2023 citing work whose title emphasizes nonlinearity compensation in language architecture.
This records another setting in which Nyströmformer is part of the relevant literature. The supplied citation information does not explain whether it serves as a baseline, background, or a directly reused mechanism. The safe connection is architectural research concerned with changing computation while preserving useful behavior.
Domain-specific pretraining
The Word and the Way is listed in 2026 and concerns German medical language processing through domain-specific BERT pretraining.
Nyströmformer itself tests a BERT-based pretraining and adaptation procedure, making that architectural context relevant. However, its experiments concern the English corpora and tasks described earlier. The later title does not establish that the medical-language study adopts Nyström attention or measures the same resource tradeoff.
Across these citations, the continuing question is broader than whether one approximation is fast. It concerns how architectural compression changes access to information, how that change is evaluated, and which costs are actually removed. Nyströmformer contributes a specific answer: construct a representative interaction system before expensive normalization, keep the resulting factors compact during execution, and test the consequences at both numerical and task levels.
Cite
Cite as Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li and Vikas Singh. 2021. Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention. Proceedings of the AAAI Conference on Artificial Intelligence.
@inproceedings{xiong2021nystromformer,
title = {{Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention}},
author = {Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li and Vikas Singh},
booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
year = {2021},
doi = {10.1609/aaai.v35i16.17664},
eprint = {2102.03902},
archivePrefix = {arXiv},
url = {https://doi.org/10.1609/aaai.v35i16.17664}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/xiong-2021-nystromformer-nystrom-based-algorithm-approximating/
References
- Baker, C. T. 1977. The numerical treatment of integral equations. Clarendon press. OpenAlex ↗ · Scholar ↗
- Bello, I. 2021. LambdaNetworks: Modeling long-range Interactions without Attention. In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
- Beltagy, I.; Peters, M. E.; and Cohan, A. 2020. Longformer: The Long-Document Transformer. arXiv:2004.05150 . our card
- Blanc, G.; and Rendle, S. 2018. Adaptive sampled softmax with kernel based sampling. In Proceedings of the International Conference on Machine Learning (ICML), 590–599. OpenAlex ↗ · Scholar ↗
- Bremer, J. 2012. On the Nyström discretization of integral equations on planar curves with corners. Applied and Computational Harmonic Analysis 32(1): 45–64. OpenAlex ↗ · Scholar ↗
- Brown, T. B.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. 2020. Language models are few-shot learners. arXiv preprint arXiv:2005.14165 . our card
- Chen, T.; Xu, B.; Zhang, C.; and Guestrin, C. 2016. Training deep nets with sublinear memory cost. arXiv preprint arXiv:1604.06174 . OpenAlex ↗ · Scholar ↗
- Chen, Z.; Zhang, H.; Zhang, X.; and Zhao, L. 2018. Quora question pairs. https://www.kaggle.com/c/quora-question-pairs. OpenAlex ↗ · Scholar ↗
- Child, R.; Gray, S.; Radford, A.; and Sutskever, I. 2019. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509 . our card
- Choromanski, K.; Likhosherstov, V.; Dohan, D.; Song, X.; Gane, A.; Sarlos, T.; Hawkins, P.; Davis, J.; Mohiuddin, A.; Kaiser, L.; et al. 2020. Rethinking attention with performers. arXiv preprint arXiv:2009.14794 . our card
- Clark, K.; Luong, M.-T.; Le, Q. V.; and Manning, C. D. 2019. ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators. In International Conference on Learning Representations (ICLR). OpenAlex ↗ · Scholar ↗
- Dai, Z.; Yang, Z.; Yang, Y.; Carbonell, J. G.; Le, Q.; and Salakhutdinov, R. 2019. Transformer-XL: Attentive Language Models beyond a Fixed-Length Context. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (ACL), 2978–2988. OpenAlex ↗ · Scholar ↗
- Devlin, J.; Chang, M.-W.; Lee, K.; and Toutanova, K. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT). our card
- Dolan, W. B.; and Brockett, C. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005). our card
- Drineas, P.; and Mahoney, M. W. 2005. On the Nyström method for approximating a Gram matrix for improved kernel-based learning. Journal of Machine Learning Research (JMLR) 6(Dec): 2153–2175. OpenAlex ↗ · Scholar ↗
- Fanuel, M.; Schreurs, J.; and Suykens, J. A. 2019. Nystr$\backslash$" om landmark sampling and regularized Christoffel functions. arXiv preprint arXiv:1905.12346 . OpenAlex ↗ · Scholar ↗
- Frostig, R.; Johnson, M. J.; and Leary, C. 2018. Compiling machine learning programs via high-level tracing. Systems for Machine Learning . OpenAlex ↗ · Scholar ↗
- Howard, J.; and Ruder, S. 2018. Universal Language Model Fine-tuning for Text Classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL), 328–339. OpenAlex ↗ · Scholar ↗
- Huang, Y.; Cheng, Y.; Bapna, A.; Firat, O.; Chen, D.; Chen, M.; Lee, H.; Ngiam, J.; Le, Q. V.; Wu, Y.; et al. 2019. Gpipe: Efficient training of giant neural networks using pipeline parallelism. In Advances in Neural Information Processing Systems (NeurIPS), 103–112. OpenAlex ↗ · Scholar ↗
- Katharopoulos, A.; Vyas, A.; Pappas, N.; and Fleuret, F. 2020. Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention. In Proceedings of the International Conference on Machine Learning (ICML). OpenAlex ↗ · Scholar ↗
- Kitaev, N.; Kaiser, L.; and Levskaya, A. 2019. Reformer: The Efficient Transformer. In International Conference on Learning Representations (ICLR). our card
- Krizhevsky, A.; Hinton, G.; et al. 2009. Learning multiple layers of features from tiny images. Technical Report TR-2009, University of Toronto . OpenAlex ↗ · Scholar ↗
- Kumar, S.; Mohri, M.; and Talwalkar, A. 2009. Ensemble Nyström method. In Advances in Neural Information Processing Systems (NeurIPS), 1060–1068. OpenAlex ↗ · Scholar ↗
- Lample, G.; Sablayrolles, A.; Ranzato, M.; Denoyer, L.; and Jégou, H. 2019. Large memory layers with product keys. In Advances in Neural Information Processing Systems (NeurIPS), 8548–8559. OpenAlex ↗ · Scholar ↗
- Lan, Z.; Chen, M.; Goodman, S.; Gimpel, K.; Sharma, P.; and Soricut, R. 2020. ALBERT: A lite BERT for self-supervised learning of language representations. In International Conference on Learning Representations (ICLR). our card
- Lee, J.; Lee, Y.; Kim, J.; Kosiorek, A.; Choi, S.; and Teh, Y. W. 2019. Set transformer: A framework for attention-based permutation-invariant neural networks. In International Conference on Machine Learning, 3744–3753. PMLR. OpenAlex ↗ · Scholar ↗
- Lewis, M.; Liu, Y.; Goyal, N.; Ghazvininejad, M.; Mohamed, A.; Levy, O.; Stoyanov, V.; and Zettlemoyer, L. 2020. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (ACL), 7871–7880. Association for Computational Linguistics. our card
- Li, M.; Kwok, J. T.-Y.; and Lü, B. 2010. Making large-scale Nyström approximation possible. In Proceedings of the International Conference on Machine Learning (ICML), 631. OpenAlex ↗ · Scholar ↗
- Linsley, D.; Kim, J.; Veerabadran, V.; Windolf, C.; and Serre, T. 2018. Learning long-range spatial dependencies with horizontal gated recurrent units. In Advances in Neural Information Processing Systems (NeurIPS), 152–164. OpenAlex ↗ · Scholar ↗
- Liu, Y.; Ott, M.; Goyal, N.; Du, J.; Joshi, M.; Chen, D.; Levy, O.; Lewis, M.; Zettlemoyer, L.; and Stoyanov, V. 2019. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692 . our card
- Maas, A.; Daly, R. E.; Pham, P. T.; Huang, D.; Ng, A. Y.; and Potts, C. 2011. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics (ACL): Human language technologies, 142–150. our card
- Michel, P.; Levy, O.; and Neubig, G. 2019. Are sixteen heads really better than one? In Advances in Neural Information Processing Systems, 14014–14024. our card
- Musco, C.; and Musco, C. 2017. Recursive sampling for the nystrom method. In Advances in Neural Information Processing Systems (NeurIPS), 3833–3845. OpenAlex ↗ · Scholar ↗
- Nangia, N.; and Bowman, S. R. 2018. ListOps: A Diagnostic Dataset for Latent Tree Learning. In Cordeiro, S. R.; Oraby, S.; Pavalanathan, U.; and Rim, K., eds., Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 92–99. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Nemtsov, A.; Averbuch, A.; and Schclar, A. 2016. Matrix compression using the Nyström method. Intelligent Data Analysis 20(5): 997–1019. OpenAlex ↗ · Scholar ↗
- Oglic, D.; and Gärtner, T. 2017. Nyström method with kernel k-means++ samples as landmarks. Journal of Machine Learning Research (JMLR) 2652–2660. OpenAlex ↗ · Scholar ↗
- Pan, V.; and Schreiber, R. 1991. An improved Newton iteration for the generalized inverse of a matrix, with applications. SIAM Journal on Scientific and Statistical Computing 12(5): 1109–1130. OpenAlex ↗ · Scholar ↗
- Peters, M. E.; Neumann, M.; Iyyer, M.; Gardner, M.; Clark, C.; Lee, K.; and Zettlemoyer, L. 2018. Deep contextualized word representations. In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2227–2237. our card
- Radev, D. R.; Muthukrishnan, P.; Qazvinian, V.; and Abu-Jbara, A. 2013. The ACL anthology network corpus. Lang. Resour. Evaluation 47(4): 919–944. . OpenAlex ↗ · Scholar ↗
- Radford, A.; Narasimhan, K.; Salimans, T.; and Sutskever, I. 2018. Improving language understanding with unsupervised learning. Technical report, OpenAI . OpenAlex ↗ · Scholar ↗
- Rajpurkar, P.; Zhang, J.; Lopyrev, K.; and Liang, P. 2016. SQuAD: 100,000+ Questions for Machine Comprehension of Text. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2383–2392. our card
- Rawat, A. S.; Chen, J.; Yu, F. X. X.; Suresh, A. T.; and Kumar, S. 2019. Sampled softmax with random fourier features. In Advances in Neural Information Processing Systems (NeurIPS), 13857–13867. OpenAlex ↗ · Scholar ↗
- Razavi, M. K.; Kerayechian, A.; Gachpazan, M.; and Shateyi, S. 2014. A new iterative method for finding approximate inverses of complex matrices. In Abstract and Applied Analysis. OpenAlex ↗ · Scholar ↗
- Sanh, V.; Debut, L.; Chaumond, J.; and Wolf, T. 2019. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108 . our card
- Shen, D.; Wang, G.; Wang, W.; Min, M. R.; Su, Q.; Zhang, Y.; Li, C.; Henao, R.; and Carin, L. 2018a. Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL), 440–450. our card
- Shen, Z.; Zhang, M.; Zhao, H.; Yi, S.; and Li, H. 2018b. Efficient Attention: Attention with Linear Complexities. arXiv preprint arXiv:1812.01243 . OpenAlex ↗ · Scholar ↗
- Si, S.; Hsieh, C.-J.; and Dhillon, I. 2016. Computationally efficient Nyström approximation using fast transforms. In Proceedings of the International Conference on Machine Learning (ICML), 2655–2663. OpenAlex ↗ · Scholar ↗
- Si, S.; Hsieh, C.-J.; and Dhillon, I. S. 2017. Memory efficient kernel approximation. Journal of Machine Learning Research (JMLR) 18(1): 682–713. OpenAlex ↗ · Scholar ↗
- Socher, R.; Perelygin, A.; Wu, J.; Chuang, J.; Manning, C. D.; Ng, A. Y.; and Potts, C. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 1631–1642. our card
- Tay, Y.; Dehghani, M.; Abnar, S.; Shen, Y.; Bahri, D.; Pham, P.; Rao, J.; Yang, L.; Ruder, S.; and Metzler, D. 2020. Long Range Arena: A Benchmark for Efficient Transformers. arXiv preprint arXiv:2011.04006 . our card
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A. N.; Kaiser, Ł.; and Polosukhin, I. 2017. Attention is all you need. In Advances in Neural Information Processing Systems (NeurIPS), 5998–6008. our card
- Vyas, A.; Katharopoulos, A.; and Fleuret, F. 2020. Fast transformers with clustered attention. Advances in Neural Information Processing Systems 33. OpenAlex ↗ · Scholar ↗
- Wang, A.; Singh, A.; Michael, J.; Hill, F.; Levy, O.; and Bowman, S. R. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In International Conference on Learning Representations (ICLR). our card
- Wang, A.; Singh, A.; Michael, J.; Hill, F.; Levy, O.; and Bowman, S. R. 2019. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In Proceedings of the International Conference on Machine Learning. our card
- Wang, S.; Li, B.; Khabsa, M.; Fang, H.; and Ma, H. 2020. Linformer: Self-Attention with Linear Complexity. arXiv preprint arXiv:2006.04768 . OpenAlex ↗ · Scholar ↗
- Wang, S.; Zhang, C.; Qian, H.; and Zhang, Z. 2014. Improving the modified nyström method using spectral shifting. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), 611–620. OpenAlex ↗ · Scholar ↗
- Wang, S.; and Zhang, Z. 2013. Improving CUR matrix decomposition and the Nyström approximation via adaptive sampling. Journal of Machine Learning Research (JMLR) 14(1): 2729–2769. OpenAlex ↗ · Scholar ↗
- Wang, S.; Zhang, Z.; and Zhang, T. 2016. Towards more efficient SPSD matrix approximation and CUR matrix decomposition. Journal of Machine Learning Research (JMLR) 17(1): 7329–7377. OpenAlex ↗ · Scholar ↗
- Williams, A.; Nangia, N.; and Bowman, S. R. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 1112–1122. our card
- Williams, C. K.; and Seeger, M. 2001. Using the Nyström method to speed up kernel machines. In Advances in Neural Information Processing Systems (NeurIPS), 682–688. OpenAlex ↗ · Scholar ↗
- Zafrir, O.; Boudoukh, G.; Izsak, P.; and Wasserblat, M. 2019. Q8BERT: Quantized 8bit BERT. In NeurIPS Workshop on Energy Efficient Machine Learning and Cognitive Computing 2019. our card
- Zaheer, M.; Guruganesh, G.; Dubey, A.; Ainslie, J.; Alberti, C.; Ontanon, S.; Pham, P.; Ravula, A.; Wang, Q.; Yang, L.; et al. 2020. Big bird: Transformers for longer sequences. arXiv preprint arXiv:2007.14062 . our card
- Zhang, K.; and Kwok, J. T. 2010. Clustered Nyström method for large scale manifold learning and dimension reduction. IEEE Transactions on Neural Networks 21(10): 1576–1587. OpenAlex ↗ · Scholar ↗
- Zhang, K.; Tsang, I. W.; and Kwok, J. T. 2008. Improved Nyström low-rank approximation and error analysis. In Proceedings of the International Conference on Machine Learning (ICML), 1232–1239. OpenAlex ↗ · Scholar ↗
- Zhu, Y.; Kiros, R.; Zemel, R.; Salakhutdinov, R.; Urtasun, R.; Torralba, A.; and Fidler, S. 2015. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 19–27. our card