Description
CompGCN (Composition-Based Multi-Relational Graph Convolutional Networks) is an AI model designed for multi-relational graph representation learning. Developed by malllabiisc and presented at ICLR 2020, this PyTorch implementation focuses on enhancing graph convolutional networks for tasks such as knowledge graph link prediction.
The core innovation of CompGCN lies in its composition operation, denoted by φ(·). Given node and relation embeddings, CompGCN applies this composition function over each edge in a node's neighborhood. The resulting composed embeddings are then convolved with specific filters for original and inverse relations. The model aggregates messages from neighbors to update the central node's embedding and transforms relation embeddings using a dedicated weight matrix. This approach allows for richer representations of complex relational data.
CompGCN is compatible with PyTorch 1.0 and Python 3.x. The project provides datasets like FB15k-237 and WN18RR, commonly used for knowledge graph link prediction, which are included in the data directory. Installation of dependencies is managed through a `requirements.txt` file. The repository includes scripts and commands for reproducing reported results, demonstrating its application with different scoring functions such as TransE, DistMult, and ConvE, and various composition operations including subtraction, multiplication, and circular correlation.
This model is particularly valuable for researchers and practitioners working with large-scale knowledge graphs and complex relational structures. Its ability to handle multi-relational data effectively makes it suitable for applications requiring deep understanding of connections and relationships within data. The project's open-source nature on GitHub facilitates collaboration and further development in the field of graph representation learning.
CompGCN Highlights
Composition-based multi-relational graph convolutional networks
Supports various composition operations: subtraction, multiplication, circular correlation
Compatible with PyTorch 1.0 and Python 3.x
Includes datasets for knowledge graph link prediction (FB15k-237, WN18RR)
Reproducible results for link prediction tasks
Utilizes specific filters for original and inverse relations
Aggregates neighbor messages for node embedding updates
Transforms relation embeddings with dedicated weight matrices
Open-source implementation available on GitHub
Getting Started with CompGCN
Setup Environment: Install dependencies using `requirements.txt`.
Prepare Data: Execute `./setup.sh` for dataset extraction and folder setup.
Configure Training: Select score function, composition operation, and hyperparameters.
Run Experiments: Execute `run.py` with specified arguments for link prediction.
Reproduce Results: Use provided commands to replicate reported performance.
Integrate Model: Adapt the model architecture and training scripts for custom applications.
CompGCN's Use Cases
- Knowledge Graph Link Prediction
- Graph Representation Learning
- Multi-Relational Data Analysis
- Recommendation Systems
- Semantic Network Analysis







