pith. sign in

arxiv: 2407.11306 · v1 · pith:AUYKSIKInew · submitted 2024-07-16 · 💻 cs.CV

PADRe: A Unifying Polynomial Attention Drop-in Replacement for Efficient Vision Transformer

classification 💻 cs.CV
keywords padreself-attentionaccuracyattentiondrop-inpolynomialreplacementtransformer
0
0 comments X
read the original abstract

We present Polynomial Attention Drop-in Replacement (PADRe), a novel and unifying framework designed to replace the conventional self-attention mechanism in transformer models. Notably, several recent alternative attention mechanisms, including Hyena, Mamba, SimA, Conv2Former, and Castling-ViT, can be viewed as specific instances of our PADRe framework. PADRe leverages polynomial functions and draws upon established results from approximation theory, enhancing computational efficiency without compromising accuracy. PADRe's key components include multiplicative nonlinearities, which we implement using straightforward, hardware-friendly operations such as Hadamard products, incurring only linear computational and memory costs. PADRe further avoids the need for using complex functions such as Softmax, yet it maintains comparable or superior accuracy compared to traditional self-attention. We assess the effectiveness of PADRe as a drop-in replacement for self-attention across diverse computer vision tasks. These tasks include image classification, image-based 2D object detection, and 3D point cloud object detection. Empirical results demonstrate that PADRe runs significantly faster than the conventional self-attention (11x ~ 43x faster on server GPU and mobile NPU) while maintaining similar accuracy when substituting self-attention in the transformer models.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. FALO: Fast and Accurate LiDAR 3D Object Detection on Resource-Constrained Devices

    cs.CV 2025-06 unverdicted novelty 6.0

    FALO achieves competitive accuracy on nuScenes and Waymo LiDAR benchmarks while running 1.6-9.8x faster than prior state-of-the-art methods on mobile GPUs and NPUs through a hardware-friendly voxel sequencing and Conv...