双空间令牌化与对比增强的异质图 Transformer
焦鹏飞 , 范子旸 , 范浩杨 , 鲁逸凡
小型微型计算机系统 ›› 2026, Vol. 47 ›› Issue (5) : 1070 -1078.
双空间令牌化与对比增强的异质图 Transformer
Contrastive-enhanced Heterogeneous Graph Transformer with Dual-space Tokenization
近年来,异质图神经网络在处理多类型节点和边的复杂关系方面展现出强大能力,但基于消息传递的架构仍面临表达能力受限、过平滑和过挤压等问题。本文提出基于 Transformer 架构的 CHGormer 模型,通过融合对比学习与异构关系编码的令牌生成机制,创新性地解决了异质图中局部异构关系与全局语义依赖的整合难题。具体而言,CHGormer 设计了双空间令牌生成策略,在属性与拓扑特征空间中分别采祥正负令牌序列,并通过类型感知的邻域聚合生成异构关系表征,将其作为注意力偏置引入全局交王。此外,基于对比学习的跨序列优化进一步增强了节点表示的判别性。在 DBLP、Freebase 和 AMiner 3 个基准数据集上的实验表明,CHGormer 在节点分类任务中表现优异。本研究为异质图表示学习提供了新思路,并在社交推荐和知识推理等场景中展现出应用潜力。
In recent years,Heterogeneous Graph Neural Networks have demonstrated strong capabilities in modeling complex relation- ships involving multiple types of nodes and edges.However,message-passing-based architectures still face limitations such as restricted expressive power,over-smoothing,and over-squashing.This paper proposes a novel Transformer architecture,CHGormer,which inno- vatively addresses the challenge of integrating local heterogeneous relations with global semantic dependencies in heterogeneous graphs by combining contrastive learning with a token generation mechanism for heterogeneous relation encoding.Specifically,CHGormer in- troduces a dual-space token generation strategy,where positive and negative token sequences are sampled separately from the attribute and topology feature spaces.These are then aggregated through type-aware neighborhood aggregation to form heterogeneous relational representations,which are incorporated into global interactions as attention biases.Moreover,a contrastive learning-based cross-se- quence optimization is employed to further enhance the discriminative power of node representations.
| [1] |
|
| [2] |
|
| [3] |
|
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
|
| [9] |
|
| [10] |
|
| [11] |
|
| [12] |
|
| [13] |
|
| [14] |
|
| [15] |
|
| [16] |
|
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
|
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
|
| [25] |
|
| [26] |
|
| [27] |
|
| [28] |
|
| [29] |
|
| [30] |
|
| [31] |
|
| [32] |
|
| [33] |
|
| [34] |
|
| [35] |
|
| [36] |
|
| [37] |
|
| [38] |
|
| [39] |
|
| [40] |
|
| [41] |
|
| [42] |
|
| [43] |
|
| [44] |
|
| [45] |
|
| [46] |
|
| [47] |
|
| [48] |
|
| [49] |
|
| [50] |
|
| [51] |
|
| [52] |
|
| [53] |
|
| [54] |
|
| [55] |
|
| [56] |
|
| [57] |
|
| [58] |
|
| [59] |
|
| [60] |
|
| [61] |
|
国家白然科学基金项目(62372146)
浙江省白然科学基金项目(LDT23F01015F01)
/
| 〈 |
|
〉 |