ContextRAG: Extraction-Free Hierarchical Graph Construction for Retrieval-Augmented Generation

Roman Prosvirnin, Sergei Kuznetsov, Seungmin Jin
5/19/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Graph-structured retrieval-augmented generation (RAG) systems can improve answer quality on multi-hop questions, but many current systems rely on large language models (LLMs) to extract entities, relations, and summaries during indexing. These calls add token and wall-clock costs that grow with corpus size. We present ContextRAG, a graph RAG system whose graph topology is constructed without LLM-based entity or relation extraction. ContextRAG derives a fuzzy concept graph over chunk embeddings using residual-quantization k-means and Formal Concept Analysis with Lukasiewicz residuated logic. Bridge-like and meet-derived context nodes are induced by soft fuzzy join and meet operations, rather than by LLM-written graph edges. On a 130-task UltraDomain subset, ContextRAG builds its index with 30 LLM calls and 22,073 tokens. In contrast, a local HiRAG reproduction stress test required 870 indexing calls and 3.54M tokens on a 20-task subset before failing during graph construction; linear extrapolation to 130 tasks implies over 23M indexing tokens. ContextRAG obtains 33.6% F1 overall and 36.8% F1 on multi-hop tasks. An activation analysis shows that queries retrieving at least one lattice-derived node in the top five achieve +3.9 percentage points F1 over queries that do not; this association is diagnostic rather than causal.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{prosvirnin2026contextrag,
  title  = {ContextRAG: Extraction-Free Hierarchical Graph Construction for Retrieval-Augmented Generation},
  author = {Roman Prosvirnin and Sergei Kuznetsov and Seungmin Jin},
  year   = {2026},
  eprint = {2605.19735},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.19735v1}
}

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

Discussion