paper-with-me

홈 › Papers

Elliptical Attention

2024-06-19 · Stefan K. Nielsen, Laziz U. Abdullaev, Rachel S. Y. Teo, Tan M. Nguyen

Pairwise dot-product self-attention is key to the success of transformers that achieve state-of-the-art performance across a variety of applications in language and vision. This dot-product self-attention computes attention weights among the input tokens using Euclidean distance, which makes the model prone to representation collapse and vulnerable to contaminated samples. In this paper, we propose using a Mahalanobis distance metric for computing the attention weights to stretch the underlying feature space in directions of high contextual relevance. In particular, we define a hyper-ellipsoidal neighborhood around each query to increase the attention weights of the tokens lying in the contextually important directions. We term this novel class of attention Elliptical Attention. Our Elliptical Attention provides two benefits: 1) reducing representation collapse and 2) enhancing the model's robustness as Elliptical Attention pays more attention to contextually relevant information rather than focusing on some small subset of informative features. We empirically demonstrate the advantages of Elliptical Attention over the baseline dot-product attention and state-of-the-art attention methods on various practical tasks, including object classification, image segmentation, and language modeling across different data modalities.

📄 PDF Abstract BibTeX arXiv:2406.13770

Code (1)

stefvk/elliptical-attention 공식 구현 pytorch

Tasks

Image SegmentationLanguage ModelingLanguage ModellingSemantic Segmentation

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Ellipse Detection and Localization with Applications to Knots in Sawn Lumber Images

2020-11-10 · Shenyi Pan, Shuxian Fan, Samuel W. K. Wong, James V. Zidek 외

While general object detection has seen tremendous progress, localization of elliptical objects has received little attention in the literature. Our motivating application is the detection of knots in sawn timber images,…

object-detectionObject DetectionRegion Proposal

Von Mises-Fisher Elliptical Distribution

2021-03-14 · Shengxi Li, Danilo Mandic

A large class of modern probabilistic learning systems assumes symmetric distributions, however, real-world data tend to obey skewed distributions and are thus not always adequately modelled through symmetric distributio…

Real Elliptically Skewed Distributions and Their Application to Robust Cluster Analysis

2020-06-30 · Christian A. Schroth, Michael Muma

This article proposes a new class of Real Elliptically Skewed (RESK) distributions and associated clustering algorithms that allow for integrating robustness and skewness into a single unified cluster analysis framework.…

Clustering

Efficient UAV Coverage in Large Convex Quadrilateral Areas with Elliptical Footprints

2025-02-18 · Alexander Vavoulas, Konstantinos K. Delibasis, Harilaos G. Sandalidis, George Nousias 외

Unmanned Aerial Vehicles (UAVs) have gained significant attention for improving wireless communication, especially in emergencies or as a complement to existing cellular infrastructure. This letter addresses the problem …

Contour Field based Elliptical Shape Prior for the Segment Anything Model

2025-04-17 · Xinyu Zhao, Jun Liu, Faqiang Wang, Li Cui 외

The elliptical shape prior information plays a vital role in improving the accuracy of image segmentation for specific tasks in medical and natural images. Existing deep learning-based segmentation methods, including the…

Image SegmentationSegmentationSemantic Segmentation