Skip to main content
QUICK REVIEW

[Paper Review] Mixture of Demonstrations for Textual Graph Understanding and Question Answering

Yukun Wu, Lihui Liu|arXiv (Cornell University)|Mar 23, 2026
Topic ModelingComputer Science0 citations
TL;DR

MixDemo introduces a Mixture-of-Experts demonstration selector and a query-aware graph encoder to improve reasoning and reduce noise in GraphRAG for textual graph QA, achieving state-of-the-art results on GraphQA benchmarks.

ABSTRACT

Textual graph-based retrieval-augmented generation (GraphRAG) has emerged as a powerful paradigm for enhancing large language models (LLMs) in domain-specific question answering. While existing approaches primarily focus on zero-shot GraphRAG, selecting high-quality demonstrations is crucial for improving reasoning and answer accuracy. Furthermore, recent studies have shown that retrieved subgraphs often contain irrelevant information, which can degrade reasoning performance. In this paper, we propose MixDemo, a novel GraphRAG framework enhanced with a Mixture-of-Experts (MoE) mechanism for selecting the most informative demonstrations under diverse question contexts. To further reduce noise in the retrieved subgraphs, we introduce a query-specific graph encoder that selectively attends to information most relevant to the query. Extensive experiments across multiple textual graph benchmarks show that MixDemo significantly outperforms existing methods.

Motivation & Objective

  • Address noise in retrieved textual graphs by selectively attending to relevant nodes and edges according to the query.
  • Improve in-context learning for GraphRAG by adaptively selecting high-quality demonstrations via a mixture-of-experts approach.
  • Develop a query-aware graph encoder to produce graph prompts that integrate structural information into LLMs.
  • Evaluate MixDemo on GraphQA benchmarks to demonstrate gains over state-of-the-art baselines.

Proposed method

  • Retrieve a subgraph S from a textual graph G for a given query q using a graph retriever and PCST-based subgraph extraction.
  • Convert the retrieved subgraph into text and cluster demonstration prompts with K-means over augmented prompts to select diverse exemplar demonstrations (one per cluster).
  • Construct a query-conditioned GraphEncoder that performs message passing with query-aware attention weights to mitigate noise and preserve relational patterns, producing a graph prompt p_graph.
  • Compute a final demonstration-weighted graph prompt by relevance-weighting multiple z_d representations from selected demonstrations.
  • Combine p_demo, p_graph, p_text-graph, and q as input to a frozen LLM to generate a_gen.
  • Empirically validate MixDemo on GraphQA datasets (ExplaGraphs, SceneGraphs, WebQSP) and perform ablations on number of demonstrations and encoder layers.

Experimental results

Research questions

  • RQ1Can a Mixture-of-Experts demonstration selector improve in-context learning for textual graph QA over zero-shot baselines?
  • RQ2Does a query-aware graph encoder effectively reduce noise and preserve task-relevant information in retrieved subgraphs?
  • RQ3What is the impact of demo quantity and encoder depth on QA performance?
  • RQ4How does MixDemo perform across diverse GraphQA benchmarks compared to strong baselines?

Key findings

  • MixDemo consistently outperforms baselines across ExplaGraphs, SceneGraphs, and WebQSP.
  • On ExplaGraphs, MixDemo achieves 87.31% vs 86.19% for G-Retriever and 85.08% for GraphToken.
  • On SceneGraphs, MixDemo achieves 82.32% vs 80.86% for G-Retriever and 49.03% for GraphToken.
  • On WebQSP, MixDemo achieves 71.36% vs 70.02% for G-Retriever and 57.05% for GraphToken.
  • 2-shot demonstrations provide the best performance among shot settings for ExplaGraphs.
  • Three-layer GraphEncoder yields the best accuracy, with diminishing returns beyond that.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.