Abstract
Recent advances in graph databases (GDBs) have been driving interest in large-scale analytics, yet current systems fail to support higher-order (HO) interactions beyond first-order (one-hop) relations, which are crucial for tasks such as subgraph counting, polyadic modeling, and HO graph learning. We address this by introducing a new class of systems, higher-order graph databases (HO-GDBs) that use lifting and lowering paradigms to seamlessly extend traditional GDBs with HO. We provide a theoretical analysis of OLTP and OLAP queries, ensuring correctness, scalability, and ACID compliance. We implement a lightweight, modular, and parallelizable HO-GDB prototype that offers native support for hypergraphs, node-tuples, subgraphs, and other HO structures under a unified API. The prototype scales to large HO OLTP & OLAP workloads and shows how HO improves analytical tasks, for example enhancing accuracy of graph neural networks within a GDB by 44%. Our work ensures low latency and high query throughput, and generalizes both ACID-compliant and eventually consistent systems.
The Limitation of First-Order Systems
Most modern graph databases (GDBs), such as Neo4j or TigerGraph, are fundamentally "first-order" systems. They are optimized for representing binary relationships between two entities (Node A → Edge → Node B). However, real-world data is frequently polyadic, involving complex groups rather than simple pairs. Examples include research papers with multiple co-authors, chemical reactions involving several molecules, or group communications in social networks.
In current systems, developers must "flatten" these higher-order structures into binary edges. This process often destroys semantic meaning and complicates query logic. If a user needs to treat a specific clique or subgraph as a single unit with its own properties, traditional GDBs offer no native support. HO-GDB addresses this by treating complex structures as first-class citizens.
Methodology: The HO-GDB Framework
The researchers developed HO-GDB as a modular architecture that extends standard graph engines. The core workflow involves transforming plain graph data into higher-order structures and then representing them in a way that standard databases can ingest without losing structural integrity.
Lifting and Lowering Paradigms
The system's primary innovation lies in the Lifting and Lowering mechanism.
- Lowering: This process takes a higher-order structure, such as a hyperedge or a subgraph, and transforms it into a "heterogeneous graph." This is a standard graph using specific labels and vertices to represent the complex structure, allowing it to be stored in a traditional GDB.
- Lifting: This is the inverse operation, reconstructing the complex higher-order structure from the stored heterogeneous graph for use by analytical tools or end-user queries.
System Architecture
Beyond the transformation logic, HO-GDB introduces several critical components:
- HO-API Layer: A unified interface allowing CRUD (Create, Read, Update, Delete) operations on hyperedges, simplices, and subgraphs as easily as on simple nodes.
- Transactional Integrity (ACID): Since creating one "hyperedge" may involve generating multiple nodes and edges in the backend, the system ensures these operations are atomic. This guarantees that complex structures are either fully committed or not at all.
- Motif-Level Parallelism: To maintain high performance, the system processes different higher-order structures concurrently, significantly boosting throughput for large-scale industrial datasets.
Evaluation and Results
The authors evaluated HO-GDB using a combination of real-world datasets (ZINC molecular graphs, MAG-10 academic hypergraphs) and synthetic workloads.
- GNN Accuracy Gains: By enabling "message passing" between entire subgraphs rather than just immediate neighbors, the HO-enhanced Graph Neural Network (GNN) achieved a 43.99% reduction in test loss on molecular property prediction tasks compared to standard models.
- Scalability: The prototype demonstrated near-linear speedup when scaling to 128 concurrent processes, proving its capability for high-velocity query streams.
- Efficiency: The overhead for lifting and lowering transformations was remarkably low, accounting for less than 5% of total runtime in transactional experiments.
Conclusion and Future Work
HO-GDB represents a significant advancement in graph data management, providing a mathematically sound and performant way to handle polyadic relationships. While the current prototype is built on Neo4j and faces some backend locking bottlenecks in extreme write-heavy scenarios, it proves that higher-order modeling is both feasible and highly beneficial for complex analytics.
Future research will focus on structural graph compression to mitigate the storage overhead of lowered graphs and extending the framework to support other database paradigms, such as document-oriented stores.
Summary updated