GithubHelp home page GithubHelp logo

yzfxmu / tricl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wooner49/tricl

0.0 0.0 0.0 29.72 MB

I'm Me, We're Us, and I'm Us: Tri-directional Contrastive Learning on Hypergraphs (AAAI'23)

License: MIT License

Python 100.00%

tricl's Introduction

I'm Me, We're Us, and I'm Us: Tri-directional Contrastive Learning on Hypergraphs

This repository contains the source code for the paper I'm Me, We're Us, and I'm Us: Tri-directional Contrastive Learning on Hypergraphs, by Dongjin Lee and Kijung Shin, presented at AAAI 2023.

In this paper, we propose TriCL (Tri-directional Contrastive Learning), a general framework for contrastive learning on hypergraphs. Its main idea is tri-directional contrast, and specifically, it aims to maximize in two augmented views the agreement (a) between the same node, (b) between the same group of nodes, and (c) between each group and its members. Together with simple but surprisingly effective data augmentation and negative sampling schemes, these three forms of contrast enable TriCL to capture both microscopic and mesoscopic structural information in node embeddings. Our extensive experiments using 14 baseline approaches, 10 datasets, and two tasks demonstrate the effectiveness of TriCL, and most noticeably, TriCL almost consistently outperforms not just unsupervised competitors but also (semi-)supervised competitors mostly by significant margins for node classification.

Requirements

  • Python 3.9.12
  • PyTorch 1.11.0
  • PyTorch Geometric 2.0.4
  • Numpy 1.22.3
  • Scikit-learn 1.0.2
  • PyYAML 6.0

Reference

This code is free and open source for only academic/research purposes (non-commercial). If you use this code as part of any published research, please acknowledge the following paper.

@article{lee2022m,
  title={I'm Me, We're Us, and I'm Us: Tri-directional Contrastive Learning on Hypergraphs},
  author={Lee, Dongjin and Shin, Kijung},
  journal={arXiv preprint arXiv:2206.04739},
  year={2022}
}

tricl's People

Contributors

wooner49 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.