paper-with-me

Papers

Centroid Transformers: Learning to Abstract with Attention

2021-02-17 · Lemeng Wu, Xingchao Liu, Qiang Liu

Self-attention, as the key block of transformers, is a powerful mechanism for extracting features from the inputs. In essence, what self-attention does is to infer the pairwise relations between the elements of the inputs, and modify the inputs by propagating information between input pairs. As a result, it maps inputs to N outputs and casts a quadratic $O(N^2)$ memory and time complexity. We propose centroid attention, a generalization of self-attention that maps N inputs to M outputs $(M\leq N)$, such that the key information in the inputs are summarized in the smaller number of outputs (called centroids). We design centroid attention by amortizing the gradient descent update rule of a clustering objective function on the inputs, which reveals an underlying connection between attention and clustering. By compressing the inputs to the centroids, we extract the key information useful for prediction and also reduce the computation of the attention module and the subsequent layers. We apply our method to various applications, including abstractive text summarization, 3D vision, and image processing. Empirical results demonstrate the effectiveness of our method over the standard transformers.

📄 PDF Abstract BibTeX arXiv:2102.08606

Code (0)

등록된 구현이 없습니다.

Tasks

Abstractive Text SummarizationClusteringImage ClassificationText Summarization

Similar Papers 제목 키워드 기반

Abstractors and relational cross-attention: An inductive bias for explicit relational reasoning in Transformers

2023-04-01 · Awni Altabaa, Taylor Webb, Jonathan Cohen, John Lafferty

An extension of Transformers is proposed that enables explicit relational reasoning through a novel module called the Abstractor. At the core of the Abstractor is a variant of attention called relational cross-attention.…

Inductive BiasMathematical Problem-SolvingRelational Reasoning

Systematicity Emerges in Transformers when Abstract Grammatical Roles Guide Attention

2022-07-01 · NAACL (ACL) 2022 7 · Ayush K Chakravarthy, Jacob Labe Russin, Randall O’Reilly

Systematicity is thought to be a key inductive bias possessed by humans that is lacking in standard natural language processing systems such as those utilizing transformers. In this work, we investigate the extent to whi…

Inductive BiasSystematic Generalization

Transformer Uncertainty Estimation with Hierarchical Stochastic Attention

2021-12-27 · Jiahuan Pei, Cheng Wang, György Szarvas

Transformers are state-of-the-art in a wide range of NLP tasks and have also been applied to many real-world products. Understanding the reliability and certainty of transformer model predictions is crucial for building …

Medical Diagnosistext-classificationText Classification

Fast Transformers with Clustered Attention

2020-07-09 · NeurIPS 2020 12 · Apoorv Vyas, Angelos Katharopoulos, François Fleuret

Transformers have been proven a successful model for a variety of tasks in sequence modeling. However, computing the attention matrix, which is their key component, has quadratic complexity with respect to the sequence l…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)speech-recognitionSpeech Recognition

Attention-based clustering

2025-05-19 · Rodrigo Maulen-Soto, Claire Boyer, Pierre Marion

Transformers have emerged as a powerful neural network architecture capable of tackling a wide range of learning tasks. In this work, we provide a theoretical analysis of their ability to automatically extract structure …

Clustering