Manuscript Offprint

arXiv:2610.11223

SafeInferCom: Safe Inference-Time Compute via Verifier-Guided Mid-Generation Intervention for Robotic Task Planning

Weizhe Xu, Jialiang Fan, Mengyu Liu, Fanxin Kong

Weizhe Xu 1^{1}, Jialiang Fan 1^{1}, Mengyu Liu 2^{2}, and Fanxin Kong 1^{1}

1^{1}University of Notre Dame 2^{2}Washington State University

{wxu3, jfan5, fkong}@nd.edu, mengyu.liu@wsu.edu

Abstract—Large Reasoning Language Models (LRLMs) enable multi-step reasoning for robotic task planning, but continued reasoning can overwrite valid intermediate plans or leave constraint violations unresolved, reducing planning reliability and wasting inference-time computation. We develop an inference-time monitor that exposes and verifies intermediate plans without disrupting the original decoding trajectory. Building on this monitor, we propose SafeInferCom, a formal verifier-guided framework that preserves valid intermediate plans and directs error correction during generation. Experiments across multiple LRLMs and planning domains reveal reasoning-response inconsistency and limited self-correction under one-shot inference. SafeInferCom improves planning success and accelerates error correction relative to one-shot inference. When combined with iterative refinement, it further improves success while reducing token usage compared with refinement alone. We additionally evaluate SafeInferCom in VirtualHome and provide a real-world robotic-arm demonstration.

I. INTRODUCTION

Robotic task planning converts high-level goals into executable action sequences while ensuring that safety constraints are satisfied throughout execution. Classical planners provide a principled and auditable solution when an accurate symbolic model is available: planners such as Fast Downward search over explicit action models, while validators such as VAL verify candidate plans against the given specification [1], [2]. However, this formalism has two practical limitations. First, it requires rigid symbolic task representations and carefully engineered domain models. Second, symbolic search can become computationally expensive as the number of objects, applicable actions, and planning horizon increase [3]. Learning-based planners enable fast inference through learned policies, but depend on training data and generally lack explicit safety guarantees [4], [5].

Large Language Models (LLMs) have been explored for robotic task planning, leveraging their ability to interpret high-level instructions and contextual descriptions to generate candidate action sequences [6], [7]. While conventional LLM planners typically generate a final plan directly from the input, Large Reasoning Language Models (LRLMs) first perform explicit multi-step reasoning before producing the final output [8], [9]. By allocating additional computation at inference time to this intermediate reasoning process, LRLMs can deliberate over candidate actions and constraints before committing to a plan.

However, additional reasoning does not always lead to a better plan. Through fine-grained analysis, we observe reasoning-response inconsistency across models and planning domains. In some cases, a model develops a safe and goal-satisfying intermediate plan but later overwrites it through continued reasoning, ultimately producing an incorrect final output. Conversely, constraint-violating intermediate plans may persist across successive reasoning steps without effective correction. Such instability reduces planning reliability and wastes inference-time computation on trajectories that could have been terminated or corrected earlier.

Existing approaches improve LLM-based planning reliability by using external formal verifiers to validate completed plans, followed by iterative refinement or verification-based candidate selection [7], [10]–[12]. While these methods can improve final-plan validity, the verifier typically provides feedback only after a candidate has been fully generated. For LRLMs, a valid intermediate plan may therefore be overwritten, or a constraint violation may persist, before external verification occurs. This motivates integrating formal verification into the reasoning process to preserve valid intermediate plans and guide correction before generation is complete.

To systematically analyze reasoning-level safety issues, we first develop an inference-time reasoning monitor that instruments LRLM generation without altering its primary decoding trajectory. The monitor extracts structured action sequences at selected reasoning transitions and evaluates them with an external formal verifier, while allowing the model to resume reasoning from the original state. This enables fine-grained analysis of reasoning-response consistency under standard one-shot inference.

Building on this monitoring infrastructure, we introduce SafeInferCom, a verifier-guided mid-generation controller with four actions: continue a safe but incomplete trajectory, inject diagnostic feedback after a detected violation, terminate generation once a valid plan is identified, or trigger replanning after persistent violations. Unlike post-hoc refinement, SafeInferCom intervenes before a complete failed trajectory is generated, allowing violations to be corrected during reasoning and earlier valid candidates to be preserved without restarting the entire inference process. In this way, SafeInferCom shifts formal verification from post-hoc plan checking toward mid-generation guidance, improving planning reliability while avoiding unnecessary continued reasoning once a valid intermediate plan is identified.

Our contributions are summarized as follows: (1) An inference-time reasoning monitor that extracts and formally verifies intermediate plans from LRLM reasoning prefixes while preserving the original decoding trajectory, enabling fine-grained analysis of reasoning–response inconsistency. (2) SafeInferCom, a verifier-guided mid-generation controller with four actions: continuation, targeted correction, early termination, and replanning after persistent violations. (3) A comprehensive evaluation across multiple LRLMs and robotic planning domains, characterizing intermediate-plan fidelity, self-correction behavior, and the success–compute trade-off against one-shot inference and post-hoc refinement. Additional VirtualHome and real-robot manipulation studies demonstrate the method in more realistic settings.

References (30)