CLJul 27, 2022

Are Neighbors Enough? Multi-Head Neural n-gram can be Alternative to Self-attention

arXiv:2207.13354v12 citationsh-index: 32
Originality Incremental advance
AI Analysis

This work addresses the computational and complexity issues of self-attention in Transformers for NLP practitioners, offering an incremental alternative that enhances model efficiency and performance.

The authors tackled the problem of reducing Transformer's reliance on self-attention by proposing a multi-head neural n-gram model that focuses on local dependencies, achieving comparable or better performance on sequence-to-sequence tasks and showing that combining it with self-attention further improves Transformer performance.

Impressive performance of Transformer has been attributed to self-attention, where dependencies between entire input in a sequence are considered at every position. In this work, we reform the neural $n$-gram model, which focuses on only several surrounding representations of each position, with the multi-head mechanism as in Vaswani et al.(2017). Through experiments on sequence-to-sequence tasks, we show that replacing self-attention in Transformer with multi-head neural $n$-gram can achieve comparable or better performance than Transformer. From various analyses on our proposed method, we find that multi-head neural $n$-gram is complementary to self-attention, and their combinations can further improve performance of vanilla Transformer.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes