CodaRAG: Connecting the Dots with Associativity Inspired by Complementary Learning
Organizations: National Taiwan University, Taipei, Taiwan · NTU Artificial Intelligence Center of Research Excellence, National Taiwan University.
Abstract
Large Language Models (LLMs) struggle with knowledge-intensive tasks due to hallucinations and fragmented reasoning over dispersed information. While Retrieval-Augmented Generation (RAG) grounds generation in external sources, existing methods often treat evidence as isolated units, failing to reconstruct the logical chains that connect these dots. Inspired by Complementary Learning Systems (CLS), we propose CodaRAG, a framework that evolves retrieval from passive lookup into active associative discovery. CodaRAG operates via a three-stage pipeline: (1) Knowledge Consolidation to unify fragmented extractions into a stable memory substrate; (2) Associative Navigation to traverse the graph via multi-dimensional pathways-semantic, contextualized, and functional-explicitly recovering dispersed evidence chains; and (3) Interference Elimination to prune hyper-associative noise, ensuring a coherent, high-precision reasoning context. On GraphRAG-Bench, CodaRAG achieves absolute gains of 7-10% in retrieval recall and 3-11% in generation accuracy. These results demonstrate CodaRAG's superior ability to systematically robustify associative evidence retrieval for factual, reasoning, and creative tasks.
Figures & tables
| Retrieval Performance | Generation Performance | ||||||||||||||||
| Method | Fact | Reason | Summary | Creation | Fact | Reason | Summary | Creation | |||||||||
| REL | REC | REL | REC | REL | REC | REL | REC | RGL | ACC | RGL | ACC | COV | ACC | COV | FTH | ACC | |
| Medical Dataset | |||||||||||||||||
| LightRAG | 91.00 | 90.65 | 94.00 | 89.61 | 93.00 | 94.06 | 81.50 | 65.32 | 12.52 | 49.04 | 8.63 | 53.43 | 90.17 | 63.61 | 52.40 | 71.51 | 62.16 |
| HippoRAG 2 | 89.50 | 90.83 | 83.50 | 88.28 | 91.00 | 93.75 | 77.00 | 66.34 | 36.20 | 68.37 | 27.17 | 64.76 | 68.60 | 77.69 | 55.75 | 50.98 | 50.89 |
| Ours (KG-only) | 96.00 | 92.33 | 98.00 | 87.67 | 98.50 | 91.73 | 82.50 | 71.22 | 36.03 | 68.35 | 24.06 | 62.36 | 77.46 | 67.48 | 54.95 | 85.97 | 64.72 |
| Retrieval Performance | Generation Performance | ||||||||||||||||
| Method | Fact | Reason | Summary | Creation | Fact | Reason | Summary | Creation | |||||||||
| REL | REC | REL | REC | REL | REC | REL | REC | RGL | ACC | RGL | ACC | COV | ACC | COV | FTH | ACC | |
| Stage I Indexing: Identifying the Dots by Knowledge Consolidation | |||||||||||||||||
| Base | 94.50 | 73.65 | 89.00 | 66.58 | 79.00 | 66.40 | 52.50 | 35.84 | 30.67 | 56.08 | 24.97 | 60.41 | 52.50 | 63.23 | 32.64 | 76.97 | 59.30 |
| Ours | 91.00 | 80.78 | 92.50 | 70.11 | 83.00 | 68.28 | 58.50 | 40.38 | 30.31 | 57.20 | 25.28 | 60.54 | 60.04 | 66.12 | 37.63 | 82.46 | 61.33 |
| Stage II Retrieval: Connecting the Dots by Associative Navigation | |||||||||||||||||
| Medical Case: Discharge summary for PCNSL transitioning from Induction to Consolidation . | |
|---|---|
| Ours | Completed induction with rituximab ; plans radiation ; monitored by care team using imaging to manage nausea . |
| LightRAG | Completed induction with rituximab ; plans radiation ; transitioning to consolidation managed by care team (missed specific symptom correlations). |
| HippoRAG 2 | Completed induction for PCNSL; plan includes CBC monitoring and therapies like whole-brain radiation (lacks team coordination details). |
| Novel Case: Historical reasoning on Spanish descriptions in the progression affecting the Mayas. | |
| Ours | Spaniards (1517) described monuments ; despite iconoclasm, the Maya language survived, preserving knowledge of figures like Chaacmol (noted by scholar Brasseur de Bourbourg ). |
| LightRAG | Spaniards (invaders) observed monuments and fought Mayas; despite destroying idols, the Maya language survived (missed specific scholarly links). |
| Retrieval Performance | Generation Performance | ||||||||||||||||
| Method | Fact | Reason | Summary | Creation | Fact | Reason | Summary | Creation | |||||||||
| REL | REC | REL | REC | REL | REC | REL | REC | RGL | ACC | RGL | ACC | COV | ACC | COV | FTH | ACC | |
| LightRAG | 91.41 | 91.24 | 83.04 | 85.20 | 83.37 | 88.45 | 83.33 | 57.40 | 5.55 | 20.18 | 4.46 | 20.37 | 75.91 | 21.57 | 56.85 | - | 21.02 |
| HippoRAG 2 | 83.61 | 86.26 | 74.84 | 74.75 | 82.65 | 83.73 | 52.77 | 55.07 | 32.50 | 19.28 | 25.76 | 21.22 | 60.98 | 22.20 | 51.30 | - | 21.13 |
| Ours | 93.04 | 95.02 | 84.47 | 88.99 | 85.71 | 93.68 | 80.56 | 66.00 | 28.75 | 21.20 | 14.72 | 22.20 | 77.55 | 22.32 | 65.48 | - | 22.10 |
| Note: Evaluation metric definitions are detailed in Sec. 4 . The symbol indicates that higher scores represent better performance. | |||||||||||||||||
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | #Nodes | #Edges | Avg. CC | LCC Ratio | Frag. Ratio | Iso. Ratio |
| ClosedIE | 727 | 748 | 0.1178 | 0.695 | 0.0702 | 0.099 |
| OpenIE | 691 | 685 | 0.1206 | 0.631 | 0.0955 | 0.097 |
| Ours | 893 | 880 | 0.1375 | 0.664 | 0.0907 | 0.073 |
| Note: Evaluation Metric definitions are detailed in Sec. 4 . higher is better; lower is better. | ||||||
| Medical Case: Discharge summary for Primary Central Nervous System Lymphoma transitioning from Induction to Consolidation . | |
| Retrieval Trace | |
| Ours | Entry: Entities: Primary Central Nervous System Lymphoma; Induction; … ; Relations: Primary Central Nervous System Lymphoma Induction; Consolidation Induction; … Semantic Association: Entities: Neurological Symptoms; Kidney Dysfunction; … ; Relations: Primary Central Nervous System Lymphoma Neurological Symptoms; High-Dose Methotrexate Kidney Dysfunction; … Contextualized Association: Entities: Imaging; Care Team; … ; Relations: Imaging Biopsy; Imaging Care Team; … Functional Association: Entities: Blood-Brain Barrier; Nausea; … |
| LightRAG | Entry: Entities: Consolidation Treatment; Induction Treatment; … ; Relations: High-Dose Methotrexate Induction Phase; Consolidation Phase Primary CNS Lymphoma; … One-hop: Entities: Induction Phase; Radiation Therapy; … ; Relations: Induction Treatment Radiation Therapy; Induction Phase Rituximab (Rituxan); … |
| Generation (Detailed Summary) | |
| Ours | You completed induction with rituximab for primary CNS lymphoma and are transitioning to consolidation (e.g., radiation). Your multidisciplinary care team will coordinate this phase, using imaging and blood tests to monitor response. They will also manage side effects like nausea and fatigue to prioritize your quality of life. |
| LightRAG | You have completed induction chemotherapy for primary CNS lymphoma and are entering consolidation treatment to prevent relapse. Consolidation options may include radiation therapy or high-dose chemotherapy with stem cell rescue, depending on your condition and treatment response. Ongoing multidisciplinary care will focus on disease control and quality of life. |
| Novel Case: Historical reasoning on how the Spanish are described in the progression affecting the Mayas. | |
| Retrieval Trace | |
| Ours | Entry: Entities: Mayas; Maya Language; … ; Relations: Mayas Spanish Conquest; Maya Language Spaniards; … Semantic Association: Entities: Monumental Inscriptions; Nahualt Invaders; … ; Relations: Maya Language Monumental Inscriptions; Maya People Nahualt Invaders; … Contextualized Association: Entities: Macaw Totem (Moo); Chaacmol; … ; Relations: Macaw Totem (Moo) Chaacmol; Chaacmol Chaacmol’s Mausoleum; … Functional Association: Entities: Brasseur de Bourbourg; … |
| LightRAG | Entry: Entities: Spanish Conquest; Spaniards; … ; Relations: Maya Language Spaniards; Spaniards Yucatan; … One-hop: Entities: Mayas; Maya Language; … ; Relations: Maya Language Mayas; Mayas Yucatan; … |
| Generation (Detailed Summary) | |
| Ours | The Spaniards (1517) were surprised to find well-built stone monuments and a civilized people. Although they invaded and destroyed many idols through iconoclasm, they could not destroy the Maya language; it preserved knowledge of figures like Chaacmol (noted by scholar Brasseur de Bourbourg). |
| LightRAG | The Spanish acted as intrusive colonial actors who observed Maya cities and monuments. They fought the Maya and attempted to erase indigenous customs by destroying idols. However, the Maya language survived, and the Conquest serves as a chronological marker for these events. |
| Medical Case Query: Assume the role of a genetic counselor. Prepare a summary for a patient newly found to have a BRCA1 mutation, explaining cancer risk, surveillance, and preventive strategies. | |
|---|---|
| Required Evidences | Generation (Detailed Summary) |
| The patient has tested positive for a BRCA1 mutation; A BRCA1 mutation significantly increases breast cancer risk; Having a BRCA1 mutation is a strong risk factor; The mutation may impact family members; Enhanced surveillance is recommended; Annual mammograms are recommended at an earlier age ; Breast MRI is recommended at an earlier age ; Preventive strategies include risk-reducing medication ; Preventive strategies include prophylactic surgery; Bilateral mastectomy may be considered ; Oophorectomy may be considered ; Discussion with oncology and surgical teams is recommended; Family members may consider genetic testing; Ongoing follow-up and support resources are available. | States that a germline BRCA1 mutation increases breast and ovarian cancer risk, discusses genetic counseling, family testing, and general surveillance, and emphasizes coordination with a multidisciplinary care team without specifying concrete screening schedules or preventive interventions. |
| Novel Case: How does the narrative link Mayab to the origins of the Mayas and their presence in Babylon? | |
| Required Evidences | Generation (Detailed Summary) |
| Mayab is a country of the Mayas; The Mayas are said to have originated from Mayab; The Mayas established themselves in Babylon. | Identifies Mayab as the Maya homeland, compares Mayas with Chaldeans through cultural and architectural parallels, and introduces an Egypt-related migration hypothesis instead of explicitly stating Maya establishment in Babylon. |
| Dataset | Medical | Novel |
|---|---|---|
| False Elimination Rate (%) | 1.42 | 0.85 |
| Retrieval Performance | Generation Performance | ||||||||||||||||
| Method | Fact | Reason | Summary | Creation | Fact | Reason | Summary | Creation | |||||||||
| REL | REC | REL | REC | REL | REC | REL | REC | RGL | ACC | RGL | ACC | COV | ACC | COV | FTH | ACC | |
| Stage I Indexing: Identifying the Dots by Knowledge Consolidation | |||||||||||||||||
| Base | 85.99 | 69.22 | 84.82 | 66.00 | 85.46 | 61.30 | 81.94 | 32.36 | 38.02 | 54.64 | 25.98 | 43.54 | 49.87 | 43.07 | 35.28 | 71.89 | 44.37 |
| Ours | 89.56 | 75.01 | 88.19 | 72.77 | 85.97 | 64.93 | 80.83 | 35.50 | 38.61 | 56.34 | 24.50 | 45.61 | 51.53 | 46.92 | 37.12 | 77.90 | 40.50 |
| Stage II Retrieval: Connecting the Dots by Associative Navigation | |||||||||||||||||
| Retrieval Performance | Generation Performance | ||||||||||||||||
| Method | Fact | Reason | Summary | Creation | Fact | Reason | Summary | Creation | |||||||||
| REL | REC | REL | REC | REL | REC | REL | REC | RGL | ACC | RGL | ACC | COV | ACC | COV | FTH | ACC | |
| LightRAG | 92.00 | 91.57 | 86.00 | 89.49 | 90.00 | 91.84 | 77.50 | 84.41 | 3.85 | 20.87 | 5.12 | 21.08 | 84.26 | 22.02 | 59.60 | - | 22.61 |
| HippoRAG 2 | 84.00 | 90.64 | 79.50 | 89.33 | 89.50 | 89.37 | 68.00 | 83.75 | 33.52 | 20.69 | 32.91 | 21.85 | 80.76 | 22.90 | 62.51 | - | 22.60 |
| Ours | 91.00 | 92.13 | 87.00 | 90.10 | 87.50 | 92.65 | 72.50 | 85.39 | 25.13 | 21.59 | 17.66 | 23.77 | 85.33 | 23.16 | 63.69 | - | 22.73 |
| Note: Evaluation Metric definitions are detailed in Sec. 4 . The symbol indicates that higher scores represent better performance. | |||||||||||||||||
| Category | Metric | Formula | Description & Key Intuition |
|---|---|---|---|
| Retrieval | Context Relevance | Measures how relevant the retrieved context is to the query based on annotator scores . | |
| Evidence Recall | Evaluates the proportion of reference claims supported by the retrieved context. | ||
| Generation | Rouge-L | Captures lexical overlap between the generated and reference answers using the longest common subsequence (LCS). | |
| Answer Accuracy | Combines factual correctness (FC) and semantic similarity (SS) with . | ||
| Faithfulness | Reflects the proportion of generated claims supported by the retrieved context, indicating hallucination avoidance. | ||
| Evidence Coverage | Assesses how completely the required evidence is reflected in the generated answer. |
| Method | Hyperparameter | Value | Description |
| LightRAG | top_k | 10 | - |
| chunk_top_k | 5 | - | |
| HippoRAG 2 | retrieval_top_k | 10 | - |
| linking_top_k | 20 | - | |
| qa_top_k | 5 | - | |
| Ours | top_k | 10 | Number of initial entity and relation entries used to initiate associative retrieval |
| Method | Hyperparameter | Value | Description |
|---|---|---|---|
| Ours (Ablation) | top_k | 3 | Number of initial entity and relation entries used to initiate associative retrieval |
| chunk_top_k | 0 | Number of text chunks provided to the generator | |
| top_neighbors | 8 | Maximum neighbors explored per node during Semantic Association | |
| top_ppr_nodes | 15 | Nodes selected by PPR in Contextualized Association | |
| top_fastrp_nodes | 15 | Structurally analogous nodes selected in Functional Association |
Retrieval-Augmented Generation
Retrieval-augmented generation connects language models to external knowledge so answers can use current, domain-specific evidence.
See all 766 papers