两全其美:混合图序列模型的优势
Best of Both Worlds: Advantages of Hybrid Graph Sequence Models
AI总结:
本文提出统一框架 GSM 以分析序列模型在图上的表示能力,并基于理论发现设计混合模型 GSM++,利用层次亲和聚类与 Transformer 混合架构,在多数基准上优于基线。
摘要:
现代序列模型(如 Transformer、线性 RNN 等)已成为近期深度学习框架的主导骨干,主要得益于其高效性、表示能力以及/或捕捉长程依赖的能力。将这些序列模型用于图结构数据,近来作为消息传递神经网络(MPNNs)的替代方案而受到广泛关注。然而,关于什么构成一个好的图序列模型,以及在图上学习时采用不同序列模型的优点和缺陷的数学描述,目前仍缺乏共同基础。为此,我们首先提出图序列模型(GSM),这是一个将序列模型用于图的统一框架,包含三个主要步骤:(1)Tokenization,将图转化为一组序列;(2)Local Encoding,编码每个节点周围的局部邻域;(3)Global Encoding,采用可扩展的序列模型来捕捉序列内的长程依赖。该框架使我们能够理解、评估和比较不同序列模型骨干在图任务中的能力。我们通过全局和局部图任务的视角,对 Transformer 和现代循环模型的表示能力进行了理论评估,结果表明两类模型都既有负面也有正面的一面。基于这一观察,我们提出 GSM++,一种快速混合模型,使用层次亲和聚类(HAC)算法将图分词为层次序列,然后采用 Transformer 的混合架构来编码这些序列。我们的理论和实验结果支持 GSM++ 的设计,表明 GSM++ 在大多数基准评估中优于基线。
英文摘要:
Modern sequence models (e.g., Transformers, linear RNNs, etc.) emerged as dominant backbones of recent deep learning frameworks, mainly due to their efficiency, representational power, and/or ability to capture long-range dependencies. Adopting these sequence models for graph-structured data has recently gained popularity as the alternative to Message Passing Neural Networks (MPNNs). There is, however, a lack of a common foundation about what constitutes a good graph sequence model, and a mathematical description of the benefits and deficiencies in adopting different sequence models for learning on graphs. To this end, we first present Graph Sequence Model (GSM), a unifying framework for adopting sequence models for graphs, consisting of three main steps: (1) Tokenization, which translates the graph into a set of sequences; (2) Local Encoding, which encodes local neighborhoods around each node; and (3) Global Encoding, which employs a scalable sequence model to capture long-range dependencies within the sequences. This framework allows us to understand, evaluate, and compare the power of different sequence model backbones in graph tasks. Our theoretical evaluations of the representation power of Transformers and modern recurrent models through the lens of global and local graph tasks show that there are both negative and positive sides for both types of models. Building on this observation, we present GSM++, a fast hybrid model that uses the Hierarchical Affinity Clustering (HAC) algorithm to tokenize the graph into hierarchical sequences, and then employs a hybrid architecture of Transformer to encode these sequences. Our theoretical and experimental results support the design of GSM++, showing that GSM++ outperforms baselines in most benchmark evaluations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。