Introduction
Offline Reinforcement Learning (RL) enables agents to learn complex behaviors from static, pre-collected datasets without the need for costly or dangerous real-time environment interaction. Recently, diffusion models have emerged as a powerful tool for trajectory generation in this domain. However, standard diffusion-based RL models often treat trajectories as generic time-series data, overlooking critical frequency-domain characteristics. This oversight leads to "frequency shift" issues, where errors in low-frequency components result in jittery or unstable robotic motions.
The Wavelet Fourier Diffuser (WFDiffuser) addresses these challenges by treating trajectory generation as a frequency-aware problem. By decomposing trajectories into distinct frequency bands, WFDiffuser ensures global stability and local precision, leading to smoother and more effective robotic control.
The Frequency Shift Problem
In robotics, the energy density of a stable trajectory is predominantly concentrated in low-frequency components, which represent the global trend and overall stability of the motion. Existing models, such as Decision Diffuser, tend to focus on the time domain, which inadvertently concentrates training loss in these critical low-frequency ranges. This "frequency shift" causes the generated trajectories to drift from the intended path, resulting in performance degradation in complex, multi-step tasks.
Methodology: Frequency-Aware Trajectory Generation
WFDiffuser introduces a novel architecture designed to model trajectories across different frequency spectra. The process is divided into four primary stages:
- Decomposition via DWT: The original trajectory is split into low-frequency ($\tau_{low}$) and high-frequency ($\tau_{high}$) sub-trajectories using a Discrete Wavelet Transform (DWT). This separation allows the model to handle global motion trends and fine-grained details independently.
- Dual Diffusion Modeling: The framework employs two specialized diffusion blocks: the Low-frequency Diffusion (LFD) and the High-frequency Diffusion (HFD). Each block is optimized for its respective frequency range.
- Cross Fourier Fusion Conditioner (CFFC): To maintain physical consistency between the decomposed components, the CFFC block utilizes Short-Time Fourier Transforms (STFT) and a cross-attention mechanism. This ensures that high-frequency details remain synchronized with the global low-frequency path.
- Reconstruction via IDWT: During inference, the generated sub-trajectories are recombined using an Inverse Discrete Wavelet Transform (IDWT) to produce a coherent, full-length trajectory.
Experimental Results
The authors evaluated WFDiffuser on the D4RL benchmark, focusing on locomotion (e.g., HalfCheetah, Hopper) and complex manipulation tasks (e.g., the "Kitchen" environment).
WFDiffuser consistently outperformed state-of-the-art baselines, including Decision Diffuser, CQL, and IQL. In locomotion tasks, it achieved an average score of 84, surpassing the 81.8 score of standard diffusion models. Its advantages were even more pronounced in the challenging Kitchen-Mixed task, where it scored 69.4 compared to the baseline's 65. These results underscore the model's ability to maintain stability in long-horizon, multi-step sequences.
Conclusion and Future Work
WFDiffuser demonstrates that incorporating frequency-domain awareness into diffusion models significantly improves the stability and performance of offline RL agents. By mitigating frequency shift, the model produces trajectories that are both physically consistent and goal-oriented.
Future research will focus on testing WFDiffuser on physical robotic hardware to assess its robustness against real-world sensor noise. Additionally, the team aims to optimize the computational efficiency of the dual-stream architecture to facilitate real-time deployment.
Summary updated