Value-Rectified Distillation for Flow-based Offline Reinforcement Learning
Organizations: College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics · MIIT Key Laboratory of Pattern Analysis and Machine Intelligence · Graduate School of Information Science and Technology, The University of Osaka · Center for Advanced Intelligence Project, RIKEN
Abstract
We aim to address the problem of Out-of-Distribution (OOD) Mode Averaging, a critical problem that emerges when distilling Flow Matching (FM) based behavior policies in offline Reinforcement Learning (RL): When learning over multi-modal datasets, standard distillation inadvertently forces the policy to interpolate across different behavioral modes, causing the generated actions to collapse into invalid, OOD regions. To resolve this, we propose Value-Rectified Distillation (VRD), a novel framework that reformulates offline policy distillation as a value-guided generative trajectory alignment problem. By employing a dynamic coupling mechanism, VRD actively rectifies flow dynamics to explicitly decouple distinct behavioral modes, cleanly isolating high-value actions. Specifically, we instantiate VRD through two complementary algorithms: VRD-Q, which utilizes value-quantile behavior distillation to statistically filter out low-value behaviors, and VRD-R, which reorganizes the latent space to geometrically isolate high-value generative trajectories from the FM-based behavior policy. Extensive empirical evaluations demonstrate that VRD improves existing generative baselines across diverse continuous control and planning tasks on the D4RL, OGBench, and Minari benchmarks, especially over those multi-modal, non-expert datasets.
Figures & tables
| Gaussian Policies | Diffusion Policies | Flow Policies | |||||||||||
| Task | BC | IQL | ReBRAC | IDQL | SRPO | CAC | FAWAC | FBRAC | FQL | GFP | DF | VRD-Q | VRD-R |
| halfcheetah-med-expert | 55.2 | 86.7 | 101.1 | 95.9 | 92.2 | 84.3 | 44.5 | 54.4 | 86.1 | 92.3 | 87.6 | 93.7 1.2 | 101.3 1.3 |
| hopper-med-expert | 52.5 | 91.5 | 107.0 | 108.6 | 100.1 | 100.4 | 88.4 | 76.5 | 105.4 | 110.1 | 112.6 | 96.4 13.5 | 113.5 0.4 |
| walker2d-med-expert | 107.5 | 109.6 | 111.6 | 112.7 | 114.0 | 110.4 | 57.3 | 53.5 | 102.7 | 106.4 | 111.3 | 112.1 2.3 | 113.7 0.2 |
| halfcheetah-medium | 42.6 | 47.4 | 65.6 | 51.0 | 60.4 | 69.1 | 48.3 | 53.1 | 60.0 | 62.3 | 49.3 | 65.7 1.2 | 61.7 4.5 |
| hopper-medium | 52.9 | 66.3 | 102.0 | 65.4 | 95.5 | 80.7 | 81.2 | 52.1 | 67.3 | 84.7 | 97.1 | 65.8 15.8 | 76.3 12.1 |
| Gaussian Policies | Diffusion Policies | Flow Policies | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Task | BC | IQL | ReBRAC | IDQL | SRPO | CAC | FAWAC | FBRAC | IFQL | FQL | GFP | VRD-Q | VRD-R |
| antmaze-large | 11.0 | 53.0 | 81.0 | 21.0 | 11.0 | 33.0 | 6.0 | 60.0 | 28.0 | 79.0 | 93.8 | 95.5 1.2 | 94.9 1.9 |
| antmaze-giant | 0.0 | 4.0 | 26.0 | 0.0 | 0.0 | 0.0 | 0.0 | 4.0 | 3.0 | 9.0 | 27.9 | 49.8 5.3 | 38.3 7.2 |
| humanoidmaze-medium | 2.0 | 33.0 | 22.0 | 1.0 | 1.0 | 53.0 | 19.0 | 38.0 | 60.0 | 58.0 | 72.0 | 75.3 2.9 | 70.3 7.2 |
| humanoidmaze-large | 1.0 | 2.0 | 2.0 | 1.0 | 0.0 | 0.0 | 0.0 | 2.0 | 11.0 | 4.0 | 17.8 | 19.7 2.9 | 16.8 5.9 |
| antsoccer-arena | 1.0 | 8.0 | 0.0 | 12.0 | 1.0 | 2.0 | 12.0 | 16.0 | 33.0 | 60.0 | 57.9 | 63.8 4.7 | 47.9 9.7 |
| VRD-Q ( ) | VRD-R ( ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Values | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1 | 1e-2 | 1e-3 | 1e-4 | 1e-5 |
| halfcheetah-m | 60.4 | 63.4 | 65.7 | 65.3 | 58.1 | 45.7 | 60.6 | 60.4 | 61.7 | 61.2 |
| hopper-m | 64.3 | 65.1 | 65.8 | 65.1 | 56.4 | 50.2 | 73.9 | 75.5 | 76.3 | 74.2 |
| walker2d-m | 76.5 | 81.7 | 82.3 | 81.1 | 77.4 | 53.9 | 89.1 | 88.6 | 89.7 | 88.3 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | BC | IQL | ReBRAC | IDQL | SRPO | CAC | FAWAC | FBRAC | IFQL | FQL | GFP actor | VRD-Q (Ours) | VRD-R (Ours) |
| antmaze-large-navigate-singletask | |||||||||||||
| task1-v0 | |||||||||||||
| task2-v0 | |||||||||||||
| task3-v0 | |||||||||||||
| task4-v0 | |||||||||||||
| task5-v0 | |||||||||||||
| Task | Offline RL algorithms | ||||
| FQL | GFP actor | GFP VaBC | VRD-Q (Ours) | VRD-R (Ours) | |
| Minari halfcheetah-simple-v0 | |||||
| Minari halfcheetah-medium-v0 | |||||
| Minari halfcheetah-expert-v0 | |||||
| Minari hopper-simple-v0 | |||||
| Minari hopper-medium-v0 | |||||
| Category | Hyperparameter | Value |
| Architecture | Actor / Critic Hidden Layers | |
| Activation Function | ReLU / SiLU | |
| Time Embedding Dimension | ||
| Optimization | Actor / Critic Learning Rate | |
| Batch Size | ||
| Discount Factor ( ) |
| Benchmark | Specific Datasets / Environments | VRD-Q Threshold ( ) | VRD-R Margin ( ) |
| OGBench | humanoid-medium , ant-large , cube-single , puzzle | ||
| humanoid-large , ant-giant , cube-double , scene | |||
| D4RL | antmaze-umaze/medium/large | ||
| halfcheetah/hopper/walker2d-medium/medium-replay | |||
| halfcheetah/hopper/walker2d-expert/medium-expert | |||
| Minari | Mixed / Sub-optimal datasets (e.g., pointmaze-medium-v1 ) |
| Specification | One-Step Policy ( Actor ) | Flow Policy ( ActorVectorField ) | Critic ( Value ) |
|---|---|---|---|
| Primary Inputs | (Obs, Latent z) | (Obs, Latent , Time ) | (Obs, Actions) |
| Latent Variable ( ) Role | Input Feature: Nonlinearly mapped via MLP to generate one-step action | Input Feature : Actively processed to compute flow velocity ( ) | N/A : Evaluates the final outcome action |
| Backbone | MLP (Optional Layer Norm) | Time-conditioned MLP (Sinusoidal Embedding) | Ensemblized MLP ( via vmap ) |
| Output Type | Deterministic Action (conditioned on and ) | Vector Field | Scalar Value or |
Offline RL
Offline reinforcement learning learns decision-making policies from fixed datasets without interacting with the environment during training.
See all 298 papers