arXiv:2608.24026cs.ROAug 2026

Manuscript Offprint

arXiv:2608.24026

NeurRAFT: Robot Motion Planning via Anchor-Level Flow Matching with Clearance-Aware Preference Tuning

Sibo Tian, Chang Liu, Minghui Zheng, Xiao Liang

Sibo Tian 1^{1}, Chang Liu 1^{1}, Minghui Zheng 1,∗^{1,*}, and Xiao Liang 2,∗^{2,*}

Train in the Simulated Scene

Figure

Zero-Shot Transfer to Real-Robot Planning Problems

Figure

Fig. 1. We present NeurRAFT, a generative motion planner trained entirely in simulation that transfers zero-shot to a physical Franka manipulator. Left: training on the MπNets benchmark [1], covering tabletop, cubby, and dresser scenes. Right: the same model plans directly from depth observations in real-world settings with physical obstacles unseen during training. Each panel overlays the executed trajectory as a sequence of robot configurations.

Abstract—Recent end-to-end neural motion planners generate trajectories from raw sensor observations, avoiding the privileged geometric models required by classical planners. However, collision-free planning in cluttered environments remains challenging. We present NeurRAFT, a generative planning framework based on anchor-level flow matching and clearance-aware preference tuning. Unlike prior neural planners that model dense waypoint sequences and spend capacity on redundant local details and smoothness, NeurRAFT operates on compact anchor waypoints. We train the planner using a Jacobian-weighted loss that accounts for the task-space impact of each anchor. At inference, the anchors are generated in two integration steps, followed by cubic-spline interpolation to recover a smooth, full-resolution trajectory. Since imitation learning from positive demonstrations cannot distinguish collision-free from near-collision trajectories, collision-prone behaviors persist at test time. Rather than relying on post-hoc corrections, we directly reshape the pretrained planner's distribution toward safer solutions without augmenting inference. Specifically, Direct Preference Optimization shifts probability mass toward trajectories with larger obstacle clearance, with the resulting improvement directly absorbed into the planner parameters. Experiments show substantial improvements over state-of-the-art planners, while real-world experiments demonstrate zero-shot transfer to a Franka robot under noisy and partially occluded depth observations. Video results available at https://neurraft.github.io/.

Index Terms—Neural Motion Planning, Flow Matching, Trajectory Parameterization, Direct Preference Optimization.

This work was supported by the USA National Science Foundation under Grant No. 2422826 and No. 2527316. Portions of this research were conducted with the advanced computing resources provided by Texas A&M High Performance Research Computing.

1^{1} Sibo Tian, Chang Liu, and Minghui Zheng are with the J. Mike Walker '66 Department of Mechanical Engineering, Texas A&M University, College Station, TX 77843, USA. Emails: sibotian@tamu.edu, changliu.chris@tamu.edu, mhzheng@tamu.edu.

2^{2} Xiao Liang is with the Zachry Department of Civil and Environmental Engineering, Texas A&M University, College Station, TX 77843, USA. Email: xliang@tamu.edu.

  • Corresponding Authors.

I. INTRODUCTION

Motion planning for robot manipulators in cluttered, unstructured environments remains a longstanding challenge, as feasible motions must be generated in a high-dimensional configuration space that is only partially observable [2]. This is particularly critical in industrial applications such as robotic remanufacturing, where manipulators work over cluttered workbenches surrounded by fixtures, tools, and storage bins, and must generate collision-free motions from partial observations of a scene that changes as parts are removed or reassembled [3]. Extensive research over the past decades has resulted in numerous well-studied motion planning algorithms. Classical approaches broadly fall into two families: sampling-based planners and optimization-based planners. Sampling-based planners, such as PRM [4] and the RRT family [5], [6], [7], explore the configuration space by randomly sampling collision-free states and connecting them into a graph or tree, offering probabilistic completeness and asymptotic optimality. Optimization-based planners, including CHOMP [8] and TrajOpt [9], instead formulate motion planning as a trajectory optimization problem, refining an initial trajectory to minimize an objective that penalizes collisions while encouraging smoothness. Despite their maturity, these classical methods rely on an explicit geometric model of the environment for collision checking, which is computationally expensive to query and difficult to reconstruct accurately from raw sensor data. Furthermore, sampling-based planners may require many iterations to find a feasible path in cluttered environments, whereas optimization-based planners are sensitive to initialization and prone to becoming trapped in local minima.

To overcome these limitations, recent research has increasingly turned to neural motion planners. Early learning-based approaches augment, rather than replace, classical planners. Instead of sampling the configuration space uniformly, several methods learn where to sample, biasing the sampling process toward regions likely to contain a feasible solution and thereby accelerating the underlying search [10], [11]. Later neural planners, such as MPNet [12] and M π\piNet [1], learn to predict the next waypoint directly from the current state and a representation of the scene, amortizing the cost of search into neural network inference. While such informed prediction substantially accelerates planning, these methods still require multi-step rollout to generate a complete trajectory, and prediction errors can accumulate over the planning horizon. Moreover, these methods do not explicitly model the distribution over feasible trajectories. Even with stochasticity injected via dropout at inference [12], [13], the diversity of generated paths is limited, whereas multiple topologically distinct trajectories may all be feasible in a cluttered environment.

To explicitly model the multimodality of robot motion, another line of neural motion planners casts motion planning as conditional generation. Diffusion-based planners [14], [15], [16] have shown strong performance by generating entire trajectories at once and naturally representing diverse solution modes. However, diffusion models typically require many iterative denoising steps, making inference slow. More recent works adopt flow matching, which learns a velocity field along near-straight probability paths between the source and target distributions, enabling generation in far fewer integration steps [17]. Despite this progress, two limitations persist across existing generative planners. First, regardless of the underlying generative model, trajectories are usually represented as dense, full-length waypoint sequences. Such sequences are inherently redundant, as a smooth trajectory can be effectively characterized by a small number of control points, and modeling the remaining waypoints forces the network to spend capacity on local smoothness that interpolation provides for free. Prior efforts have primarily improved generative planning efficiency through the sampling process, while trajectory representations have received comparatively less attention. Second, previous methods are trained exclusively on successful demonstrations and are never exposed to undesirable trajectories. Consequently, they cannot distinguish collision-free motions from trajectories that graze or penetrate obstacles, leaving a residual collision rate that supervised training alone cannot eliminate.

To fill in the gap, in this work we present NeurRAFT, a generative robot motion planning framework that rethinks both the trajectory representation and the training signal. To eliminate representational redundancy, NeurRAFT plans at the level of anchor waypoints. Conditioned on a point-cloud observation of the scene, our method generates a compact sequence of anchors via flow matching in as few as two integration steps, and recovers a smooth, full-resolution trajectory by fitting a cubic spline that passes through the generated anchors. Because the manipulator's kinematics amplify some joint errors more than others, an isotropic loss in joint space treats all joints as equally important, whereas the same angular deviation at different joints can displace the end effector by very different amounts. In our anchor-based representation, each generated anchor corresponds to an actual configuration on the executed trajectory, unlike B-spline control points [15], which shape the curve without necessarily lying on it. We therefore weight the velocity-regression error at each anchor using the Jacobian evaluated at that configuration, penalizing errors according to the end-effector displacement they induce.

Beyond the representation and loss design, we further address the limitation of supervised imitation learning discussed above. Existing approaches often improve planning success by post-hoc correcting failed or unsafe trajectories through additional inference-time procedures, such as refinement [18], guidance [15], or trajectory optimization [17], [19]. Rather than correcting undesirable trajectories after generation, we directly reshape the planner's output distribution at the source. We argue that the pretrained planner can already capture feasible solutions within its learned trajectory distribution, and the key challenge is therefore the imperfect allocation of probability mass within this distribution. We address this by introducing clearance-aware preference tuning, where trajectories sampled from the pretrained planner are ranked by signed obstacle clearance and used to construct preference pairs. We then fine-tune the planner with direct preference optimization (DPO) [20] to shift probability mass toward higher-clearance solutions. Since the preference data are generated on the training dataset, this stage requires neither additional demonstrations nor human annotations. The resulting improvement is directly absorbed into the planner parameters, leaving the inference procedure unchanged. An overview can be seen in Fig. 1. Overall, our contributions are summarized as follows:

  • We propose NeurRAFT, a generative robot motion planner that replaces dense trajectory modeling with compact on-trajectory anchors. The planner is trained with a Jacobian-weighted flow matching loss to account for task-space impact, while inference generates the anchors in only two integration steps and recovers the full trajectory through cubic-spline interpolation.

  • We introduce a preference alignment strategy that improves planning success by reshaping the planner’s trajectory distribution toward safer solutions, rather than relying on post-hoc inference-time corrections. Ranking the planner’s own samples by obstacle clearance provides the negative supervision missing from imitation learning. To our knowledge, this is the first use of self-generated, clearance-based preference alignment for collision avoidance in neural motion planning.

  • We conduct extensive experiments on the M π\piNets benchmark, demonstrating substantial improvements in planning success rate over state-of-the-art planners. Real-world experiments further show zero-shot transfer from simulation to a physical Franka robot under noisy and partially occluded depth observations.

References (33)