paper-with-me

Papers

FLatten Transformer: Vision Transformer using Focused Linear Attention

2023-08-01 · ICCV 2023 1 · Dongchen Han, Xuran Pan, Yizeng Han, Shiji Song, Gao Huang

The quadratic computation complexity of self-attention has been a persistent challenge when applying Transformer models to vision tasks. Linear attention, on the other hand, offers a much more efficient alternative with its linear complexity by approximating the Softmax operation through carefully designed mapping functions. However, current linear attention approaches either suffer from significant performance degradation or introduce additional computation overhead from the mapping functions. In this paper, we propose a novel Focused Linear Attention module to achieve both high efficiency and expressiveness. Specifically, we first analyze the factors contributing to the performance degradation of linear attention from two perspectives: the focus ability and feature diversity. To overcome these limitations, we introduce a simple yet effective mapping function and an efficient rank restoration module to enhance the expressiveness of self-attention while maintaining low computation complexity. Extensive experiments show that our linear attention module is applicable to a variety of advanced vision Transformers, and achieves consistently improved performances on multiple benchmarks. Code is available at https://github.com/LeapLabTHU/FLatten-Transformer.

📄 PDF Abstract BibTeX arXiv:2308.00442

Code (1)

leaplabthu/flatten-transformer 공식 구현 pytorch

Tasks

Diversity

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Adam 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

U-Netmer: U-Net meets Transformer for medical image segmentation

2023-04-03 · Sheng He, Rina Bao, P. Ellen Grant, Yangming Ou

The combination of the U-Net based deep learning models and Transformer is a new trend for medical image segmentation. U-Net can extract the detailed local semantic and texture information and Transformer can learn the l…

Image SegmentationMedical Image SegmentationSegmentationSemantic Segmentation

LoFLAT: Local Feature Matching using Focused Linear Attention Transformer

2024-10-30 · Naijian Cao, Renjie He, Yuchao Dai, Mingyi He

Local feature matching is an essential technique in image matching and plays a critical role in a wide range of vision-based applications. However, existing Transformer-based detector-free local feature matching methods …

Dual-Flattening Transformers through Decomposed Row and Column Queries for Semantic Segmentation

2022-01-22 · Ying Wang, Chiuman Ho, Wenju Xu, Ziwei Xuan 외

It is critical to obtain high resolution features with long range dependency for dense prediction tasks such as semantic segmentation. To generate high-resolution output of size $H\times W$ from a low-resolution feature …

Semantic Segmentation

FlattenGPT: Depth Compression for Transformer with Layer Flattening

2026-02-09 · Ruihan Xu, Qingpei Guo, Yao Zhu, Xiangyang Ji 외 arxiv

Recent works have indicated redundancy across transformer blocks, prompting the research of depth compression to prune less crucial blocks. However, current ways of entire-block pruning suffer from risks of discarding me…

Model Compression

SLAB: Efficient Transformers with Simplified Linear Attention and Progressive Re-parameterized Batch Normalization

2024-05-19 · Jialong Guo, Xinghao Chen, Yehui Tang, Yunhe Wang

Transformers have become foundational architectures for both natural language and computer vision tasks. However, the high computational cost makes it quite challenging to deploy on resource-constraint devices. This pape…

image-classificationImage ClassificationLanguage ModelingLanguage Modelling+2