Learning over Positive and Negative Edges with Contrastive Message Passing

Peter Pao-Huang, Charilaos I. Kanatsoulis, Michael Bereket, Jure Leskovec
5/18/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Conventional approaches to learning on graphs involve message passing along existing (i.e., positive) edges to update node features. However, these approaches often disregard the potentially valuable information contained in the absence (i.e., negative) of edges.

Show full abstract

Here, we theoretically analyze the value of negative edges in graph representations and prove that in settings of low label rates, high homophily, and high edge density, access to negative edges provides significant information gain over using only positive edges. Motivated by this insight, we introduce Contrastive Message Passing (CMP), a general message passing architecture that enable graph neural network layers to reason over positive and negative edges. By imposing soft positive semidefinite constraints on the learnable weights, our approach differentially applies similarity-preserving transformations to positively connected nodes and dissimilarity-inducing transformations to negatively connected nodes. Over simulated and real datasets in varying data regimes, CMP consistently outperforms baselines in low-label settings when negative edges are informative.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{paohuang2026learning,
  title  = {Learning over Positive and Negative Edges with Contrastive Message Passing},
  author = {Peter Pao-Huang and Charilaos I. Kanatsoulis and Michael Bereket and Jure Leskovec},
  year   = {2026},
  eprint = {2605.17854},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.17854v1}
}

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/2605.17854.svg)](https://codeofpaper.com/paper/2605.17854)

Discussion