COSTA: Covariance-Preserving Feature Augmentation for Graph Contrastive Learning

Yifei Zhang, Hao Zhu, Zixing Song, Piotr Koniusz, Irwin King
6/9/2022
cs.LGcs.AI
contrastive-ssl

Official code: yifeiacc/COSTA (49 stars, Python, PyTorch, last commit 2023-06-07).

Abstract

Graph contrastive learning (GCL) improves graph representation learning, leading to SOTA on various downstream tasks. The graph augmentation step is a vital but scarcely studied step of GCL.

Show full abstract

In this paper, we show that the node embedding obtained via the graph augmentations is highly biased, somewhat limiting contrastive models from learning discriminative features for downstream tasks. Thus, instead of investigating graph augmentation in the input space, we alternatively propose to perform augmentations on the hidden features (feature augmentation). Inspired by so-called matrix sketching, we propose COSTA, a novel COvariance-preServing feaTure space Augmentation framework for GCL, which generates augmented features by maintaining a "good sketch" of original features. To highlight the superiority of feature augmentation with COSTA, we investigate a single-view setting (in addition to multi-view one) which conserves memory and computations. We show that the feature augmentation with COSTA achieves comparable/better results than graph augmentation based models.

View on arXivView PDF

Code Implementations(1)

yifeiacc/COSTAOfficial100%
PyTorch

Code for KDD'22 paper, COSTA: Covariance-Preserving Feature Augmentation for Graph Contrastive Learning

494PythonJun 11, 20223 years ago
contrastive-learningdeep-learninggraphgraph-contrastive-learninggraph-neural-networks+1 more

Similar Papers

Cite this paper

@article{zhang2022costa,
  title  = {COSTA: Covariance-Preserving Feature Augmentation for Graph Contrastive Learning},
  author = {Yifei Zhang and Hao Zhu and Zixing Song and Piotr Koniusz and Irwin King},
  year   = {2022},
  eprint = {2206.04726},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.04726}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.04726.svg)](https://codeofpaper.com/paper/2206.04726)

Discussion