mlsanityData to 14 Oct 2026

Is Implicit Knowledge Enough for LLMs? A RAG Approach for Tree-based Structures

arXiv 2510.10806 ↗First posted 12 Oct 2025cs.CL cs.AI cs.IRcited by 0

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

Large Language Models (LLMs) are adept at generating responses based on information within their context. While this ability is useful for interacting with structured data like code files, another popular method, Retrieval-Augmented Generation (RAG), retrieves relevant documents to augment the model's in-context learning. However, it is not well-explored how to best represent this retrieved knowledge for generating responses on structured data, particularly hierarchical structures like trees. In this work, we propose a novel bottom-up method to linearize knowledge from tree-like structures (like a GitHub repository) by generating implicit, aggregated summaries at each hierarchical level. This approach enables the knowledge to be stored in a knowledge base and used directly with RAG. We then compare our method to using RAG on raw, unstructured code, evaluating the accuracy and quality of the generated responses. Our results show that while response quality is comparable across both methods, our approach generates over 68% fewer documents in the retriever, a significant gain in efficiency. This finding suggests that leveraging implicit, linearized knowledge may be a highly effective and scalable strategy for handling complex, hierarchical data structures.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 19 of its 25 references that are in the map. First posted on arXiv 12 Oct 2025.

Builds on

19 of 25 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025More Documents, Same Length: Isolating the Challenge of Multiple Documents in RAG6 Mar
  2. 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMs21 Jun
  3. 2023Retrieval-Augmented Generation for Large Language Models: A Survey18 Dec

Other references · 16

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
  3. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
  4. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
  5. 2023Can Language Models Solve Graph Problems in Natural Language?cited by 252
  6. 2024G-Retriever: Retrieval-Augmented Generation for Textual Graph Understanding and Question Answeringcited by 223
  7. 2023Large Language Models on Graphs: A Comprehensive Surveycited by 192
  8. 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 176
  9. 2023Implicit Chain of Thought Reasoning via Knowledge Distillationcited by 176
  10. 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 80
  11. 2024A Survey of Large Language Models for Graphscited by 72
  12. 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
4 more
  1. 2024Direct Preference Knowledge Distillation for Large Language Modelscited by 21
  2. 2024Can Large Language Models Analyze Graphs like Professionals? A Benchmark, Datasets and Modelscited by 17
  3. 2023Explicit and Implicit Knowledge Distillation via Unlabeled Datacited by 8
  4. 2024Graph Linearization Methods for Reasoning on Graphs with Large Language Modelscited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
  2. 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models
  3. 2025When Retrieval Succeeds and Fails: Rethinking Retrieval-Augmented Generation for LLMs
  4. 2025Dynamic and Parametric Retrieval-Augmented Generation
  5. 2025LaRA: Benchmarking Retrieval-Augmented Generation and Long-Context LLMs -- No Silver Bullet for LC or RAG Routing
  6. 2024Multi-Source Knowledge Pruning for Retrieval-Augmented Generation: A Benchmark and Empirical Study
  7. 2024T-RAG: Lessons from the LLM Trenches
  8. 2025Graph-based Approaches and Functionalities in Retrieval-Augmented Generation: A Comprehensive Survey