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

Generalizing Graph Foundation Models via Hyperbolic Retrieval-Augmented Generation

Yifan Jin, Qirui Ji, Bin Qin, Jiangmeng Li, Lixiang Liu, Fuchun Sun, Changwen ZhengarXiv 2026 · DOI

TL;DR

Graph Foundation Models (GFMs) often struggle to generalize when encountering out-of-distribution data at inference time. While Retrieval-Augmented Generation (RAG) can alleviate this by fetching external knowledge, standard RAG frameworks operate in Euclidean space, which fails to properly capture the hierarchical, tree-like structure of external knowledge bases. This paper introduces HyRAG, a hyperbolic RAG framework that naturally preserves semantic hierarchies, mitigating retrieval crowding and significantly boosting zero-shot performance on graph tasks.

What Problem Does This Paper Address?

Graph Foundation Models (GFMs) have advanced cross-domain graph learning, but their internalized knowledge is fundamentally limited by their pre-training data. When distribution shifts occur at inference time, their performance degrades.

To fix this, researchers have turned to Retrieval-Augmented Generation (RAG) to dynamically fetch external knowledge. However, existing graph RAG frameworks suffer from a major geometric limitation: they operate in Euclidean space. External knowledge bases (like ontologies or concept hierarchies) typically possess an exponentially growing, tree-like structure. Because the volume of Euclidean space only grows polynomially with its radius, forcing hierarchical data into it causes two major issues:

  1. Loss of Semantic Granularity: Coarse-grained concepts (e.g., "computational learning theory") and fine-grained concepts (e.g., "PAC learning") get compressed into the same proximal regions, making them indistinguishable during retrieval.
  2. The Hubness Phenomenon: Due to geometric crowding, a small number of entities (hubs) repeatedly appear as the nearest neighbors for diverse queries, drastically reducing retrieval diversity.
Comparison of Euclidean and Hyperbolic Space

Methods

The authors propose HyRAG (Hyperbolic Retrieval-Augmented Generation) to bridge this geometric gap. The framework consists of three core components:

  1. Hyperbolic Knowledge Indexing (HKI): External knowledge graph triplets are mapped into a Poincaré ball (a standard model of hyperbolic space). Using a hierarchy-aware objective function with hyperbolic entailment cones, the index ensures that broader concepts sit near the origin while specific concepts reside near the boundary, naturally preserving their hierarchical structure.
  2. Multi-granularity Retrieval (MR): Instead of relying on hard geometric thresholds, HyRAG leverages a Large Language Model (LLM) to reformulate the query node's text into distinct coarse-grained and fine-grained queries. Coarse retrieval uses the Maximal Marginal Relevance (MMR) criterion to maximize context diversity, while fine retrieval applies an angular constraint to capture specific local nuances.
  3. Dual-path Fusion (DF): To integrate this knowledge back into the GFM, HyRAG fuses information at both the feature level (using hyperbolic distance-weighted aggregation to update node features) and the structure level (by constructing auxiliary coarse/fine attribute graphs). Finally, an uncertainty-gated mechanism uses prediction entropy to dynamically decide whether to trust the original graph structure or the retrieved knowledge.
Overall Framework of HyRAG

Datasets

The authors evaluated HyRAG across seven benchmark datasets spanning four distinct domains:

  • Academic: Cora, CiteSeer
  • E-commerce: Ele-Photo, Ele-Computers, Books-History
  • Wikipedia: WikiCS
  • Social: Instagram

The external knowledge base was constructed from a subset of the Commonsense Knowledge Graph (CSKG), which aggregates data from ConceptNet, WordNet, and Wikidata-CS.

Key Insights and Ideas

  • Geometry Matters for RAG: The choice of embedding space geometry shouldn't just depend on the target graph data, but also on the structure of the knowledge base being retrieved from. Hyperbolic space is mathematically a much better fit for hierarchical text data.
  • LLM-Driven Semantic Splitting: Rather than trying to mathematically define "coarse" vs. "fine" layers within the hyperbolic space using radius thresholds, using an LLM to semantically split the query beforehand is highly effective.
  • Uncertainty-Gated Switching: The model includes an adaptive switch based on normalized entropy. If the GFM's ego-graph prediction is highly confident (low entropy), it ignores retrieval noise. If it is ambiguous (high entropy), it actively uses the retrieved knowledge to rectify the prediction.

Key Results

HyRAG was evaluated in a strict zero-shot setting (without updating the GFM's parameters) and consistently outperformed vanilla baselines and Euclidean RAG alternatives:

  • Node Classification: HyRAG achieved the best performance across all seven datasets, yielding an average improvement of up to 2.02% over state-of-the-art graph foundation models like GraphCLIP.
  • Link Prediction: When integrated with the AnyGraph backbone, HyRAG improved accuracy by 1.08% on Cora and 1.41% on CiteSeer.
  • Ablation Validation: Replacing the hyperbolic index with a standard Euclidean index resulted in the largest performance drop across the board (an average decline of 1.99%), proving that the geometric shift to hyperbolic space is the primary driver of HyRAG's success.

Limitations and Future Work

The authors do not explicitly dedicate a section to limitations, but a few engineering trade-offs are apparent:

  • Computational Overhead: Operating in hyperbolic space requires specialized mathematical operations (like Möbius addition and exponential/logarithmic maps) which can be more computationally demanding than standard Euclidean operations.
  • LLM Dependency: The multi-granularity retrieval module relies on an external LLM (e.g., LLaMA-3.1-8B) at inference time to split queries, which introduces additional latency and resource requirements.

Summary updated

BibTeX
@misc{jin2026generalizing,
  author = {Yifan Jin and Qirui Ji and Bin Qin and Jiangmeng Li and Lixiang Liu and Fuchun Sun and Changwen Zheng},
  title = {{Generalizing Graph Foundation Models via Hyperbolic Retrieval-Augmented Generation}},
  year = {2026},
  eprint = {2606.03307},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.03307},
}
Figure