Code Monkey home page Code Monkey logo

bert_gnn_arxiv's Introduction

Multi-class Classification with fine-tuned BERT & GNN

Overview

BERT is the most powerful neural networks model in NLP area. Graph Neural Networks(GNN) is also one of the most popular model now. Therefore, we want to bring the advantages in BERT to the citation network, and evaluate that how much improvement can BERT help GNN models work.

In this repository, we will explore the use of fine-tuned BERT, how to encode node features using BERT model, and using citation graph and node features to train GNN models.

Now, it just support Pytorch framework!

The step is as follows:

  1. Download ogbn-arxiv dataset from Open Graph Benchmark.
  2. Fine-tuned BERT with arxiv dataset and select the model which has the best accuracy in validation set as encoder.
  3. Encode the node features using fine-tuned BERT.
  4. Train and evaluate the GNN model.

You can see the details about how to train the code in pytorch and tensorflow directory.

Colab Tutorials

We've also created the following hands-on colab tutorials in pytorch and tensorflow that will allow you to get start faster:

Experiments

The experiments below are from this repo and Open Graph Benchmark Leaderboard.

All the results are the average at least over 10 runs.

Model Test Accuracy Validation Accuracy Hardware
GCN
(official, Rank 27 in Leaderboard)
0.7174 ±
0.0029
0.7300 ± 0.0017 GeForce RTX 2080
(11GB GPU)
GAT+label reuse+self KD
(official, Rank 1 in Leaderboard)
0.7416 ±
0.0008
0.7514 ± 0.0004 GeForce RTX 2080Ti
(11GB GPU)
GCN (this repo.) 0.7189 ±
0.0020
0.7310 ± 0.0009 GeForce RTX 2070
(8GB GPU)
Fine-tuned BERT 0.7204 ±
0.0034
0.7324 ± 0.0019 GeForce RTX 2070
(8GB GPU)
Fine-tuned BERT+GCN
(Beat Rank 1!)
0.7487 ±
0.0026
0.7630 ± 0.0007 GeForce RTX 2070
(8GB GPU)

Concat information

For help or issues using our code, please contact Sung-Ping Chang ([email protected]).

bert_gnn_arxiv's People

Contributors

joshchang1112 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bert_gnn_arxiv's Issues

Does there exist a paper?

Hello, your analysis of Multi-class Classification with fine-tuned BERT & GNN is in detail, professional and understandable. It seems to have a paper associated with the project. Could you show the paper? Or is it still in progress?

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.