Skip to content
/ erase Public

[CIKM-2024] Official code for work "ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerance"

License

Notifications You must be signed in to change notification settings

eraseai/erase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[CIKM-2024] ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerance

Official code for "ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerance".

Ling-Hao Chen1,2, Yuanshuo Zhang2,3, Taohua Huang3, Liangcai Su1, Zeyi Lin2,3, Xi Xiao1, Xiaobo Xia4, Tongliang Liu4

1Tsinghua University, 2SwanHub.co, 3Xidian University, 4The University of Sydney

📖 Abstract

Deep learning has achieved remarkable success in graph-related tasks, yet this accomplishment heavily relies on large-scale high-quality annotated datasets. However, acquiring such datasets can be cost-prohibitive, leading to the practical use of labels obtained from economically efficient sources such as web searches and user tags. Unfortunately, these labels often come with noise, compromising the generalization performance of deep networks. To tackle this challenge and enhance the robustness of deep learning models against label noise in graph-based tasks, we propose a method called ERASE (Error-Resilient representation learning on graphs for lAbel noiSe tolerancE). The core idea of ERASE is to learn representations with error tolerance by maximizing coding rate reduction. Particularly, we introduce a decoupled label propagation method for learning representations. Before training, noisy labels are pre-corrected through structural denoising. During training, ERASE combines prototype pseudo-labels with propagated denoised labels and updates representations with error resilience, which significantly improves the generalization performance in node classification. The proposed method allows us to more effectively withstand errors caused by mislabeled nodes, thereby strengthening the robustness of deep networks in handling noisy graph data. Extensive experimental results show that our method can outperform multiple baselines with clear margins in broad noise levels and enjoy great scalability. Codes are released at https://github.com/eraseai/erase.

🗂️ Preparation

📊 Data

Datasets for Cora, CiteSeer, PubMed, CoraFull, and OGBn-arxiv are integrated in PyG. The datasets will be downloaded by the codes automatically. And your ./data directory structure is shown as follows after running training codes.

data
├──Planetoid
|   ├── Cora
|   |   ├── processed
|   |   |   ├── data.pt
|   |   |   ├── pre_filter.pt
|   |   |   └── pre_transform.pt
|   |   └── raw
|   ├── CiteSeer
|   |   ├── processed
|   |   |   ├── data.pt
|   |   |   ├── pre_filter.pt
|   |   |   └── pre_transform.pt
|   |   └── raw
|   └── PubMed
|       ├── processed
|       |   ├── data.pt
|       |   ├── pre_filter.pt
|       |   └── pre_transform.pt
|       └── raw
├── CitationFull
|   └── cora
|       ├── processed
|       |   ├── data.pt
|       |   ├── pre_filter.pt
|       |   └── pre_transform.pt
|       └── raw
└── Ogb
    └── ogbn-arxiv
        ├── mapping
        ├── processed
        |   ├── geometric_data_processed.pt
        |   ├── pre_filter.pt
        |   └── pre_transform.pt
        ├── raw
        └── split

🕹️ Environment Setup

sh install.sh

🔧 Training

For Cora:

chmod +x run.sh
sh run.sh Cora

For CiteSeer:

chmod +x run.sh
sh run.sh CiteSeer

For PubMed

chmod +x run.sh
sh run.sh PubMed

For CoraFull

chmod +x run.sh
sh run.sh CoraFull

For OGBn-arxiv

chmod +x run.sh
sh run.sh ogbn-arxiv

After running the command, a directory named <DATASET>_<INDEX> is created in the ./exp_output directory (<DATASET> in {'Cora', 'CiteSeer', 'PubMed', 'CoraFull', 'ogbn-arxiv'}, <INDEX> is equal to the number of directories in ./exp_output). In ./exp_output/<DATASET>_<INDEX>/asymm_noise_ratio_0.1 stores the results of 0.1 asymmetric noise ratio. In this directory, log files are stored in train_log.txt, and model checkpoints are stored in ckpt.

📽 Visualization

Before getting visualization results, please ensure that you have saved the pre-trained models. Hereby we show the example to get visualization results on Cora when the asymmetric noise ratio is 0.1.

python scripts/visualize.py --dataset Cora --resume exp_output/Cora/asymm_noise_ratio_0.1/ckpt/best_model.pth -- corrupt_type asymm --corrupt_ratio 0.1

🧐 Example of Visualization Results

Cosine Similarity Matrix Visualization

t-SNE Visualization

PCA Visualization

📄 License

The codes are distributed under a non-commercial LICENSE. Note that our code depends on other libraries and datasets, each with its own respective licenses that must also be followed. For commercial usage, please contact Ling-Hao Chen.

🌹 Acknowledgments

The author team would sincerely acknowledge MCR2 authors and G2R authors for providing significant reference and codebase. Portions of this code were adapted from these open-source projects.

🤝 Citation

If you find the code is useful in your research, please cite us:

@article{chen2023erase,
title={ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerance},
author={Chen, Ling-Hao and Zhang, Yuanshuo and Huang, Taohua and Su, Liangcai and Lin, Zeyi and Xiao, Xi and Xia, Xiaobo and Liu, Tongliang},
journal={Arxiv 2312.08852},
year={2023}
}

🌟 Star History

Star History Chart

If you have any questions, please contact thu [DOT] lhchen [AT] gmail [DOT] com.

About

[CIKM-2024] Official code for work "ERASE: Error-Resilient Representation Learning on Graphs for Label Noise Tolerance"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •