Trimformer: A Novel Sequence Compression Mechanism with Local Attention
Training on extremely long sequences poses significant challenges for attention mechanisms. In this paper, we introduce a novel trim attention mechanism that capitalizes on the inherent sparsity within attention processes. This mechanism effectively compresses the sequence length, thereby reducing the overall computational complexity without altering the number of trainable parameters. Our experimental results demonstrate that this approach not only decreases computational demands but also outperforms the Vision Transformer in image classification tasks. The trim attention mechanism can seamlessly replace any standard attention layer.
Authors
- Ran Dou (ORCID: https://orcid.org/0009-0009-0004-9086)
- José C. Prı́ncipe (ORCID: https://orcid.org/0000-0002-3449-3531)
- Liyang Ru
Institutions
- University of Florida (US)
Publication Details
- Published
- 2025-03-12
- DOI
- https://doi.org/10.1109/icassp49660.2025.10890757
- Citations
- 1
- Primary Topic
- Blind Source Separation Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.49
Funders
- Arm