Papers
Topics
Authors
Recent
Search
2000 character limit reached

CatRAG: Category-Aware RAG Frameworks

Updated 3 July 2026
  • CatRAG is a suite of frameworks that combine retrieval-augmented generation with category-theoretic and context-aware adaptations to address fairness, multi-hop retrieval, and hybrid reasoning challenges.
  • In fairness applications, CatRAG employs functor-guided structural debiasing by projecting protected attributes out of embeddings, resulting in significant accuracy improvements and bias reduction.
  • For hybrid and graph-based retrieval, CatRAG leverages query-adaptive dynamic edge weighting and dense-graph fusion techniques to enhance semantic relevance and mitigate retrieval biases.

CatRAG refers to several distinct but conceptually convergent frameworks that integrate retrieval-augmented generation (RAG) architectures with category-theoretic, structural, or context-aware mechanisms to address challenges in fair generation, multi-hop retrieval, and hybrid knowledge reasoning. CatRAG models have been developed in multiple research lines, most notably for (1) structural debiasing via functor-guided projections (Ranjan et al., 23 Mar 2026), (2) context-adaptive knowledge graph traversal (Lau et al., 2 Feb 2026), and (3) fusion of dense retrieval and hierarchical graph reasoning (Ma et al., 2 Oct 2025). Each variant instantiates "CatRAG" with domain-specific objectives but shares the guiding principle of augmenting retrieval and generation via principled, structured adaptation to the input context or controlled semantic constraints.

1. CatRAG for Functor-Guided Structural Debiasing

CatRAG in the context of LLM fairness introduces a dual-pronged debiasing framework combining category-theoretic projections with retrieval-augmented generation (Ranjan et al., 23 Mar 2026). The central innovation is a functorial projection PP acting on the embedding space, defined as a linear map that collapses protected-attribute subspaces (e.g., gender, race, nationality) while preserving task-relevant (occupation) distinctions.

Key components:

  • Source category C\mathcal{C} with objects as tokens (e.g., "man," "engineer") and morphisms as attention-based associations.
  • Target category U\mathcal{U} where objects aggregate demographic terms and preserve occupational distinctions.
  • Functor F:CUF: \mathcal{C} \to \mathcal{U} acts as F(X)=uPersonF(X) = u_{\mathrm{Person}} if XX is a demographic anchor; F(X)=uϕ(X)F(X) = u_{\phi(X)} for occupation anchors.
  • The structural debiasing projector P=UUP = UU^\top is derived by solving a trace-ratio maximization problem between occupational and demographic scatter matrices:

maxUTr(USOU)Tr(USDU)+ϵ\max_U \frac{\mathrm{Tr}(U^\top S_O U)}{\mathrm{Tr}(U^\top S_D U)+\epsilon}

  • Inference-time RAG module retrieves a balanced set of evidence snippets, constructing the LLM prompt as: Prompt(q)=Instr[Evidence1][EvidenceK]q\text{Prompt}(q) = \mathrm{Instr} \| \text{[Evidence}_1] \cdots [\text{Evidence}_K] \| q.

Empirical findings (BBQ dataset, Llama-3 1B):

  • Accuracy improved from 48.9% (base) to 80.7% (CatRAG); bias score reduced from 0.63 to 0.01.
  • Functor-only: accuracy ≈ 70.5%, bias score ≈ 0.15.
  • RAG-only: accuracy ≈ 65.3%, bias score ≈ 0.24.
  • Full CatRAG: accuracy ≈ 81.2%, bias score ≈ 0.01.

2. CatRAG as Context-Aware Knowledge Graph Traversal for Robust RAG

Another CatRAG instantiation addresses multi-hop retrieval failures due to "Static Graph Fallacy" in graph-augmented RAG systems (Lau et al., 2 Feb 2026). Traditional structure-aware RAG approaches, such as HippoRAG 2, rely on static knowledge graphs with fixed transition matrices, leading to semantic drift and hub bias in personalized PageRank (PPR) retrieval.

Core CatRAG innovations:

  • The static transition matrix C\mathcal{C}0 is replaced by a query-conditioned matrix C\mathcal{C}1 using three techniques:
    1. Symbolic Anchoring: Weakly anchors the random walk to query-named entities by augmenting the restart vector C\mathcal{C}2 with a portion reserved for entities mentioned in the query, encouraging visits to semantically relevant nodes.
    2. Query-Aware Dynamic Edge Weighting: Prunes candidate neighbors by vector-similarity and uses LLM-based scoring to align edge weights with query intent (tiered scaling of edges by relevance).
    3. Key-Fact Passage Weight Enhancement: Boosts weights of passages directly overlapping with seed facts from the query, structurally anchoring the walk to likely evidence.

High-level pseudocode for CatRAG traversal:

  • Extract symbolic anchors, compute personalized restart vector, initialize edge weights.
  • Prune and re-weight edges using LLM-based semantic alignment.
  • Iteratively update node scores with query-adaptive transitions and output top evidence passages.
Benchmark Recall@5 Δ FCR Δ JSR Δ
MuSiQue +3.5% +4.1% +2.8%
HotpotQA +2.4% +4.9% +3.4%
HoVer +5.6% +7.7% +4.9%

(Δ values denote gains over HippoRAG 2 baseline. FCR: Full Chain Retrieval, JSR: Joint Success Rate)

3. CatRAG for Semantic Enrichment and Graph Routing in Hybrid RAG Systems

CatRAG also denotes a hybrid RAG framework that fuses dense vector retrieval and graph-based reasoning with routing mechanisms to enhance factual accuracy and contextual depth, especially in complex, regulation-driven question answering (Ma et al., 2 Oct 2025). CatRAG, as used in REBot for academic advising, integrates:

  • Intent classifier C\mathcal{C}3 to route queries to either vector-based or graph-based retrieval modules.
  • Dense retrieval using embedding models (e.g., PhoBERTv2), selecting chunks by cosine similarity.
  • Hierarchical, category-labeled knowledge graph (REG): Nodes store text, POS, NER, and LLM-extracted relation tuples, organized by regulation categories.
  • Graph reasoning is performed in subgraphs filtered by predicted intent/category, optionally refined by GNN propagation.
  • RAG pipeline concatenates text from dense retrieval, graph paths, entities, and relations to drive LLM generation.

Pseudocode for query execution:

C\mathcal{C}4

Evaluation (REBot, regulation QA, model=gpt-4o-mini):

  • F1: RAG baseline 98.67%, CatRAG 98.89% (τ=0.6).
  • Consistent improvement across thresholds and categories; negligible latency overhead for hybrid routing.

4. Comparative Summary of CatRAG Applications

The CatRAG discipline comprises diverse methods unified by the goal of structured, context- or category-aware enhancement within RAG architectures. The following table summarizes core technical axes:

Application Domain Principal Mechanism Empirical Impact Source
LLM Fairness Functorial debiasing + RAG +32.3% accuracy, bias score 0.01 (Ranjan et al., 23 Mar 2026)
Multi-hop Retrieval Query-adaptive PPR on KG +4.9% FCR, hub bias reduction (Lau et al., 2 Feb 2026)
Hybrid QA, Advising Dense+graph fusion, routing +0.2 F1 points, structurally explainable (Ma et al., 2 Oct 2025)

CatRAG’s implementations differ in pipeline complexity, objective function, and degree of inductive bias (from explicit category functors to adaptive graph transition matrices), but all yield measurable fidelity or efficiency gains over non-category-aware RAG baselines.

5. Analysis, Limitations, and Future Directions

Ablation experiments demonstrate that CatRAG's hybrid or dual mechanisms are synergistic: for example, functor-only or RAG-only variants each underperform the full framework in bias mitigation or utility. CatRAG’s debiasing explicitness (through trace-ratio projections) allows direct tradeoff tuning between fairness (collapse of protected subspaces) and utility (preservation of occupation variance) (Ranjan et al., 23 Mar 2026). In the retrieval context, symbolic anchoring and adaptive edge weighting ameliorate multi-hop dropoff due to semantic drift or hub bias (Lau et al., 2 Feb 2026).

Known limitations:

  • The core projection is linear; further efficacy may come from non-linear functorial or kernelized extensions.
  • Anchor set specification and external evidence construction remain partially manual and impact outcome.
  • For query-adaptive graph RAG, LLM-based edge scoring introduces runtime latency.
  • Generalization to larger models, open-domain retrieval, and multimodal inputs remains open for further research.

A plausible implication is that the CatRAG approach—unifying structured semantic adaptation and external evidence fidelity—offers a generalizable blueprint for future RAG systems demanding principled reasoning and fairness guarantees across diverse application domains.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to CatRAG.