NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

gHAWK: Structural Encoding for Scalable Training of Graph Neural Networks on Knowledge Graphs

Humera Sabir, Fatima Farooq, Ashraf AboulnagaNeurIPS 2026

TL;DR

Training Graph Neural Networks (GNNs) on massive Knowledge Graphs is notoriously painful because models waste enormous memory and compute trying to rediscover graph structure one hop at a time during mini-batch training. gHAWK flips the script by precomputing compact local and global structural "cheat sheets" for every node before training even starts. Equipped with these priors, simple GNNs—and even models with zero message passing—match or beat complex, specialized architectures at a fraction of the hardware cost.

What Problem Does This Paper Address?

Knowledge Graphs (KGs) store facts as (head, relation, tail) triples—like (Aspirin, treats, Headache). Graph Neural Networks (GNNs) learn over these graphs via message passing, where nodes iteratively update their representations by gathering information from their neighbors.

At web scale (millions of nodes and hundreds of relation types), this hits a wall for three reasons:

  1. Relation explosion: Giving every relation type its own learnable weights blows up memory.
  2. Sampling amnesia: You can't fit a 240-million-node graph on a GPU, so you train in mini-batches by sampling a fraction of each node's neighbors. Ironically, this throws away the exact structural context the GNN is trying to learn.
  3. Myopic hops: Message passing is local. Seeing three hops away requires three sequential layers, multiplying compute and memory overhead.

In short, GNNs are forced to painfully reconstruct graph structure during training, even though that structure is sitting right there in the input data.

Methods

Instead of building deeper, heavier GNNs, gHAWK shifts structural discovery to a one-time, lightweight preprocessing step (strictly on training edges to prevent data leakage). For every entity, gHAWK computes two complementary, frozen structural priors:

Figure 2: Local and global priors in gHAWK. (Left) A Bloom filter hashes each (r, n) pair of an entity’s 1-hop neighborhood into k bits. (Right) TransE places each entity at a point whose position reflects global relational structure.
  • Local Prior (1-hop neighborhood): gHAWK hashes each node’s immediate (relation, neighbor) pairs into a Bloom filter—a classic, fixed-size bit array. Whether a node has 2 neighbors or 20,000, it carries a compact summary of its full 1-hop neighborhood into every mini-batch, curing sampling amnesia.
  • Global Prior (graph position): gHAWK trains a fast Knowledge Graph Embedding model (TransE, where relations act as geometric translations: $h + r \approx t$) and freezes the vectors. This gives each node a global coordinate in the graph without needing deep message-passing layers.
Figure 1: gHAWK pipeline. (a) Input knowledge graph. (b) Node feature computation: in a preprocessing step, gHAWK constructs a Bloom filter encoding the 1-hop neighbors of each node and trains a TransE embedding model to capture the global graph structure. (c) Feature fusion: for every node, the Bloom filter, TransE embedding, and any domain-specific feature vector are fused via an MLP trained with task supervision, creating a dense fused feature vector. (d) Mini-batch message passing: the fused vectors initialize a message-passing GNN that is trained on sampled mini-batch subgraphs of the knowledge graph. (e) Task-specific heads: the resulting node embeddings are fed into separate heads for node property prediction and for link prediction.

What's novel is the decomposition and fusion: Single fixed-size features struggle to capture both exact local neighbors and global graph position simultaneously. gHAWK projects both priors (plus any domain features like text embeddings) through MLPs, concatenates them, and blends the result with a task-learned node embedding using a single shared scalar gate $g \in [0,1]$. Using one global gate across all nodes prevents overfitting and forces the network to learn a universal balance between precomputed structure and task-specific refinement. Because the priors sit frozen in CPU RAM and only move to the GPU per mini-batch, memory overhead is tiny.

Datasets

The authors evaluate on existing, standard benchmarks (no new datasets are introduced):

  • Node Property Prediction: OGB-MAG (~1.9M nodes) and massive-scale MAG240M (~244M nodes) from the Open Graph Benchmark, plus DBLP, ACM, and IMDb from the Heterogeneous Graph Benchmark (HGB).
  • Link Prediction: OGB-WikiKG2 (2.5M entities, 535 relations, heavy long-tail of rare nodes) and OGB-BioKG (94K biomedical entities with strict type-constrained evaluation).

Key Insights and Ideas

  • Input quality beats aggregation depth: When nodes start with rich local and global priors, deep relational message passing becomes largely redundant. Simple relation-agnostic GNNs—or even standalone decoders with no GNN layers at all—can outperform heavyweight architectures.
  • Rescuing the "long tail": On graphs like WikiKG2, over 80% of entities appear fewer than 10 times in training; standard learned embeddings barely budge from random initialization. Deterministic Bloom filters and global KGEs give rare nodes meaningful representations immediately.
  • The "Doppelganger" Ceiling: Why can't precomputed features solve everything? The authors prove theoretically that any query-independent method hits a hard ceiling when two entities share nearly identical neighborhoods ("doppelgangers"). In fact, 93% of gHAWK's top-rank errors on WikiKG2 are doppelgangers of the true answer! Breaking past this ceiling requires query-conditioned representations (knowing what question is being asked before encoding the nodes).

Key Results

  • Node Prediction: Adding gHAWK improves test accuracy across all six tested GNN backbones: +9.5 to +17.2 percentage points on OGB-MAG, and +5.0 to +16.8 points on 244M-node MAG240M (training on a single 48GB GPU!). On HGB datasets, a simple GraphSAGE + gHAWK beats purpose-built graph transformers like PHGT (e.g., 97.52% vs. 95.33% Micro-F1 on DBLP).
  • Link Prediction: On WikiKG2, feeding gHAWK features directly into a RotatE scoring decoder with zero message passing boosts test Mean Reciprocal Rank (MRR, where higher is better) from 0.4341 to 0.6941 (+26 points)—beating specialized path-reasoning models like A*Net (0.6767) while NBFNet runs out of memory.
Figure 3: Test MRR on WikiKG2 with and without gHAWK (mean ± std over five seeds). Gains are largest for RotatE (+26.0) and R-GCN (+21.1), which capture the least structure on their own.
  • Biomedical Gains: On OGB-BioKG, gHAWK lifts overall test MRR by +3.9 points (to 0.8378), with the biggest jumps on tough, clinically vital links like drug $\rightarrow$ disease (+9.6 MRR points).
  • Efficiency: Preprocessing takes ~25 mins on OGB-MAG, 2 hours on WikiKG2, and 6.5 hours on MAG240M, adding <0.1% learnable parameters and just +4.6% peak GPU memory on WikiKG2.

Limitations and Future Work

  • Doppelganger confusion: Because priors are query-independent, they cannot distinguish structurally identical nodes. Future work could apply lightweight, query-aware reranking only to top candidates to get expressiveness without blowing up compute.
  • One-size-fits-all gating: The single shared gate favors the majority of rare nodes, slightly diluting already-strong learned embeddings for ultra-frequent hub nodes (>1,000 triples) in RotatE. A degree-conditioned gate that adapts to node frequency is a natural fix.
  • Static graphs: While Bloom filters can absorb new edges on the fly in $O(k)$ time, the global TransE prior assumes a static graph and needs periodic retraining. Incorporating inductive KGEs for dynamic graphs remains open.

Summary updated

BibTeX
@inproceedings{sabir2026ghawk,
  author = {Humera Sabir and Fatima Farooq and Ashraf Aboulnaga},
  title = {{gHAWK: Structural Encoding for Scalable Training of Graph Neural Networks on Knowledge Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uw0STVeH8D},
}
Figure