Organizations: University of Maryland, Department of Computer Science and UMIACS · Johns Hopkins University, Department of Electrical and Computer Engineering
Multimodal Transformers serve as the backbone for state-of-the-art vision-language models, yet their quadratic attention complexity remains a critical barrier to scalability. In this work, we investigate the viability of Linear Attention (LA) as a high-efficiency alternative within multimodal frameworks. By integrating LA, we reduce the computational overhead from quadratic to linear relative to sequence length while preserving competitive performance. We evaluate our approach across ViT-S/16, ViT-B/16, and ViT-L/16 architectures trained on the LAION-400M dataset, with validation focused on ImageNet-21K zero-shot accuracy. Our systematic evaluation demonstrates that Linear Attention not only yields significant computational savings but also adheres to the same scaling laws as standard softmax attention. These findings position Linear Attention as a robust, scalable solution for next-generation multimodal Transformers tasked with processing increasingly large and complex datasets.
Figures & tables
Figure 1: Heatmap visualization of attention scores aij of Eq. 4 and 7 . As i increases, the attention scores of Eq. 4 smooth-out, making it difficult for the model to distinguish relevant query and key pairs. The query and key are random matrices
Figure 2: Forward and backward pass time for a single attention layer with 8 heads, 64 dimensions per head, and batch size of 4 on an H200 GPU.
Figure 3: Training metrics for ViT-S/16, ViT-B/16, and ViT-L/16 models trained on LAION-400M using four NVIDIA A5500 GPUs. Linear attention with our adjustments achieves performance comparable to standard attention.
Model
Param
Layers
Width
Heads
ViT-S-16
22M
12
384
6
ViT-B-16
86M
12
512
8
ViT-L-16
304M
24
768
12
Table 1: Specifications of the models used in our study.
Figure 4: Training loss scaling with model size for ViTs on LAION-400M. Our adjusted LA follows a trend similar to standard attention.