← Latest papers
💬 NLP

Bounded Path Context: A Controlled Study of Visible Path History in LLM-Based Knowledge Graph Question Answering

This paper introduces Bounded Path Context (BPC), a method that limits the path history visible to LLMs during knowledge graph question answering to only the most recent hops, demonstrating that this approach not only reduces input tokens but also matches or exceeds the performance of full-history prompting on WebQSP and CWQ benchmarks.

Original authors: Xihang Shan, Ye Luo

Published 2026-05-27
📖 4 min read☕ Coffee break read

Original authors: Xihang Shan, Ye Luo

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a complex puzzle, like finding a specific person in a massive, interconnected family tree. You have a very smart but slightly forgetful assistant (the AI) and a perfect, detailed map of the entire family tree (the Knowledge Graph).

Every time the assistant takes a step to find the next clue, you have to tell them where they are and what they've done so far.

The Old Way: The "Over-Explaining" Assistant

In most current systems, every time the assistant asks, "Who should I talk to next?", you hand them a giant, scrolling scroll that lists every single step they have taken from the very beginning of the journey.

  • The Problem: Even though the assistant has a perfect map in their pocket (the computer's memory) that knows exactly where they are, you keep forcing them to re-read the entire history of their trip.
  • The Cost: This is like reading a 500-page biography every time you ask someone, "What's for lunch?" It wastes time, fills up their short-term memory (making them slower), and clutters their brain with old information they might not need right now.

The New Idea: "Bounded Path Context" (BPC)

The authors of this paper asked a simple question: Does the assistant actually need to read the whole history to make the next decision?

They introduced a new rule called Bounded Path Context (BPC). Instead of handing the assistant the whole scroll, they only show them the last few steps (or sometimes, no steps at all).

  • The Setup: The computer still keeps the entire perfect history in its memory for the final answer. But when the assistant makes a decision, they only see the question, their current location, the options available right now, and maybe the last 1 or 2 steps they took.
  • The Analogy: Imagine driving a car with a GPS.
    • Old Way: Every time you approach an intersection, the GPS screams, "You started in New York, drove through Ohio, passed a gas station in Indiana, turned left in Kentucky..."
    • BPC Way: The GPS just says, "You are at this intersection. Turn left or right." The computer still knows you started in New York, but it doesn't need to shout it at you to help you turn.

What They Found

The researchers tested this on two big puzzle datasets (WebQSP and CWQ) using a smart AI model (Qwen3.5). They tried different "memory limits" for the assistant:

  • K=0: Show no history (just the current spot).
  • K=1: Show only the last step.
  • Full: Show the entire history (the old way).

The Surprising Results:

  1. Less is More: In many cases, showing the assistant less history actually made them smarter and faster.
    • On one dataset, showing just the last step (K=1) got the best score.
    • On the other dataset, showing no history at all (K=0) got the best score.
    • The "Full History" method was actually the worst or second-worst in these tests.
  2. Saving Resources: By cutting out the old history, the system used significantly fewer "tokens" (words/units of data). This is like saving fuel on a car trip.
  3. Model Size Matters:
    • The bigger, smarter AI (9B parameters) did great even with no history.
    • The smaller AI (4B parameters) liked having just one step of history to help it remember context, but didn't need the whole book.

Why Did This Happen?

The paper suggests that when you show the AI the entire history, it gets distracted by old, irrelevant details. It's like trying to focus on a conversation in a noisy room; if you keep shouting the whole story of the day, the listener gets confused.

By limiting the history, the AI focuses only on the current situation and the immediate choices, which is often all it needs to make the right move.

The Bottom Line

The paper concludes that we shouldn't just assume "more history is better" for AI agents navigating graphs. Instead, we should treat the amount of history we show as a tunable setting.

Sometimes, the best way to help an AI solve a puzzle is to let it focus on the present moment, trusting that the computer's memory is holding the rest of the story safely in the background. This makes the system faster, cheaper to run, and sometimes even more accurate.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →