HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

From Primes to Paths: Enabling Fast Multi-Relational Graph Analysis

Konstantinos Bougiatiotis; Georgios Paliouras

From Primes to Paths: Enabling Fast Multi-Relational Graph Analysis

Abstract

Multi-relational networks capture intricate relationships in data and have diverse applications across fields such as biomedical, financial, and social sciences. As networks derived from increasingly large datasets become more common, identifying efficient methods for representing and analyzing them becomes crucial. This work extends the Prime Adjacency Matrices (PAMs) framework, which employs prime numbers to represent distinct relations within a network uniquely. This enables a compact representation of a complete multi-relational graph using a single adjacency matrix, which, in turn, facilitates quick computation of multi-hop adjacency matrices. In this work, we enhance the framework by introducing a lossless algorithm for calculating the multi-hop matrices and propose the Bag of Paths (BoP) representation, a versatile feature extraction methodology for various graph analytics tasks, at the node, edge, and graph level. We demonstrate the efficiency of the framework across various tasks and datasets, showing that simple BoP-based models perform comparably to or better than commonly used neural models while offering improved speed and interpretability.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
graph-regression-on-peptides-structBoP
MAE: 0.25
graph-regression-on-zincBoP
MAE: 0.297
node-classification-on-aifbBoP
Accuracy: 92.22
node-classification-on-amBoP
Accuracy: 92.41
node-classification-on-bgsBoP
Accuracy: 90.34
node-classification-on-mutagBoP
Accuracy: 91.17

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
From Primes to Paths: Enabling Fast Multi-Relational Graph Analysis | Papers | HyperAI