In the rapidly evolving world of offline Reinforcement Learning (RL), diffusion models have become a go-to tool for generating high-quality trajectories. However, making these models follow human intent across multiple different tasks remains a significant hurdle. A new paper introduces a framework called CAMP (Conditional Alignment via Multi-task Preference representations) to bridge this gap.
The Alignment Gap in Offline RL
Most offline RL methods rely on reward functions—scalar values that tell an agent how "good" an action was. In complex, multi-task scenarios (like a robot arm that needs to both open a drawer and pick up a ball), designing these rewards is notoriously difficult and often leads to unintended behaviors.
While diffusion models have shown promise in generating trajectories conditioned on these rewards (e.g., "generate a path with a return of 0.9"), they suffer from an alignment gap. Existing models like the Decision Diffuser often exhibit a weak correlation between the requested return and the actual quality of the generated path. Furthermore, standard models struggle to distinguish between different tasks without explicit, manual labeling.
Introducing CAMP: The Two-Stage Solution
To address these limitations, the authors propose a two-stage approach that replaces traditional, hard-to-design reward functions with a unified preference-based representation.
1. Learning Versatile Preference Representations: Instead of learning a single reward number, CAMP learns a high-dimensional embedding space for trajectory segments. It uses multi-task preferences, which include both intra-task (preferring a faster run over a slower one) and inter-task (preferring the target task over others) comparisons.
- The "Optimal" Embedding: For every task, the model learns a specific "optimal" representation ($w^*_i$) that represents the best possible behavior for that task.
- Loss Functions: A combination of Triplet loss and KL divergence ensures that "good" trajectories are mapped close to the optimal embedding, while "bad" or irrelevant ones are pushed away.
2. MI-Regularized Diffusion: This is the core technical innovation. Standard conditional diffusion uses "classifier-free guidance," which can be loose. CAMP introduces an auxiliary Mutual Information (MI) objective. This forces the diffusion model to maximize the correlation between the input preference condition and the generated trajectory, acting as a tether to ensure the generator doesn't drift away from the user's intent. To keep this computationally feasible, the authors optimize a lower bound of the MI, avoiding the need to run the full, expensive denoising process during every training step.
Key Results and Generalization
The researchers evaluated CAMP on two major benchmarks: Meta-World (MT-10) (a multi-task environment featuring 10 distinct robotic manipulation tasks) and D4RL (the standard benchmark for single-task offline RL using Mujoco locomotion tasks).
- Multi-Task Superiority: On the Meta-World MT-10 benchmark with sub-optimal data, CAMP achieved an average success rate of 56.2%, nearly four times higher than other preference-based baselines like OPPO (10.6%).
- Robustness: Unlike many baselines that fail when the data is noisy or sub-optimal, CAMP remained stable, outperforming even some reward-based methods (like MT-IQL) that had access to ground-truth reward labels.
- Zero-Shot Generalization: Because the preference space is continuous, the model can generalize to unseen tasks. In tests on five unseen tasks, CAMP achieved an average success rate of 35.8%, doubling the performance of the next best baseline.
Limitations and Future Work
While highly effective, CAMP does have limitations. Training is computationally intensive, taking roughly 30 hours for D4RL tasks and 59 hours for MT-10 on an NVIDIA RTX 3090. Additionally, while the authors experimented with fast solvers to speed up inference, they noted a slight drop in trajectory quality, suggesting a need for better fast-sampling architectures. Finally, the model remains dependent on data quality; if the offline dataset is purely random noise, it cannot learn a meaningful preference space.
In summary, CAMP offers a sophisticated way to make diffusion models "listen" better to human preferences, particularly when juggling multiple complex tasks at once. For researchers in robotics and offline RL, it provides a powerful blueprint for moving beyond the limitations of hand-crafted rewards.
Summary updated