This is the official repository for our ICML paper:
No Metric to Rule Them All: Toward Principled Evaluations of Graph-Learning Datasets
which introduces RINGS: a perturbation framework for attributed graphs, designed to facilitate more principled evaluations of graph learning benchmarks from first principles.
This repository is under active development. We've made it public early to invite feedback, discussion, and transparency as we transition from research prototypes to a stable, user-friendly package.
In the coming weeks, we’ll be releasing updates, architectural notes, and implementation details via a series of pull requests. You're welcome to follow along, open issues, or suggest improvements!
This initial release is a Minimum Viable Product (MVP) that includes:
- A set of graph perturbation transformations for manipulating node features and graph structure
- The ComplementarityFunctor, which computes mode complementarity between node features and graph structure
- Example scripts demonstrating usage with PyTorch Geometric datasets
We are developing a community-friendly implementation of the RINGS framework introduced in the paper. Our goal is to make it easy for the graph learning community to:
- Apply dataset perturbations tailored to graph learning datasets
- Conduct more rigorous and insightful evaluations of both datasets and models
- Promote better dataset practices and evaluation hygiene across the field
If you have feedback on the paper or suggestions for how this package could better integrate with popular frameworks, please feel free to reach out to the authors.
RINGS uses uv as the package manager, which provides faster dependency resolution and installation.
- Install
uv
if you don’t have it already:
pip install uv
Clone the repository and install dependencies using uv
:
# Clone the repository
git clone https://github.com/aidos-lab/rings.git
cd rings
# Install dependencies
uv sync
# Activate environment
source .venv/bin/activate
RINGS provides several perturbation transforms that can be applied to graph datasets:
Node Feature Perturbations:
Original
: Keeps node features unchanged (baseline)EmptyFeatures
: Replaces node features with zero vectorsRandomFeatures
: Replaces node features with random valuesCompleteFeatures
: Assigns unique one-hot vectors to nodes
Graph Structure Perturbations:
EmptyGraph
: Removes all edges from the graphCompleteGraph
: Connects every pair of nodesRandomGraph
: Generates a random graph structureRandomConnectedGraph
: Generates a random graph that is guaranteed to be connected
The ComplementarityFunctor
measures the alignment between node features and graph structure by comparing their induced metric spaces. It can help you understand:
- Whether node features and graph structure contain complementary information
- How different perturbations affect this complementarity
- The distribution of information content across modalities in graph datasets
The repository includes an example script that demonstrates how to use RINGS to analyze graph datasets:
# Run the example on the MUTAG dataset with original (unperturbed) graphs
python -m examples.complementarity --dataset MUTAG --perturbation original
# Try different perturbations
python -m examples.complementarity --dataset MUTAG --perturbation random-features
python -m examples.complementarity --dataset MUTAG --perturbation empty-graph
# Analyze a different TU dataset
python -m examples.complementarity --dataset ENZYMES --perturbation original
# Get help and see all available options
python -m examples.complementarity --help
The script will output complementarity statistics that measure how well node features align with graph structure in the dataset.
If you use RINGS in your research, please cite our paper:
@inproceedings{
coupette2025,
title={No Metric to Rule Them All: Toward Principled Evaluations of Graph-Learning Datasets},
author={Corinna Coupette and Jeremy Wayland and Emily Simons and Bastian Rieck},
booktitle={Forty-second International Conference on Machine Learning},
year={2025},
url={https://openreview.net/forum?id=XbmBNwrfG5}
}
Stay tuned for more examples and documentation!