Elamur Research

Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels

Paper · 2025 · Maximilian Beck, Korbinian Poppel, Phillip Lippe et al.

Summary

A recurrent network can process a long sequence without comparing every token with every other token. That saves arithmetic in principle, but a GPU still has to execute the recurrence efficiently and move its results through memory. Earlier Flash Linear Attention kernels divided the sequence into chunks, stored a recurrent state at each boundary, and used those states to compute the chunks’ outputs in parallel. Each chunk had to fit the kernel’s working space on the chip. For long sequences, this meant writing and reading many boundary states. Tiled Flash Linear Attention, or TFLA, lets a chunk span many small working tiles. Independent programs still produce outputs from different chunks, and they also divide the work within each chunk. A larger chunk can therefore reduce traffic to GPU memory without requiring a larger tile.

The authors implement the method for mLSTM, the part of xLSTM that stores its recurrent memory in a matrix. They also develop a variant that uses a sigmoid to control how much new information enters that matrix. The original exponential gate needs a running maximum and a companion normalizer to keep its calculation numerically stable. The bounded sigmoid removes those states and makes it possible to fuse work that the exponential version performs in separate loops. On DCLM next-token prediction, the two variants achieve similar validation perplexity through the largest tested size of 1.4B parameters, with some configurations showing training spikes or failing to finish. A separate experiment with random inputs shows a similar shift from suppressing to passing signals after output normalization in both variants. Guided by that experiment, the authors initialize the input-gate bias at -10 and observe fewer gradient-norm spikes for both.

On NVIDIA H100, the authors report that the tiled exponential mLSTM kernel is about 25% faster than their limited-chunk exponential kernel, and the tiled sigmoid version improves forward-pass speed over the tiled exponential version by over 30%. In the forward-and-backward benchmark, tiled mLSTM beats FlashAttention 3 at longer sequence lengths and is more than 2x faster than Mamba 2 across the lengths tested. The forward-only comparison is closer, with Mamba 2 and Simple GLA slightly ahead of the sigmoid kernel. In a separate chunk-size sweep, the fastest forward-and-backward setting falls between 128 and 256 tokens per chunk. Larger chunks save memory but increase the work within each chunk. The paper’s hardware analysis explains why minimizing memory traffic, minimizing arithmetic, and minimizing elapsed time can lead to different choices.

Deep dive: Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels

Tiled Flash Linear Attention speeds up long-sequence recurrent computation by processing larger chunks in small tiles and moving fewer states. · about 38 minutes to read

The problem and its context

Why fewer operations can still take longer

Causal self-attention lets the representation at each position depend on earlier positions in a sequence. It works by comparing a query at the current position with keys from positions it is allowed to see, then using those comparisons to combine the corresponding values. A query describes what a position is looking for, a key describes what another position offers, and a value carries the information to be combined. As the input grows, the number of allowed query–key pairs grows quadratically. That arithmetic is a major cost of training and running a system over long inputs. The architecture the authors use as the point of comparison is the Transformer and attention.

A linear recurrent neural network, or linear RNN, organizes the calculation around a state. At a given position it reads from that state, which carries a summary of earlier inputs, and updates it with information from the new input. The update can depend on the input through gates, which control what enters the state and what survives from the past. The recurrence is linear in the previous state for given inputs. Its step-by-step form has work that grows linearly with sequence length for fixed state dimensions. The difficulty during training is that a step-by-step schedule makes every update wait for the preceding one, even when the entire input sequence is already available. Making this computation efficient is a problem in GPU and parallel computing.

Retentive networks and earlier chunkwise recurrences gave the field a way to use that available input. A chunk is a contiguous stretch of the sequence. A recurrent pass advances the memory between chunks, and a parallel calculation retrieves outputs within them. Each chunk needs to know what entered it, but once that boundary state is ready, its output calculation can run independently. This gives the GPU more work to do at once while keeping most pairwise comparisons local to short stretches. The paper traces this formulation in part to the Retentive Network.

The technique matters because an operation count leaves out the cost of moving data. GPU programs read large inputs from high-bandwidth memory, abbreviated HBM, and work on smaller pieces using faster on-chip storage, including shared memory, or SRAM. They use tensor cores for matrix multiplications. If the programs repeatedly move data through HBM and perform little arithmetic each time, the tensor cores can spend time waiting for data. Arithmetic intensity measures the amount of arithmetic performed per byte moved. The paper connects the need to raise that intensity to the growing gap between accelerator compute rates and memory bandwidth. AI and Memory Wall

What earlier kernels made possible

FlashAttention showed how to reduce the memory cost of softmax attention without changing the attention being evaluated. It breaks the query–key calculation into tiles, keeps temporary results on chip, and accumulates the output without writing the full matrix of pairwise scores to HBM. The quadratic computation remains, but the memory requirements can scale linearly with sequence length. FlashAttention-2 increased the opportunities for independent work by distributing the calculation across the sequence as well as over batches and heads. FlashAttention-3 used features available on newer hardware to overlap operations and accelerate parts of the calculation. These kernels made optimized softmax attention a demanding speed baseline for recurrent alternatives. FlashAttention-2 · FlashAttention-3

Flash Linear Attention, or FLA, applies chunkwise computation to linear attention, whose state can be updated by a recurrence. Its state-materializing implementation runs a recurrent kernel that writes a state for every chunk. A second kernel reads those states and produces chunk outputs in parallel. In this implementation, the chunk length also sets the size of the working tile. SRAM capacity therefore restricts how far apart the saved states can be. The paper gives 64 as a typical chunk length. For a long sequence, the number of copies of the matrix memory can become substantial, even though the kernel saves states only at chunk boundaries.

Earlier work also explored an implementation that avoids writing those intermediate states. It works through chunks in order, carrying the state along as it goes. That schedule saves the boundary-state traffic and gives up the ability to process outputs from different chunks concurrently. The two strategies expose a choice between storing boundary data to make more work independent and keeping the data local to a sequential calculation. In TFLA the authors keep the recurrent pass and the independent chunk outputs, then change the size of the pieces the parallel kernel handles. The chunk length determines how often the state has to cross HBM. A separate tile length determines what the working program has to hold on chip.

The authors demonstrate this change on the matrix-memory cell from the earlier xLSTM architecture. Its recurrence already has the structure needed for the chunkwise transformation, and its exponential gate makes the implementation more demanding than an ungated matrix update. Large gate values require numerical rescaling, and the corresponding scale has to follow the data when a calculation is broken into tiles. This gives the paper two problems to solve. The first is implementing the existing cell efficiently. The second is finding out whether a simpler cell can deliver similar next-token prediction quality. xLSTM: Extended Long Short-Term Memory

The method, step by step

What the recurrent cell remembers

The easiest way to follow TFLA is to start with the operation it evaluates. Imagine a single head, meaning one of the parallel groups of features in the cell. At each position, the head receives a query, a key, a value, and gate preactivations. A preactivation is the scalar or vector before a gate function is applied. The key and value form a small matrix through an outer product. The input gate decides how strongly that matrix is written into memory. The forget gate scales the old memory. The query then reads from the updated matrix. The same operations take place independently for each head.

The exponential mLSTM also keeps a vector that accumulates weighted keys and a scalar that tracks the logarithmic scale of the state. The vector supplies a denominator when the cell is read. The scalar makes it possible to represent very large unscaled weights with smaller stored values. At each timestep, the cell compares the log weight of the inherited state with the log weight of the new input.

mₜ = max(log σ(f̃ₜ) + mₜ₋₁, ĩₜ)

Here t is the sequence position. The symbols mₜ and mₜ₋₁ denote the current and previous maximum states. The symbols f̃ₜ and ĩₜ are the forget- and input-gate preactivations. The function σ is the sigmoid, log is the natural logarithm, and max takes the larger of its arguments. The previous maximum is included with the forget term because the old memory already uses the preceding step’s scale.

fₜ = exp(log σ(f̃ₜ) + mₜ₋₁ − mₜ)

The stabilized forget weight is fₜ, and exp is the exponential function. Subtracting mₜ means the exponent cannot be positive.

iₜ = exp(ĩₜ − mₜ)

The stabilized input weight is iₜ. The same choice of mₜ bounds this exponential as well. The two weights now refer to the same scale, which allows the cell to add the old and new contributions.

Cₜ = fₜ Cₜ₋₁ + iₜ kₜ vₜᵀ

The matrices Cₜ and Cₜ₋₁ are the new and previous memory. The vectors kₜ and vₜ are the current key and value, and ᵀ denotes transposition. The outer product kₜ vₜᵀ has a row dimension equal to the key width and a column dimension equal to the value width. The forget weight scales every entry of the previous matrix, while the input weight scales every entry in the new write.

nₜ = fₜ nₜ₋₁ + iₜ kₜ

The vectors nₜ and nₜ₋₁ are the new and previous normalizer states. They use the same weights as the matrix memory, replacing each value write with an accumulation of its key. This shared scaling lets the normalizer compensate for the scale used to represent the matrix state.

h̃ₜ = [Cₜᵀ qₜ / √d_qk] / max(|nₜᵀ qₜ / √d_qk|, exp(−mₜ))

The vector h̃ₜ is the memory read before the output normalization layer. The vector qₜ is the query, and d_qk is the width of a query or key. The notation √ denotes a square root and | | takes the absolute value of the scalar inside it. The numerator reads the matrix with the query. The denominator uses a read of the normalizer, with a floor expressed in the same scale as the stored state. The floor keeps a small normalizer read from creating a disproportionately large output.

hₜ = oₜ ⊙ NORM(h̃ₜ)

The vector hₜ is the final hidden output, NORM is a feature normalization layer, and oₜ is the vector output gate obtained by applying the sigmoid to the output-gate preactivation. The operator ⊙ multiplies corresponding entries. The original cell can use RMS normalization or Layer Normalization. The input and forget preactivations come from separate learned affine projections of the token representation to scalars. The output projection produces one gate entry per value feature.

There are two normalization operations in this description. The normalizer state participates in the matrix read and compensates for the scaling of the recurrence. The normalization layer acts on the features of the read vector. This distinction matters because the simpler sigmoid cell dispenses with the normalizer state and still applies the normalization layer.

From token updates to chunk boundaries

At training time all input queries, keys, values, and gate preactivations are available. The recurrence can then be expanded by asking how much each previous write contributes to a given output. A write starts with its input-gate weight and is multiplied by the forget weight of every subsequent position through the one being read. The fully parallel version evaluates that relationship for all allowed pairs of positions at once. Its lower triangular matrix expresses causality. A position can read its own write and earlier ones. This evaluation uses no explicit memory matrix at every position and incurs a quadratic cost in the full sequence length.

The chunkwise formulation uses the same logic over shorter intervals. The recurrent pass computes the state at each boundary in order. With those states available, each chunk can evaluate all its outputs by combining a read of the starting state with reads of the writes made inside the chunk. A read of the boundary state includes the accumulated forgetting from the start of the chunk to the query. A read of a local write includes the forgetting between the key and query within that chunk.

N_c = ⌈T / L⌉

Here T is the length of the sequence, L is the chosen number of positions per chunk, and N_c is the number of chunks. The ceiling brackets round up to a whole chunk. The paper’s cost formulas use T divided by L where it counts equal, full chunks.

How TFLA computes a sequence of mLSTM outputs

The steps in order.

How TFLA computes a sequence of mLSTM outputsStep 1: Split the inputs into chunks1. Split the inputs into chunksStep 2: Accumulate logarithmic gate weights within each chunk2. Accumulate logarithmic gate weights within each chunkStep 3: Write recurrent states at chunk boundaries3. Write recurrent states at chunk boundariesStep 4: Assign query and output tiles to GPU programs4. Assign query and output tiles to GPU programsStep 5: Accumulate causal contributions from key and value tiles5. Accumulate causal contributions from key and value tilesStep 6: Add reads from the chunk boundary states6. Add reads from the chunk boundary statesStep 7: Normalize and gate the output features7. Normalize and gate the output features

The gate preparation gives names to the different forgetting intervals. Write f̄[k,r] for the logarithm of the sigmoid forget gate at local position r in chunk k. Write ī[k,r] for the logarithm of the ungauged input weight before stabilization, which is the input preactivation for the exponential variant. Adding log weights corresponds to multiplying the original weights. This lets the implementation use sums over contiguous parts of a chunk.

g[k] = Σᵣ₌₁ᴸ f̄[k,r]

The scalar g[k] is the log weight for carrying memory all the way through chunk k. The summation symbol Σ adds the logarithmic forget weights from the first through the last local position r.

b[k,j] = Σᵣ₌₁ʲ f̄[k,r]

The quantity b[k,j] is the log weight on the incoming state as read at local position j. It includes the forget gate at j, since that update has already taken place before the read.

a[k,j] = ī[k,j] + Σᵣ₌ⱼ₊₁ᴸ f̄[k,r]

The quantity a[k,j] is the log weight with which the write at j reaches the end of chunk k. The sum starts after j because the new write enters after the old state is scaled by the forget gate at j. In the implementation, a reverse cumulative sum can form the suffix weights directly. The authors distinguish it from subtracting one cumulative sum from another, which can be less numerically stable.

Let M[k] denote the stabilized maximum at the end of chunk k. The recurrent boundary calculation finds a common scale for the state arriving from the previous chunk and every write reaching the new boundary.

M[k] = max(g[k] + M[k−1], maxⱼ a[k,j])

Here M[k−1] is the maximum stored at the preceding boundary. The inner max finds the largest local-write log weight across positions j. The outer max also considers the inherited log weight.

C[k] = exp(g[k] + M[k−1] − M[k]) C[k−1] + (exp(a[k] − M[k]) ⊙ K[k])ᵀ V[k]

The matrices C[k−1] and C[k] are the incoming and outgoing memory states for chunk k. The vector a[k] contains the local weights a[k,j]. The matrix K[k] stacks key vectors as rows, and V[k] stacks value vectors the same way. In the elementwise operation, each entry of the exponential weight vector is applied to an entire key row. The transposed weighted key matrix times the value matrix sums the weighted writes. The recurrent normalizer n[k] uses the same inherited scaling and weighted keys. In place of multiplying by V[k], it multiplies by a vector of ones, which gives a vector in key space.

The other pass needs a causal gate weight for each pair of positions inside the chunk. Let i index the query row and j the key column. Subtracting the prefix log weight at j from the one at i gives exactly the log forgetting after the write and through the read.

D̃[k,i,j] = b[k,i] − b[k,j] + ī[k,j]  for i ≥ j, and −∞ for i < j

The quantity D̃[k,i,j] is the local log gate weight. The symbol −∞ denotes negative infinity, which becomes zero under exponentiation. The inequalities select whether a key is available to the query. At a permitted pair the key’s input weight and the intervening forget weights determine the result. The fully parallel form uses the same construction over the whole sequence in place of a local chunk.

S[k] = Q[k] K[k]ᵀ / √d_qk

Here Q[k] stacks the query vectors of chunk k as rows, and S[k] holds the scaled query–key scores. Each entry is one dot product. The gate weight multiplies the score after the logarithmic weight has been stabilized and exponentiated. It therefore changes the size of the query–key contribution without applying softmax to the scores.

For each query, the algorithm chooses a final common maximum by comparing the largest permitted local log gate weight with the boundary term b[k,i] + M[k−1]. Call this row scale M_comb[k,i]. Let W[k] denote the score matrix after weighting every row with the local gate exponentials expressed relative to that scale. Let Q_b[k] denote the scaled query matrix whose rows are multiplied by the inherited weight relative to the same maximum. With these definitions the chunk output before the feature normalization layer has a compact form.

H[k] = (Q_b[k] C[k−1] + W[k] V[k]) / max(|Q_b[k] n[k−1] + W[k] 𝟙|, exp(−M_comb[k]))

The matrix H[k] contains one output row per query position. The vector n[k−1] is the incoming normalizer state, and 𝟙 is a vector of ones with one entry per key position. The vector M_comb[k] contains the common scale for each query row. The absolute value and maximum in the denominator operate row by row. Each resulting scalar divides all the value features of its row. The first numerator product retrieves information written before the chunk. The second retrieves what was written inside it. The denominator combines the matching contributions from those same sources.

How tiles change the work assigned to the GPU

The simplest way to see the work partition is to remove the gates and denominator from the expression temporarily. Use the same query, key, and value matrices and read the appropriate boundary memory. The formula then displays the matrix products the kernel has to schedule.

H[k] = Q[k] C[k−1] + (Q[k] K[k]ᵀ) V[k]

In this schematic formula, H[k] is the unnormalized chunk output with gate factors omitted. The first product makes the boundary contribution. The inner product in parentheses makes the local score matrix, and the final multiplication turns local scores into value features. Causality and gate factors are restored when the kernel actually evaluates the local tile.

This formula has an output row axis and an output feature axis. A program can own a rectangular tile along these axes without writing partial sums into another program’s region. In the paper’s notation, L_hq is the query sequence axis, L_kv is the key and value sequence axis, d_qk is the query and key feature axis, and d_hv is the value and hidden feature axis. The forward kernel assigns different query-row blocks and value-feature blocks to different programs. Inside each program, it loops over the key and value positions it needs and accumulates dot products over blocks of query and key features. Further independent work comes from different sequences in the batch, different heads, and different chunks.

The sequence tile on the query side determines which output rows the program owns. The tile on the key and value side determines how much input it handles in each loop iteration. The paper uses separate block sizes for these dimensions. As the chunk grows, additional programs can own additional query blocks, and each program can iterate over more key and value blocks. The score tile and the output accumulator can stay small. Giving programs different blocks of output features also allows the method to handle wide heads, since a single program need not hold all value features at once. A consequence of that split is that different programs for the same query rows may compute the same local score tile for their respective output feature blocks.

Causality makes work uneven across the query rows. A program assigned early queries needs only keys at or before those queries. Tiles entirely beyond those rows can be skipped. Where a tile crosses the causal boundary, the program masks the entries for future keys. Matrix multiplications work in blocks, so some masked elements can still be computed before being discarded. The authors reflect that cost in their analysis of how closely the computation approaches the ideal lower triangular workload.

The exponential gate complicates accumulation because each new tile may contain a larger log weight than any tile already processed. The program maintains a row maximum as well as accumulators for the numerator and normalizer. When the maximum increases, earlier terms have to be expressed in the new scale before the new terms are added. The same idea appears in efficient implementations that normalize a softmax incrementally. Online normalizer calculation for softmax

A_new = exp(m_old − m_new) A_old + A_tile

The symbols A_old and A_new are the accumulated contributions before and after the current tile. The symbol A_tile is the contribution of the current tile expressed at scale m_new. The old and new row maxima are m_old and m_new. The exponential factor applies row by row. The kernel uses this update both for the weighted sum of values and for the matching sum used in the denominator. At the end it combines the local and boundary contributions using their common row scale.

In the exponential implementation, this last combination affects the schedule. The scaling required for the boundary read depends on the maximum found after the scan over local tiles. The boundary calculation uses blocks of Q that were also read in the local calculation, yet the final boundary scale is only available after that calculation. The authors describe the resulting extra loop and repeated query loads. This is a cost of the gate’s dependency structure even when the largest matrix product remains unchanged.

How gradients are tiled

During training, the backward calculation has to return gradients for queries, keys, and values. The same two origins of information appear here as in the outputs. A gradient can come from an interaction with another position inside the same chunk or from the recurrence connecting chunk boundaries. For example, a value can contribute to reads later in its chunk and to the state carried onward. Both routes matter to its gradient. The inter-chunk backward pass carries memory-state gradients in reverse chunk order and adds the effect of output reads through the saved boundary states.

The authors express the main gradient calculations in matrix-product form to determine how to tile them. In the following formulas gate and normalization factors are omitted, as in the schematic forward formula. The superscript transpose has the same meaning as before, and the symbol δ denotes a gradient.

δQ[k] = (δH[k] V[k]ᵀ) K[k] + δH[k] C[k−1]ᵀ

Here δQ[k] is the query gradient and δH[k] is the incoming gradient of the chunk outputs. In the first product the output gradient is matched with values to give a local score gradient before passing it on to queries through keys. The boundary term passes the output gradient back through the memory being queried.

δK[k] = (V[k] δH[k]ᵀ) Q[k] + V[k] δC[k]ᵀ

Here δK[k] is the key gradient and δC[k] is the incoming gradient on the outgoing memory state. Local query rows contribute through the first term. The second term accounts for writes into the state using the corresponding values.

δV[k] = (K[k] Q[k]ᵀ) δH[k] + K[k] δC[k]

Here δV[k] is the value gradient. The first term brings output gradients back through the local scores, and the second uses the gradient on the state written by the chunk. The actual kernels restore the appropriate causal weights and normalization factors.

Each gradient has a different output shape, so the authors implement a separate kernel for each. The query-gradient kernel distributes work over query positions and query features, accumulating over key and value positions and over value features. The key-gradient kernel distributes work over key positions and key features, accumulating over query positions and value features. The value-gradient kernel distributes work over value positions and value features, accumulating over query positions and query and key features. These choices give each program an output tile it can finish by reducing over the remaining dimensions.

For the exponential cell, the backward calculation reuses the saved forward maxima. This avoids repeating the online rescaling as backward tiles are traversed. The authors form gate gradients by accumulating contributions to the prefix, suffix, and whole-chunk log weights. A local score contributes to both of its cumulative forget weights with opposite signs, and to the input weight of its key position. Cumulative sums then carry the gradients through the ranges that produced those weights. The implementation omits back-propagation through the normalizer state, following the argument that it supplies a scalar shared across features and that the subsequent feature normalization cancels this common scale. This is the backward procedure used in the paper.

What changes with the sigmoid input gate

The paper names the exponential cell mLSTMexp and the sigmoid cell mLSTMsig. The motivation for the switch comes from the range of preactivations seen in training. In the negative range the sigmoid approaches the exponential, while for large positive inputs its output saturates. The authors compute it in a form that avoids evaluating an exponential of a large positive number.

σ(x) = exp(x) / (1 + exp(x)) = 1 / (1 + exp(−x))

Here x is the gate preactivation and σ(x) is the corresponding weight. The first form can be used when x is negative, the second when it is positive. Each branch evaluates an exponential with a nonpositive argument. The bounded input gate removes the need to stabilize exponentially growing weights with a max state and to carry a normalizer state to cancel that scale.

Cₜ = σ(f̃ₜ) Cₜ₋₁ + σ(ĩₜ) kₜ vₜᵀ

The symbols are the same as in the exponential recurrence. The input and forget weights now come directly from the sigmoid. The memory still combines a scaled copy of its preceding contents with a gated key–value write.

h̃ₜ = Cₜᵀ (qₜ / √d_qk)

Here h̃ₜ is the pre-normalization read. It can go directly to the same feature normalization and output gate as before. In a chunkwise implementation, the logarithmic input weight becomes the logarithm of the sigmoid weight. The same ideas about prefix forgetting, suffix forgetting, and local causality apply. The forward kernel can remove the loops’ dependency on the final running maximum and fuse work that used the same query blocks. This is a change to the recurrent cell as well as an opportunity to simplify its kernel.

The approach generalizes mathematically to other recurrences with compatible chunkwise products. The paper sketches how headwise scalar gates could be adapted for Retention, Simple GLA, and Mamba 2. In recurrences without a separate input gate in the mLSTM sense, that weight can be fixed at one. For DeltaNet, the paper writes the effective value matrix as a transformation of the incoming recurrent state.

V*[k] = U[k] − W_delta[k] C[k−1]

Here V*[k] is the effective matrix of values for chunk k, and U[k] and W_delta[k] are the matrices from the chunkwise DeltaNet formulation. W_delta[k] multiplies the incoming memory to obtain the state-dependent correction. With V*[k] in place of V[k], the local output has the matrix-product structure used by TFLA, with the appropriate DeltaNet mask. The recurrent kernel would compute and store these effective values alongside the memory states, following separate preparation of U[k] and W_delta[k]. The authors give this as a route to an implementation and benchmark their own tiled kernels for mLSTM. The Mamba connection is through the chunkwise linear attention structure discussed in Transformers are SSMs.

How the prediction experiments were trained

The evaluation uses decoder-only systems trained to predict the next token on DCLM. Tokens are mapped to embeddings, sent through a stack of blocks, and scored by a final language head. The recurrent comparison changes the sequence-mixing layer inside those blocks. Each block also has a SwiGLU feedforward layer for mixing the features at each position. The two layers have skip connections and are preceded by RMS normalization with epsilon 1e-6. Inside the mLSTM cell the training runs use LayerNorm with epsilon 1e-6. The query and key feature width is 0.5 of the value width in the recurrent training architecture. The data source is DataComp-LM.

The tokenizer comes from GPT-NeoX and has a vocabulary size of 50,257. Input embedding and output projection weights are learned separately. Before the final token probabilities are calculated, the system smoothly caps the logits, the scores sent to the last softmax. It also caps the input- and forget-gate preactivations, which the authors found beneficial for training stability. GPT-NeoX-20B

softcap(x) = c · tanh(x / c)

Here x is the score or gate preactivation, c is the cap, and tanh is the hyperbolic tangent. The dot denotes multiplication. The authors set c to 30 for the logits and to 15 for the gate preactivations. For scores of small magnitude relative to the cap, the transformation changes the value little. For large magnitudes it approaches a fixed bound.

The training runs use AdamW with β₁ = 0.9, β₂ = 0.95, and optimizer epsilon 1e-8. These β parameters control the moving averages used by the optimizer. The weight decay is 0.1 for linear layers, including the final projection, and excludes biases and token embeddings. The gradient norm is clipped at 0.5. The learning rate warms up linearly over 750 steps, follows a cosine schedule toward 0.1 of its peak rate, and then cools down to 0 over the last 1000 steps. At a document boundary, a large negative forget-gate preactivation resets the recurrent memory so that a new document starts without information from the preceding one. Decoupled Weight Decay Regularization

The authors implement the layers in Flax and train them in JAX, integrating the custom kernels through JAX-Triton. They use PyTorch for the standalone kernel timings because most of the comparison implementations are available there. All experiments run on NVIDIA H100 80GB GPUs. The authors release their implementation under the name mlstm_kernels. The custom GPU programs use Triton.

Experiments and results

Next-token prediction

The language experiments ask whether changing the implementation affects the quality of the exponential cell and whether changing the gate affects the quality of the resulting system. The first comparison uses the authors’ limited-chunk limit_chunk kernel and their tiled xl_chunk kernel for the exponential cell. The second compares that cell with mLSTMsig using the tiled kernel. A Llama 2-style Transformer provides a reference at each training size. The paper evaluates held-out DCLM validation perplexity. Lower perplexity means the trained system gave higher probability, on average in log space, to the tokens that actually occurred. Llama 2

The runs use 160M, 400M, and 1.4B parameters. At context length 4096, the respective training budgets are 19B, 24B, and 33B tokens. At context length 8192, the budgets are 38B, 48B, and 65B tokens. A comparison across the two context lengths therefore also changes the amount of training data processed. The authors vary the number of heads within each size. This changes their width even when the recurrent layer’s total embedding width stays the same.

At context length 4096, the 160M Llama-style reference yields DCLM validation perplexity of 20.89. The 6-head recurrent runs give 21.03 for limited-chunk mLSTMexp, 21.18 for tiled mLSTMexp, and 21.03 for tiled mLSTMsig. The recurrent runs with 12 heads give 21.03, 21.06, and 21.05, respectively. Within the recurrent group, the sigmoid gate reaches essentially the same range as the exponential gate. The Transformer has lower perplexity than these recurrent configurations at this size.

At 400M parameters and the same context length, the Llama-style reference records validation perplexity of 16.85. With 8 heads, limited-chunk exponential mLSTM records 16.55. The tiled exponential and sigmoid runs give 16.80 and 16.67. With 16 heads, the tiled exponential and sigmoid runs both reach 16.61. At 1.4B parameters, the Llama-style result is 13.64 and several recurrent runs achieve lower perplexity. At 8 heads the three recurrent settings are close, as the chart shows.

DCLM validation perplexity at 1.4B parameters and context length 4096

The recurrent settings with the selected head count cluster closely and score below the Llama-style reference.

DCLM validation perplexity at 1.4B parameters and context length 4096Llama-style Transformer: 13.64Llama-style Transformer13.64mLSTMexp limited chunk, 8 heads: 13.20mLSTMexp limited chunk, 8 heads13.20mLSTMexp TFLA, 8 heads: 13.22mLSTMexp TFLA, 8 heads13.22mLSTMsig TFLA, 8 heads (this paper): 13.21mLSTMsig TFLA, 8 heads (this paper)13.21
The numbers
System or settingperplexity
Llama-style Transformer13.64
mLSTMexp limited chunk, 8 heads13.20
mLSTMexp TFLA, 8 heads13.22
mLSTMsig TFLA, 8 heads (this paper)13.21

The variation at 1.4B also shows why the table is more informative than a single best value. With 16 heads, the tiled exponential run reaches 13.87 and carries the paper’s flag for an affected run. The limited-chunk exponential and tiled sigmoid results in the same configuration are 13.20 and 13.22. The authors associate some departures in the tiled runs with spikes in the loss or gradient norm. The consistent proximity of the two gate variants in many settings supports the quality claim, while the affected run shows how training behavior can dominate the result in a particular comparison.

At context length 8192 and 1.4B parameters, tiled mLSTMexp with 8 heads gives DCLM validation perplexity of 12.65 and tiled mLSTMsig gives 12.67. The limited-chunk exponential run gives 12.62 in that setting and the Llama-style reference gives 12.97. At 16 heads, the limited-chunk exponential variant reaches 12.59 and tiled sigmoid reaches 12.75. The tiled exponential run at that head count fails to recover from training spikes. At 400M parameters and 16 heads, the sigmoid run fails. At the smaller 160M size, the 6-head tiled exponential and sigmoid runs record 20.43 and 20.46 respectively against the Llama-style result of 19.99.

The paper also checks the custom implementations against a fully parallel JAX reference. The check uses DCLM runs of 160M parameters trained on 19B tokens at context length 4096. With 6 heads, the reference exponential implementation gives validation perplexity of 21.02 and the limited-chunk kernel gives 21.03. The tiled exponential kernel gives 21.18. The corresponding sigmoid reference and tiled runs give 21.01 and 21.05. With 12 heads, the exponential JAX and tiled results are 21.01 and 21.07, while the sigmoid JAX and tiled results are 21.02 and 21.06. The comparison tests whether training with different ways of evaluating the cell leads to similar validation outcomes. The fully parallel reference runs out of memory at longer contexts in this check.

Standalone kernel speed and memory

The principal kernel benchmark fixes the embedding width at 4096 and the total token count across the batch at 65,536. It sweeps sequence length from 512 to 65,536, adjusting batch size to keep the workload’s total token count fixed. Each reported timing is the median of 30 iterations after 10 warmup iterations. The kernels run in bfloat16 for the benchmark, with the authors’ mLSTM kernels retaining the boundary states in float32 for stability. They measure forward-only execution and the combined forward and backward calculation separately. The former tests a forward pass over the supplied sequence. The latter includes the computation needed to propagate gradients.

The recurrent implementations use 16 heads with value width 256 and query and key width 128. FlashAttention uses 32 heads with width 128 throughout. GLA and Simple GLA use the same head widths and head count as mLSTM. Mamba uses a state dimension of 16, and Mamba 2 uses 64 heads of width 64. These are configurations at a common embedding width, with dimensions chosen for each implementation. The baselines include PyTorch’s and cuDNN’s FlashAttention 2 implementations as well as FlashAttention 3. The paper also compares the official Mamba kernels and the GLA and Simple GLA implementations from FLA.

The exponential limit_chunk baseline uses its best-performing chunk size of 64. The authors report that 128 can still fit in SRAM for this implementation but runs considerably slower. The tiled exponential kernel uses 128, as does the tiled sigmoid kernel in the main benchmark. The authors find 256 gives comparable runtime for the sigmoid implementation in their chunk-size tests. They report the tiled exponential mLSTM at about 25% faster than the limited-chunk exponential kernel. For the forward pass, the tiled sigmoid mLSTM is over 30% faster than the tiled exponential mLSTM.

Across primitives, the ordering depends on what is timed. In the forward-only measurements, Mamba 2 and Simple GLA are slightly faster than tiled mLSTMsig, with the gap within 1 ms. In forward and backward together, the tiled mLSTM kernels exceed FlashAttention 3 at longer sequence lengths and are more than 2x faster than Mamba 2 throughout the tested range. Simple GLA remains competitive on training speed. The combined timing captures the value of the tiled backward work partition, which a comparison of forward kernels alone would leave out.

In a separate comparison, the authors use eight heads, with 512 dimensions for values and 256 each for queries and keys. With these wider heads, Simple GLA runs slightly faster than the tiled mLSTM kernels by no more than 3 ms or 15%, while consuming nearly twice as much GPU memory. Simple GLA has no separate input gate and stores forward boundary states in bfloat16. TFLA stores these states in float32. The difference in storage type actually increases the traffic for each saved TFLA state, while the larger chunk size reduces the number of states that make the trip. The fused, non-materializing GLA implementation uses the least memory among the FLA variants in the comparison. The authors find that TFLA still compares favorably with it for both time and memory in training.

LightningAttention2 provides a separate comparison because the tested implementation supports equal query, key, and value widths only up to 128. The authors use 32 and 64 heads, corresponding to widths of 128 and 64. At the larger head width, LightningAttention2 uses 6.2 GB of GPU memory and the tiled sigmoid kernel with chunk size 256 uses about 7.3 GB. LightningAttention2 takes more than 3 times as long in forward and backward. Its sequential schedule across chunks avoids storing their boundary states. The measurement shows what that schedule buys in GPU memory and what it costs in elapsed time under these conditions.

Time per training step

The paper reports a training-step comparison for the 1.4B parameter runs at context length 8192. The global batch size is 256, sharded across 32 GPUs with local batch size 8. This measurement is broader than a custom kernel timing because the training step includes the surrounding architecture. The Llama-style reference takes 2.39 seconds per step. At 8 heads, the three recurrent configurations take 1.67, 1.66, and 1.64 seconds per step for limited-chunk exponential, tiled exponential, and tiled sigmoid, respectively.

Training step time for DCLM pretraining at 1.4B parameters and context length 8192

The selected recurrent runs take less time per step than the Llama-style training reference.

Training step time for DCLM pretraining at 1.4B parameters and context length 8192Llama-style Transformer: 2.39Llama-style Transformer2.39mLSTMexp limited chunk, 8 heads: 1.67mLSTMexp limited chunk, 8 heads1.67mLSTMexp TFLA, 8 heads: 1.66mLSTMexp TFLA, 8 heads1.66mLSTMsig TFLA, 8 heads (this paper): 1.64mLSTMsig TFLA, 8 heads (this paper)1.64
The numbers
System or settingseconds per training step
Llama-style Transformer2.39
mLSTMexp limited chunk, 8 heads1.67
mLSTMexp TFLA, 8 heads1.66
mLSTMsig TFLA, 8 heads (this paper)1.64

The effect of switching between recurrent kernels is smaller in this training-step comparison than in the standalone kernel reports. The table also shows that the fastest kernel choice can change with the head configuration. At 16 heads, the listed times are 1.60 seconds for the limited-chunk exponential system and 1.62 seconds for the tiled sigmoid system. The timing table describes execution speed at those settings. The validation table separately records that the tiled exponential run at this head count did not complete successfully.

What the ablations show

The input gate matters, and so does where it starts

The authors compare a learned input gate with a fixed one at the same initial bias of -10. They run this comparison on DCLM at 160M parameters and context length 4096. For mLSTMexp with the limited-chunk kernel, validation perplexity is 21.23 with a fixed gate and 20.95 with a learned gate. For the tiled sigmoid cell, it is 21.24 with a fixed gate and 21.04 with a learned one. The clean comparisons are within each pair, because the two variants use different kernels in this experiment. Both pairs show a benefit from adapting the input weight during training.

DCLM validation perplexity with fixed and learned input gates at 160M parameters

A learned input gate improves validation perplexity within each recurrent variant.

DCLM validation perplexity with fixed and learned input gates at 160M parametersmLSTMexp limited chunk, fixed gate: 21.23mLSTMexp limited chunk, fixed gate21.23mLSTMexp limited chunk, learned gate (this paper): 20.95mLSTMexp limited chunk, learned gate(this paper)20.95mLSTMsig TFLA, fixed gate: 21.24mLSTMsig TFLA, fixed gate21.24mLSTMsig TFLA, learned gate: 21.04mLSTMsig TFLA, learned gate21.04
The numbers
System or settingperplexity
mLSTMexp limited chunk, fixed gate21.23
mLSTMexp limited chunk, learned gate (this paper)20.95
mLSTMsig TFLA, fixed gate21.24
mLSTMsig TFLA, learned gate21.04

The initialization experiment varies the input-gate bias over 0, -2, -5, and -10. The weights producing the input and forget preactivations start at 0, so initially their biases determine the gate values. Forget-gate biases are distributed evenly across the range [3,6]. With an input bias of 0, the gradient norm varies sharply during training, especially for mLSTMsig. A starting value of -10 mitigates spikes and reduces that variance for both gate variants. The authors see the same exponential-cell behavior when they change from the limited-chunk kernel to the tiled one. This comparison makes the gate initialization a separate factor from the scheduling changes introduced by TFLA.

The authors also track the maximum input-gate preactivation across the batch, sequence, and heads during training for 160M parameter runs initialized at -10. The plotted preactivations stay below zero in most cases. This observation connects the training runs to the choice of sigmoid. The two activation functions behave similarly on the negative side, even though they differ substantially when the preactivation becomes positive. The observed gate range gives a reason to test whether retaining an unbounded input activation brings a practical advantage.

What the cell passes through its output normalization

To isolate how the variants respond to gates, the authors measure a single head on one random sequence of length 512. Queries, keys, and values come from the standard normal distribution N(0, 1). The query and key width and the value width are each 128. The input-gate preactivation ranges over [-12, 8] and the forget-gate preactivation over [-5, 12]. The authors compare the magnitude of the hidden read with the magnitude of the corresponding value vector, checking it before and after RMS normalization.

G_before = ‖h̃ₜ‖_max / ‖vₜ‖_max

The quantity G_before is the pre-normalization gain at position t. The notation ‖ ‖_max means the largest absolute component of a vector. The vector h̃ₜ is the memory read and vₜ is the input value.

G_after = ‖NORM(h̃ₜ)‖_max / ‖vₜ‖_max

The quantity G_after is the post-normalization gain at position t, with the same value vector in the denominator. NORM applies the feature normalization to the hidden read. The authors average the gains over time for each gate setting. This experiment takes inspiration from gain measurements in control systems and uses random input sequences to probe the cell’s response to gate settings.

RMS normalization scales the features by a root-mean-square denominator. In the transfer experiment, epsilon controls what happens to very small input vectors.

y = γ ⊙ x / √((Σᵣ xᵣ²) / d + ϵ)

Here x is the input vector, xᵣ is its feature at index r, d is the number of features, and y is the normalized vector. The sum runs across the features. The vector γ is the learned feature scale and ϵ is the small positive constant added to the mean squared magnitude. When that mean squared magnitude is tiny, ϵ substantially affects the output. When it is large enough, the normalization compensates for much of the change in overall scale.

After normalization, the two cells show the same qualitative pattern in the gain plots. The output moves from suppression toward passing the signal as the gate settings change, with a transition near an input-gate preactivation of -8 in the illustrated conditions. The authors hypothesize that normalization helps implement gating. If the matrix read has very little energy, epsilon dominates its normalization denominator and the output stays small. In another region, rescaling preserves a stronger signal. The experiment shows how the post-read normalization can let two different input activations produce similar gain patterns.

Changing epsilon shifts the transition for both cells. The transfer plots use 1e-2, 1e-6, and 1e-8. The authors then test the relationship in a DCLM grid search for a 160M parameter mLSTMexp with 6 heads and context length 4096. An area with improved validation perplexity runs from the setting with epsilon 1e-6 and bias -10 to the setting with epsilon 1e-4 and bias -5. Their default is the former. The grid supports the proposed interaction between gate initialization and normalization strength. Under these conditions, the two settings influence a common transition in signal gain.

The authors vary the recurrent normalizer separately from the normalization layer. For mLSTMexp, only the correctly stabilized normalizer among the illustrated variants produces the characteristic dependence on the input-gate setting. For mLSTMsig, adding a corresponding normalizer with a lower bound of 1 preserves the observed transfer behavior. The default sigmoid cell gives similar behavior with that normalizer removed. Other choices produce different gain patterns and some fail to train. Together, the comparisons connect a particular gain behavior with successful training among the variants tested. They also show that the expense of the exponential cell’s extra recurrent states comes from its own stabilization requirements.

Why the fastest chunk is somewhere in the middle

The chunk-size sweep varies the division of work with the same tiled sigmoid cell. The forward-and-backward experiment uses embedding width 4096, 8 heads of value width 512, sequence length 8192, and batch size 8. The measured runtime minimum falls between chunk lengths 128 and 256. The authors obtain peak allocated GPU memory from the PyTorch allocator during a kernel iteration, resetting the statistics between iterations and clearing its caches before each benchmark. This gives a measure of the peak footprint and a separate timing for the amount of work performed at each setting.

With small chunks, the local score computations are short and the recurrent pass emits many memory states. Larger chunks reduce the number of boundaries. They also increase the number of pairs evaluated inside each chunk, and the cost of the local work grows quadratically in the chunk length. With L = 1 the schedule approaches the step-by-step recurrence. With L = T it becomes the full-sequence parallel calculation. The TFLA tile sizes can stay small between these endpoints, which makes the interval available for tuning as head width and hardware change.

The operation counts help explain two timing observations. First, the exponential and sigmoid cell have the same leading matrix multiplication terms. For equal query, key, and value dimensions of 64, the exponential variant has less than 2% more FLOPs in the paper’s comparison. With those dimensions at 512, it has about 0.2% more. The forward speed gain is much larger. The authors point to removing work on pointwise and vector operations, which use different hardware resources from tensor-core matrix multiplications, and especially to fusing loops that previously loaded the same queries. Second, the authors observe that a high operation rate per second can coincide with longer elapsed time because the large chunk is also asking the GPU to perform more operations.

The cost analysis expresses the count-minimizing chunk length of the sigmoid formulation in terms of head size and how much pairwise work the causal implementation performs.

L_opt,FLOP = √[(2 d_hv² p_qk + 5) / (2 F_causal (d_hv (1 + p_qk) + 3) + 1)]

Here L_opt,FLOP is the chunk length that minimizes the simplified operation count. The quantity d_hv is the value width and p_qk gives the query and key width as a fraction of that width. The coefficient F_causal represents the fraction of pairwise work done under the causal mask. The numeric constants are from the authors’ simplified count. This continuous solution grows roughly with the square root of the head width at a fixed projection factor. As an illustration, the paper gives a FLOP-minimizing chunk size of 16 for value width 512. The gap between this example and the measured runtime optimum is consistent with the cost of moving boundary states.

The hardware analysis treats computation and memory traffic as two demands on the accelerator. The paper estimates the time for each using the hardware’s advertised rate. It uses their sum for the current forward implementation, which launches the recurrent and parallel kernels in sequence and does not use asynchronous loading to overlap memory and computation.

τ = FLOPs_algo / α_FLOPs + Bytes_algo / β_Bytes

Here τ is the estimated runtime with no overlap, FLOPs_algo is the counted work and Bytes_algo is counted memory traffic. The quantities α_FLOPs and β_Bytes are peak accelerator arithmetic throughput and memory bandwidth. Under complete overlap the paper instead takes the larger of the two terms. These are idealized schedules evaluated with the counted operations and traffic.

I_algo = FLOPs_algo / Bytes_algo

The quantity I_algo is the algorithm’s arithmetic intensity in operations per byte. It can be compared with the accelerator’s own intensity, I_acc, which is its peak arithmetic throughput divided by its memory bandwidth.

P_roof = min(β_Bytes · I_algo, α_FLOPs)

The quantity P_roof is the roofline throughput limit, and min selects the lower of the memory-imposed rate and the compute peak. At small chunks, the rate at which states move through HBM can dominate. At large chunks the added arithmetic can dominate. The authors measure throughput below the H100 roofline and find that the setting with the highest arithmetic throughput need not have the shortest runtime. Roofline

L_opt,Runtime = √[(2 d_hv² p_qk + 5 + 2 I_acc d_hv² p_qk bytes_Cmn) / (2 F_causal (d_hv (1 + p_qk) + 3) + 1)]

Here L_opt,Runtime is the predicted runtime-minimizing chunk length for the sigmoid forward pass under the paper’s assumptions. The quantity bytes_Cmn is the storage cost per element of the boundary state. The other symbols have the same meanings as in the operation count and arithmetic-intensity analysis. This estimate includes the cost of transferring recurrent state, so it favors longer chunks than the arithmetic-only optimum. The authors find a measured sigmoid forward optimum around 256 on H100, below the theoretical optimum. The estimate describes why head width, state precision, and the ratio of compute capacity to bandwidth affect chunk-size selection.

The paper also varies head width directly from 32 to 1024 at embedding width 4096, with sequence length 8192 and batch size 4. In this test, query, key, and value widths are equal. The authors’ limited-chunk mLSTM is as fast as the tiled kernels for training at the small widths of 32 and 64. At wide head settings the tiled kernels retain fast runtimes. This is consistent with the tiling strategy’s practical role. A small head can already fit an effective computation in the older schedule, whereas distributing work over feature blocks helps keep a wider head from relying on a single program’s capacity.

Limitations

Limits identified by the authors

Some training runs with tiled kernels show spikes in gradient norm or loss. The paper records worse final perplexity for affected runs and identifies configurations that fail to recover. The input-gate initialization reduces instability in the reported bias experiments. The authors still identify numerical errors in kernel implementations as a subject for further investigation. The exponential cell can be evaluated by mathematically related schedules that use different accumulation orders and numerical scales. Close validation perplexities in the completed comparisons support the implementation, while the failed runs leave questions about particular head dimensions and training conditions.

The authors also identify gaps in the theory of runtime. Their counts omit recomputation and the extra reads it entails, including duplicated query–key work across output feature tiles. The theoretical estimates omit the delay from launching successive kernels. They use a hardware peak rate for arithmetic that includes both tensor-core products and slower vector and pointwise operations. The paper observes that measured speed on H100 remains below the roofline. It points to more effective overlap of memory access and arithmetic, along with a possible CUDA implementation, as ways to investigate the available performance.

The proposed extensions to other recurrent architectures are formulations. The authors show how to obtain the required chunkwise products and discuss changes to gating and intermediate storage. They leave implementation of those extensions to future work. The runtime evidence for TFLA itself comes from mLSTM. The head-width comparison also has gaps where the FLA baselines encounter Triton compiler errors, specifically at widths 32 and 64. The findings at those widths compare the available mLSTM implementations.

Limits of the comparisons

Validation perplexity tests next-token prediction on DCLM. It gives direct evidence about how well a run predicts held-out tokens after the stated training budget. It provides limited evidence about the kinds of information the recurrent state can retain and retrieve as the relevant evidence moves farther back in a long sequence. The study also varies processed training tokens between the two context lengths. The results consequently support comparisons within a reported context and token budget more directly than claims about what longer context by itself changes. The largest prediction runs have 1.4B parameters. The 7B figure belongs to the embedding configuration used to select dimensions for kernel measurements and theoretical analysis.

The gate experiments support a narrower conclusion than equivalence of the two cell definitions. The sigmoid and exponential gates produce different positive-input weights. The transfer measurement averages gains over a random sequence with gates swept across specified ranges. Its maximum-component statistic describes magnitude and discards which features carry that magnitude or how information is distributed over time. Matching post-normalization gain patterns under those conditions can coexist with different reads or state trajectories. The language results add evidence that the difference is small for the reported prediction task, while the normalization ablations support the authors’ account of the conditions under which training succeeds.

Holding the kernel benchmark’s token count fixed gives a common batch workload and changes both sequence length and batch size across points on the curve. The results therefore describe that benchmark schedule. They give a different set of measurements from processing successive generated tokens one at a time with a saved recurrent state. Similarly, systems with a common embedding width can use different head counts, gate operations, and storage formats. An across-primitive timing compares the cost of running those configured implementations. The limited-chunk and tiled exponential comparison isolates the change in mLSTM’s kernel schedule more closely, and the training-step comparison shows how much of a timing difference survives when the rest of the computation is included.

Finally, the measured kernels all run on the NVIDIA H100 family. The cross-accelerator analysis comes from applying specification-based arithmetic and bandwidth estimates. It explains a tendency for larger chunks to become attractive when compute throughput is high relative to memory bandwidth, while the gap on H100 shows how much software scheduling and actual memory traffic still matter. The empirical optimum has to be read with its sequence length, head shape, precision, and forward or backward workload attached.

What came after

The citing work Bolmo: Byteifying the Next Generation of Language Models addresses language modeling at the byte level. Its citation places TFLA in the context of another approach to processing sequences. The citation alone leaves the technical relationship open, including whether Bolmo runs the tiled kernels, adopts their work partition, or cites them as part of the background on efficient recurrent computation.

Cite

Cite as Maximilian Beck, Korbinian Poppel, Phillip Lippe and Sepp Hochreiter. 2025. Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels. arXiv:2503.14376.

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

@misc{beck2025tiled,
  title = {{Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels}},
  author = {Maximilian Beck, Korbinian Poppel, Phillip Lippe and Sepp Hochreiter},
  year = {2025},
  doi = {10.48550/arxiv.2503.14376},
  eprint = {2503.14376},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2503.14376}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/beck-2025-tiled-flash-linear-attention-more/