Lost-in-Distance: Impact of Contextual Proximity on LLM Performance in Graph Tasks
Hamed Firooz, Maziar Sanjabi, Wenlong Jiang, Xiaoling Zhai

TL;DR
This paper investigates how the proximity of relevant information within context affects Large Language Models' performance on complex graph tasks, revealing a phenomenon called "lost-in-distance" that impacts accuracy.
Contribution
It introduces the lost-in-distance concept, demonstrates its effect on LLM performance in graph reasoning, and evaluates multiple models and encoding techniques to analyze this impact.
Findings
Model accuracy drops up to 6x as distance increases
Performance depends on relative positioning of graph elements
Lost-in-distance occurs independently of encoding and model size
Abstract
Despite significant advancements, Large Language Models (LLMs) exhibit blind spots that impair their ability to retrieve and process relevant contextual data effectively. We demonstrate that LLM performance in graph tasks with complexities beyond the "needle-in-a-haystack" scenario-where solving the problem requires cross-referencing and reasoning across multiple subproblems jointly-is influenced by the proximity of relevant information within the context, a phenomenon we term "lost-in-distance". We examine two fundamental graph tasks: identifying common connections between two nodes and assessing similarity among three nodes, and show that the model's performance in these tasks significantly depends on the relative positioning of common edges. We evaluate three publicly available LLMs using various graph encoding techniques that represent graph structures for LLM input. We propose a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCloud Computing and Resource Management · Service-Oriented Architecture and Web Services · IoT and Edge/Fog Computing
