HyperRAG: Reasoning N-ary Facts over Hypergraphs for Retrieval Augmented Generation

Wen-Sheng Lien, Yu-Kai Chan, Hao-Lung Hsiao, Bo-Kai Ruan, Meng-Fen Chiang +3 more
2/16/2026
cs.CL

No official code found. Best implementation: Vincent-Lien/HyperRAG (25 stars, MIT, last commit 2026-03-01).

Abstract

Graph-based retrieval-augmented generation (RAG) methods, typically built on knowledge graphs (KGs) with binary relational facts, have shown promise in multi-hop open-domain QA. However, their rigid retrieval schemes and dense similarity search often introduce irrelevant context, increase computational overhead, and limit relational expressiveness. In contrast, n-ary hypergraphs encode higher-order relational facts that capture richer inter-entity dependencies and enable shallower, more efficient reasoning paths. To address this limitation, we propose HyperRAG, a RAG framework tailored for n-ary hypergraphs with two complementary retrieval variants: (i) HyperRetriever learns structural-semantic reasoning over n-ary facts to construct query-conditioned relational chains. It enables accurate factual tracking, adaptive high-order traversal, and interpretable multi-hop reasoning under context constraints. (ii) HyperMemory leverages the LLM's parametric memory to guide beam search, dynamically scoring n-ary facts and entities for query-aware path expansion. Extensive evaluations on WikiTopics (11 closed-domain datasets) and three open-domain QA benchmarks (HotpotQA, MuSiQue, and 2WikiMultiHopQA) validate HyperRAG's effectiveness. HyperRetriever achieves the highest answer accuracy overall, with average gains of 2.95% in MRR and 1.23% in Hits@10 over the strongest baseline. Qualitative analysis further shows that HyperRetriever bridges reasoning gaps through adaptive and interpretable n-ary chain construction, benefiting both open and closed-domain QA.

View on arXivView PDF

Code Implementations(1)

MIT

HyperRAG: Reasoning N-ary Facts over Hypergraphs for Retrieval Augmented Generation

255PythonJan 22, 20267 months agoMIT

Similar Papers

Cite this paper

@article{lien2026hyperrag,
  title  = {HyperRAG: Reasoning N-ary Facts over Hypergraphs for Retrieval Augmented Generation},
  author = {Wen-Sheng Lien and Yu-Kai Chan and Hao-Lung Hsiao and Bo-Kai Ruan and Meng-Fen Chiang and Chien-An Chen and Yi-Ren Yeh and Hong-Han Shuai},
  year   = {2026},
  eprint = {2602.14470},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.14470v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.14470.svg)](https://codeofpaper.com/paper/2602.14470)

Discussion