Compiling Autoregressive LLM Control into Policy-Exact Parallel Inference for Hierarchical RAG
ZLZehao LinQianfeng ShenXixuan HaoShaobo CuiChunyu Li
Kai ChenBo TangZhenjun WangJin YanZhiyu LiFeiyu Xiong ZLZehao Lin
Qianfeng Shen
Xixuan Hao
Shaobo Cui
Chunyu Li

Kai Chen
Bo Tang
Zhenjun Wang
Jin Yan
Zhiyu Li
Feiyu Xiong
+11
This paper shows that bounded-horizon LLM control in hierarchical RAG can be compiled into policy-exact parallel inference. Because reachable futures form a shallow action-prefix tree, a single root prefill plus one tree-causal probe evaluates every prefix-conditioned action distribution with the same tokens, positions, and causal ancestry as serial decoding. A prefix-state lemma guarantees exact equivalence and zero output tokens, with a two-forward critical path. One additional probe certifies the exact order-marginalized MAP set. On four document-disjoint splits at two scales, compiled control matches the serial policy on 84–89% of questions—all divergences being floating-point near-ties—and reduces control latency by 35–47% versus token-wise serial decoding and 6–7% versus an idealized chunked engine; an H800 repetition preserves the ordering.

arXiv ·
· October 22, 2026