TL;DR
Imagine driving toward a fork in the road: going left is great, going right is okay, and averaging the two sends you straight into a tree. Current generative policies in offline Reinforcement Learning (RL) accidentally drive into that tree—collapsing into invalid, out-of-distribution (OOD) actions—when trying to distill the best behaviors from messy, multi-modal datasets. This paper introduces Value-Rectified Distillation (VRD), a framework that untangles good and bad options right at their source in latent space, safely extracting expert-level skills without catastrophic compromises.
What Problem Does This Paper Address?
In offline RL, an agent must learn an optimal decision-making policy purely from a fixed dataset of past experiences—no live trial-and-error allowed. Because human or pre-collected data is often multi-modal (containing several distinct ways to behave, some optimal and some sub-optimal), researchers increasingly use expressive generative models like Flow Matching (FM) to capture the full spread of behaviors.
To make inference fast and reward-seeking, frameworks like Flow Q-Learning (FQL) pre-train a flow model to clone the dataset, and then distill it into a fast, one-step actor network guided by a Q-value critic (an evaluator of action quality).
Here lies a hidden trap. Because a flow network maps a continuous Gaussian latent space (random starting noise) to separated islands of actions, the latent regions corresponding to good and bad actions inevitably touch and tangle at their boundaries—a topological dilemma the authors call Latent Fusion. When standard distillation pulls the one-step actor toward high Q-values while anchoring it to the flow model via simple Euclidean distance in action space, it forces the actor to linearly interpolate across the empty gap between modes. The result is OOD Mode Averaging: the policy outputs invalid, off-manifold actions right in the "dead zone" between valid behaviors.
Methods
Instead of naively penalizing differences in action space, the authors reformulate policy distillation as a latent-to-latent alignment problem. Using a unified mathematical tool called a Value-Guided Alignment Kernel, VRD dynamically alters how latent noise couples to actions based on Q-values. They instantiate this idea via two complementary algorithms:
- VRD-Q (Statistical Rectification): Think of this as an in-place gatekeeper. Latent coordinates stay put, but VRD-Q uses asymmetric value-quantile weighting to modulate the distillation loss. If the pre-trained flow model generates a low-value action for a given latent input, VRD-Q severely attenuates its distillation weight—severing the anchor to bad habits and letting Q-value guidance steer that latent vector toward an optimal mode.
- VRD-R (Geometric Rectification): Think of this as artificial gravity. Instead of changing sample weights, VRD-R reorganizes the target latent space itself. Using a normalized value-ranking function, it pulls latent vectors that produce high-value actions tightly toward the origin ($0$), while flinging sub-optimal ones out to the periphery. At test time, sampling from a tightly truncated Gaussian near the origin cleanly isolates optimal actions.
Datasets
The authors evaluate VRD across an extensive suite of continuous control and long-horizon planning benchmarks:
- 2D Bi-Modal Toy Dataset: A synthetic environment with two separated Gaussian action modes (one optimal, one sub-optimal) to visually test latent disentanglement.
- D4RL: Standard MuJoCo locomotion (HalfCheetah, Hopper, Walker2d across medium, medium-replay, and medium-expert mixes), sparse-reward AntMaze navigation, and high-dimensional Adroit robotic pen manipulation.
- OGBench: 50 complex, goal-conditioned tasks spanning giant mazes, humanoid locomotion, AntSoccer, robotic cube manipulation, and sliding spatial puzzles.
- Custom Multi-Modal Stress-Test & Minari: Custom MuJoCo buffers (1M samples) mixing expert and random trajectories—ramping random noise from 50% up to 90%—alongside Minari benchmarks (detailed in the appendix).
Key Insights and Ideas
- Continuity is a double-edged sword: By proving Proposition 1, the authors show that Latent Fusion isn't a bug in training—it's a mathematical certainty. Any continuous mapping from a connected latent prior to disconnected action modes must pass through OOD territory.
- Euclidean action penalties guarantee mode averaging: Theorem 1 proves that standard FQL-style Euclidean regularization ($\|a - \mu_\theta\|_2^2$) directly fights Q-guidance across multi-modal gaps, guaranteeing OOD errors bounded by at least $D^2/4$ (where $D$ is the gap between modes).
- Different tasks favor different geometries: VRD-Q preserves multi-modal diversity among good paths, making it ideal for complex navigation and trajectory stitching (like OGBench mazes). VRD-R acts as a symmetry-breaker that locks onto a single, ultra-stable peak mode, making it shine in precision locomotion (like MuJoCo).
Key Results
- State-of-the-Art on D4RL: Across all D4RL tasks, VRD-R achieves the highest overall average score of 92.8 (with VRD-Q at 88.8), outperforming standard FQL (81.8), Guided Flow Policy (85.4), and Diffusion baselines like IDQL (83.0) and CAC (65.0). On
pen-human, VRD-R hits 111.3 compared to FQL's 53.0. - Scaling to OGBench: Across all 50 OGBench tasks, VRD-Q takes the crown with an average score of 56.4 (vs. FQL's 43.5 and GFP's 51.8). On the grueling
antmaze-giant, VRD-Q reaches 49.8, nearly doubling GFP (27.9) while diffusion methods score 0.0. - Extreme Noise Resilience: In the multi-modal stress tests where 90% of the dataset is pure random noise, standard baselines collapse (e.g., FQL drops to 17.6 on
walker2d-mix), whereas VRD-Q (96.7) and VRD-R (103.3) still reliably recover the tiny 10% expert signal.
Limitations and Future Work
VRD's compass is only as good as its map: both VRD-Q and VRD-R rely heavily on the accuracy of the learned Q-value critic. If the critic suffers from severe Q-value overestimation on out-of-distribution actions, it can mislead the latent alignment process. For future work, the authors suggest pairing VRD with more robust, conservative value-estimation techniques and extending the trajectory-rectification framework from continuous control into discrete action spaces.
Summary updated