Manuscript Offprint

arXiv:2609.11390

VikingRAG: Accurate and Token-efficient Retrieval-augmented Generation over Structured Documents

Peiyuan Gao, Gaoyuan Zhang, Haojie Qin, Yahui Sun, Qianyi Zhang, Yunhao Zhang, Zeyu Wang, Wei Lu

Peiyuan Gao

Renmin University of China

2024103828@ruc.edu.cn

Yahui Sun

Renmin University of China

yahuisun@ruc.edu.cn

Gaoyuan Zhang

Renmin University of China

zhanggaoyuan.27@ruc.edu.cn

Qianyi Zhang

Renmin University of China

yuanlinqianyi@163.com

Haojie Qin

Independent Researcher

qin_haojie@qq.com

Yunhao Zhang

Renmin University of China

zhangyunhao29@ruc.edu.cn

Zeyu Wang

Fudan University

zeyuwang21@m.fudan.edu.cn

ABSTRACT

State-of-the-art retrieval-augmented generation (RAG) methods exploit document structures to acquire sufficient evidence, but often incur substantial token costs. To reduce structural-context tokens without compromising high RAG accuracy, we present VikingRAG, a directory-aware semantic data management system that tightly integrates semantic and structural access to support structural-context-efficient, evidence-gap-driven multi-round retrieval. To further reduce token overhead of multi-round interaction, we materialize agentic multi-round retrieval traces as experience edges, and reuse these edges for similar queries, avoiding repeated multi-round exploration. To additionally reduce token costs when agentic multi-round retrieval is unnecessary, we introduce an adaptive escalation strategy that answers from one-round experience-augmented retrieval when the evidence is sufficient, and invokes agentic multi-round retrieval only otherwise. Experiments on real datasets show that the base system VikingRAG matches high accuracy of state-of-the-art methods while consuming only 11.6%-51.9% of their tokens. With retrieval-trace reuse and adaptive escalation, token costs drop to 5.1%-32.5% while maintaining competitive accuracy and practical document-storage performance, showing the utility of this work for emerging AI knowledge bases.

Artifact Availability:

The source code is at https://github.com/rucdatascience/VikingRAG.

1 INTRODUCTION

By extracting evidence from databases, retrieval-augmented generation (RAG) [64] helps large language models (LLMs) to reduce hallucinations and access updated knowledge without model retraining. Nowadays, RAG has been widely adopted in various applications, including enterprise question answering [59, 77, 82, 92, 110], legal and financial document analysis [27, 34, 46, 70, 90, 93, 103], and scientific literature exploration [19, 22, 35, 86], where the underlying corpora typically consist of structured documents organized by chapters, sections, paragraphs and appendices.

Document structures provide important cues for retrieval: they indicate where a fact belongs, how a local detail relates to a broader

Wei Lu

Renmin University of China

lu-wei@ruc.edu.cn

topic, and where evidence may be found. However, the naive chunk-embed-retrieve-generate RAG pipeline [64], relational-database-backed SQL-RAG approaches [2, 13], and graph-based RAG systems [38, 41, 47, 55, 96] abstract documents into flat chunks, relational tuples, or semantic graphs, while ignoring document structures. Hence, these methods cannot exploit structural cues, often leading to low RAG accuracy over structured documents. Motivated by this fact, recent studies [67, 102, 108, 115] more explicitly exploit document structures to guide retrieval. Nonetheless, accurate and token-efficient RAG over structured documents is still challenging.

References (9)