Research
REINS: A Self-Evolving Agent Harness for Real-Time Trajectory Planning
An LLM planner harness that verifies and consolidates plans at runtime meets millisecond control budgets, making self-evolving trajectory planning deployable rather than offline.

- arXiv
- 2611.10748 · accepted · NEURIPS
- Published
- 2026-11-07
- Authors
- Zhihong Cui, Hengyu Liu, Haoran Tang, Shijun Liu, Amir Taherkordi, Tor Skeie
In plain words
LLM-based trajectory planners are caught between two bad options: keep the LLM in the decision loop and blow the millisecond-level control budget (each query takes seconds, versus a budget like 50 ms at 20 Hz), or remove the LLM at runtime and freeze the planner against scenarios the offline corpus never anticipated.
AI summary
Overview
Research area: Robotics and autonomous driving — specifically LLM-based trajectory planning, agent harness design, and real-time behavior planning at the tactical decision layer.
Technical level: Intermediate (assumes familiarity with planning loops, LLM agents, and basic safety metrics such as TTC/THW; the formal definitions are dense but the core idea is accessible).
Scope: The paper proposes and evaluates REINS, a runtime "harness" that wraps an LLM planner with grounding, verification, and consolidation so that an LLM can drive millisecond-budget trajectory planning while progressively relying less on itself.
What This Paper Is About
LLM-based trajectory planners are caught between two bad options: keep the LLM in the decision loop and blow the millisecond-level control budget (each query takes seconds, versus a budget like 50 ms at 20 Hz), or remove the LLM at runtime and freeze the planner against scenarios the offline corpus never anticipated. The paper asks what runtime harness would let an LLM planner meet real-time constraints while self-evolving into a deployable one. REINS answers with three couplings — grounding LLM outputs to a learned dynamics model, verifying them by calibrated predicates plus forward rollout, and consolidating verified outputs into an indexed rule memory — closing a loop where familiar scenes are served from memory and novel scenes call the LLM.
Key Contributions
- Extending the agent-harness paradigm to real-time trajectory planning. The authors identify three couplings any such harness must enforce — grounding, verification, consolidation — and argue that only the variable schema and action space are domain-specific.
- The REINS design itself: a learned world dynamics model (dependency graph discovered via prior-guided ridge regression plus per-variable Transformers) for grounding, calibrated predicates with forward-rollout verification, and an indexed rule memory in a Neo4j graph database that serves retrieval in O(log n) time without an LLM call.
- First empirical evidence of self-evolution in real-time LLM trajectory planning: the LLM invocation rate decreases monotonically over deployment with no LLM weight update.
- Evaluation on simulated and real-world benchmarks at the tactical decision layer, reporting 98%+ compliance, nearly 50% collision reduction, and 1.9–4.6 ms planning latency.
Main Findings
- Headline performance: On the Highway scenario, REINS reaches 0.9956 compliance, 0.5228 risk-aware efficiency, 5.67% collision rate, and 2.4998 ms planning efficiency. Against the best baseline (Plan-R1, CR 12.83%), this is a 49%–56% collision-rate reduction across benchmarks, with 2.4%–3.6% compliance improvement and 3.06–5.48 RE improvement.
- Real-world transfer: On highD (4,237 vehicles, 578 lane changes) REINS holds 0.9867 compliance with 6.12% CR; on rounD (2,156 vehicles, 423 yield/merge events) 0.9856 compliance with 9.45% CR — a 6.6–9.0-point CR reduction over Plan-R1 without domain-specific tuning.
- Latency: 1.9–4.6 ms per step, up to 58% faster than runtime LLM baselines (DriveSpeak, LLaDA) and 15%–33% faster than Plan-R1. Variable-indexed retrieval activates only 2–3 rules per step. PDDL makes no runtime LLM call either, but spends 3.71 of its 4.95 ms on Highway re-grounding preconditions at every step.
- Ablation — world model matters most for safety: removing learned dynamics (replacing with constant-velocity propagation) raises CR by 49% on Highway and 48% on Intersection. Removing LLM priors raises CR by 31%–46%. Replacing LLM-generated rules with hand-crafted ones drops compliance from 0.9956 to 0.9312 on Highway and nearly doubles CR. Disabling context-aware retrieval raises CR by 22%–43% and PE by 34%–58%.
- Self-evolution over 1000 Highway episodes: starting from |ℛ₀| = 88 rules, memory grows to 145 (saturating after episode 500), the LLM call rate decays from 70.0% to 12.81% (a 5.5× reduction), compliance rises from 0.9885 to 0.9956, and CR falls from 7.05% to 5.67%. A frozen-ℛ₀ control over the same window achieves 0.9800 compliance and 9.63% CR, so online acquisition adds +0.0156 compliance and removes 3.96 CR points.
- What gets filtered: of roughly 39,000 proposals implied by the observed call rates, 2.1% failed schema validation, 18.0% were rejected by rollout verification, and the accepted remainder deduplicated to 57 unique rules, 54 of which an audit judged consistent with domain guidelines.
- Robustness: rules regenerated with Claude Sonnet 4.5 or Qwen2.5-72B-Instruct keep Highway CR at 5.89% and 6.24% (versus 5.67%); prompt paraphrases span 5.58%–5.91%. Under 2.5%–10% observation noise and 5% frame drops, REINS CR rises to at most 8.14% while Plan-R1 rises to 19.87%.
- Scalability: a memory inflated to 100,000 rules keeps retrieval under 0.8 ms; the 1.59 s miss cycle (dominated by the LLM call) runs off the control path behind a 2.6 ms verified fallback.
Methodology in Plain English
The system works in two phases.
Offline. The authors learn a model of how driving variables evolve. An LLM supplies confidence scores for candidate dependencies between variables (for example, whether lead speed influences time-to-collision), and these priors are combined with group-level constraints and fed into a ridge-regression structure search with an adaptive penalty — high-prior edges get weak regularization, so they survive more easily. Each variable then gets its own multi-head Transformer that predicts its next value from the selected parent variables over a temporal lag. Separately, the LLM writes rules for each discovered dependency edge using one of seven templates (IF-THEN, AND-THEN, THRESHOLD, PRIORITY, MULTI-ACTION, WEIGHTED-ACTION, TEMPORAL-CHAIN). Every threshold is calibrated from data as a z-score, quantile, or absolute constant, and the comparison operator is chosen to maximize separation of safe from unsafe outcomes. Rules go into a Neo4j graph database with TRIGGERS and AFFECTS edges.
Online. Each step, active variables trigger parameterized Cypher queries that return a small set of relevant rules. A Transformer scorer ranks rules by relevance and action preference, multiple rules recommending the same action are combined by noisy-OR, and the top-M actions are rolled out over an H-step horizon under the learned dynamics. A trajectory cost that penalizes collisions, rule violations, and control effort picks the action, and only the first control is executed (receding horizon).
When memory returns nothing useful — or only weak matches below a confidence threshold η — the LLM is invoked. Its proposed rule gets thresholds calibrated on a sliding window, is rolled out under the learned dynamics, and is accepted only if every predicate holds at every step of the rollout. Accepted rules are inserted into memory keyed by a content hash; duplicates average their confidences rather than creating new nodes. Rejected rules fall back to the best memory action, or, if memory is empty, to a human-takeover alert plus the safest action by minimum lookahead TTC. The LLM's weights never change; memory only grows.
Why This Matters
Research impact: The paper reframes LLM planning as a deployment problem rather than a modeling problem — instead of making the LLM faster or fine-tuning it, it builds a runtime layer that decides when the LLM is needed at all. The monotone call-rate decay under a fixed model is a concrete, measurable self-evolution result, and the three-coupling decomposition (grounding, verification, consolidation) is a reusable template for other safety-critical, latency-bound LLM deployments.
Real-world applications:
- Highway and urban driving stacks: a tactical behavior layer that runs in 1.9–4.6 ms and can be dropped behind existing continuous controllers.
- Naturalistic-data validation pipelines: closed-loop replay on highD and rounD shows the approach works on recorded human traffic, not just simulated reactive agents.
- Fleet deployment with bounded LLM cost: because invocation rate declines as memory matures, per-vehicle inference cost falls over time without retraining.
- Other latency-critical LLM control loops: drone navigation, warehouse robotics, or industrial process control where the same three couplings apply and only the variable schema and action space need replacing.
Industry relevance: The work directly targets the economics of putting LLMs in vehicle software — the LLM is a startup cost that amortizes into a queryable graph database, and the 100,000-rule scaling test (retrieval under 0.8 ms) suggests the memory does not become the new bottleneck. The paper also ships code at https://github.com/ZhihongCui/REINS.
Future Directions
- Closing the abstraction gap: the current evaluation assumes clean factored variables and omits perception, tracking, occlusion, and map errors; extending into a full stack is the obvious next step.
- Causal rather than correlational dynamics: the learned dependency graph is prior-constrained but not causally identified, and 3 of the 57 acquired rules were judged over-specific in audit — better structure learning could tighten verification.
- Improving zero-shot cross-domain reuse: a memory compiled only from highD/rounD starts at an 86.2% call rate on highway-env and takes 1000 episodes to get within 0.5–1.1 CR points of native memory; reducing that cold-start cost is open.
- Beyond the five meta-actions: the discrete action interface would need a continuous maneuver head, which the authors note would change only the scorer's output head but is untested.
Target Audience
Robotics and autonomous-driving researchers working on planning and LLM integration; agent-harness and LLM-systems researchers interested in transferring tool-dispatch/verification/memory patterns to latency-critical domains; and industry engineers evaluating whether an LLM can be affordably placed inside a vehicle control loop. Readers wanting only the conceptual contribution can skim the formal definitions in Section 3, while those reproducing the work will need the appendices on dynamics learning, rule compilation, and the memory schema.
Authors’ abstract
Agent harnesses -- runtime scaffolds that wrap an LLM's reasoning loop with tool dispatch, verification, and persistent memory -- have become the standard substrate for deploying LLMs as autonomous agents, as demonstrated by Claude Code and Codex in software engineering. In trajectory planning, however, this paradigm has not taken hold: existing LLM-based trajectory planning methods either keep the LLM in the decision loop, exceeding the millisecond-level control budget, or…
The full abstract on arXivRelated papers
- TinyAstral: Transferring Self-Evolving Harnesses to Tiny Generalist Manipulation Agents 2026-10-30 · cs.RO · Key terms of the title in common
- SCALE: Real-Time Latent Communication for Cyber-Physical Agents 2026-11-05 · cs.RO · Key terms of the title in common
- T-ConSG: A LiDAR-Based Real-Time Temporal Construction Scene Graph for Dynamic and Evolving Environments 2026-10-25 · cs.RO · Key terms of the title in common
- Tiered-Resolution Volumetric Mapping for Real-Time Simultaneous Planning and Mapping on Natural Outdoor Environments 2026-10-14 · cs.RO · Key terms of the title in common
- Planning to Learn: Real-Time Robust Adaptive Control on the GPU with Guaranteed Future Learning 2026-10-14 · cs.RO · Key terms of the title in common