Manuscript Offprint

arXiv:2609.35745

Copy the Same, Distill the Difference: Initializing Linear Vision Transformers

Huaiyuan Qin, Muli Yang, Gabriel James Goenawan, Shiqi Huang, Min Kass Chong, Wahyu Wiratama, Peng Hu, Chen Gong, Wu Liu, Xi Peng, Chun Jian Ho, Hongyuan Zhu

ABSTRACT

Linear Vision Transformers (ViTs) are designed to replace the attention in Softmax ViTs with the linear-complexity attention operator for more efficient token routing, but they require from-scratch pre-training and typically underperform the original Softmax version. How to initialize linear ViTs both efficiently and effectively still remains unclear. In this work, we explicitly ask: given that most foundation ViTs are built on the mainstream Softmax attention, can linear ViTs benefit from their pre-trained weights? Recent works on Attention Transfer show that attention is the effective transferable component between Softmax ViTs, suggesting attention alone suffices for such reuse. However, we find the opposite for Softmax-to-linear transfer. The attention weights are operator-specific: copying them barely helps, and is sometimes even worse than random initialization. Instead, the attention's token routing behavior can be recovered through distillation with a proper loss design, letting linear ViTs reduce the gap and even match Softmax ones. In contrast, the MLP weights, which carry the learned representation, are operator-agnostic: they can be transferred by simple direct copying, which already carries most of the benefit of the pre-trained weights. Thus, copying MLPs can serve as an effective foundation for Softmax-to-linear transfer: paired with the distilled attention, linear ViTs eventually close the remaining gap and even surpass Softmax ones. These findings hold consistently across various linear ViT variants, different model sizes, and diverse datasets. We hope this study deepens the understanding of reusing pre-trained weights across attention operators: copy what stays the same and distill what differs, to recover the benefit across the Softmax-to-linear boundary.

1 INTRODUCTION

Vision Transformers (ViTs) (Dosovitskiy et al., 2021) have become the dominant backbone for visual representation learning in the modern era, delivering strong performance across a wide range of vision tasks. Their Softmax attention mechanism, however, incurs a quadratic O(N2)\mathcal{O}(N^2) cost in the number of tokens, making token routing a computational bottleneck with high-resolution or long-context tasks. To reduce this cost, linear ViTs are designed to replace the attention in Softmax ViTs with the linear-complexity attention operator for more efficient token routing, but they require from-scratch pre-training and typically underperform the original Softmax version. How to initialize linear ViTs efficiently and effectively is therefore a question of practical significance, yet still remains unclear.

Therefore, in this work, we explicitly ask: given that most foundation ViTs are built on the mainstream Softmax attention, can linear ViTs benefit from their pre-trained weights for initialization? Analytical initializations (Trockman & Kolter, 2023; Zheng et al., 2025) have shown the potential to improve

Corresponding author.

Figure

Figure 1: What survives the Softmax-to-linear boundary? We ask whether linear ViTs can benefit from pre-trained Softmax weights for initialization. We find that the attention weights are operator-specific that copying them barely helps. Their token routing behavior can instead be recovered by distilling the attention outputs, while the operator-agnostic MLP weights, which carry the learned representation, can be simply transferred by direct copying. Paired together, linear ViTs can match and even surpass the Softmax ones, consistently across diverse settings.

from-scratch pre-training, but they still remain well below vanilla Softmax ViTs. More directly, recent works on Attention Transfer (Li et al., 2024; Qin et al., 2026b) have demonstrated that, between Softmax ViTs, transferring only the attention, by copying or distilling its attention maps, can already recover the original model's performance, suggesting Softmax attention alone suffices for such reuse.

However, we find the opposite for Softmax-to-linear transfer. We test the most direct reuse strategy for initialization: copying the pre-trained Softmax attention projection weights into a linear ViT, while leaving all other components randomly initialized. As shown in Fig. 2, such simple copy-only transfer from Softmax to linear ViTs barely helps, and is sometimes even worse than pure random initialization. Such failure is consistent across the linear ViT variants we study, revealing that the pre-trained attention weights are operator-specific: copied on their own, their benefit does not survive the change of the attention operator.

Does this failure mean the Softmax attention is entirely useless for linear ViTs? Crucially, no. While its weights do not transfer by copying, we identify that the token routing behavior of Softmax attention can be recovered through distillation with a proper loss design: unlike the map matching in Li et al. (2024), the loss should match the attention outputs rather than the operator-specific attention maps. This output-matching distillation lets linear ViTs largely reduce the gap to Softmax ones and even match them. The practical message is therefore not to copy the attention, but to distill it instead.

Furthermore, if the attention should be distilled rather than copied, what remains worth copying? To answer this, we decompose the transfer at the component level, selectively initializing the attention and the MLP blocks of linear ViTs from the pre-trained Softmax weights. We uncover that the MLP blocks are operator-agnostic: simply copying them already carries most of the benefit of the pre-trained weights. What transfers effectively across the Softmax-to-linear boundary by copying is the representation in the MLP blocks, consistent with the findings in Geva et al. (2021). Moreover, we find that copying MLPs can serve as an effective foundation for Softmax-to-linear transfer: when paired with distilled attention, linear ViTs eventually close the remaining gap and can even surpass Softmax ones; whereas copied or randomly initialized attention still leaves them below Softmax level.

We systematically validate these findings across various linear ViT variants, different model sizes, and diverse datasets. Across these settings, a simple principle emerges (see Fig. 1): copy what stays the same and distill what differs, to recover the benefit across the Softmax-to-linear boundary. We hope this principle can deepen the understanding of reusing pre-trained weights across attention operators.

In summary, our primary contributions are as follows:

  1. Systematic Study of Softmax-to-Linear Transfer. We present the first systematic component-level study of initializing linear ViTs from pre-trained Softmax weights across linear attention operators, and reveal the attention weights are operator-specific: copying them barely helps and can fall below random initialization.

  2. Distillation as the Fix. We show that a properly designed distillation loss, matching attention outputs rather than attention maps, recovers the token routing behavior and lets linear ViTs close most of the gap or even match the corresponding Softmax ones.

  3. A Simple, General Recipe. We find that copying the operator-agnostic MLP weights carries most of the transfer benefit, and combining them with distilled attention can let linear ViTs surpass Softmax, yielding the principle: copy what stays the same and distill what differs.

References (100)

Couldn't load all references. Reload the page to try again.