LGAICLMay 27, 2022

What Dense Graph Do You Need for Self-Attention?

arXiv:2205.14014v54 citationsh-index: 70
Originality Incremental advance
AI Analysis

This work addresses efficiency issues in Transformers for machine learning practitioners, offering a theoretical and practical tool to optimize sparse attention graphs, though it is incremental as it builds on existing sparse Transformer methods.

The paper tackles the problem of reducing the quadratic computational and memory complexity of Transformers by exploring how dense a graph needs to be for effective self-attention, proposing Normalized Information Payload (NIP) as a scoring function to analyze performance-complexity trade-offs and introducing Hypercube Transformer, which achieves comparable or better results than vanilla Transformers with O(N log N) complexity.

Transformers have made progress in miscellaneous tasks, but suffer from quadratic computational and memory complexities. Recent works propose sparse Transformers with attention on sparse graphs to reduce complexity and remain strong performance. While effective, the crucial parts of how dense a graph needs to be to perform well are not fully explored. In this paper, we propose Normalized Information Payload (NIP), a graph scoring function measuring information transfer on graph, which provides an analysis tool for trade-offs between performance and complexity. Guided by this theoretical analysis, we present Hypercube Transformer, a sparse Transformer that models token interactions in a hypercube and shows comparable or even better results with vanilla Transformer while yielding $O(N\log N)$ complexity with sequence length $N$. Experiments on tasks requiring various sequence lengths lay validation for our graph function well.

Code Implementations1 repo
Foundations

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

Your Notes