Manuscript Offprint
arXiv:2611.04216LiSA: Linear Stochastic Attention for Long-Range Visual Modeling
Abstract
Self-attention has become the standard for modern sequence modeling, enabling Transformers to model long-range dependencies across a wide range of modalities. Despite these advances, its quadratic cost with respect to sequence length remains a significant computational bottleneck. Recent work addresses this limitation by introducing linear variants of self-attention, namely with kernel approximations of the softmax operator. However, their first-order aggregation restricts expressivity and struggles to capture higher-order structure. We propose Linear Stochastic Attention (LiSA), a linear attention plug-in module that enables higher-order token interactions via a stochastic diffusion process based on truncated random walks. LiSA incorporates adaptive locality, favoring semantically similar neighbors to preserve fine-grained structures, while maintaining stable and efficient training. We conduct extensive experiments on classification, semantic segmentation, and object detection tasks and show improved results over state-of-the-art methods. The code is available here.
1. Introduction
Transformers [34] have become a central paradigm in visual representation learning, with self-attention [24] serving as a key mechanism for capturing long-range dependencies. Since the advent of Vision Transformers (ViTs) [10, 33], self-attention has delivered strong performance across image classification [33, 38], object detection [3, 22], segmentation [4, 43], and multi-modal tasks [30], highlighting the value of global context in modern vision pipelines. However, self-attention scales quadratically with token length, which limits applicability to high-resolution images.
A number of recent works seek to reduce the quadratic complexity of standard ViTs. One common approach restricts attention to a limited set of tokens, either through fixed-sized attention windows [25, 32], introducing sparsity

Figure 1. Softmax vs. Linear vs. Higher-order attention. Given . softmax-attention forms then applies to . Linear-attention computes then applies to . Higher-order attention (ours) uses a truncation length , retaining multiple diffusion terms while remaining linear in and expanding the effective receptive field.
[38, 41] or representing the attention queries and keys with low rank matrices [37]. By reducing the number of pairwise token interactions, these methods lower computational cost, but often at the expense of global context modeling.
Other approaches linearize self-attention using kernel-based approximations [1, 20, 29, 31], replacing the softmax with a positive feature map . This enables an associative reordering of the Q, K, and V computation that avoids explicit pairwise interactions and reduces the complexity to linear in the sequence length. These methods retain a global receptive field without relying on downsampling.
In practice, however, an accuracy gap between kernelized linear-attention and standard self-attention persists. Recent works have reduced this gap by linearizing dot-product attention [2], enriching the kernel with angular [45] or focused parameterizations, and adding depthwise-convolutional components [14] or auxiliary softmax branches [45]. However, these variants are almost always built on the same core backbone, vanilla kernelized linear-attention [20]. Our analysis points to a structural bottleneck in this baseline: its single-pass bilinear aggregation.
Vanilla linear-attention mixes values for each query once through direct query-key affinities. With the affinity matrix defined as , the output can be interpreted as a first-order message-passing step along the edges encoded by A. Crucially, indirect dependencies (i.e., using intermediate tokens) would appear only in higher powers (e.g., , ), but vanilla linear-attention never materializes higher-order terms. As a result, when two
© 2027 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
regions are semantically related yet have weak first-order similarity (e.g., appearance changes due to lighting, occlusion, or viewpoint), their connection is under-weighted and the signal is diluted by many competing matches. In contrast, softmax-attention introduces competitive normalization that can concentrate probability mass on high-scoring connections, which help preserve long-range links.
Our approach targets this limitation and proposes a novel plug-in Linear Stochastic Attention (LiSA) module, which achieves efficient higher-order information propagation without sacrificing stability or locality. LiSA models attention as a linear stochastic process, where image patches are represented as graph nodes and edges encode transition probabilities among them during a truncated random walk. This formulation allows information to traverse intermediate tokens, enabling transitive reasoning. The random walk is truncated to a small number of steps to maintain linear complexity and numerical stability, providing a controllable balance between expressiveness and efficiency.
Overall, LiSA serves as a stronger drop-in module: it integrates cleanly with standard linear-attention refinements and often amplifies their benefits, delivering higher accuracy than vanilla linear-attention while preserving linear-time complexity and training stability. Our contributions are summarized as follows:
-
We introduce LiSA, a plug-in linear-attention module that enables efficient higher-order token interactions.
-
We formulate attention as a truncated random walk, enabling transitive information flow while preserving linear-time complexity and stable training.
-
We evaluate our method across classification, segmentation, and detection, consistently outperforming both self-attention and linear-attention baselines.
2.1. Efficient Vision Transformer
Despite their success in computer vision, attention-based models are computationally expensive due to the quadratic scaling of self-attention with the number of tokens. To reduce this cost, ViT, VOLO, and T2T-ViT [10, 46, 47] use patchification or progressive tokenization, with similar approaches applied to downstream tasks [22]. Other methods reduce attention costs by restricting token interactions: PVT/PVTv2 [38, 39] reduce key/value resolution, Swin [25] uses local windows, NAT [18] uses neighborhood attention, and BiFormer [52] adopts bi-level routing. However, the cost of softmax-attention remains a challenge for high-resolution images.
2.2. Linear Attention
An alternative to quadratic self-attention is Linear attention (linear-attention) [20], which reduces the quadratic cost of self-attention by factorizing query-key interactions and computing , reducing complexity from to while preserving the global context.
To improve the efficiency and expressiveness of linear-attention, Performer uses random features [6], CosFormer uses cosine re-weighting [29], SOFT adopts low-rank approximations [27, 44], and Efficient Attention separate query/key normalization [31]. FLatten token selectivity [14], and Hydra and Castling-ViT explore alternative similarity functions [1, 45]. More recently, MILA adopts Mamba-inspired designs [16], InLine addresses non-injectivity and locality [15], RALA mitigates the low-rank bottleneck [12], and PolaFormer models polarity-aware interactions [28]. Despite these advances, most linear-attention methods primarily model direct token interactions. Our LiSA captures higher-order, transitive interactions through truncated random walks while preserving linear complexity and achieving competitive accuracy compared to softmax-attention.
2.3. Higher-Order Attention
Several works extend attention beyond direct interactions through diffusion or graph filtering. MAGNA [36] diffuses attention over multiple hops in graph neural networks, while Diffuser [13] extends sparse Transformer attention with multi-hop diffusion. From a graph-signal-processing perspective, GFSA [5] interprets self-attention as a first-order graph filter and generalizes it through polynomial filtering. More recently, AGF [40] extends this perspective to linear Transformers by learning graph filters directly in the singular-value domain while retaining linear complexity. Attention Chains [11] instead interprets existing softmax attention matrices as Markov chains, using repeated transitions to characterize indirect attention and stationary token importance.
Our LiSA also models higher-order interactions, but differs in how they are computed. Unlike MAGNA and Diffuser, which diffuse attention over graph or sparse-attention structures, LiSA constructs a stochastic transition matrix directly from kernelized query-key affinities. While this can also be viewed as polynomial graph filtering, unlike AGF's spectral formulation, LiSA uses non-negative, normalized step weights to control multi-hop propagation. This allows information to flow through intermediate tokens while maintaining a probabilistic interpretation, with a local attention branch to preserve spatial details. Unlike Attention Chains, LiSA learns these interactions end-to-end to produce layer representations. Its low-rank factorization computes higher-order terms in the space, preserving linear complexity in the number of tokens.
3. Method
In Section 3.1 we give a brief definition of the self-attention mechanism and the linear version. We then proceed with the description and formulation of our proposed LiSA module in Section 3.2.
3.1. Preliminaries
Self-attention (SA). We start by presenting the self-attention model of transformers. Given a set of tokens , each represented by a -dimensional vector, self-attention maps to a set of queries , keys and values , where and are parameter matrices learned in training. The output of the self-attention layer is obtained as:
The output can also be expressed for a specific token i as:
and . Self-attention requires computing the attention score between each pair of tokens before the softmax, leading to time and memory complexity. This quadratic scaling makes high-resolution inputs and long sequences prohibitively expensive.
In this work, we seek an alternative to self-attention with the following properties: (1) Scalability: The complexity of the model in terms of memory and computation should increase linearly with respect to the number of tokens, during training as well as during inference. (2) Expressiveness: The model should also have expressiveness similar to that of self-attention while maintaining a comparable parameter budget. In particular, it should capture global and non-linear relations between input tokens.
Linear Attention (LA). Linear-attention [20] offers an effective alternative to softmax-attention by reducing the complexity from to in the sequence length . The key idea is to replace the softmax similarity with a positive feature map so that the pairwise similarity can be written in a kernelized form . With this factorization, the output for token becomes:
thereby avoiding the attention matrix and yielding linear-time computation.
Despite their efficiency, current linear-attention approaches primarily perform a single-pass aggregation: mixes each query with values exactly once via first-order (one-hop) affinities. This design fails to materialize transitive dependencies involving intermediate tokens, which would arise from higher powers of .
3.2. Linear Stochastic Attention (LiSA)
Our LiSA approach is based on discrete random walks. This stochastic process models the probability of moving among the nodes of a graph with a time-invariant transition probability matrix where each , for defines the probability of moving from node to node at any given time. Matrix is row-stochastic as .
At each step, the random walk can either continue by moving to another node with probability , in which case the next node is selected based on the transition probability matrix , or stop with probability . Denote by the probability of ending the walk at node when starting at node under a truncation length . Here, denotes the truncation length, i.e., the number of terms retained in the diffusion expansion, corresponding to powers . The random walk probabilities can be expressed as a geometric series:
Proposition 1. For walks of infinite length, probabilities can be computed analytically as:
The proof is provided in the supplementary material.
To model global relationships between tokens, we follow the self-attention approach based on matrices representing the , and of tokens. However, we consider a more general formulation , , , where is a point-wise activation function.
Considering tokens as nodes in the graph, the transition probability from a token i to a token j is then computed as:
This can be expressed in matrix form as: with . To avoid division by zero, we add a small constant to the normalization denominator. Intuitively, the transition probability encodes information similar to the attention score of self-attention, where a higher value means a stronger relationship between tokens i and j.
To obtain the transformed features of a token i, we imagine a generative process where a random walk is initiated at
LiSA: Linear Stochastic Attention

Figure 2. Overview of LiSA. We patchify the input image into tokens and treat them as nodes in a graph , where edge weights define a row-stochastic transition matrix . Aggregating the truncated terms on yields a global attention map that captures transitive (higher-order) dependencies. In parallel, we compute content-based similarity within each token's local neighborhood to form a local attention map. The layer output is a convex combination of the two, blending sharp local context with long-range structure.
node and, once the walk stops at a node , the value vector is generated. For a potentially infinite random walk with continuation probability , the expected features are then given by:
The formulation in Eq. (7) satisfies the desired property of expressiveness, as the function models an infinite-order relation between the input and output with the same number of trained parameters as self-attention. Moreover, it can be computed effectively, with a complexity linear in the number of tokens , using the property that is low rank. Nevertheless, matrix inversion, and in particular computing the derivative of this operation during back-propagation, remains expensive. In the next section, we present a more efficient solution based on truncated random walks.
Truncated Random Walk Approximation. To avoid matrix inversions, we retain the first terms of the random-walk expansion. In this case, the computation of output fea-
tures becomes:
This gives rise to the efficient computational process in Algorithm 1. Each loop of this algorithm multiples two matrices, which has a complexity . Therefore, the total complexity of the algorithm is . Due to the added factor, the truncation strategy has the important advantage of requiring only matrix multiplications that can be easily parallelized on GPU. However, since this approach limits the random walk to a finite length, it can produce results that differ from those of the original infinite random walk model. Nevertheless, as shown in the following proposition, this discrepancy rapidly diminishes as the walk length increases.
Proposition 2. Let be the truncation residual obtained after retaining the first T terms in . The norm of decays exponentially as the truncation depth T increases.
The proof is provided in the supplementary material.
Learnable Step Weights. To further increase the expressiveness of the model, we allow the step weights in Eq. (8) to be learnable and input-dependent. Specifically, we replace the fixed geometric weights with nonnegative weights predicted from the input and normalized across the T retained terms. This yields:
where and . Further details on the generation of the step weights are provided in the supplementary material.
Link to softmax in SA. Softmax attention adds nonlinearity through the pointwise exponential function: . In contrast, the random-walk (RW) diffusion probabilities are defined by a matrix power series over the transition matrix : . Because each power captures k-step transitions, RW diffusion models higher-order, non-pointwise relationships across the graph.
Adaptive Local Attention
In LiSA, increasing the truncation length retains higher-order powers of the row-stochastic transition operator, progressively extending information propagation across patches. Since each step updates as a weighted average of other tokens, shrinks over steps, making distinct regions (e.g., foreground and background) harder to separate (over-smoothing). We add a local branch that restricts mixing to a neighborhood to preserve spatial detail, while the global branch provides long-range context. This module models local interactions within a small neighborhood window around each token. For each patch token, affinities are computed only among its immediate spatial neighbors, with higher transition probabilities assigned to semantically similar regions. Let the spatial position of token be and define:
(11)
We then form a sparse local affinity matrix whose non-zero entries connect a node only to its spatial neighbors:
Algorithm 1 Truncation-based computation
Require: Truncation length
for do
end for
return
where . We row-normalize this affinity matrix to obtain the local attention transition. The neighborhood includes a self-transition through the offset, which helps stabilize local aggregation. Without this self-loop, each token would be forced to replace itself with a weighted average of its neighboring tokens. All entries outside are zero and are never explicitly computed, so the local branch has linear complexity in the number of tokens.
Mixture of Operators. We combine the outputs of the global and local branches, allowing the model to trade off long-range higher-order aggregation with local neighborhood refinement using a learnable gate:
where is a learnable parameter that balances global and local information.
4. Experiments
We validate the effectiveness of our method on ImageNet-1K classification [9], ADE20K semantic segmentation [51], and COCO object detection [23], and include extensive ablations to assess each design component.
4.1. Image Classification
Datasets. We use the ImageNet-1K dataset [9] for image classification. This dataset comprises 1.28M training images and 50K validation images across 1,000 categories.
Settings. We integrate our module into four Vision Transformer backbones, DeiT [33], PVT [38], Swin Transformer [25], and BiFormer [52] and report Top-1 accuracy on the validation split. For a fair comparison, we adopt the same training recipe as the baseline. All models are trained from scratch for 300 epochs with AdamW [26], a cosine-decayed learning rate and a 20-epoch linear warmup. We initialize the LR at and use a weight decay of 0.05. Data augmentation and regularization include RandAugment [8], Mixup [49], CutMix [48], and Random Erasing [50]. The experiments were conducted on eight NVIDIA A100/H100 GPUs. We replace every self-attention layer with our LiSA module and use for all main experiments. Since our method is a plug-in, it can be integrated into existing linear-attention architectures without other modifications. In these experiments, we use FLatten as the baseline linear attention, which combines a focusing function with a lightweight depthwise-convolution branch. In the ablation, we also evaluate additional baselines.
Table 1. Results of Classification. Comparison of LiSA across diverse vision backbones. Red indicates gains over the self-attention baseline (in all tables).
| Model | Input | Params (M) | FLOPs (G) | Top1-acc(%) |
|---|---|---|---|---|
| DeiT Family | ||||
| DeiT-T [33] | 224 | 5.72 | 1.26 | 72.2 |
| FLatten-DeiT-T [14] | 224 | 6.19 | 1.15 | 74.1 |
| LiSA-DeiT-T | 224 | 6.30 | 1.29 | 74.54 +2.34 |
| DeiT-T [33] | 384 | 5.79 | 4.70 | 74.9 |
| FLatten-DeiT-T [14] | 384 | 7.14 | 3.37 | 76.53 |
| LiSA-DeiT-T | 384 | 7.24 | 3.75 | 77.54 +2.64 |
| DeiT-S [33] | 224 | 22.05 | 4.61 | 79.8 |
| FLatten-DeiT-S [14] | 224 | 22.98 | 4.39 | 80.1 |
| LiSA-DeiT-S | 224 | 23.08 | 4.66 | 80.78 +0.98 |
| PVT Family | ||||
| PVT-T [38] | 224 | 13.23 | 1.94 | 75.1 |
| FLatten-PVT-T [14] | 224 | 12.14 | 2.00 | 77.8 |
| LiSA-PVT-T | 224 | 12.16 | 2.12 | 78.53 +3.43 |
| PVT-S [38] | 224 | 24.48 | 3.82 | 79.8 |
| FLatten-PVT-S [14] | 224 | 21.66 | 3.95 | 81.7 |
| LiSA-PVT-S | 224 | 21.69 | 4.18 | 81.96 +2.16 |
| Swin Family | ||||
| Swin-T [25] | 224 | 28.29 | 4.49 | 81.3 |
| FLatten-Swin-T [14] | 224 | 29.71 | 4.49 | 82.1 |
| LiSA-Swin-T | 224 | 29.74 | 4.72 | 82.25 +0.95 |
Results. Table 1 compares ImageNet Top-1 accuracy across DeiT, PVT, and Swin backbones. With comparable parameter counts and FLOPs, LiSA consistently outperforms the baseline and FLatten. On DeiT at 224 input resolution, LiSA improves DeiT-T/S by +2.34%/+0.98% and further surpasses FLatten-DeiT-T/S by +0.44%/+0.68%. On PVT, LiSA yields large gains over the baselines (+3.43% on PVT-T and +2.16% on PVT-S) and improves over FLatten by +0.73%/+0.26%. On Swin, LiSA also brings +0.95% improvement compare to self-attention. At a higher resolution (384×384) on DeiT-T, LiSA reaches 77.54%, improving over FLatten by +1.01 points (76.53%), while using fewer FLOPs than the original DeiT-T at the same input size. Table 2 shows LiSA
Table 2. Four-stage pyramid architecture: classification and segmentation results. Segmentation is with S-FPN. Dashes indicate values not reported.
| Model | Par. (M) | Top1-acc(%) | mIoU | mAcc |
|---|---|---|---|---|
| BiFormer-T [52] | 13.1 | 81.4 | — | — |
| LiSA-BiFormer-T | 13.2 | 82.4 +1.0 | — | — |
| BiFormer-S [52] | 25.5 | 83.8 | 48.9 | — |
| LiSA-BiFormer-S | 25.6 | 84.1 +0.3 | 49.5 +0.6 | 61.5 |
| BiFormer-B [52] | 56.8 | 84.3 | — | — |
| LiSA-BiFormer-B | 56.8 | 85.0 +0.7 | — | — |
transfers to BiFormer as well, improving classification by +1.0%/+0.3%/+0.7% for T/S/B.
4.2. Semantic Segmentation
Datasets. For semantic segmentation we use ADE20K [51], the standard semantic-segmentation benchmark, which includes 20K training images, 2K validation images, and 150 categories.
Settings. For a fair comparison, we use the same baseline training setup. We plug our method into two representative segmentation frameworks, Semantic FPN [21] and UPerNet [42], implemented in MMSegmentation [7]. Backbones are initialized from ImageNet-1K. We train Semantic FPN following the PVT recipe [38] and UPerNet using the default Swin configuration [25].
Table 3. Results of semantic segmentation. FLOPs are computed with an input of . S-FPN denotes SemanticFPN [21]. Dashes indicate values not reported.
| Semantic Segmentation on ADE20K | |||||
|---|---|---|---|---|---|
| Backbone | Method | FLOPs (G) | Par. (M) | mIoU | mAcc |
| PVT-T | S-FPN | 158 | 17 | 36.57 | 46.72 |
| FLatten-PVT-T | S-FPN | 169 | 16 | 37.21 | 48.95 |
| LiSA-PVT-T | S-FPN | 170 | 16 | 40.85 +4.28 | 51.75 +5.03 |
| Swin-T | UperNet | 945 | 60 | 44.51 | 55.61 |
| FLatten-Swin-T | UperNet | 946 | 60 | 44.82 | 57.01 |
| LiSA-Swin-T | UperNet | 947 | 60 | 45.03 +0.52 | 56.4 -0.61 |
Results. As shown in Table 3, our method delivers consistent gains across all settings. On PVT, it improves mIoU by more than 4.0 points and mAcc by more than 5.0 points over the baselines, under comparable FLOPs and parameter counts. On Swin, it improves mIoU of the baseline by 0.5 points respectively. LiSA-BiFormer-S (Table 2) also improves the corresponding mIoU baseline by 0.6 points. These results show that local attention effectively captures informative features for segmentation.
4.3. Object Detection
Datasets. For object detection we use the COCO object detection and instance segmentation benchmark [23], which includes 118K training images and 5K validation images.
Settings. We assess our method within Mask R-CNN [19], initializing backbones with ImageNet pretraining. Experiments use schedules with varying detection heads.
Results. As shown in Table 4, our method achieves the best accuracy with near-zero compute overhead. On PVT: box AP and mask AP improve by 3.8 and 2.5 points, respectively, compared with the PVT baseline. On Swin: box AP and mask AP improve by 0.8 and 0.5 points, respectively, compared with the Swin baseline
Table 4. Results of object detection. The FLOPs are computed over backbone, FPN and detection head with input resolution of .
| Mask R-CNN Object Detection on COCO | ||||||||
|---|---|---|---|---|---|---|---|---|
| Method | FLOPs | Sch. | ||||||
| PVT-T | 240G | 1x | 36.7 | 59.2 | 39.3 | 35.1 | 56.7 | 37.3 |
| FLatten-PVT-T | 244G | 1x | 38.2 | 61.6 | 41.9 | 37.0 | 57.6 | 39.0 |
| LiSA-PVT-T | 245G | 1x | 40.5 +3.8 | 62.9 +3.8 | 44.1 +4.8 | 37.6 +2.5 | 59.7 +3.0 | 40.2 +2.9 |
| Swin-T | 267G | 1x | 43.7 | 66.6 | 47.7 | 39.8 | 63.3 | 42.7 |
| FLatten-Swin-T | 268G | 1x | 44.2 | 67.3 | 48.5 | 40.2 | 63.8 | 43.0 |
| LiSA-Swin-T | 269G | 1x | 44.5 +0.8 | 67.4 +0.8 | 48.7 +1.0 | 40.3 +0.5 | 63.9 +0.6 | 43.1 +0.4 |
4.4. Ablation Study
We conduct ablations to analyze the impact of individual components in our method. Unless stated otherwise, all ablation results are reported on the mini-ImageNet dataset [35] (T = 5) for computational efficiency.
Comparison with other linear-attention methods. For a fair comparison with prior linear-attention modules, we compare against six designs: Hydra Attention [1], Vanilla linear-attention [20], Efficient Attention [31], Linear Angular Attention [45], Enhanced linear-attention [2], and Focused linear-attention (FLatten) [14]. Table 5 shows that LiSA outperforms all alternatives, including softmax-attention.
Table 5. Comparison of linear-attention variants on DeiT-S (ImageNet).
| Linear Attention | Top1-acc(%) |
|---|---|
| DeiT-S [33] | 79.8 |
| Hydra Attn [1] | 75.38 |
| Vanilla Linear Attn [20] | 76.47 |
| Efficient Attn [31] | 76.81 |
| Linear Angular Attn [45] | 79.21 |
| Enhanced Linear Attn [2] | 77.17 |
| Focused Linear Attn [14] | 80.1 |
| LiSA | 80.78 +0.98 |
Ablation for . Table 6 studies , which balances LiSA's global and local branches. We compare global-only ( , F+D+G), local-only ( , F+D+L), and learned . On both DeiT tiny and small, learning performs best (76.3% and 80.7%), outperforming both individual branches. Moreover, global-only exceeds local-only (73.7 vs. 73.4 on DeiT-T; 78.3 vs. 78.1 on DeiT-S), suggesting that long-range transitive aggregation provides a stronger standalone signal than local neighborhood matching.
Table 6. Component ablation on DeiT-T/DeiT-S classification.
| Backbone | F+D+G ( ) | F+D+L ( ) | Learned |
|---|---|---|---|
| DeiT-T | 73.7 | 73.4 | 76.3 +2.6 |
| DeiT-S | 78.3 | 78.1 | 80.7 +2.4 |
Number of truncations. We vary the truncation length in Eq. 4. All LiSA components and settings are kept fixed; only the truncation length is varied. Figure 3 shows that accuracy peaks at a moderate truncation length ( ). Across three seeds, consistently outperforms , isolating the benefit of higher-order propagation. Among the higher-order settings, achieves the second-highest mean accuracy ( ), closely approaching the best-performing ( ). We use for the ablation studies due to its highest mean accuracy, while adopting for the main ImageNet experiments to reduce computational cost by requiring fewer propagation terms with minimal loss in accuracy.

Figure 3. Effect of truncation length T on DeiT-T accuracy, reported as mean standard deviation across three runs.
Statistical variability. In Figure 3, we report results across three runs for truncation depths to , including the mean and standard deviation. The results confirm that higher-order propagation consistently improves over (e.g., for and for , versus for ), with achieving the highest mean accuracy. The relatively small differences among the stronger higher-order settings, together with their consistent gains over , indicate that the benefit is robust to run-to-run variability rather than driven by a single run.
Source of improvement. GL is our proposed attention core, a direct plug-in replacement for LA. F and D are additions borrowed from FLatten and are applied identically on top of both LA and GL. Our contribution is to replace the vanilla linear attention core (LA) with a higher-order global-local stochastic diffusion operator (GL). Table 7 isolates the contribution of our core: First, GL > LA (69.2 vs. 65.7), showing that our core already improves

(a) DeiT-T attention map. The red square marks the query patch.
(b) Transitive reasoning visualized in DeiT-T attention maps.
Figure 4. Visualization of attention behavior in DeiT-T.
over vanilla linear attention before introducing F or D. Second, the same trend holds when each auxiliary component is added independently: GL+F > LA+F (69.3 vs. 65.9) and GL+D > LA+D (75.2 vs. 73.3). Notably, GL+D even surpasses the full FLatten baseline LA+F+D (75.2 vs. 74.4). Finally, when both F and D are applied equally to both cores, GL+F+D > LA+F+D (76.3 vs. 74.4), showing that LiSA outperforms FLatten under the same auxiliary design. These consistent gains indicate that the improvement comes from our proposed GL mechanism rather than from the borrowed auxiliary components.
Table 7. Component ablation on DeiT-T classification.
| LA | GL | LA+F | GL+F | LA+D | GL+D | FLatten LA+F+D | LiSA GL+F+D |
|---|---|---|---|---|---|---|---|
| 65.7 | 69.2 | 65.9 | 69.3 | 73.3 | 75.2 | 74.4 | 76.3 |
Different linear-attention baseline. This experiment highlights the plug-in nature of our method and evaluates whether LiSA generalizes beyond FLatten. On DeiT-T, with linear angular attention [45], the baseline reaches 66.0% Top-1, while adding LiSA improves it to 73.4%. Furthermore, integrating LiSA into Agent Attention [17] improves DeiT-T from 73.40 to 75.77 (+2.37) and DeiT-S from 78.83 to 80.84 (+2.01), demonstrating that LiSA transfers effectively to other linear-attention variants.
Distribution of linear-attention. As shown in Figure 4a, vanilla linear-attention produces diffuse maps: the weights are spread across many locations, so each query effectively aggregates an almost averaged representation of the whole image. In contrast, LiSA yields more structured, non-uniform patterns, where larger weights are assigned to patches on the same object as the query, while most back-
ground areas receive only small contributions.
Visualization of Transitive Reasoning. In Figure 4b, we start from a query patch on the bird (red box). Local attention remains restricted to nearby patches, so its influence stays spatially confined. In contrast, LiSA expands its receptive field with hop depth: as we increase the truncation length (T=3, 5, 7), attention progressively propagates along semantically related regions, reaching distant yet correlated parts of the bird and eventually covering the tail and most of the object. Please zoom in for a clearer view.
Practical efficiency. We provide latency and peak GPU memory plots across sequence lengths. The efficiency advantage of LiSA over softmax attention becomes more pronounced as sequence length increases. DeiT-T scales quadratically in both latency and memory, becoming prohibitively expensive at long sequences, while FLatten and LiSA maintain linear scaling. LiSA incurs a modest latency overhead compared to FLatten, which is expected given its higher-order random-walk modeling and adaptive local branch. This overhead reflects a trade-off between efficiency and expressiveness. Memory-wise, LiSA preserves linear scaling and remains substantially more efficient than softmax attention, with some additional overhead over FLatten due to its higher-order modeling.

(a) Latency
(b) GPU memory
Figure 5. Efficiency comparison across sequence lengths.
5. Conclusion
We introduced LiSA, a linear-attention plug-in module that restores higher-order token interactions via a truncated random-walk formulation, while preserving stability and locality through an adaptive neighborhood. This design directly overcomes the first-order limitation of vanilla linear-attention, enabling richer transitive reasoning without sacrificing linear complexity. Across image classification, semantic segmentation, and object detection, LiSA yields consistent gains at near-identical compute budgets and transfers cleanly to diverse backbones (DeiT, PVT, Swin, BiFormer). Ablations confirm that each component contributes meaningfully and that a short truncation length already offers a strong accuracy-latency trade-off, positioning LiSA as a more powerful drop-in alternative to standard kernelized linear-attention. As future work, we plan to integrate LiSA into additional state-of-the-art linear-attention variants and study its behavior under diverse training recipes and data regimes.
LiSA: Linear Stochastic Attention for Long-Range Visual Modeling
Supplementary Material
6. Proofs of the Propositions
This section provides proofs for the propositions introduced in the methodology.
Proposition 3. For walks of infinite length, probabilities can be computed analytically as
Proof. Consider the sum over the first terms in Eq. (4). Pre-multiplying this sum by gives
\begin{aligned}(I-\beta S)P^{(T)}&=\left(\frac{1-\beta}{1-\beta^{T}}\right)\left(\sum_{k=0}^{T-1}\beta^{k}S^{k}-\sum_{k=1}^{T}\beta^{k}S^{k}\right)\\&=\left(\frac{1-\beta}{1-\beta^{T}}\right)\left(I-(\beta S)^{T}\right).}\end{aligned} \tag{15}Since , we have that and when , hence
□
Proposition 4. Let be the truncation residual obtained after retaining the first terms in . The norm of decays exponentially as the truncation depth increases.
Proof. We use the entrywise matrix norm, defined as . Since is stochastic, we have that is also stochastic, hence . Therefore,
For , therefore decays exponentially to zero as the truncation length increases.
7. Additional Ablation Study
Unless stated otherwise, all ablation results are reported on the mini-ImageNet dataset [35] () for computational efficiency.
Impact of kernel functions. In Table 8, we ablate the feature-map non-linearity used in linear-attention. ReLU achieves the best performance (76.3% Top-1), slightly out-performing ELU (76.0%). We therefore use ReLU by default in all experiments.
Table 8. Impact of different kernel functions (DeiT-T).
| Kernel Function | ELU | ReLU |
|---|---|---|
| Accuracy (%) | 76.0 | 76.3 |
Ablation for local window size. In Table 9 we vary the window size in local attention on DeiT-T. A compact window achieves the best Top-1 (76.3%) while being less computationally expensive, whereas larger windows slightly reduce accuracy (75.7% at , 76.1% at ) and increase cost.
Table 9. Ablation study on local window size using DeiT-T.
| Local Window Size | |||
|---|---|---|---|
| Accuracy (%) | 76.3 | 75.7 | 76.1 |
8. Learnable Step Weights Details
The step weights in Eq. (10) are predicted per token and per head, allowing each token to adaptively weight the retained diffusion terms through a lightweight gate applied to its query and key:
where and . The softmax guarantees and , so the output is a convex combination of the truncation length . The gate parameters are shared across heads and instantiated independently in each layer, while the weights are predicted separately for each token and head. The gate adds operations, preserving linear complexity in the number of tokens and leaving the asymptotic complexity of Algorithm 1 unchanged.
9. Failure Cases
Excessive higher-order diffusion can be detrimental due to over-smoothing: since is row-stochastic, deep walks converge toward a query-independent stationary distribution, making token representations increasingly similar and weakening discriminative local structure.
10. Effective Regimes
LiSA provides the largest gains precisely where long-range modeling is hardest: plain columnar backbones with weak first-order cores (+3.43 on PVT-T; +7.4 when added to linear angular attention), high-resolution inputs (+2.64 at 384²), and dense prediction tasks that require spatial reasoning (+4.28 mIoU on ADE20K, +3.8 box AP on COCO). Gains remain consistent but naturally smaller for backbones that already encode hierarchy and locality (e.g. +0.95 on Swin-T), where part of the long-range signal is available by design. Its additional cost is therefore least justified at short sequence lengths, where the term is not amortized.
11. Model Architecture
We summarize the architectures of the three Transformer models used in the main paper, DeiT, PVT, and Swin Transformer, in Table 10, 11, and 12. In all cases, we replace each original self-attention block with our proposed LiSA block.
Table 10. Architectures of LiSA-DeiT models. All original DeiT transformer blocks are removed (#DeiT blocks = 0) and replaced with LiSA blocks.
| Model | Stage | Resolution | LiSA blocks (res, dim, heads, #layers) | #DeiT blocks |
|---|---|---|---|---|
| LiSA-DeiT-T | Encoder | 14 × 14 | (14 × 14, 192, 3) × 12 | 0 |
| LiSA-DeiT-S | Encoder | 14 × 14 | (14 × 14, 384, 6) × 12 | 0 |
Table 11. Architectures of LiSA-PVT models. At all stages, the original PVT transformer blocks are removed (#PVT blocks = 0) and replaced with LiSA blocks.
| Model | Stage | Output | LiSA blocks (res, dim, heads, #layers) | #PVT blocks |
|---|---|---|---|---|
| LiSA-PVT-T | res1 | 56 × 56 | (56 × 56, 64, 2) × 2 | 0 |
| res2 | 28 × 28 | (28 × 28, 128, 4) × 2 | 0 | |
| res3 | 14 × 14 | (14 × 14, 320, 10) × 2 | 0 | |
| res4 | 7 × 7 | (7 × 7, 512, 16) × 2 | 0 | |
| LiSA-PVT-S | res1 | 56 × 56 | (56 × 56, 64, 2) × 3 | 0 |
| res2 | 28 × 28 | (28 × 28, 128, 4) × 4 | 0 | |
| res3 | 14 × 14 | (14 × 14, 320, 10) × 6 | 0 | |
| res4 | 7 × 7 | (7 × 7, 512, 16) × 3 | 0 |
12. Detailed Efficiency Measurements
To complement the efficiency plots in the main paper, we additionally report the exact latency, throughput, and peak
Table 12. Architecture of the LiSA-Swin model. At all stages, the original Swin transformer blocks are removed (#Swin blocks = 0) and replaced with LiSA blocks.
| Stage | Output | LiSA-Swin-T | |
|---|---|---|---|
| LiSA blocks (win, dim, heads, #layers) | #Swin blocks | ||
| res1 | 56 × 56 | (7 × 7, 96, 3) × 2 | 0 |
| res2 | 28 × 28 | (7 × 7, 192, 6) × 2 | 0 |
| res3 | 14 × 14 | (7 × 7, 384, 12) × 6 | 0 |
| res4 | 7 × 7 | (7 × 7, 768, 24) × 2 | 0 |
GPU memory values in Table 13. The measurements span input resolutions from 224² to 2048², corresponding to sequence lengths from 197 to 16,385 tokens, and compare DeiT-T, FLatten, and LiSA under the same setting. Consistent with Fig. 5, DeiT-T exhibits rapidly increasing latency and memory as the sequence length grows, whereas FLatten and LiSA scale much more favorably. LiSA incurs additional latency over FLatten due to its higher-order propagation and adaptive local branch, while retaining substantially lower latency and memory than softmax attention at long sequences.
Table 13. Latency, throughput, and peak GPU memory across input resolutions.
| Input | DeiT-T | Flatten | LiSA | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Seq. | Latency (ms) | Throughput (img/s) | GPU Memory (MB) | Latency (ms) | Throughput (img/s) | GPU Memory (MB) | Latency (ms) | Throughput (img/s) | GPU Memory (MB) |
| 224 | 197 | 3.50 | 2288.00 | 74.0 | 7.15 | 1118.91 | 73.2 | 13.53 | 591.49 | 95.4 |
| 384 | 577 | 4.07 | 1967.60 | 152.7 | 7.34 | 1090.32 | 110.2 | 13.52 | 591.60 | 172.1 |
| 512 | 1025 | 8.06 | 993.06 | 312.9 | 7.40 | 1080.62 | 151.1 | 13.48 | 593.68 | 263.4 |
| 640 | 1601 | 15.56 | 514.19 | 627.9 | 11.11 | 720.42 | 206.6 | 19.47 | 410.90 | 382.0 |
| 768 | 2305 | 27.69 | 288.93 | 1178.7 | 14.74 | 542.73 | 275.7 | 26.15 | 305.90 | 529.2 |
| 896 | 3137 | 43.80 | 182.66 | 2061.4 | 19.96 | 400.87 | 352.4 | 34.86 | 229.49 | 697.4 |
| 1024 | 4097 | 66.51 | 120.29 | 3394.2 | 25.59 | 312.58 | 441.9 | 44.89 | 178.21 | 890.9 |
| 1152 | 5185 | 98.78 | 80.99 | 5317.0 | 31.79 | 251.65 | 546.2 | 55.58 | 143.95 | 1115.9 |
| 1280 | 6401 | 146.13 | 54.74 | 7976.9 | 39.05 | 204.88 | 663.9 | 67.58 | 118.38 | 1367.2 |
| 1408 | 7745 | 205.52 | 38.93 | 11545.5 | 46.43 | 172.29 | 791.3 | 80.73 | 99.10 | 1642.5 |
| 1536 | 9217 | 279.54 | 28.62 | 16210.5 | 54.77 | 146.07 | 926.4 | 95.24 | 83.99 | 1937.2 |
| 1792 | 12545 | 502.82 | 15.91 | 29690.0 | 71.92 | 111.24 | 1244.8 | 126.33 | 63.33 | 2623.8 |
| 2048 | 16385 | 898.92 | 8.90 | 50281.7 | 91.84 | 87.11 | 1605.2 | 161.71 | 49.47 | 3409.1 |
References
[1] Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, and Judy Hoffman. Hydra attention: Efficient attention with many heads. arXiv preprint arXiv:2209.07484, 2022. 1, 2, 7
[2] Han Cai, Chuang Gan, and Song Han. Efficientvit: Enhanced linear attention for high-resolution low-computation visual recognition. arXiv preprint arXiv:2205.14756, 2022. 1, 7
[3] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part I 16, pages 213–229. Springer, 2020. 1
[4] Bowen Cheng, Alex Schwing, and Alexander Kirillov. Per-pixel classification is not all you need for semantic segmentation. Advances in Neural Information Processing Systems, 34:17864–17875, 2021. 1
[5] Jeongwhan Choi, Hyowon Wi, Jayoung Kim, Yehjin Shin, Kookjin Lee, Nathaniel Trask, and Noseong Park. Graph convolutions enrich the self-attention in transformers! Advances in Neural Information Processing Systems, 37: 52891–52936, 2024. 2
[6] Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. In International Conference on Learning Representations, 2021. 2
[7] MMSegmentation Contributors. Mmsegmentation, an open source semantic segmentation toolbox, 2020. 6
[8] Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition workshops, pages 702–703, 2020. 6
[9] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on Computer Vision and Pattern Recognition, pages 248–255. IEEE, 2009. 5
[10] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021. 1, 2
[11] Yotam Erel, Olaf Dünkel, Rishabh Dabral, Vladislav Golyanik, Christian Theobalt, and Amit Bermano. Attention (as discrete-time markov) chains. Advances in Neural Information Processing Systems, 38:54658–54690, 2026. 2
[12] Qihang Fan, Huaibo Huang, and Ran He. Breaking the low-rank dilemma of linear attention. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 25271–25280. IEEE, 2025. 2
[13] Aosong Feng, Irene Li, Yuang Jiang, and Rex Ying. Diffuser: efficient transformers with multi-hop attention diffusion for long sequences. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 12772–12780, 2023. 2
[14] Dongchen Han, Xuran Pan, Yizeng Han, Shiji Song, and Gao Huang. Flatten transformer: Vision transformer using focused linear attention. In ICCV, 2023. 1, 2, 6, 7
[15] Dongchen Han, Yifan Pu, Zhuofan Xia, Yizeng Han, Xuran Pan, Xiu Li, Jiwen Lu, Shiji Song, and Gao Huang. Bridging the divide: Reconsidering softmax and linear attention. In NeurIPS, 2024. 2
[16] Dongchen Han, Ziyi Wang, Zhuofan Xia, Yizeng Han, Yifan Pu, Chunjiang Ge, Jun Song, Shiji Song, Bo Zheng, and Gao Huang. Demystify mamba in vision: A linear attention perspective. In NeurIPS, 2024. 2
[17] Dongchen Han, Tianzhu Ye, Yizeng Han, Zhuofan Xia, Shiji Song, and Gao Huang. Agent attention: On the integration of softmax and linear attention. In ECCV, 2024. 8
[18] Ali Hassani, Steven Walton, Jiachen Li, Shen Li, and Humphrey Shi. Neighborhood attention transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023. 2
[19] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In International Conference on Computer Vision, 2017. 7
[20] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International Conference on Machine Learning, pages 5156–5165. PMLR, 2020. 1, 2, 3, 7
[21] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollár. Panoptic feature pyramid networks. In CVPR, 2019. 6
[22] Yanghao Li, Hanzi Mao, Ross Girshick, and Kaiming He. Exploring plain vision transformer backbones for object detection. In Computer Vision–ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23–27, 2022, Proceedings, Part IX, pages 280–296. Springer, 2022. 1, 2
[23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European Conference on Computer Vision, 2014. 5, 6
[24] Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding, 2017. 1
[25] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In ICCV, 2021. 1, 2, 5, 6
[26] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2018. 5
[27] Jiachen Lu, Jinghan Yao, Junge Zhang, Xiatian Zhu, Hang Xu, Weiguo Gao, Chunjing Xu, Tao Xiang, and Li Zhang. Soft: softmax-free transformer with linear complexity. Advances in Neural Information Processing Systems, 34:21297–21309, 2021. 2
[28] W Meng, Y Luo, X Li, D Jiang, and Z Zhang. Polaformer: Polarity-aware linear attention for vision transformers. arxiv 2025. arXiv preprint arXiv:2501.15061. 2
[29] Zhen Qin, Weixuan Sun, Hui Deng, Dongxu Li, Yunshen Wei, Baohong Lv, Junjie Yan, Lingpeng Kong, and Yiran Zhong. cosformer: Rethinking softmax in attention. In International Conference on Learning Representations, 2022. 1, 2
[30] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021. 1
[31] Zhuoran Shen, Mingyuan Zhang, Haiyu Zhao, Shuai Yi, and Hongsheng Li. Efficient attention: Attention with linear complexities. In WACV, 2021. 1, 2, 7
[32] Shitao Tang, Jiahui Zhang, Siyu Zhu, and Ping Tan. Quadtree attention for vision transformers. In International Conference on Learning Representations, 2022. 1
[33] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training
data-efficient image transformers & distillation through attention. In International Conference on Machine Learning, pages 10347–10357. PMLR, 2021. 1, 5, 6, 7
[34] Ashish Vaswani, Noam Shazeer, Niki Parmar, et al. Attention is all you need. In NeurIPS, 2017. 1
[35] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. Advances in neural information processing systems, 29, 2016. 7, 1
[36] Guangtao Wang, Rex Ying, Jing Huang, and Jure Leskovec. Multi-hop attention graph neural network. arXiv preprint arXiv:2009.14332, 2020. 2
[37] Sinong Wang, Belinda Z. Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity, 2020. 1
[38] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 568–578, 2021. 1, 2, 5, 6
[39] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Ptv2: Improved baselines with pyramid vision transformer. Computational Visual Media, 8(3):1–10, 2022. 2
[40] Hyowon Wi, Jeongwhan Choi, and Noseong Park. Learning advanced self-attention for linear transformers in the singular value domain. arXiv preprint arXiv:2505.08516, 2025. 2
[41] Zhuofan Xia, Xuran Pan, Shiji Song, Li Erran Li, and Gao Huang. Vision transformer with deformable attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4794–4803, 2022. 1
[42] Tete Xiao, Yingcheng Liu, Bolei Zhou, Yuning Jiang, and Jian Sun. Unified perceptual parsing for scene understanding. In ECCV, 2018. 6
[43] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M Alvarez, and Ping Luo. Segformer: Simple and efficient design for semantic segmentation with transformers. Advances in Neural Information Processing Systems, 34:12077–12090, 2021. 1
[44] Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, and Vikas Singh. Nyströmformer: A nystrom-based algorithm for approximating self-attention. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 14138–14148, 2021. 2
[45] Haoran You, Yunyang Xiong, Xiaoliang Dai, Bichen Wu, Peizhao Zhang, Haoqi Fan, Peter Vajda, and Yingyan Lin. Castling-vit: Compressing self-attention via switching towards linear-angular attention during vision transformer inference. In CVPR, 2023. 1, 2, 7, 8
[46] Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Zi-Hang Jiang, Francis EH Tay, Jiashi Feng, and Shuicheng Yan. Tokens-to-token vit: Training vision transformers from scratch on imagenet. In Proceedings of the IEEE/CVF international conference on computer vision, pages 558–567, 2021. 2
[47] Li Yuan, Qibin Hou, Zihang Jiang, Jiashi Feng, and Shuicheng Yan. Volo: Vision outlooker for visual recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022. 2
[48] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6023–6032, 2019. 6
[49] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017. 6
[50] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 13001–13008, 2020. 6
[51] Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. In International Journal of Computer Vision. Springer, 2019. 5, 6
[52] Lei Zhu, Xinjiang Wang, Zhanghan Ke, Wayne Zhang, and Rynson Lau. Biformer: Vision transformer with bi-level routing attention. In CVPR, 2023. 2, 5, 6