mlsanityData to 7 Oct 2026

Reasoning Graph Enhanced Exemplars Retrieval for In-Context Learning

arXiv 2409.11147 ↗First posted 17 Sep 2024cs.CLcited by 2

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

Abstract (arXiv)

Large language models (LLMs) have exhibited remarkable few-shot learning capabilities and unified the paradigm of NLP tasks through the in-context learning (ICL) technique. Despite the success of ICL, the quality of the exemplar demonstrations can significantly influence the LLM's performance. Existing exemplar selection methods mainly focus on the semantic similarity between queries and candidate exemplars. On the other hand, the logical connections between reasoning steps can be beneficial to depict the problem-solving process as well. In this paper, we proposes a novel method named Reasoning Graph-enhanced Exemplar Retrieval (RGER). RGER first quires LLM to generate an initial response, then expresses intermediate problem-solving steps to a graph structure. After that, it employs graph kernel to select exemplars with semantic and structural similarity. Extensive experiments demonstrate the structural relationship is helpful to the alignment of queries and candidate exemplars. The efficacy of RGER on math and logit reasoning tasks showcases its superiority over state-of-the-art retrieval-based approaches. Our code is released at https://github.com/Yukang-Lin/RGER.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 21 of its 41 references that are in the map. First posted on arXiv 17 Sep 2024.

Builds on

21 of 41 references.

Closest ancestors · 3

Same direction, newest first

  1. 2023Graph Elicitation for Guiding Multi-Step Reasoning in Large Language Models16 Nov
  2. 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning2 Oct
  3. 2023GraphReason: Enhancing Reasoning Capabilities of Large Language Models through A Graph-Based Verification Approach18 Aug

Other references · 18

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  7. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  8. 2022A Survey on In-context Learningcited by 717
  9. 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
  10. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  11. 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thoughtcited by 334
  12. 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 314
6 more
  1. 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
  2. 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Proverscited by 161
  3. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  4. 2023Unified Demonstration Retriever for In-Context Learningcited by 141
  5. 2023Beyond Chain-of-Thought, Effective Graph-of-Thought Reasoning in Language Modelscited by 51
  6. 2023DQ-LoRe: Dual Queries with Low Rank Approximation Re-ranking for In-Context Learningcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024GraphIC: A Graph-Based In-Context Example Retrieval Model for Multi-Step Reasoning
  2. 2024EXPLORA: Efficient Exemplar Subset Selection for Complex Reasoning
  3. 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoning
  4. 2025Reasoning by Exploration: A Unified Approach to Retrieval and Generation over Graphs
  5. 2025GRAIL:Learning to Interact with Large Knowledge Graphs for Retrieval Augmented Reasoning
  6. 2025Multi-chain Graph Refinement and Selection for Reliable Reasoning in Large Language Models
  7. 2024Learning by Analogy: Enhancing Few-Shot Prompting for Math Word Problem Solving with Computational Graph-Based Retrieval
  8. 2025Enrich-on-Graph: Query-Graph Alignment for Complex Reasoning with LLM Enriching