Manuscript Offprint

arXiv:2609.05139

NS-ST-GraphRAG: Neuro-Symbolic Spatio-Temporal GraphRAG for Literary Knowledge Processing

Zheng Kui Lin

Abstract

Long-form literary narratives pose a distinctive information-processing challenge for retrieval-augmented generation: relevant evidence is distributed across chapters, relations evolve over narrative time, and correct answers may depend jointly on temporal, spatial, and relational constraints. We propose NS-ST-GraphRAG, a neuro-symbolic spatio-temporal GraphRAG framework that integrates ontology-guided extraction, deterministic constraint checking, dual temporal coordinates, spatial scene attributes, and dynamic sub-graph retrieval. Instead of retrieving from a single corpus-level graph, the framework selects the graph state valid for the temporal and spatial scope of a query and grounds generated answers in traceable evidence. We further introduce Red-Chamber-QA, to our knowledge the first open multi-hop question-answering benchmark for classical Chinese literature. Its 104-question preliminary set and 120-question held-out split are constructed under deterministic shortcut controls and expert verification, with time-, space-, and general-question categories and per-part evidence spans. Evaluation follows a frozen, dual-track protocol combining strict mechanical answer reproduction, an independent semantic judge, and deterministic citation-faithfulness checks. On the held-out split, NS-ST-GraphRAG achieves mechanical answer reproduction of 0.733, compared with 0.675 for the frozen window baseline and 0.083 for a closed-book model. The system-baseline difference is directionally favorable but not statistically significant (McNemar exact p=0.092p = 0.092), while semantic-judge accuracy is 0.866 versus 0.850, with no reliable difference. The pre-specified constrained-category condition of H2 is not supported by the delivered comparison. These results show how temporal graph representation, constrained extraction, and auditable evaluation can be integrated into a unified framework for verifiable knowledge processing over long-form narrative.

Keywords: graphrag, spatio-temporal knowledge graph, neuro-symbolic reasoning, hallucination mitigation, classical chinese literature, multi-hop question answering

1. Introduction

Long-form literary narrative is a stress test for retrieval-augmented systems. A novel such as Dream of the Red Chamber runs to a hundred and twenty chapters and some four hundred named characters, and the questions a reader asks of it are inherently relational and situated: which servants served which household before a given event, how a character's standing among relatives changed across the story, who was present at a scene and why that mattered later. These questions are the natural interface to a literary corpus, and they are precisely

Email address: dalianjx@163.com (Lin Zheng Kui) the questions that modern retrieval pipelines are least equipped to handle. Chunk-based vector retrieval, the standard RAG baseline, is not explicitly designed to preserve narrative-time structure when supporting evidence is distributed across chapters [1, 2]. Graph-augmented generation pipelines improve on this by indexing entities and relations [3, 4, 5], but their graph representations do not encode narrative-time validity intervals, so states before and after a narrative turning point are not explicitly separated. A query about the state of the network at a specific story event cannot be routed to the temporally correct subgraph, because the graph carries no validity intervals. The problem is not a niche concern of one novel; every long-form narrative, historical chronicle, and serialized corpus that unfolds over time poses the same question to retrieval systems, and standard graph-augmented pipelines generally do not encode narrative time explicitly.

Three gaps follow directly. First, static graph construction discards the temporal and spatial structure that long-form narrative explicitly carries, so existing GraphRAG systems cannot express topology evolution over the narrative timeline [6, 7]. Second, unconstrained LLM extraction over metaphor-rich prose hallucinates relations that violate the story's internal logic, such as impossible kinship links or master-servant bonds across rival households; hallucination is a documented failure class [8], and the evaluation of such hallucinations lacks a shared protocol beyond atomic factual precision for generation [9]. The distinction matters because generation-level metrics do not see a relation that should never have entered the graph in the first place. Third, there is no open multi-hop QA benchmark for classical Chinese literature: narrative QA benchmarks exist for books in English [10], and prior work on this corpus evaluates extraction on a small ad hoc gold set rather than a released question-answering benchmark [11]. Without a benchmark, claims about graph-grounded answering on this literature cannot be compared across systems, and each new system reports numbers on its own private test set.

We propose NS-ST-GraphRAG, a framework with three coupled components. A neuro-symbolic constraint layer checks every extracted triple against a domain ontology of genealogical, master-servant, and title-consistency rules and repairs violations through a bounded feedback loop. A spatio-temporal graph model stores entities and relations with dual temporal coordinates, a coarse chapter index and a fine narrative-time event interval, plus spatial scene attributes, so the graph is versioned over the story. A dynamic sub-graph retrieval stage parses time and space constraints from a question, retrieves the matching narrative slice by index lookup, and grounds every answer in supporting triples whose coordinates can be traced. The three components are designed to be individually auditable: every rejected relation names its rule, every retrieved answer names its slice, every answer names its evidence. This auditability addresses a broader limitation in hallucination-mitigation research, where evaluation protocols and evidence of effectiveness remain heterogeneous across approaches [12].

The evaluation pairs the framework with Red-Chamber-QA, a multi-hop QA golden dataset we construct over Dream of the Red Chamber with dedicated time-constrained and space-constrained question categories, provenance annotations, and a human-expert difficulty baseline. The present paper reports the first measured installments (Section 4): the preliminary benchmark set and its baseline characterization under a dual-track protocol, the full-corpus construction installment with its development-set trajectory, and the first held-out campaign under the frozen configuration against the same frozen window baseline and a closed-book floor. The full comparison against Naive Vector RAG, GraphRAG, LightRAG, and HippoRAG under the prompt-equalization fairness protocol, with the extraction, hallucination, provenance, latency, and construction-cost metrics, remains committed in advance for the complete release. Because the benchmark and the protocol were committed before the full measurement, the reported results are comparable across systems by construction rather than by retrospective alignment.

The contributions of this paper are:

  • a neuro-symbolic constraint layer that detects and corrects hallucinated entities and relations during LLM-based literary knowledge extraction, driven by an LLM-assisted, expert-verified domain ontology whose interpretable rules bound the extraction error space, in contrast to the extraction loops without an explicit ontology-based constraint-repair layer of [3, 11];

  • a spatio-temporal knowledge graph model with a dual temporal coordinate system, coarse chapter index plus fine narrative-time event intervals, and spatial scene attributes, enabling topology-evolution tracking that graph representations without explicit narrative-time validity intervals cannot directly support [4, 5];

  • the Red-Chamber-QA benchmark, to our knowledge the first multi-hop QA golden dataset for classical Chinese literature, surveyed across the digital humanities and NLP venues covered in the related work, with time- and space-constrained categories and provenance annotations: its 104-question preliminary set is publicly available under mechanical and expert verification together with a first measured baseline characterization, the implementation repository will be released open-source upon acceptance, and the full evaluation protocol covering four retrieval baselines, ablation, efficiency, and construction cost remains committed in advance for the complete release.

References (39)