Hypercube-Based Retrieval-Augmented Generation for Scientific Question-Answering

Jimeng Shi, Sizhe Zhou, Bowen Jin, Wei Hu, Runchu Tian +3 more
5/25/2025
cs.LG

Official code: JimengShi/Hypercube-RAG (10 stars, last commit 2026-03-12).

Abstract

Large language models (LLMs) often need to incorporate external knowledge to solve theme-specific problems. Retrieval-augmented generation (RAG) has shown its high promise, empowering LLMs to generate more qualified responses with retrieved external data and knowledge. However, most RAG methods retrieve relevant documents based on either sparse or dense retrieval methods or their combinations, which overlooks the essential, multi-dimensional, and structured semantic information present in documents. This structured information plays a critical role in finding concise yet highly relevant information for domain knowledge-intensive tasks, such as scientific question-answering (QA). In this work, we introduce a multi-dimensional (cube) structure, Hypercube, which can index and allocate documents in a pre-defined multi-dimensional space. Built on the hypercube, we further propose Hypercube-RAG, a novel RAG framework for precise and efficient retrieval. Given a query, Hypercube-RAG first decomposes it based on its entities, phrases, and topics along with pre-defined hypercube dimensions, and then retrieves relevant documents from cubes by aligning these decomposed components with corresponding dimensions. Experiments on three datasets across different domains demonstrate that our method improves response accuracy by 3.7% and retrieval accuracy by 5.3% over the strongest RAG baseline. It also boosts retrieval efficiency (speed) by one or two magnitudes faster than graph-based RAG. Notably, our Hypercube-RAG inherently offers explainability by revealing those underlying dimensions used for retrieval. The code and data are available at https://github.com/JimengShi/Hypercube-RAG.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Hypercube-based Retrieval-Augmented Generation on Scientific Question-Answering".

103PythonApr 10, 20257 months ago

Similar Papers

Cite this paper

@article{shi2025hypercubebased,
  title  = {Hypercube-Based Retrieval-Augmented Generation for Scientific Question-Answering},
  author = {Jimeng Shi and Sizhe Zhou and Bowen Jin and Wei Hu and Runchu Tian and Shaowen Wang and Giri Narasimhan and Jiawei Han},
  year   = {2025},
  eprint = {2505.19288},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.19288v2}
}

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/2505.19288.svg)](https://codeofpaper.com/paper/2505.19288)

Discussion