Manuscript Offprint

arXiv:2610.18410

Graph-free Retrieval with Graph-Modified Embeddings

Federica Santi, Vasilije Marković, Daniel Scott, Lazar Obradović

Abstract

Dense vector retrieval can miss evidence connected through intermediate entities, while direct graph retrieval requires access to the graph at query time. We compare five offline graph-based embedding transformations and strategies for using the resulting graph-modified embeddings alongside the originals, without query-time graph access. On a synthetic professional-network benchmark with complete supporting-evidence sets, direct replacement of the original embeddings reduces evidence recovery. Multi-stage strategies improve recovery by using graph-modified embeddings to guide the search while retaining the originals for semantic relevance. On questions requiring linked facts or comparisons among candidates, the strongest configuration improves recovery by up to 25.9 % relative to plain vector retrieval. It also matches baseline recovery with 40 % fewer returned nodes. Controls confirm that graph information contributes beyond multi-stage retrieval alone. Across the tested methods, retrieval performance depends more on how graph-modified embeddings are used than on how they are produced.

1 Introduction

Retrieval is a central component of retrieval-augmented generation (RAG), where external evidence is retrieved to support large language model (LLM) outputs [1]. It also supports LLM agents and long-term memory systems by identifying relevant documents, passages, or stored facts. Dense retrieval embeds queries and passages in a shared vector space and ranks candidates by vector similarity [2]. This approach is effective when supporting evidence is semantically close to the query, but may miss relevant passages connected through intermediate entities or multi-step relations. Knowledge graphs represent these connections explicitly, but using them for retrieval introduces two challenges. Traversing or reranking the graph for every query increases query-time complexity, while modifying embeddings according to graph structure may distort the semantic relationships captured by the original embeddings. This leads to the central question of this work: can graph structure be incorporated offline into graph-modified embeddings that improve retrieval without requiring graph access at query time or replacing the original embeddings?

Prior work has either incorporated relational knowledge into embeddings [3, 4, 5], used graphs directly at query time [6, 7], or refined retrieval through textual feedback alone [8, 9, 10]. Our work connects these directions by examining both how graph-modified embeddings should be constructed and how they should be used in multi-stage retrieval.

We construct graph-modified embeddings offline using several transformations, including local neighbourhood aggregation, random-walk endpoints, community centroids [11], and convex neighbour pull. We then compare retrieval strategies ranging from replacing the original embeddings with graph-modified embeddings to multi-stage strategies that combine both. At

*Correspondence: federica@topoteretes.com.

Preprint

query time, every strategy uses only cosine-similarity searches over stored embeddings; the graph is neither traversed nor queried.

Our central hypothesis is that graph-modified embeddings are more useful for guiding the expansion of retrieval than for measuring relevance to the original query. The best-performing strategies therefore assign distinct roles to the two sets of embeddings. An initial search over the original embeddings retrieves semantically relevant results (seeds). Their graph-modified embeddings are then aggregated to guide the selection of candidates that are both relevant to the query and related to the seeds through the graph. Finally, the original embeddings of the selected candidates are used to reformulate the query for another search over the original embeddings [8, 9, 10]. We refer to this use of graph-modified embeddings to guide retrieval as graph conditioning.

To evaluate these strategies, we introduce a synthetic professional-network benchmark in which the corpus, graph, questions, answers, and supporting evidence are generated from the same underlying facts. The benchmark includes single-fact, relational and collection, and extremisation questions, together with exact gold answers and complete gold-evidence sets containing the intermediate and competing records required to establish each answer [12].

We select configurations on a development corpus and report results on separately generated validation data (Section 3.1). All methods use the same original embeddings, cosine similarity, and the same 40-node retrieval limit. Multi-stage controls without graph conditioning allow us to distinguish improvements produced by graph-modified embeddings from those produced by multi-stage retrieval alone.

None of the graph-modified representations improves direct retrieval over the original embeddings in our experiments. The original embeddings recover 73.1% of the gold evidence, whereas the five transformations recover between 52% and 72.9%. In contrast, multi-stage retrieval improves performance across all five transformations, and the choice of retrieval strategy has a greater effect than the transformation used to construct the graph-modified embeddings. The strongest configuration improves gold-evidence recovery relative to plain vector retrieval by 25.9% on extremisation questions and by 10.0% on relational and collection questions (19.2% across the two groups). It also matches the gold-evidence recovery achieved by plain vector retrieval with 40 nodes after returning only 24, corresponding to 40% fewer returned nodes.

References (28)