What Dense Graph Do You Need for Self-Attention?
Yuxin Wang, Chu-Tak Lee, Qipeng Guo, Zhangyue Yin, Yunhua Zhou,, Xuanjing Huang, Xipeng Qiu

TL;DR
This paper introduces a theoretical framework and a new sparse Transformer architecture that models token interactions using hypercube graphs, achieving comparable or better performance with significantly reduced complexity.
Contribution
It proposes the Normalized Information Payload (NIP) as a graph scoring function and develops the Hypercube Transformer, a sparse model with $O(N ext{log}N)$ complexity for sequence processing.
Findings
Hypercube Transformer achieves comparable or better results than vanilla Transformer.
The NIP function effectively guides the trade-off between performance and complexity.
The model performs well across tasks with various sequence lengths.
Abstract
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 complexity with sequence length . Experiments on tasks requiring various sequence lengths lay…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Neural Networks · Machine Learning in Materials Science · Complex Network Analysis Techniques
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Cosine Annealing · Absolute Position Encodings · Dropout · Refunds@Expedia|||How do I get a full refund from Expedia? · Linear Warmup With Cosine Annealing · Byte Pair Encoding · Position-Wise Feed-Forward Layer
