On the Power of Convolution Augmented Transformer

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Li, Mingchen, Zhang, Xuechen, Huang, Yixiao, Oymak, Samet
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910517601239040
author Li, Mingchen
Zhang, Xuechen
Huang, Yixiao
Oymak, Samet
author_facet Li, Mingchen
Zhang, Xuechen
Huang, Yixiao
Oymak, Samet
contents The transformer architecture has catalyzed revolutionary advances in language modeling. However, recent architectural recipes, such as state-space models, have bridged the performance gap. Motivated by this, we examine the benefits of Convolution-Augmented Transformer (CAT) for recall, copying, and length generalization tasks. CAT incorporates convolutional filters in the K/Q/V embeddings of an attention layer. Through CAT, we show that the locality of the convolution synergizes with the global view of the attention. Unlike comparable architectures, such as Mamba or transformer, CAT can provably solve the associative recall (AR) and copying tasks using a single layer while also enjoying guaranteed length generalization. We also establish computational tradeoffs between convolution and attention by characterizing how convolution can mitigate the need for full attention by summarizing the context window and creating salient summary tokens to attend. Evaluations on real datasets corroborate our findings and demonstrate that CAT and its variations indeed enhance the language modeling performance.
format Preprint
id arxiv_https___arxiv_org_abs_2407_05591
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On the Power of Convolution Augmented Transformer
Li, Mingchen
Zhang, Xuechen
Huang, Yixiao
Oymak, Samet
Machine Learning
Computation and Language
Neural and Evolutionary Computing
The transformer architecture has catalyzed revolutionary advances in language modeling. However, recent architectural recipes, such as state-space models, have bridged the performance gap. Motivated by this, we examine the benefits of Convolution-Augmented Transformer (CAT) for recall, copying, and length generalization tasks. CAT incorporates convolutional filters in the K/Q/V embeddings of an attention layer. Through CAT, we show that the locality of the convolution synergizes with the global view of the attention. Unlike comparable architectures, such as Mamba or transformer, CAT can provably solve the associative recall (AR) and copying tasks using a single layer while also enjoying guaranteed length generalization. We also establish computational tradeoffs between convolution and attention by characterizing how convolution can mitigate the need for full attention by summarizing the context window and creating salient summary tokens to attend. Evaluations on real datasets corroborate our findings and demonstrate that CAT and its variations indeed enhance the language modeling performance.
title On the Power of Convolution Augmented Transformer
topic Machine Learning
Computation and Language
Neural and Evolutionary Computing
url https://arxiv.org/abs/2407.05591