Search arXiv⌕ Search

arXiv subjects

Qunhui Zhang

Publications and source records attributed to Qunhui Zhang.

5 recordsLinked to original sources

Ontology-RAG: Zero-LLM-Index Subject-Document Ontologies and Receiver-Typed VirtualSet Traversal for Multi-Hop Reasoning

Multi-hop retrieval-augmented generation confronts a sharp cost-accuracy dilemma: flat retrieval misses cross-document bridges, OpenIE Graph-RAG invokes tens of thousands of indexing LLM calls, parent-boosted containment trees monopolize single documents, and standard cross-encoders demote unstated second-hop passages. We present Ontology-RAG, a generic retrieval architecture built purely on Entitir's executable OntologyWorld and receiver-typed Outline VirtualSet algebra. With zero offline LLM calls, raw repositories compile into a normalized 12-definition subject-document ontology whose sentence-scoped SubjectMention incidences raise complete gold-chain connectivity to 88.1%, 69.1%, and 88.9% on MuSiQue, 2WikiMultiHopQA, and HotpotQA. Over this single ontology, Ontology-RAG exposes two modes: Light Mode evaluates one fixed VirtualSet expression across every corpus with zero query LLM calls via residual-gated bipartite propagation and lazy edge-sentence provenance in VirtualSet.rerank; Heavy Mode performs multi-round receiver-typed VirtualSet traversal with pre-execution Generic Constraints Projection (GCP) self-type (~this) inference and member-guided repair. Across 3,000 Wikipedia queries, Light Mode reaches 86.48% macro Recall@5 (+12.64 pp EM / +13.98 F1 in same-reader QA) and Heavy Mode reaches 94.81% Recall@5 (74.36 F1, 1,000 queries); on 2,255 MultiHop-RAG news queries, Light Mode transfers zero-shot at 78.45% Hits@4 (leading Inference at 83.33%) while ontology-free Entitir Hybrid+Rerank+Div. leads explicit-clause queries at 80.71%.

cs.IR↗

VirtualSet: Receiver-Indexed Authority Compilation for Query-to-Action Continuity in Executable Ontologies

An ontology edit can preserve a query answer while replacing the evidence that justified an action on it. We study when the original approval remains valid. VirtualSet compiles the evaluated query and a trusted grant into a single-use capability. The query result fixes the approved objects; policy grants actions on their type. Each field or link is recorded under its owning receiver type. For conjunctive filters over stable, single-valued relations, preserving the observed paths and target rows suffices for current target membership at batch entry. In 32 Java cases requiring recorded evidence, finite paths admitted 24 continuations versus 16 for a type-level closure. We then issued approvals before controlled changes in procurement and laboratory ontologies and presented the original credentials afterward. In all 40 scenarios, the post-change selections returned the same object identifiers as at issuance. With the same Java authorization layer, typed navigation and SQL over a stable view each retained 22 original approvals and blocked 18. Retargeting the second relation invalidated approvals that traversed it while preserving those based only on the first. By tracing the receiver type at each access in a validated query, VirtualSet distinguishes approvals for the same objects according to the evidence each approval depends on.

cs.PL↗

Generic Constraints Projection: An Exact Criterion for Preserving Type Comparison Reports under Record Width Extension

A release can preserve a program's type and output while changing a comparison cited in an approved report. A publisher needs to know whether the original approval covers the new release's report under the same identifier and which source comparisons yield different reports. Reconstruction answers these questions after projection. We study them in Generic Constraints Projection for a pure record language whose comparison stops at type equality. For a fixed source export over ground types built from immutable records, primitives, top and bottom, we prove an exact criterion under record width extension. Two independently projected valid certificates yield the same report up to session renaming exactly when their read bindings agree and the actual type at each old stopping position is unchanged. With read bindings fixed, we trace these positions to input paths. If each old record admits a fresh field name, the resulting subtree equalities form the unique irredundant conjunction on old input-record paths for whole-report preservation. For completed mixed edits, a separate criterion uses the new valid certificate to check required types, old leaf endpoints and the surplus fields that keep old branches open. Across two consecutive API Extractor release windows, one published member addition changed an interface yet preserved both comparisons in our mapper. Given the old export, input types and fixed read bindings, occurrence-specific paths identify, before reprojection, exactly which source comparisons would yield different reports after proposed field additions.

cs.PL↗

AiFlow: Construction-to-Retirement Conformance for Versioned LLM Services

A live update can preserve the topology and output of a large language model (LLM) workflow while bypassing a filter's queue and concurrency limits. A background task can use the old version after its caller returns. AiFlow links construction, invocation and retirement through an executable contract. Each admitted request captures an action bound to the checked operators. The service certifies the call's terminal outcome and the release of its registered work. Once new calls can no longer capture the version, the owner checks these certificates and remaining local resources before retirement. Strict publication pauses admission while old calls drain. Deferred publication can admit calls to the successor before its predecessor retires. We evaluated two stateless linear workflows in one Java virtual machine. Under strict publication, we repeated three injected fault scenarios three times per check configuration. An observation counted as contained if neither unguarded execution nor premature replacement occurred. With construction or completion checking alone, six of nine fault observations met this criterion. With both checks, all nine did. A separately implemented coordinator matched AiFlow on the lifecycle outcome, service call count and reclamation decision in all 24 tested pairs. With updates every 400 ms, deferred publication met the 500 ms deadline more often at both loads. We measured the share of all offered requests that met the deadline on the latest scheduled version due at return. Strict publication led at 80 requests/s and deferred publication at 20 requests/s. Both policies use the same local evidence for retirement.

cs.SE↗

MSLL: A Runtime Multi-Stack Parsing Approach for Interactive Grammar Development - A Lightweight Extension of LL-Style Recursive Descent

Few grammars are designed in a straight line. During grammar prototyping, authors often want to run a partially settled rule before refactoring overlapping alternatives or regenerating parser code. Predictive parsers are effective for stable grammars, but their generation and compilation loop can slow down interactive grammar development. This paper presents MSLL, a lightweight runtime extension of recursive-descent LL parsing for edit-time grammar exploration. When a FIRST/FIRST conflict appears, MSLL keeps multiple live parsing stacks, lets each stack follow a different candidate production, and prunes a stack as soon as the input contradicts it. Ambiguity is therefore handled as a runtime state-management problem rather than as a condition that must be removed before execution. The prototype targets an ANTLR-style grammar workflow: run and inspect an evolving grammar directly, collect conflict traces, and later translate or adapt the stabilized grammar for a generated parser. Experiments on DSL-style workloads show that MSLL finishes three 1k-token benchmarks in 48, 49, and 59 ms; stays under one second on two ambiguous 50k-token workloads; and reaches 5.395 s on a 500k-token deeply nested stress case. A real-world JSON grammar case confirms interactive behavior on small and medium inputs while exposing prototype-level super-linear overhead at 500k tokens. The results position MSLL as a development-time companion to existing LL-based parser generators rather than a replacement for production parsers.

cs.PL↗