TL;DR
If you run a small-to-medium language model (8B–27B) on-premise for privacy, answering multi-hop questions over a knowledge graph (KG) is tough: you have tight context-memory limits, no budget for slow multi-step agent loops, and no desire to fine-tune. CAF-GMKR is a training-free, single-step retrieval framework that packs complete, verified reasoning chains into the front of the prompt under exact token ceilings. It beats nine single-step baselines and iterative Think-on-Graph agents, matches 8,000-token baselines using just 2,048 tokens, and runs 26.7× faster than leading path rankers.
What Problem Does This Paper Address?
Organizations increasingly self-host quantized 8B–27B small-to-medium language models (SLMs) to keep sensitive queries and proprietary KGs off external clouds. Under these local hardware and token-budget constraints, existing training-free KG retrieval methods run into three coupled failure modes:
- Hub heat sinks: Flat triple rankers (like BM25 or frozen bi-encoders) and stationary random walks (like Personalized PageRank) diffuse relevance isotropically. High-degree hub nodes (e.g., United States or Voice Actor) soak up the score, burying multi-hop answers.
- Stateless mediator blindness: Real-world KGs like Freebase represent n-ary events using opaque compound value type (CVT) mediator nodes that have no human-readable surface text. Scoring an incoming edge into a CVT without checking its sibling role or temporal qualifiers causes wrong-event collisions.
- Hard-budget chain severing and crowding: Slicing a flat list of triples at a strict byte-pair encoding (BPE) token limit severs multi-hop chains into dangling CVT handles. Conversely, emitting whole multi-edge paths without normalizing for token cost lets high-fanout two-hop groups crowd out core one-hop facts.
Methods
CAF-GMKR (Coupled Activation-Flow Gated Memory Knowledge Retrieval) resolves these three issues through four serial, training-free stages with zero retrieval-time LLM calls:
- Stage I — Directional hop priors & CVT lookahead: Instead of encoding thousands of entity-specific paths, CAF-GMKR encodes each unique reachable predicate once using a frozen
BGE-base-en-v1.5encoder combined with lexical overlap and directional role orientation. When an edge enters an opaque CVT node, a cached one-hop sibling lookahead ($\beta_1$) inspects neighboring constraints (e.g., secondary entities or temporal markers) before committing. - Stage II — Stateful $(H, \epsilon)$ graph memory: A three-zone entity memory (short-term, long-term, and compressed) tracks activation across hops. A deterministic, unit-supremum forgetting gate cools unreinforced hub states below $\epsilon m_{t_0}$ within $H$ hops ($\epsilon = 0.05$), preventing stale hubs from hogging memory slots while preserving verified bridges.
- Stage III — Multi-parent atomic path blocks: Standalone edges ending in a CVT are forbidden. Two-hop chains and their verified CVT qualifiers are bundled into indivisible atomic blocks, guaranteeing that every prompt prefix remains seed-connected with zero dangling CVT leaves.
- Stage IV — Three-layer submodular knapsack readout: To pack the highest-utility blocks into the high-attention primacy window of the prompt, CAF-GMKR solves a static-cost surrogate submodular knapsack using Minoux-accelerated twin-greedy (Cost-Effective Forward) selection, followed by shared-edge deduplication and exact BPE token verification.
Datasets
- WebQSP ($N = 1,639$ test queries): A reified Freebase multigraph benchmark (1,081 one-hop, 473 two-hop/CVT, and 85 unannotated-hop questions) with a mean of 4,306 triples per candidate subgraph.
- MetaQA ($N = 3,000$ zero-shot test queries): 1,000 queries each for 1-hop, 2-hop, and 3-hop splits over a 134,741-triple binary movie KG with no CVT nodes ($\mathcal{V}_{\text{cvt}} = \emptyset$), used to isolate the role of CVT mediators and test the $H=2$ horizon boundary.
- Local SLM backbones: Evaluated on three 5-bit quantized local models—Qwen3-27B, Qwen3-8B, and Llama-3.1-8B-Instruct—across five exact BPE input ceilings (1k, 2k, 4k, 8k, and 12k tokens).
Key Insights and Ideas
- More context can hurt smaller models: While Qwen3-27B improves monotonically up to 12k tokens, both 8B models peak at tight 2k–4k budgets and degrade significantly at 8k ($p \le 0.0374$) due to mid-context dilution and verbose entity-list enumeration hitting the output cap.
- Binary graphs vs. reified multigraphs: On binary MetaQA 2-hop queries, CAF-GMKR and vector-residual search (Residual-Guided Retrieval) tie at ~0.95 Set F1. On reified Freebase WebQSP 2-hop queries, CAF-GMKR leads by +10.76 Set F1 ($0.8063$ vs. $0.6987$), isolating opaque n-ary CVT disambiguation as the exact regime where sibling lookahead is indispensable.
- Primacy exposure drives QA: By scoring 1-hop and 2-hop atomic blocks on a unified cost-normalized scale, CAF-GMKR puts a gold 2-hop answer in the top-20 prompt slots 83.9% of the time (vs. 66.8% for KELP and 59.8% for Residual-Guided Retrieval).
Key Results
- Overall & 2-Hop Accuracy (WebQSP, 27B): Attains 0.7362 Set F1 at 8k and 0.7458 at 12k (0.8063–0.8093 on 2-hop CVTs), outperforming all nine single-step baselines ($p \le 0.0002$) with zero budget overflows.
- Token Frugality: At just 2,048 tokens, 27B CAF-GMKR (0.7158 F1) already surpasses 8,000-token KELP (0.7147 F1) using 3.7× fewer tokens.
- Speedup: 12k retrieval takes 357.5 ms—a 26.7× speedup over KELP (9,550.3 ms)—cutting total end-to-end 12k serving latency from 19.9 s to 10.6 s.
- vs. Multi-Step Agents: Single-call 1k CAF-GMKR beats iterative Think-on-Graph agents by +23.5 to +31.3 Set F1 points across all three SLMs.
- Theoretical Tightness: Across 200 knapsack pools solved to global optimality via branch-and-bound, twin-greedy selection achieves a 0.993 mean optimality ratio (hitting exact 1.000 OPT on 70% of instances).
Limitations and Future Work
- Fixed two-hop horizon ($H = 2$): While $H=2$ plus 3-edge CVT bundles covers >99% of answerable WebQSP chains, performance drops to 0.1578 F1 on explicit 3-hop MetaQA queries. The authors suggest using simultaneous LP shadow-price exhaustion ($\lambda_+(B) = 0$) and large unused budget slack as a zero-leakage trigger for adaptive $H \ge 3$ expansion.
- Upstream entity linking: When upstream linking misses all topic seeds (~1.8% of WebQSP), traversal falls back to lexical matching.
- 8B output calibration: Under ultra-tight 1k budgets, bundled CVT qualifiers can slightly increase verbosity on uncalibrated 8B models; lightweight output-format calibration is a natural next step.
Summary updated