Graph Neural Networks (GNNs) have proved to be an effective representation learning framework for graph-structured data, and have achieved state-of-the-art performance on many practical predictive tasks, such as node classification, link prediction and graph classification. Among the variants of GNNs, Graph Attention Networks (GATs) learn to assign dense attention coefficients over all neighbors of a node for feature aggregation, and improve the performance of many graph learning tasks. However, real-world graphs are often very large and noisy, and GATs are prone to overfitting if not regularized properly. Even worse, the local aggregation mechanism of GATs may fail on disassortative graphs, where nodes within local neighborhood provide more noise than useful information for feature aggregation. In this paper, we propose Sparse Graph Attention Networks (SGATs) that learn sparse attention coefficients under an $L_0$-norm regularization, and the learned sparse attentions are then used for all GNN layers, resulting in an edge-sparsified graph. By doing so, we can identify noisy/task-irrelevant edges, and thus perform feature aggregation on most informative neighbors. Extensive experiments on synthetic and real-world graph learning benchmarks demonstrate the superior performance of SGATs. In particular, SGATs can remove about 50\%-80\% edges from large assortative graphs, while retaining similar classification accuracies. On disassortative graphs, SGATs prune majority of noisy edges and outperform GATs in classification accuracies by significant margins. Furthermore, the removed edges can be interpreted intuitively and quantitatively. To the best of our knowledge, this is the first graph learning algorithm that shows significant redundancies in graphs and edge-sparsified graphs can achieve similar or sometimes higher predictive performances than original graphs.
Kernel Deformed Exponential Families for Sparse Continuous Attention
Georgia Institute of Technology(佐治亚理工学院);University of Michigan(密歇根大学)
注意力机制采用关于概率权重的数据表示的期望。这将创建侧重于重要功能的汇总统计信息。最近,(Martins et al. 2020,2021)提出了连续注意力机制,重点关注指数和变形指数家族的单峰注意力密度:后者具有稀疏支持。(Farinhas et al. 2021)将其扩展到使用高斯混合注意力密度,这是一个具有密集支持的灵活类。在本文中,我们扩展到两个一般的灵活类:核指数家庭和我们的新的稀疏对应核变形指数家庭。理论上,我们证明了核指数和变形指数族的新的存在性结果,并且变形的情况下具有类似的逼近能力的核指数族。实验表明,核变形指数族可以处理数据域的多个紧凑区域。
From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classification
Unbabel Lda(Unbabel有限公司);Instituto de Telecomunicações (IT)(电信研究所(IT));Instituto Superior Técnico(高等技术学院);Instituto de Engenharia de Sistemas e Computadores (INESC-ID)(系统与计算机工程研究所(INESC-ID))
Efficient Content-Based Sparse Attention with Routing Transformers
Google Research(谷歌研究院)
自注意最近已被广泛的序列建模问题。尽管它的有效性,自我注意遭受二次计算和存储器的要求相对于序列长度。降低这种复杂性的成功方法集中在关注本地滑动窗口或独立于内容的一小部分位置。我们的工作提出了学习动态稀疏注意模式,避免分配计算和内存参加内容无关的查询的兴趣。这项工作建立在两条线的研究:它结合了先前的工作基于内容的稀疏注意力的建模灵活性,从本地的,时间稀疏注意力的方法的效率收益。我们的模型,路由Transformer,赋予自我注意力的稀疏路由模块的基础上在线k-均值,同时降低整体的复杂性注意$O\left(n^{1.5}d\right)$从$O\left(n^2d\right)$的序列长度$n$和隐藏的维度$d$。我们表明,我们的模型在Wikitext-103上的语言建模(15.8 vs 18.3困惑度)以及ImageNet-64上的图像生成(3.43 vs 3.44 bits/dim)方面优于可比较的稀疏注意模型,同时使用较少的自我注意层。此外,我们在新发布的PG-19数据集上设置了一个新的最新技术水平,使用在长度为8192的序列上训练的22层Routing Transformer模型获得了33.2的测试困惑度。
How Sparse Attention Approximates Exact Attention? Your Attention is Naturally $n^C$-Sparse
The University of Washington(华盛顿大学);Simons Institute for the Theory of Computing, University of California, Berkeley(加州大学伯克利分校西蒙斯理论计算研究所);The University of Hong Kong(香港大学);Sun Yat-sen University(中山大学)
Instituto Superior Técnico & Instituto de Telecomunicações, Universidade de Lisboa, Portugal(里斯本大学理工学院及电信研究所,葡萄牙);Champalimaud Research, Lisbon, Portugal(Champalimaud研究,葡萄牙里斯本);TransPerfect, Lisbon, Portugal(TransPerfect,葡萄牙里斯本);Carnegie Mellon University, Pittsburgh, USA(卡内基梅隆大学,美国匹兹堡)
SAF3R: Dynamic Sparse Attention for Feed-Forward 3D Reconstruction Transformers
University of Pittsburgh(匹兹堡大学);University of Arizona(亚利桑那大学);Tongji University(同济大学);University of Central Florida(中佛罗里达大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)
Pruning and Sparsemax Methods for Hierarchical Attention Networks
Instituto Superior Técnico, University of Lisbon(里斯本大学高等技术学院);INESC-ID
本文介绍并评价了两种新颖的层次注意力网络模型[Yang et al.,- i)分层修剪注意力网络,其从分类过程中去除不相关的单词和句子,以减少文档分类准确性中的潜在噪声,以及ii)分层Sparsemax注意力网络,其用Sparsemax代替注意力机制中使用的Softmax函数[Martins和Astudillo,2016],能够更好地处理重要性分布,其中许多单词或句子具有非常低的概率。我们对IMDB Review的情感分析数据集的实证评估显示,这两种方法都能够匹配当前最先进的方法所获得的结果(但是没有任何显着的好处)。我们所有的源代码都可以在https://www.example.com上找到。github.com/jmribeiro/dsl-project
Instituto de Telecomunicações(电信研究所);Instituto Superior Técnico(高等技术学院);LUMLIS (Lisbon ELLIS Unit)(里斯本ELLIS单位(LUMLIS));Unbabel;Informatics Institute, University of Amsterdam(阿姆斯特丹大学信息学院);Instituto de Sistemas e Robótica(系统与机器人研究所)