HSMLA: Hierarchical Softmax Multi-scale Linear Attention for Efficient Vision Transformers
arXiv:2608.07616
Abstract
Vision transformers face significant computational overheads in high-resolution dense prediction due to the quadratic complexity of self-attention. Linear attention offers efficiency but sacrifices local context modeling. We propose \textbf{HSMLA (Hierarchical Softmax Multi-scale Linear Attention)}, which combines ReLU-based linear attention for global context, selective softmax refinement for critical local features, and multi-scale token representations via depthwise convolutions. HSMLA achieves superior accuracy-efficiency trade-offs: up to inference-time speedup across dense prediction tasks, Dice with speedup on CT organ segmentation, and AUC with speedup on pathology WSI.