# PreferenceFlow: Test-Time Guidance of Flow-Matching Robot Policies from Human Interventions

Robotics.world

> Flow-matching policies can produce complex robot behavior, but they still make local execution errors when deployment conditions shift — a changed appearance, an unfamiliar object pose, or a…

**arXiv**: 2609.36872 · Preprint · not peer-reviewed

**Published**: 2026-09-29

**Authors**: Yiqi Tang, Diyuan Shi, Runze Li, Donglin Wang

## In plain words

Flow-matching policies can produce complex robot behavior, but they still make local execution errors when deployment conditions shift — a changed appearance, an unfamiliar object pose, or a contact-rich insertion.

## AI summary

## Overview

**Research area:** Robotics — robot learning, generative (flow-matching) policies, test-time guidance, and learning from human interventions.

**Technical level:** Intermediate. The paper assumes familiarity with flow matching, diffusion-style sampling, KL-regularized objectives, and preference learning (Bradley–Terry), but the core idea is describable without the math.

**Scope:** The paper introduces PreferenceFlow, a method that learns a state-conditioned preference score from human–robot action-chunk comparisons and uses its gradient to steer a frozen flow-matching robot policy at inference time, evaluated on four real-world precision insertion tasks with a Franka robot.

## What This Paper Is About

Flow-matching policies can produce complex robot behavior, but they still make local execution errors when deployment conditions shift — a changed appearance, an unfamiliar object pose, or a contact-rich insertion. Fixing these errors with reinforcement learning normally requires a reward signal that is hard to specify on real hardware, and fine-tuning the whole policy is expensive and can damage pretrained capabilities. The paper's goal is to improve a pretrained flow policy at test time using only human takeover corrections, with no environment reward and no updates to the base policy.

## Key Contributions

1. **A framework for learning state-conditioned action preferences from human interventions.** Human action chunks are paired with robot chunks regenerated from the same window-start state, and a Bradley–Terry objective trains a preference score on frozen policy conditioning features. That score then replaces the Q-function gradient in the Q-Guided Flow (QGF) sampling update.
2. **Two complementary gradient regularizers.** A gradient-cap loss penalizes gradients that exceed a threshold `g_max` on intervention pairs, and a zero-gradient loss suppresses the preference gradient in the neighborhood of expert-demonstrated actions so that routine behavior is not disturbed.
3. **A real-robot evaluation on four precision insertion tasks** (Insert Ethernet, Insert USB, Insert SATA, Insert Charger), where PreferenceFlow reaches 90.5% mean success versus 69% for the frozen policy, a gain of 21.5 percentage points.
4. **Ablations** covering gradient regularization, preference-model architecture, intervention-data quantity, and preference-label ordering, plus score-based reranking and randomized-label controls.

## Main Findings

- **Main result:** PreferenceFlow achieves 90.5% mean success across four tasks (Ethernet 90, USB 92, SATA 92, Charger 88), versus 69.0% for the frozen π0.5 policy (66, 70, 68, 72). That is 181 versus 138 successes in 200 trials, with per-task gains of 24, 22, 24, and 16 percentage points.
- **Against Intervention BC:** Fine-tuning the checkpoint on human takeover windows reaches 84.5% mean (82, 84, 88, 84). PreferenceFlow exceeds it by 6 percentage points overall (per-task gains of 8, 8, 4, 4) while keeping the base policy frozen.
- **Against QGF:** The value-gradient baseline reaches 76.0% mean (74, 74, 80, 76), 7 percentage points above the frozen policy. PreferenceFlow is 14.5 percentage points higher on average. The authors suggest binary trajectory-outcome labels give weaker local supervision than direct action-chunk comparisons.
- **Against FlowDAgger:** FlowDAgger reaches 78.5% mean (78, 80, 76, 80), 9.5 points above the frozen policy; PreferenceFlow exceeds it by 12 percentage points. The paper notes FlowDAgger inverts complete 50-step chunks and so cannot directly use shorter takeover segments, but states this comparison does not isolate that factor's contribution.
- **Both regularizers are critical at the tested guidance weight:** Removing the gradient-cap loss drops mean success from 90.5% to 15.0%; removing the zero-gradient loss drops it to 5.0%; the preference-only variant could not be deployed stably at that weight, so no success rate is assigned.
- **Reducing the guidance weight only partially recovers performance:** With progressively reduced weights, the no-cap variant reaches 81.0% (9.5 points below full), the no-zero-gradient variant 74.5% (16 points below), and the preference-only variant 69.0% (21.5 points below, matching the frozen-policy mean).
- **Data scaling:** With 0, 10, 20, 30, 40, and 50 intervention episodes per task, mean success is 69.0%, 78.5%, 83.5%, 87%, 89%, and 90.5%. Ten episodes already yield a 9.5-point gain; successive blocks of 10 add 5, 3.5, 2, and 1.5 points, so gains diminish but stay positive over the tested range.
- **Architecture matters:** Adding temporal self-attention among action tokens before scoring reduces mean success from 90.5% to 77.0%, a 13.5-point drop, supporting independent per-step scoring. The authors offer the hypothesis that temporal attention lets the scorer exploit global human control style rather than task-relevant preferences, but state the ablation does not establish the mechanism.
- **The score also works for reranking:** Sampling five chunks per decision and selecting the highest-scoring one reaches 92.0% mean success, 1.5 points above gradient guidance. The paper notes reranking needs five complete samples per decision and that relative latency depends on gradient-evaluation cost, but does not report measured latency.
- **Label ordering matters:** Randomly reversing the preference direction within pairs drops mean success to 63.5%, 27 points below PreferenceFlow and 5.5 points below the frozen policy — randomized supervision can be worse than doing nothing.

## Methodology in Plain English

The approach has three stages.

**1. Build preference data from takeovers.** When a human intervenes during a rollout, the system records the human's actions over a window of K = 10 steps. From the same window-start observation, it samples a full chunk from the frozen policy and keeps the first 10 steps. The pair therefore shares an initial conditioning state, and the human chunk is labeled as preferred. Pairs are built with stride one from complete intervention windows, and data splits are grouped by rollout. Importantly, the human actions were collected in closed loop, so the two chunks do not follow identical state trajectories — the paper acknowledges that longer windows make comparisons noisier.

**2. Train a small preference scorer.** The scorer reuses the frozen policy's conditioning representation (three camera images, the language instruction, and robot state) as keys and values. Each candidate action step becomes a query that cross-attends to those tokens; a score head maps each result to a scalar, and the per-step scores are averaged. There is no temporal self-attention between action steps and no direct action-only path to the score, so each step's gradient stays separate. Training uses a Bradley–Terry likelihood with temperature τ on the preference pairs, plus the gradient-cap loss on intervention pairs and the zero-gradient loss on 50 expert demonstrations. Only the scorer's parameters are updated; the base policy and its encoder stay frozen.

**3. Steer sampling at inference.** A KL-regularized objective implies that the ideal improved policy is the base policy exponentially reweighted by the preference score — the same tilting principle used in Direct Preference Optimization. Since that distribution does not directly give a velocity field, the authors borrow QGF's update: at each Euler step, they estimate the clean action endpoint with a single extrapolation from the current noisy sample, compute the preference gradient at that estimate, and add it to the frozen velocity field with a tunable weight. The gradient is recomputed each step, and setting the weight to zero recovers the base sampler. The paper is explicit that this does not guarantee exact sampling from the tilted distribution.

**Experimental protocol:** All π0.5 parameters are first fine-tuned by supervised learning on 50 expert demonstrations, then frozen. Each task gets its own model. Baselines are Intervention BC (fine-tuning the checkpoint on takeover windows), QGF with the authors' official code but the same state-conditioned architecture as the preference model (critic trained on 50 failed base-policy rollouts and 50 successful demonstrations with binary outcome labels), and FlowDAgger (learning structured initial noise from 50 intervention episodes per task). PreferenceFlow trains on the same 50 intervention episodes, where an episode may contain multiple segments with cumulative intervention duration of roughly 2–5 seconds. Evaluation is 50 trials per task; the robot executes the first 10 actions of each chunk before replanning. QGF, FlowDAgger, and PreferenceFlow are each trained on a single RTX 5090 GPU.

## Why This Matters

**Research impact.** The paper shows that relative human judgments — which are cheap to collect as takeovers — can substitute for a reward function or Q-function in test-time guidance of generative policies. It connects preference optimization's exponential-tilting view to flow-guidance sampling, and it demonstrates that naive guidance gradients are unstable without explicit regularization, which is a useful negative result for anyone building gradient-based guidance on frozen policies. It also adds evidence that fine-tuning is not the only way to exploit intervention data.

**Real-world applications:**

- **Precision assembly and connector insertion** — the exact evaluated setting: Ethernet, USB, SATA, and charger insertion under tight geometric tolerances, where small pose errors block success.
- **Deployment-time repair of deployed robot fleets** — an operator's occasional takeover can tune a lightweight scorer while the shipped base policy stays untouched and version-controlled.
- **Contact-rich manipulation** where rewards are hard to write, such as wiping, snapping, or peg-in-hole tasks that depend on force and alignment.
- **Low-data site customization** — the data ablation suggests 10 intervention episodes already give a meaningful gain, which matters where collecting demonstrations is expensive.

**Industry relevance.** Keeping the base policy frozen is attractive operationally: no risk of catastrophic forgetting of pretrained skills, no need to redistribute a large foundation model, and a small add-on module that can be trained on a single consumer-grade GPU. That maps onto practical workflows where a deployed VLA model is patched per workcell rather than retrained.

## Future Directions

- **Longer horizons and noisier windows.** The paper's own limitation section flags that human actions are collected in closed loop while robot candidates come from a single initial observation, so longer comparison windows may produce noisier preference labels. Testing shorter or differently constructed windows is a natural next step.
- **Beyond a single robot and four tasks.** The evaluation covers four visually guided insertion tasks on one Franka with fixed camera layout (one wrist-mounted, two fixed, 30 Hz). Generality across robots, tasks, and human operators is untested.
- **Guarantees and guidance stability.** The method offers no formal guarantee of long-horizon improvement, and the ablation shows deployment becomes unstable at the full guidance weight without regularization. Understanding and bounding that instability, and relating the empirical guidance weight to the KL coefficient β, remain open.
- **Combining gradient guidance with reranking.** Reranking with five samples scored 92.0% versus 90.5% for gradient guidance, but the paper reports no latency measurements, so the compute-versus-success tradeoff between the two is unquantified.
- **Separating confounds in the baselines.** The paper notes that the FlowDAgger gap may partly reflect that it inverts complete 50-step chunks and cannot use short takeover segments, a factor the current comparison does not isolate.

## Target Audience

Robotics and embodied-AI researchers working on generative policies (diffusion and flow matching), test-time adaptation, and learning from human feedback; practitioners deploying vision-language-action models who want a lightweight per-site improvement loop without retraining; and reinforcement learning researchers interested in replacing reward or value signals with preference-based guidance. Readers without background in flow matching or KL-regularized preference objectives will need to consult the cited prior work (π0, π0.5, QGF, DPO) to follow the derivations.

## Authors’ abstract

Flow-matching policies can represent complex robot behaviors but remain susceptible to local errors under distribution shift at deployment. Many reinforcement learning approaches to policy improvement require reward signals that are difficult to specify or obtain in real-world manipulation. We present PreferenceFlow, a framework for improving a pretrained flow policy at test time without environment rewards or updates to the base policy. Human intervention chunks are paired…

[The full abstract on arXiv](https://arxiv.org/abs/2609.36872)

[Read the original paper](https://arxiv.org/abs/2609.36872)

## Related papers

- [In-Context Learning for Robots: Methods and Applications](https://robotics.world/paper/in-context-learning-for-robots-methods-and-applications-2609.36012) 2026-09-28 · cs.RO · Also by Donglin Wang, Runze Li
- [EvoHIL: Self-Evolving Reward and Flow-Matched Policy Optimization for Robust Human-in-the-Loop Reinforcement Learning](https://robotics.world/paper/evohil-self-evolving-reward-and-flow-matched-policy-optimization-for-2608.03872) 2026-08-04 · cs.RO · Key terms of the title in common
- [Spatial Grafting: Grounding 3D Features for Flow-Matching Robot Policies](https://robotics.world/paper/spatial-grafting-grounding-3d-features-for-flow-matching-robot-policies-2609.35249) 2026-09-28 · cs.RO · Key terms of the title in common
- [Cue the Flow: Steering Flow-Matching Policies for Open-World Delivery Manipulation](https://robotics.world/paper/cue-the-flow-steering-flow-matching-policies-for-open-world-delivery-2609.38989) 2026-09-30 · cs.RO · Key terms of the title in common
- [Uncertainty-Gated Exploration Noise Suppresses Task Collapse in Online RL Fine-Tuning of a Flow-Matching Vision-Language-Action Policy](https://robotics.world/paper/uncertainty-gated-exploration-noise-suppresses-task-collapse-in-online-2609.28838) 2026-09-23 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/preferenceflow-test-time-guidance-of-flow-matching-robot-policies-from-2609.36872
