potentialpaper

Test-Time Gradient Guidance of Flow Policies in Reinforcement Learning

Zhiyuan Zhou, Andy Peng, Charles Xu, Qiyang Li, Jost Tobias Springenberg, Kevin Frans, Sergey Levine

CSIR @ CoRL 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We introduce a new RL algorithm Q-Guided Flow that performs policy optimization entirely during test time, using a novel critic gradient to guide a pre-trined behavioral cloning policy to generate reward-maximizing actions.

Abstract. Expressive continuous control policies, such as diffusion and flow models, form the backbone of recent advances in scaling imitation learning for simulated and real robot control. While they are known to scale stably in the supervised imitation learning setting, incorporating them into reinforcement learning (RL) pipelines for policy improvement has proven more difficult. It often requires specialized training objectives or back-propagating through denoising processes, which cause well known issues with stability and affects scalability. In this paper we study the question of whether simple policy improvement schemes at test time alone, leaving stable supervised policy training intact, can be a competitive alternative which side-steps these issues. To this end, we propose QGF (Q-Guided Flow), a new RL algorithm that performs policy optimization entirely during test time. QGF works by pre-training both a reference flow policy (via a standard behavioral cloning objective) and a value function critic and, during test-time, using the value gradient to guide the reference policy to generate higher-value actions without any additional policy learning. Empirically, QGF outperforms prior test-time RL methods while being much cheaper to run, and is competitive with state-of-the-art training-time algorithms on single-task and goal-conditioned offline RL benchmarks with high-dimensional action spaces. Moreover, it exhibits favorable scaling with model size by avoiding the instability of actor-critic training, offering a practical and effective alternative RL algorithm with expressive policies.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
6 Sep 2026CSIR @ CoRL 2026submittedCSIR @ CoRL 2026Accepted—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper presents Q-Guided Flow (QGF), a test-time policy improvement method for flow-based policies in offline RL. It uses critic gradients to guide denoising while approximating clean actions to avoid unreliable gradients on noisy intermediate actions. The reviewers generally found the method clear, well motivated, and empirically effective. The method is simple and practical, with strong empirical results across OGBench tasks. Reviewers also appreciated the broad baseline comparison and useful ablations supporting the design choices.

The main concerns are limited novelty relative to recent Q/energy-guided flow methods, insufficient discussion of the approximation assumptions, and unclear guidance-weight selection in a purely offline setting. The paper should also better discuss dependence on critic accuracy and reference-policy coverage.

The response should clarify offline hyperparameter selection, justify the clean-action / identity-Jacobian approximations, and better position the method against closely related prior work. If these points are addressed, I would remain accepting the paper.

Area Chair SKPu · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper presents Q-Guided Flow (QGF), a test-time policy improvement method for flow-based policies in offline RL. It uses critic gradients to guide denoising while approximating clean actions to avoid unreliable gradients on noisy intermediate actions. The reviewers generally found the method clear, well motivated, and empirically effective. The method is simple and practical, with strong empirical results across OGBench tasks. Reviewers also appreciated the broad baseline comparison and useful ablations supporting the design choices.

The main concerns are limited novelty relative to recent Q/energy-guided flow methods, insufficient discussion of the approximation assumptions, and unclear guidance-weight selection in a purely offline setting. The paper should also better discuss dependence on critic accuracy and reference-policy coverage.

The response should clarify offline hyperparameter selection, justify the clean-action / identity-Jacobian approximations, and better position the method against closely related prior work. If these points are addressed, I would remain accepting the paper.

Reviewer c8vHOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces QGF, a reinforcement learning algorithm designed to overcome the instability and scalability challenges inherent in flow policies. Rather than optimizing the policy during training, QGF performs policy improvement entirely at test-time by guiding a pre-trained flow policy with a value gradient. It employs a first-order Euler approximation of the denoised action to compute the value gradient, thereby avoiding unreliable OOD gradients from noisy intermediate states and achieving more stable and efficient optimization. Empirical results demonstrate that QGF outperforms existing test-time and training-time baselines across high-dimensional offline RL benchmarks.

Strengths and weaknesses

Strengths

  • The paper is well-written and logically sound. It is insightful that the authors point out why the flow policies suffer from instability (i.e., evaluating gradients at noisy intermediate states can misguide the flow updates due to out-of-distribution (OOD) issues). Based on this observation, the proposed alternative of utilizing the value gradient of a denoised action derived from a first-order Euler approximation is well-motivated.

  • While the methodology is intuitive and straightforward, its empirical performance is robust, surpassing both training-time and test-time baselines on the benchmarks. Additionally, by eliminating the need for iterative denoising rollouts typical of BFN methods, the proposed method drastically reduces computational time and thus holds great potential for real-time applications.


Weaknesses

  • QGF relies on an offline dataset with reward labels to train the critic used for gradient guidance. For static datasets without rewards, constructing or learning an additional value function may require considerable effort and computational overhead.

  • Since QGF refines actions only at test time without updating the underlying actor, its performance is still constrained by the quality of the reference policy. If the initial BC flow policy has limited state-action coverage or insufficient expressiveness, test-time guidance may offer only limited improvement.

Questions
  • Since the value gradient directly guides every denoising step, it would be insightful to evaluate whether QGF remains stable when the critic is inaccurate, particularly in low-coverage regions of the offline dataset.

  • In particular, can test-time guidance recover useful actions when the reference policy has limited state-action coverage or assigns very low probability to high-value actions?

Limitations

Yes.

Final justification

The paper presents a technically sound test-time guidance approach, although its performance remains dependent on the quality of the critic and reference policy. The additional experiments and explanations adequately addressed my questions, so I will maintain my current score.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your time and your positive review! We are glad to hear that you found our paper insightful and our method intuitive yet robust. We present new experiment results below to answer your questions on QGF’s dependency on critic accuracy and reference-policy coverage.


it would be insightful to evaluate whether QGF remains stable when the critic is inaccurate, particularly in low-coverage regions of the offline dataset.

Thank you for your suggestion! We did an ablation experiment to analyze this and detail the results below. We analyze QGF’s performance when subject to critics with varying quality, as induced by different offline dataset coverages. Specifically, we compare QGF’s performance across critics trained on 100%, 50%, and 25% of the offline dataset, while keeping the reference policy fixed (trained on the full offline dataset). A smaller subset of the offline dataset has less coverage, and therefore induces a less accurate critic. Results below in Table 5 show that critics trained on lower coverage data can hurt performance depending on the task. Intuitively, an inaccurate critic will give the wrong guidance signal regardless of whether the reference policy action is good, and guide action generation in wrong directions.

Environment family Q on 100% Q on 50% Q on 25%
cube-triple 66.5 ± 4.5 55.7 ± 4.9 24.0 ± 1.3
cube-quadruple 7.2 ± 1.7 1.0 ± 0.8 0.0 ± 0.0
puzzle-4x4 49.7 ± 3.0 46.2 ± 1.8 42.0 ± 2.8
scene 88.8 ± 0.6 86.3 ± 0.8 90.0 ± 0.3

Table 5: Performance of QGF with critics trained on 100%, 50%, and 25% of the offline dataset. The reference policy is always trained on the whole dataset. Performance for each environment family is averaged across 5 different tasks (4 seeds each).


can test-time guidance recover useful actions when the reference policy has limited state-action coverage or assigns very low probability to high-value actions

Thank you for your suggestion! We did a similar ablation experiment to analyze this. We compare QGF’s performance with different reference policy coverage. Specifically, we compare QGF’s performance using reference policies that are trained on 100%, 50%, and 25% of the offline dataset, respectively, while keeping the critic fixed and trained on the full offline dataset. Results below in Table 6 shows that QGF has similar performance even when the reference policy has limited state-action coverage, showing that QGF can guide a weaker policy to achieve a similarly strong performance with Q gradient guidance.

Environment family π\pi on 100% π\pi on 50% π\pi on 25%
cube-triple 66.5 ± 4.5 67.3 ± 4.3 62.9 ± 1.6
cube-quadruple 7.2 ± 1.7 5.0 ± 1.3 5.1 ± 0.9
puzzle-4x4 49.7 ± 3.0 46.8 ± 1.5 49.3 ± 3.1
scene 88.8 ± 0.6 90.2 ± 2.3 87.0 ± 1.2

Table 6: Performance of QGF with reference policies trained on 100%, 50%, and 25% of the offline dataset. The critic is always trained on the whole dataset. Performance for each environment family is averaged across 5 different tasks (4 seeds each).


For static datasets without rewards, constructing or learning an additional value function may require considerable effort and computational overhead

That is correct. We assume the setting where rewards are available in the offline dataset, a standard assumption in offline RL methods. We will add this to the limitation section.

Reviewer c8vH · CommentOpenReview ↗

Response to the Authors' Rebuttal

Dear authors,

Thank you for conducting additional experiments to address my questions. The results and explanations have addressed my concerns. I will therefore maintain my current score.

Reviewer xdQ2OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Q-Guided Flow (QGF), a simple test-time policy improvement method for flow-based policies in offline RL. The method trains a reference flow policy with behavioral cloning and trains a critic separately, then uses the critic action-gradient at test time to guide each denoising step toward higher-value actions. To avoid querying the critic on noisy intermediate actions, QGF estimates a clean action using a one-step Euler approximation and evaluates the critic gradient at this approximated clean action. The paper evaluates the method on several OGBench environments and compares against a broad set of test-time and training-time baselines, including BFN, GradStep, QFQL, BPTT, CFGRL, FQL, EDP, QAM, DAC, and QSM+BC.

Strengths and weaknesses

strength

  1. The paper is well written and quite clear. The motivation is easy to follow: flow policies are stable and scalable under supervised behavioral cloning, but integrating them into actor-critic RL can be difficult due to the cost and instability of backpropagating through multi-step denoising. QGF offers a simple alternative by moving policy improvement to test time.

  2. The experimental section is strong. The paper compares against many relevant baselines, including both test-time methods and training-time RL methods, and the use of the same critic across methods helps isolate policy extraction quality.

  3. The ablations are also useful, especially the comparisons between noisy-action gradients, BPTT gradients, QGF gradients, and QGF with/without the Jacobian. The sensitivity analysis and compute comparison are valuable additions.

weakness

  1. My main concerns are about the theoretical status and practical selection of the guidance coefficient. The method relies on an approximate clean-action estimate and often replaces the true Jacobian with the identity. This appears empirically effective, but it remains a biased pseudo-gradient rather than the true gradient of the fully denoised action value. A clearer discussion of when the identity-Jacobian approximation is justified, and when it may fail, would strengthen the paper.

  2. The related work coverage is generally strong, but the positioning could be improved with respect to recent flow-based Q/energy-guidance and policy-extraction methods. For example, the paper could more explicitly clarify the relationship between QGF, QAM, EDP, DAC, QSM/QSM+BC, and Energy-Weighted Flow Matching, since these methods also aim to incorporate value or energy information into diffusion/flow policy learning or sampling.

Overall, I find the method simple, well motivated, and empirically promising, but some aspects of the guidance coefficient, off-manifold behavior, and approximation assumptions need clarification.

Questions
  1. The paper provides a sensitivity analysis and hyperparameter sweep for the guidance weight, but it is unclear how this coefficient should be selected in a truly offline setting without online evaluation. Are the reported guidance weights chosen using environment returns, held-out offline metrics, critic values, or another criterion?

  2. The paper notes that summing denoising steps does not generally guarantee sampling from the correct target distribution. Could the authors clarify why the proposed classifier-guidance-style addition of a Q-gradient to the flow update is better justified? What is the essential distinction between QGF and the denoising-step summation discussed for CFGRL?

  3. QGF avoids querying the critic directly at noisy actions, but the approximated clean action a′a' may still be off the behavior/action data manifold. How do the authors ensure in practice that a′a' stays within a reliable region for the IQL critic? Does this require multiple rounds of guidance-weight search?

  4. The appendix notes that overly large guidance weights can push actions outside the dataset support. In offline RL, if the environment cannot be queried, how should this failure mode be detected? If evaluation returns are used to tune the coefficient, this may weaken the “easy to use” claim.

  5. When is the identity-Jacobian approximation expected to be reasonable? Are there conditions on the flow field, denoising time, or local curvature under which replacing the Jacobian with identity gives a bounded approximation error?

Limitations

The paper discusses some limitations, especially the cost of critic gradients and dependence on the reference model quality. I think the limitations section should also discuss guidance-weight selection in offline settings, possible off-manifold behavior of the approximated clean action, and failure cases of the identity-Jacobian approximation.

Final justification

The concerns regarding the identity-Jacobian approximation have been mostly resolved, and I am glad to see that the relationship among QGF, QAM, EDP, and DAC is now clarified. However, the authors also acknowledge that they cannot guarantee that (a') remains within a reliable region for the IQL critic. Therefore, I would regard the proposed method as empirically strong, but not yet fully rigorous. For this reason, I would prefer to keep my score at 4.

Formatting concerns

no

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your time and your positive review! We are glad to hear that you found our paper clear and the experiments strong and ablations useful. We detail below (1) more analysis showing why the identity approximation is justified empirically, showing it has lower variance and is a better “optimizer” for Q values, and also derive error bounds to the identity approximation, (2) clarify the relationship between our method and related work, and (3) clarify that the guidance weight is a hyperparameter and we tune it on validation tasks based on environment returns, and we do the same for all baseline methods, in accordance with the commonly accepted practice.


A clearer discussion of when the identity-Jacobian approximation is justified, and when it may fail, would strengthen the paper.

Yes, you are correct that the QGF gradient is biased, and we will make this more apparent in the paper. However, we find it empirically much more performant on 20 single-task and 25 goal-conditioned RL tasks (see Fig 4 & 7). We performed new analysis experiments and want to provide below more discussion on when and why such identity-Jacobian approximation is justified. In short: it yields a lower-variance gradient estimator that is better at optimizing Q-values.

(1) Lower variance estimator: Recall that we refer to the identity approximation as the QGF gradient, and the real Jacobian the QGF-Jacobian gradient. Fig. 3 in the paper shows that including the Jacobian in the gradient estimator can make it sensitive to noise in the input. Fig. 3 in the submission is plotted in one OGBench task, and we have now run additional experiments to plot it averaged over all 20 OGBench tasks. The updated result is in Table 2 below, and the conclusion remains the same and statistically significant, showing that using the identity-Jacobian approximation makes the gradient more stable across all denoising timesteps, especially later ones. Both QGF and QGF-Jacobian gradients are more stable than the ground truth BPTT gradient.

tt QGF gradient QGF-Jacobian gradient BPTT gradient OOD gradient
0 0.9984 ± 0.0002 0.9961 ± 0.0003 0.9797 ± 0.0013 0.9613 ± 0.0039
2 0.9981 ± 0.0003 0.9957 ± 0.0006 0.9765 ± 0.0014 0.9576 ± 0.0029
4 0.9970 ± 0.0002 0.9934 ± 0.0008 0.9736 ± 0.0012 0.9511 ± 0.0039
6 0.9956 ± 0.0002 0.9899 ± 0.0006 0.9696 ± 0.0016 0.9451 ± 0.0032
8 0.9927 ± 0.0006 0.9849 ± 0.0012 0.9666 ± 0.0013 0.9411 ± 0.0049
10 0.9878 ± 0.0009 0.9757 ± 0.0027 0.9641 ± 0.0013 0.9357 ± 0.0037
12 0.9811 ± 0.0018 0.9659 ± 0.0021 0.9628 ± 0.0012 0.9322 ± 0.0051
14 0.9713 ± 0.0016 0.9608 ± 0.0020 0.9594 ± 0.0019 0.9317 ± 0.0032

Table 2: Sensitivity of different gradient estimators: for each gradient estimator GG, the table shows the cosine similarity between G(s,at)G(s, a_t) and G(s,at+ϵ)G(s, a_t + \epsilon) at each denoising timestep. Values closer to 1 corresponds to less sensitive to noise. Averaged over 20 OGBench tasks and 10 seeds.

(2) Better at optimizing Q-values: We conducted new analysis to show that the QGF gradient is better at “optimizing” Q-values compared to the QGF-Jacobian / BPTT. Specifically, we can view each gradient estimator that guides flow denoising as an “optimizer” that tries to optimize for high Q values actions, and we find this to correlate roughly with performance. Table 4 below shows the Q-values of the denoised action with different gradient guidance, as well as their averaged performance across 20 OGBench tasks. With the exception of the OOD gradient that exploits Q-values and performs worse, QGF is the best gradient-based optimizer, getting close to the performance of the oracle. It shows that the identity approximation allows QGF to be a better Q-value optimizer than QGF-Jacobian and BPTT, and in turn has a higher average success rate as well.

Method Q(s,a)Q(s,a) (mean ± SE) Avg. Success Rate
Oracle (BFN N=16) −1902.74 ± 1.11 57.78%
QGF −1903.95 ± 1.23 52.91%
QGF-Jacobian −1908.21 ± 0.99 48.30%
BPTT −1908.39 ± 0.82 38.84%
OOD gradient −1898.05 ± 1.86 43.88%

Table 4: Q-values of the denoised action with different gradient guidance, which roughly correlate with performance. Averaged over 20 OGBench environments with 10 seeds.


Are there conditions on the flow field, denoising time, or local curvature under which replacing the Jacobian with identity gives a bounded approximation error?

Below we derive the conditions under which the identity-Jacobian approximation has a bounded error. Recall that we approximate the denoised action with a one Euler-integration step a’=at+vθ(s,at,t)(1−t)a’ = a_t + v_\theta(s, a_t, t) (1-t). Then the jacobian is:

Jt=∂a′∂at=I+(1−t)∂vθ(s,at,t)∂at.J_t = \frac{\partial a'}{\partial a_t} = I+(1-t)\frac{\partial v_\theta(s,a_t,t)}{\partial a_t}.

We will denote the QGF gradient (with the identity approximation) as $g′=∇a′Q(s,a′).g'=\nabla_{a'}Q(s,a').$

Then, the error between the Q gradient with identity approximation and the real Jacobian is bounded

∥Jt⊤g′−g′∥=(1−t)∥(∂vθ(s,at,t)∂at)⊤g′∥≤κt∥g′∥,\begin{aligned} \left\|J_t^\top g'-g'\right\| &= (1-t) \left\| \left( \frac{\partial v_\theta(s,a_t,t)}{\partial a_t} \right)^\top g' \right\| \\ &\leq \kappa_t\|g'\|, \end{aligned}

where

κt=(1−t)∥∂vθ(s,at,t)∂at∥op.\kappa_t = (1-t) \left\| \frac{\partial v_\theta(s,a_t,t)}{\partial a_t} \right\|_{\mathrm{op}}.

Note that κt\kappa_t depends on the denoising time step and the local curvature of the actor’s local velocity; κt\kappa_t, and therefore the approximation error, is small when the denoising time step is large and the actor flow field curvature is small. The approximation error relative to the exact gradient is bounded by

∥Jt⊤g′−g′∥∥Jt⊤g′∥≤κt1−κt.\frac{\|J_t^\top g'-g'\|} {\|J_t^\top g'\|} \leq \frac{\kappa_t}{1-\kappa_t}.

the paper could more explicitly clarify the relationship between QGF, QAM, EDP, DAC, QSM/QSM+BC, and Energy-Weighted Flow Matching

The biggest difference between these methods is that QGF is a test-time method, while QAM, EDP, DAC, QSM/QSM+BC, Energy-Weighted Flow Matching are training-time methods: test-time methods use a policy pre-trained with behavioral cloning (BC) and a learned critic to optimize sampled BC actions during test-time, while training methods directly train the policy to maximize Q(s, a). Test-time methods have the benefit of training the policy with a stable and scalable BC objective and being able to adjust sampling hyperparameter during inference without re-training the policy. See Section 2 for a discussion on closely related test-time methods.

Within the training-time methods, EDP is closest to QGF (see Section 2) since it also uses a single-step Euler-integration to approximate the multi-step denoising process. One subtle difference is that QGF leverages the critic gradient with respect to the action, while EDP hill climbs the critic gradient with respect to the policy parameters. DAC and QSM+BC are conceptually similar, both training the actor to hill climb on the noisy-action gradient (i.e. the OOD gradient) subject to a behavior constraint, differing only in the behavior regularization term. Energy-weighted flow matching methods [1, 2] don't query Q gradients, but use Q values to weight the base diffusion loss. QAM also does not use Q gradient to guide the tilt of the reference policy, but instead leverages adjoint matching.

We will update the paper with these clarifications and add attribution to Energy-Weighted Flow Matching [1, 2] as well.

[1] Energy-Weighted Flow Matching: Unlocking Continuous Normalizing Flows for Efficient and Scalable Boltzmann Sampling. Dern et al. 2025.

[2] Energy-Weighted Flow Matching for Offline Reinforcement Learning. Zhang et al. 2025.


The paper provides a sensitivity analysis and hyperparameter sweep for the guidance weight, but it is unclear how this coefficient should be selected in a truly offline setting without online evaluation.

The guidance weight is a hyperparameter of our QGF algorithm. We select this hyperparameter on a small set of validation tasks based on environment returns, and use the same hyperparameter to report performance on testing tasks in Figure 4, Figure 6, Figure 7. Specifically, we choose task 2 and 4 as the validation tasks for each domain in OGBench. This is the standard approach to tune hyperparameters in reinforcement learning, and we use the same hyperparameter selection process for all baseline methods we consider.

We currently don’t have a good way to choose hyperparameter without using environment return, and this is an open problem in general for the RL community, and we think it’s a good direction for future research.


What is the essential distinction between QGF and the denoising-step summation discussed for CFGRL?

Both QGF and CFGRL aim to sample from the same tilted distribution in Eq 4 during inference time. The essential distinction is that QGF uses explicitly the gradient of the Q function, while CFGRL avoids querying the Q gradient and estimate it with classifier-free guidance. Both optimize the same objective and both are not guaranteed to sample from the correct tilted distribution. We will clarify this in the paper. Empirically, we found QGF to work much better than CFGRL across 20 OGBench tasks in Figure 4.


QGF avoids querying the critic directly at noisy actions, but the approximated clean action (a') may still be off the behavior/action data manifold. How do the authors ensure in practice that (a') stays within a reliable region for the IQL critic?

You are correct, that is not guaranteed. In practice, we don’t do anything special except clip it to be within the action space, and this empirically works well (see Figure 4, 7). The intuition is that approximated action a’a’ usually points towards the mode of the dataset action distribution so it is usually within the behavior data manifold.

Area Chair SKPu · CommentOpenReview ↗

Dear reviewer xdQ2,

Since the deadline for Author + Reviewer + AC Discussion phase is approaching, please reply to authors' rebuttal soon.

Reviewer xdQ2 · CommentOpenReview ↗

Thank you for the additional experiments and your explanation, which have successfully addressed my concerns. I will keep my score unchanged.

Reviewer 2wtfOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces Q-Guided Flow (QGF), a method for flow policies that performs policy improvement at test time. Specifically, QGF first trains a reference flow policy and a critic in the offline RL setting. Then, at test time, it guides the action-denoising process using the critic's gradient. To address the out-of-distribution issue of taking the Q-gradient at intermediate noisy steps, the authors define the Q-value of a noisy action as that of its corresponding denoised action, and approximate its gradient with a single-step Euler approximation to avoid expensive backpropagation through the denoising steps. The method is evaluated on multiple environments and tasks from OGBench in the offline RL setting. The authors compare against several test-time and training-time methods and show that QGF outperforms them overall. Finally, they study the scalability of the method with respect to test-time compute and model size.

Strengths and weaknesses

Strengths:

  • The paper is clearly written and easy to follow.
  • The problem of scalable test-time RL is important.
  • The finding that full backpropagation through the denoising steps, and QGF with the Jacobian, both underperform the simpler QGF estimator is interesting.
  • The experiments are extensive and include recent, relevant baselines.

Weaknesses:

  • The method is specific to the offline RL regime, and all experiments are conducted there, yet the paper foregrounds this only when describing the experiments. I'd suggest making the offline setting explicit throughout the framing, not just through conducted experiments.

  • The claim that BPTT is highly sensitive and high-variance seems overstated. Based on the numerical values in Fig. 3, the gap between BPTT and QGF (or QGF-with-Jacobian) is small, and the variances look comparable except perhaps over the first half of the denoising trajectory.

  • The demonstrated test-time scaling appears to come from best-of-N sampling rather than from a knob internal to the method, so in that sense QGF itself does not provide intrinsic test-time scalability.

Overall, I found the paper interesting and well executed. That said, the central contribution is relatively incremental, refining the gradient approximation used in QFQL[1] baseline.

[1] Q-guided flow q-learning, Jang et al, CoRL 2025 Workshop RemembeRL.

Questions

Questions:

  • In Fig. 6, why does BFN (N=4) underperform QGF despite using more compute on puzzle-4×4?
  • In Fig. 8, why is QAM the only baseline used for the model-size scaling comparison?
  • How does the number of denoising steps affect the approximation error?

Typos and notation:

  • "vlue" (line 26)
  • Using t for the denoising step is confusing given that t also denotes the environment timestep; consider a different symbol for one of them
Limitations

yes

Final justification

During the rebuttal, the authors addressed my concerns about some of the claims; in particular, the authors promised to revise the text to reflect the actual targeted offline-RL regime and included more experiments supporting their claim for Fig. 3. Therefore, I recommend accepting the paper.

Formatting concerns

N/A

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your time and your positive review! We are glad to hear that you found our method important and interesting, and our experiments extensive and well-executed. Below, we provide answers to your questions. Importantly, we want to clarify below that our method is quite different from QFQL, and that the “OOD gradient” used by QFQL can be unreliable and significantly underperforms QGF in practice.


the central contribution is relatively incremental, refining the gradient approximation used in QFQL[1] baseline.

QFQL is a great prior work that we cite and compare to in our paper! However, we want to clarify that our method QGF is actually quite different from the QFQL baseline, and significantly outperform it in 20 single-task and 25 goal-conditioned RL tasks (see Figure 4 & 7).

While both QFQL and QGF are methods based on Q gradient guidance, the two methods use completely different gradient estimators, which are the central defining piece of Q gradient guidance methods, and the central object studied in our paper.

Specifically, QFQL uses what we referred to in the paper as the “OOD gradient” (see Section 4), which queries the gradient of the Q-function at noisy action ata_t: ∇atQ(s,at)\nabla_{a_t} Q(s, a_t). This gradient can be unreliable because Q(s, a) is only trained on the denoised action space and querying it at out-of-distribution noisy actions doesn't guarantee a reliable estimate. This can be more problematic when ata_t is not in the action space R∣A\mathcal{R}^|\mathcal{A}. In fact, Fig 2 shows a simple 1D denoising example where guidance with the OOD gradient used by QFQL can result in non-optimal solutions, while the QGF gradient estimator does.

We also ran a new experimental analysis and found that the issue from the simple example in Fig 2 also exists in more complicated OGBench environments. Across 20 OGBench tasks, we measure the Q-values of the final denoised action with different gradient guidance, and compare it to the success rate. We find that the OOD gradient used by QFQL exploits noise in the critic: it is able to generate actions that have (false-positively) high Q-values (even higher than the oracle generated by best-of-N sampling), but those actions perform poorly in practice.

Method Q(s,a)Q(s,a) (mean ± SE) Avg. Success Rate
Oracle (BFN N=16) −1902.74 ± 1.11 57.78%
QGF −1903.95 ± 1.23 52.91%
OOD gradient (QFQL) −1898.05 ± 1.86 43.88%

Table 1: Q-values of the denoised action with QGF and QFQL gradient guidance. Averaged over 20 OGBench environments with 10 seeds each.

On the other hand, Our method QGF uses a novel gradient estimator (∇a’Q(s,a’)∣a’=at+vθ(s,at,t)∗(1−t)\nabla_{a’} Q(s, a’)|_{a’=a_t + v_\theta(s, a_t, t) * (1-t)}) that always query the Q-function gradient at the denoised action space. We find in Fig 2 and Table 1 that this gradient estimator does not exploit the critic as QFQL does, and Fig 4 & Fig 7 show it improves performance significantly in 20 single-task and 25 goal-conditioned RL tasks. We attribute such performance improvement to the gradient estimator being more principled (i.e. avoids querying OOD gradients) and has lower variance (see Fig 3, and our updated version of it below). All of these support that QGF is a different estimator rather than an incremental improvement of QFQL.


The method is specific to the offline RL regime, and all experiments are conducted there, yet the paper foregrounds this only when describing the experiments. I'd suggest making the offline setting explicit throughout the framing, not just through conducted experiments.

Thank you for the suggestion! Given that all our experiments are conducted in the offline RL setting, we agree that this should be made more explicit; we already have detailed discussion of the offline RL setting in the Related Works section, and will make the setting more explicit throughout the paper. However, we note that our method QGF is not limited to the offline RL regime, and can work for online RL as well.


The claim that BPTT is highly sensitive and high-variance seems overstated. Based on the numerical values in Fig. 3, the gap between BPTT and QGF (or QGF-with-Jacobian) is small, and the variances look comparable except perhaps over the first half of the denoising trajectory.

The Fig. 3 in the original submission actually only measures cosine similarly between different methods on a single OGBench environment. We have run new experiments and measured across all 20 OGBench tasks we use, with 4 seeds each, and report the average of the cosine similarity in Table 2 below. The new result shows that while the difference between the few gradient estimators are small in general, the gap between them are statistically significant and non overlapping: QGF has lower variance than all other gradient estimators for the whole denoising trajectory. Specifically, for all denoising timesteps, QGF > QGF-Jacobian > BPTT > OOD in terms of gradient stability. We find that this correlates with performance well in Figure 4. We will adjust all absolute claims on BPTT and revise them to only relative claims that’s reflected in Table 2.

tt QGF gradient QGF-Jacobian gradient BPTT gradient OOD gradient
0 0.9984 ± 0.0002 0.9961 ± 0.0003 0.9797 ± 0.0013 0.9613 ± 0.0039
1 0.9983 ± 0.0003 0.9961 ± 0.0006 0.9784 ± 0.0019 0.9595 ± 0.0022
2 0.9981 ± 0.0003 0.9957 ± 0.0006 0.9765 ± 0.0014 0.9576 ± 0.0029
3 0.9978 ± 0.0001 0.9951 ± 0.0002 0.9754 ± 0.0013 0.9541 ± 0.0029
4 0.9970 ± 0.0002 0.9934 ± 0.0008 0.9736 ± 0.0012 0.9511 ± 0.0039
5 0.9965 ± 0.0003 0.9922 ± 0.0008 0.9714 ± 0.0018 0.9477 ± 0.0024
6 0.9956 ± 0.0002 0.9899 ± 0.0006 0.9696 ± 0.0016 0.9451 ± 0.0032
7 0.9945 ± 0.0003 0.9879 ± 0.0003 0.9676 ± 0.0013 0.9430 ± 0.0038
8 0.9927 ± 0.0006 0.9849 ± 0.0012 0.9666 ± 0.0013 0.9411 ± 0.0049
9 0.9901 ± 0.0007 0.9796 ± 0.0019 0.9653 ± 0.0014 0.9380 ± 0.0031
10 0.9878 ± 0.0009 0.9757 ± 0.0027 0.9641 ± 0.0013 0.9357 ± 0.0037
11 0.9839 ± 0.0007 0.9691 ± 0.0022 0.9634 ± 0.0014 0.9350 ± 0.0055
12 0.9811 ± 0.0018 0.9659 ± 0.0021 0.9628 ± 0.0012 0.9322 ± 0.0051
13 0.9772 ± 0.0013 0.9632 ± 0.0020 0.9618 ± 0.0016 0.9321 ± 0.0051
14 0.9713 ± 0.0016 0.9608 ± 0.0020 0.9594 ± 0.0019 0.9317 ± 0.0032
15 0.9558 ± 0.0014 0.9497 ± 0.0013 0.9497 ± 0.0013 0.9307 ± 0.0020

Table 2: Sensitivity of different gradient estimators to noise in the action space: for each gradient estimator GG, the table shows the cosine similarity between G(s,at)G(s, a_t) and G(s,at+ϵ)G(s, a_t + \epsilon) at each denoising timestep. Values closer to 1 corresponds to less sensitive to noise. Averaged over 20 OGBench tasks and 4 seeds.


The demonstrated test-time scaling appears to come from best-of-N sampling rather than from a knob internal to the method, so in that sense QGF itself does not provide intrinsic test-time scalability.

We want to clarify a mis-understanding: the test-time scaling experiment section is meant to investigate how QGF compares with methods that use more test-time compute for policy improvement (e.g. best-of-N sampling), and not to show that QGF “scales”. Best-of-N sampling is a test-time “scaling” method because increasing NN requires much more compute (see Fig 5) and improves performance in return. And yes, QGF by itself does not “scale”, because it runs in constant time during inference. However, Fig 6 shows that QGF significantly outperforms BFN(N=4), which uses much more test-time compute, and performs similarly to BFN(N=16), which uses even more compute. Additionally, Fig 6 also shows that we should “scale” QGF by using best-of-n sampling on top of QGF, which allows us to further improve QGF performance with more test-time compute.


In Fig. 6, why does BFN (N=4) underperform QGF despite using more compute on puzzle-4×4?

Great question! And note that BFN (N=4) underperforms QGF not just on puzzle-4x4, but on cube-triple and cube-quadruple as well. This shows that BFN is a really expensive method in terms of test-time compute, and is not an efficient policy-extraction method. QGF is much more efficient because it leverages the gradient of the Q function for high-quality local improvement directions, while BFN only uses Q values (without gradient) and relies on sampling to discover improvement directions.


In Fig. 8, why is QAM the only baseline used for the model-size scaling comparison?

Under compute and time constraints, we were only able to choose one baseline method for comparison. We chose QAM because the QAM paper reported state-of-the-art performance on the same tasks that we test on. We will add other baselines here as well in the future.


How does the number of denoising steps affect the approximation error?

Great question. We ran new experiments evaluating how the number of denoising steps affect the success rate. In the result in Table 3 below, we compare using 4, 8, 16, or 32 flow steps and report their performance averaged across 20 OGBench tasks with 10 seeds each. The results show that too few flow steps hurt performance, likely because it suffers from integration error.

Denoising steps Success Rate (mean ± SE)
4 15.2% ± 0.5%
8 16.7% ± 0.7%
16 23.4% ± 0.5%
32 24.4% ± 0.4%

Table 3: Success rate change with the number of flow steps. Success rates are averaged across 20 OGBench tasks with 10 seeds each.

Reviewer 2wtf · CommentOpenReview ↗

Thank you for addressing my comments. These are minor points before I finalize my assessment:

... our method QGF is actually quite different from the QFQL baseline ...

I would be interested to hear what else is different besides the gradient estimator.

However, we note that our method QGF is not limited to the offline RL regime, and can work for online RL as well.

Yes; however, being applicable to online RL is quite different from working well in the online setting. Extending the method to online RL may require a non-trivial amount of work to demonstrate, given that Q-value learning can be quite different in the online regime due to the changing data distribution, although the underlying learning objectives may be the same. More importantly, the issue of OOD gradients may not arise in online RL at all. In that case, it might also make sense to reflect the offline setting in the title.

In Fig. 6, why does BFN (N=4) underperform QGF despite using more compute on puzzle-4×4?

Sorry, I meant QGF-BFN (N=4) here.

Authors · CommentOpenReview ↗

Thank you for your response and for following up!

I would be interested to hear what else is different besides the gradient estimator.

In general, the test-time improvement RL methods either use sampling (e.g. best-of-N sampling with Q function) or Q-gradient guidance. Both our method and QFQL [1] are in the Q-gradient guidance setting. In this setting, the algorithm consists entirely of the gradient estimator. The other components of the algorithm (e.g. the value-learning algorithm) are orthogonal to the policy-improvement algorithm. To reiterate and summarize our detailed response above:

  • QFQL uses what we refer to as the “OOD gradient”, and we show in a didactic example in Figure 2 that guidance with such OOD gradient does not result in the optimal solution, while our gradient estimator and the BPTT gradient both do.
  • We show that our gradient estimator has lower variance and is better at optimizing Q-values for the denoised actions.
  • We show empirically that our method is much more effective than QFQL on 20 OGBench tasks (52.9% v.s. 43.8%) and 25 goal-conditioned OGBench tasks (55.6% vs. 44.1%).

Please let us know if you have any further questions!

[1] Yejun Jang, Hong Chul Nam, Jeong Min Park, Gimin Bae, and Hyun Kwon. Q-guided flow q-learning. In CoRL 2025 Workshop RemembeRL.

Being applicable to online RL is quite different from working well in the online setting.

Yes, we agree with you. We made explicit the offline RL setting in the abstract, as well as section 1,2,3,6, and captions in main result figures (figures 4, 6, 7). Since we currently have no online RL results, we will also change the title to reflect the offline setting.

Sorry, I meant QGF-BFN (N=4) here.

Thanks for your clarification. Figure 6 shows that QGF-BFN (N=4) performs better than QGF on three of the four domains, but is worse on puzzle-4x4. This may be because the critic is not the optimal Q function, and on puzzle-4x4 QGF-BFN can over-exploit the critic to generate actions with higher Q-values but worse returns during evaluation. On average across the 20 tasks in 4 domains, we find that QGF-BFN to be similar or slightly better than QGF.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…