Heterogeneous Graph Contrastive Learning with Meta-path Contexts and Weighted Negative Samples.

Jianxiang Yu,Qingqing Ge,Xiang Li,Aoying Zhou
DOI: https://doi.org/10.1109/tkde.2024.3377431
2024-01-01
Abstract:Heterogeneous graph contrastive learning has received wide attentionrecently. Some existing methods use meta-paths, which are sequences of objecttypes that capture semantic relationships between objects, to constructcontrastive views. However, most of them ignore the rich meta-path contextinformation that describes how two objects are connected by meta-paths.Further, they fail to distinguish negative samples, which could adverselyaffect the model performance. To address the problems, we propose MEOW, whichconsiders both meta-path contexts and weighted negative samples. Specifically,MEOW constructs a coarse view and a fine-grained view for contrast. The formerreflects which objects are connected by meta-paths, while the latter usesmeta-path contexts and characterizes details on how the objects are connected.Then, we theoretically analyze the InfoNCE loss and recognize its limitationsfor computing gradients of negative samples. To better distinguish negativesamples, we learn hard-valued weights for them based on node clustering and useprototypical contrastive learning to pull close embeddings of nodes in the samecluster. In addition, we propose a variant model AdaMEOW that adaptively learnssoft-valued weights of negative samples to further improve node representation.Finally, we conduct extensive experiments to show the superiority of MEOW andAdaMEOW against other state-of-the-art methods.
What problem does this paper attempt to address?