Text-Aware Diffusion for Policy Learning

Training an agent to achieve particular goals or perform desired behaviors is often accomplished through reinforcement learning, especially in the absence of expert demonstrations. However, supporting novel goals or behaviors through reinforcement learning requires the ad-hoc design of appropriate reward functions, which quickly becomes intractable. To address this challenge, we propose Text-Aware Diffusion for Policy Learning (TADPoLe), which uses a pretrained, frozen text-conditioned diffusion model to compute dense zero-shot reward signals for text-aligned policy learning. We hypothesize that large-scale pretrained generative models encode rich priors that can supervise a policy to behave not only in a text-aligned manner, but also in alignment with a notion of naturalness summarized from internet-scale training data. In our experiments, we demonstrate that TADPoLe is able to learn policies for novel goal-achievement and continuous locomotion behaviors specified by natural language, in both Humanoid and Dog environments. The behaviors are learned zero-shot without ground-truth rewards or expert demonstrations, and are qualitatively more natural according to human evaluation. We further show that TADPoLe performs competitively when applied to robotic manipulation tasks in the Meta-World environment, without having access to any in-domain demonstrations.

Paper

References (44)

Scroll for more · 32 remaining

Similar papers

Peer review

Reviewer KsL97/10 · confidence 4/52024-06-12

Summary

The paper proposed a reward generating pipeline leveraging a text-conditioned diffusion model with a text prompt to master RL tasks described by the prompt. The pipeline compares the difference of the generated image with/without the prompt and the original image to calculate a dense reward, which also makes sense intuitively.

Strengths

- The authors cleverly use a conditional diffusion model to estimate the alignment level of an image to the text prompt with a hypothesis that diffusion models capture naturalness and world knowledge. - The authors expand the proposed method from image-text space to video-text space. - As it is hard to quantitatively evaluate the performance of benchmarks, the paper conducted user studies to compare benchmarks by human volunteers.

Weaknesses

- The proposed method requires more hyperparameter-tuning of the noise level and the overall reward function. Thus, more investigation is needed before training is conducted, such as Appendix A. - The proposed method heavily relies on the capability of the external diffusion model to obtain world knowledge. It is a natural sin due to the complexity of the tasks the paper is solving. - Another minor weakness is that some details of the user study are not presented, such as the variance of ✔ and ✘ and scores (instead of giving the majority and avg).

Questions

- Is $\hat{\epsilon}_\phi$ a neural network (Sec 3.1) or a noise (Fig.3)? - What is the cons of replacing the diffusion model in your method with a CLIP-like model to access the alignment level of image and text? One I can think of is the naturalness cannot be calculated in such case. - Why is VLM-RM outperforming the proposed method in the standing Humanoid environment? Is it due to the training method of VLM-RM or because it is easier? - Is it possible to give a concrete example of the failure mode mentioned in the limitation section? - It would be interesting if the authors can try difficult tasks that even the diffusion model does not know how to generate and see the corresponding results of the RL training and evaluation.

Rating

7

Confidence

4

Soundness

4

Presentation

4

Contribution

4

Limitations

See weakness 1. The paper concluded most of its limitation in the main text and Appendix.

Reviewer TWnR4/10 · confidence 4/52024-07-03

Summary

The paper introduces Text-Aware Diffusion for Policy Learning (TADPoLe), a method for reinforcement learning that leverages pretrained text-conditioned diffusion models to compute dense reward signals. This approach allows agents to learn text-aligned behaviors without the need for expert demonstrations or handcrafted reward functions. The authors demonstrate the effectiveness of TADPoLe in various environments, including Humanoid, Dog, and Meta-World, achieving zero-shot policy learning with natural language inputs.

Strengths

The paper provides a novel approach to reinforcement learning by using large-scale pretrained generative models to generate reward signals based on natural language descriptions. This method removes the need for manually crafted reward functions, which are often a bottleneck in RL tasks. The approach is well-motivated, leveraging the rich priors encoded in generative models trained on vast datasets. The experimental results show the ability of TADPoLe to learn diverse behaviors across different environments and tasks.

Weaknesses

1. Presentation Issues: The paper's presentation is problematic. The integration of components such as the 'symlog' of the reward function and the 'noise level range' is not clearly explained. It is difficult to understand the necessity and utility of these components and how much performance improvement depends on them. Additionally, the paper lacks clarity on the source of ground-truth for rendered subsequent images and whether the method requires pre-existing well-rendered videos for each environment for TADPoLe training. 2. Alignment with Motivation: The motivation to leverage text-conditioned diffusion models for reward generation is clear; however, the demand for well-rendered videos for each environment does not fully align with the goal of making reinforcement learning more practical and scalable. Some environments donot have existing well-performed video for the agent, so will this method require for a pre-trained policy to collect the video data? 3. Experimental Insufficiency: The experiments are not comprehensive. There is a need to expand the range of tasks to provide a more thorough evaluation of the method. Additionally, the paper had better include comparisons with the Diffusion-Reward method [1] to highlight the advantages of TADPoLe. 4. The ablation study is also insufficient. It should further explore the design of the 'symlog' component and the selection of the two weights, as these operations lack detailed justification. This analysis is crucial to understand the contribution of each part to the overall performance and to provide a clearer justification for their inclusion. 5. Overclaim. The writing of the paper is dense and lacks clarity in several key areas. The explanations of the methodology and components are not sufficiently detailed, making it challenging for readers to grasp the full picture of how TADPoLe functions and why certain design choices were made. Improving the clarity and coherence of the writing would significantly enhance the paper's readability and accessibility. [1] Huang, T., Jiang, G., Ze, Y., & Xu, H. (2023). Diffusion Reward: Learning Rewards via Conditional Video Diffusion. arXiv preprint arXiv:2312.14134.

Questions

1. Clarification of Component Integration: Why is the 'symlog' transformation necessary? How does it and 'noise level range' specifically contribute to the performance improvements observed? More detailed explanations and justifications are needed. 2. Source of Ground-Truth: Where do the ground-truth rendered subsequent images come from? Does the method rely on pre-existing well-rendered videos for each environment? This aspect should be clarified to understand the method's applicability. 3. Experimental Expansion: To provide a more comprehensive evaluation, expand the range of tasks and include comparisons with the Diffusion-Reward method. This will help to position TADPoLe's performance in a broader context. 4. Ablation Study: Conduct a more detailed ablation study to isolate the effects of the 'symlog' transformation and the specific weightings used. This will help to understand the contribution of each part to the overall performance and provide a clearer justification for their inclusion. 5. Scalability and Practicality: Address the scalability issue regarding the need for well-rendered videos in environments lacking existing well-performed videos. How does the method handle such cases, and what are the implications for its practicality and scalability?

Rating

4

Confidence

4

Soundness

3

Presentation

1

Contribution

2

Limitations

The author has addressed a limitation. It's also recommended to add the unsolvable questions to the limitations.

Reviewer iiYV6/10 · confidence 3/52024-07-15

Summary

The paper presents Text-Aware Diffusion for Policy Learning (TADPoLe), a framework that leverages pretrained text-conditioned diffusion models to generate dense, zero-shot reward signals for policy learning in reinforcement learning tasks. The approach aims to address the limitations of manually designed reward functions by utilizing large-scale generative models to encode rich priors that guide policies in a natural and text-aligned manner. Experiments demonstrate TADPoLe’s effectiveness in learning policies for novel goals and continuous locomotion behaviors in various environments, including humanoid, dog, and robotic manipulation tasks, without ground-truth rewards or expert demonstrations.

Strengths

**Strengths:** - **Innovative Reward Generation:** TADPoLe introduces a novel approach to reward signal generation using pretrained diffusion models, reducing the need for manually crafted reward functions. - **Zero-Shot Learning:** The framework supports zero-shot policy learning, enabling the agent to learn new tasks and behaviors from natural language descriptions without prior demonstrations. - **Diverse Applications:** Demonstrates versatility across different environments and tasks, including humanoid and dog locomotion, and robotic manipulation in the Meta-World environment. - **Human Evaluation:** Qualitative assessments show that the policies learned by TADPoLe are perceived as more natural and aligned with the provided text prompts by human evaluators.

Weaknesses

**Weaknesses:** - **Evaluation Metrics:** While the paper provides qualitative evaluations, the reliance on human judgment for assessing the naturalness and alignment of behaviors could introduce subjectivity. - **Scalability of Text Prompts:** The approach may struggle with very complex or ambiguous text prompts, and the extent to which it can handle highly detailed or context-specific instructions is not fully explored. - **Comparative Baselines:** The comparisons with other text-to-reward methods are limited, and it would be beneficial to include more diverse baselines to better understand the relative performance of TADPoLe. - **Computational Overhead:** The approach involves significant computational overhead due to the use of large-scale diffusion models, which could limit its practicality in resource-constrained environments.

Questions

### Questions 1. **Reward Scaling:** How does TADPoLe handle the scaling of reward signals across different tasks and environments to ensure consistent policy learning? 2. **Text Prompt Complexity:** Can the method be extended to handle more complex and detailed text prompts? What are the limitations in terms of prompt complexity and specificity? 3. **Long-Term Dependencies:** How does TADPoLe perform in tasks requiring long-term planning and dependencies? Are there any mechanisms to ensure temporal coherence in learned behaviors? 4. **Generalization:** How well does the approach generalize to unseen environments or tasks that are significantly different from the training scenarios?

Rating

6

Confidence

3

Soundness

2

Presentation

3

Contribution

3

Limitations

Same as the above section.

Reviewer z3di4/10 · confidence 4/52024-07-18

Summary

The paper introduces Text-Aware Diffusion for Policy Learning (TADPoLe), which uses a large-scale pretrained text-conditioned diffusion model to provide zero-shot reward signals for training agents without expert demonstrations or manually designed reward functions. TADPoLe enables agents to learn behaviors and achieve goals specified by natural language in various tasks, demonstrating its effectiveness.

Strengths

1. The idea is straightforward and easy to follow; the authors have adopted a clear approach to present their insights. 2. Using text-conditioned diffusion models to provide rewards is novel.

Weaknesses

1. Although the text-aware diffusion reward is novel, both text-aware rewards and diffusion rewards have been proposed by prior works. The paper lacks an apple-to-apple comparison, making it difficult to discern the specific advantages of using diffusion models. 2. I find the experiments to be quite limited. For example, the authors only use TD-MPC as the algorithm backbone, which is just one model-based RL algorithm and does not have a significant advantage in visual RL. Additionally, the curve shown in Figure 5 is quite odd—why not place the baseline and proposed method on the same graph and include curves for other prompts? Furthermore, the comparisons in the Metaworld experiments are minimal, making the experimental results less convincing. 3. The absence of real-world experiments makes it hard to assess the paper's contribution to the community. 4. The authors use a diffusion model to generate rewards at each step, but there is no detailed analysis of the computational cost and its impact on speed.

Questions

1. Even with sparse rewards in MetaWorld, the state-of-the-art results are better than those presented by the authors. 2. Is the naturalness in Table 2 determined through user surveys? I believe that videos would provide more compelling evidence. 3. How do different lengths and forms of prompts affect the rewards? What impact would slight adjustments to the prompts during training have?

Rating

4

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

The authors discuss limitations in the paper about how to control the weight of each individual word in the prompt. However, I believe that the primary limitations lie in the efficiency of the diffusion model. This paper has many aspects that require further discussion and improvement.

Reviewer TWnR2024-08-09

Response to rebuttal

Dear Authors, Thank you for your detailed rebuttal and the clarifications provided. I appreciate your effort in addressing my concerns, especially the clarification that there is no need for expert data or pre-existing well-rendered videos. This has resolved a significant part of my concerns, and I am inclined to adjust my rating to 4 in recognition of it. However, I still have some remaining concerns that I believe are important to address: Symlog Regularization: The additional results in Table A6 from your rebuttal indeed highlight the significance of the symlog normalization. This brings up a question regarding the flexibility and robustness of your method—have you considered or experimented with alternative regularization methods? It would be insightful to see if other techniques could provide comparable or even improved performance, which would further strengthen the generalizability of your approach. Experimental Rigor: While I appreciate the addition of Table A8, which compares your method with an adapted version of Diffusion-Reward, I agree with the general sentiment among reviewers that the experimental evaluation remains somewhat weak. The results from MetaWorld, where most tasks either achieve 100% or 0% success rates, suggest a potential limitation in the diversity and complexity of the tasks. Incorporating more challenging environments, such as those involving interactive tasks with Franka-Kitchen or the dexterous manipulation tasks with Adroit, would provide a more convincing demonstration of your method's capabilities. This would be crucial for further validating the practicality and robustness of TADPoLe. Presentation: Finally, I recommend revisiting the presentation of your paper. Specifically, Figure 3 could be redesigned to locate in a line with Figure 2, allowing for space to provide a more detailed and visually appealing presentation of your experimental outcomes. Best regards.

Authorsrebuttal2024-08-14

Response to Reviewer [1]

We thank the reviewer for the response; we are happy to have addressed many of the prior concerns, and appreciate the increase in score. We would like to supply additional experimental results towards the interest of the reviewer: **On alternative normalization:** Indeed, we have previously tried alternative normalization techniques for our reward computation. Apart from symlog and using simple scaling factors directly, we have also tried using symexp, min-max rescaling (subtract an empirical min, divide by an empirical min-max range, and rescaling to [-1, 1]), as well as standardization (subtracting an empirical mean and dividing by an empirical standard deviation). What we have found is that the symlog operation overall is the best reward normalization strategy, in terms of transferring hyperparameter configurations across robotic configurations, visual environments, and desired tasks. We further note that min-max rescaling and standardization require empirically estimated values, whereas symlog does not. We provide an updated table: |Task|Prompt|TADPoLe|TADPoLe-simple-scale|TADPoLe-symexp|TADPoLe-min-max|TADPoLe-standardization|Video-TADPoLe|Video-TADPoLe-simple-scale|Video-TADPoLe-min-max|Video-TADPoLe-symexp|Video-TADPoLe-standardization| |:-|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|-:| |Humanoid-Stand|“a person standing”|267.23|**276.67**|241.49|256.81|236.59|-|-|-|-|-| |Humanoid-Walk|“a person walking”|-|-|-|-|-|**226.29**|4.58|3.68|61.31|134.66| |Dog-Walk|“a dog walking”|-|-|-|-|-|**81.22**|35.30|9.46|6.15|5.05| **On Figure 3:** we appreciate the reviewer’s presentation suggestions, and agree that moving Figure 3 to the same row as the ones in Figure 2 could allow additional space. We have already provided experimental outcomes of goal-achieving policies for Figure 1 and Figure 4, and have left continuous locomotion demonstrations for our attached videos on our website. However, the additional space from moving Figure 3 could be used to explicitly show static frame rollouts corresponding to the videos on the website within the PDF.

Authorsrebuttal2024-08-14

Response to Reviewer [2]

On additional robotic experiments: In our experimental sweeps, we have been able to get TADPoLe working on three Adroit tasks (door, pen, hammer), in a similar setup with what is reported in MetaWorld (all hyperparameters are kept the same, e.g. noise level, $w_1$, $w_2$, etc.). For the base RL backbone algorithm, we find the most success on Adroit from applying the text-conditioned TADPoLe reward to DrM [1]. The associated task prompts are “opening a door” and “spinning a pen”, and “hammering a nail” respectively, and we include the success rate and video demonstration on the bottom of our updated [submission website](https://sites.google.com/view/tadpols/home). We hope these positive results on complex dexterous manipulation tasks provide a more convincing demonstration of TADPoLe’s capabilities to the reviewer. We also voluntarily report, for complete transparency, that of the FrankaKitchen suite, in which we select five tasks for evaluation following R3M [2], our approach is only able to solve one of the five tasks (turning the light on) when using the same hyperparameter settings as the MetaWorld experiments. In fact, LIV [3], in Appendix G4, explicitly states that **fine-tuning is needed for language-grounding** for FrankaKitchen tasks (compare Figure 20 against Figure 21), to form a coherent language-goal reward signal for text-conditioned policy learning. In light of this, TADPoLe performance on FrankaKitchen is expected to be difficult, as TADPoLe uses no fine-tuning at all, but still tries to provide a text-conditioned reward. The performance TADPoLe can achieve on robotic environments (such as Adroit, MetaWorld, and the FrankaKitchen example) while utilizing *no in-domain demonstrations, or fine-tuning whatsoever* is promising, particularly as such robotic experiments generally have a large visual domain gap from the pretraining data observed by the general-purpose diffusion model (and collecting in-domain examples to alleviate the domain gap can be expensive). We believe our framework is general enough that future improvements to the underlying diffusion model, for example finetuning on in-domain demonstrations, would help - but our focus in this work is on the *inherent generalization capabilities* from *leveraging large-scale pretrained diffusion models*, which we demonstrate is surprisingly powerful. As our framework still works with arbitrary image and video diffusion models, we leave exploring the utilization of diffusion models that have explicitly integrated in-domain information (such as through explicit finetuning) for exciting future work. The main focus of our work is finding a general-purpose, scalable solution for text-conditioned policy learning - rather than solving the entire realm of text-conditioned policy learning for robotics at once, or outperforming even models that leverage in-domain demonstrations. What we seek to show is that text prompts can be converted into dense rewards without in-domain finetuning, just from text-conditioned visual diffusion models pretrained on general data, to enable policy learning. Our model formulation, as well as our reward computation are novel, and we demonstrate this generalizes across a variety of robotic environments (Humanoid, Dog, MetaWorld), and across a variety of text prompts and novel behaviors without *finetuning or modification*, and with large reuse in hyperparameters. Our approach seeks to be general, and scalable - motivations that the reviewer has voiced appreciation for, and accomplishes this by avoiding any reliance on in-domain information - but this generality often comes at the cost of achieving state-of-the-art performance on every single domain, which we hope is understandable without detracting from the surprising insights TADPoLe already provides. We appreciate the reviewer’s suggestions for strengthening our work, and plan to incorporate these updates into the final camera-ready version of the paper. [1] Xu et al. DrM: Mastering Visual Reinforcement Learning through Dormant Ratio Minimization. ICLR, 2024. [2] Nair et al. R3M: A Universal Visual Representation for Robot Manipulation. arxiv preprint, 2022. [3] Ma et al. LIV: Language-Image Representations and Rewards for Robotic Control. ICML, 2023.

Reviewer KsL92024-08-09

Thanks for the detailed rebuttal.

Reviewer z3di2024-08-10

The reviewer did not respond to my Question 1. The explanation of TD-MPC is not sufficient, and no other algorithm backbone is used to prove the effectiveness of the method during the rebuttal period. As for the reason for real-world experiments, diffusion-reward actually added a lot of real-world experiments. Without real-world experiments, I think the contribution to the community is very limited. So I decide to maintain my score.

Authorsrebuttal2024-08-11

Response to Reviewer

We appreciate Reviewer z3di’s prompt response and engagement; we offer further clarification and results on the provided comments: **On Question 1:** To the best of our knowledge, prior work on MetaWorld mainly use dense ground-truth rewards, in-domain expert demonstrations, or both (e.g. Diffusion-Reward, referenced by the reviewer, uses a combination of in-domain expert demonstrations and sparse rewards). A more comparable setup is their reported performance on “unseen” tasks (Table 7) where they still use in-domain expert demonstrations (which TADPoLe does not need) to train their video model but the tasks are novel. Among the two overlapping tasks (Drawer-Open and Window-Open), both TADPoLe and Diffusion-Reward achieve near perfect performance, outperforming recently published baselines, such as VIPER (which we note also relies on in-domain expert demonstrations). We are unaware of published work that achieves "state-of-the-art" performance under a comparable setup as TADPoLe (using neither in-domain expert demonstrations nor ground-truth dense rewards) - we welcome clarification on the work the reviewer is referring to. **Beyond TD-MPC:** As explained in our initial rebuttal, our main motivation is comparing different text-to-reward methods on a consistent, powerful, backbone for an apples-to-apples comparison (with hyperparameters, optimization, architectures, etc. fixed). We select TD-MPC for its competitive performance on the complex Dog and Humanoid tasks, which serve as ideal environments to demonstrate **further** flexible novel behavior synthesis conditioned on text and naturalness. For example, for traditional model-free approaches that do not even have basic strong performance on Humanoid-Walk or Dog-Walk, any failure of our method to learn text-conditioned behavior in such environments could potentially be attributed to the underlying model rather than our proposed reward computation scheme. We selected TD-MPC because it has strong base performance on complex benchmarks (e.g. it is the first approach to even solve the default Dog task), and can therefore clearly showcase the difference between distinct text-to-reward computation methods **on top of it**. Nevertheless, we have discovered in early iterations of our method that TADPoLe is general across RL backbones. We have implemented RPO with TADPoLe (using the CleanRL implementation, where we replace the reward with the text-conditioned TADPoLe reward, and keep all default hyperparameters) and have achieved competitive performance on OpenAI Gym tasks: |Task|Prompt|TADPoLe|Ground-Truth| |:-|:-:|:-:|-:| |Hopper-v3|“a one-legged stick figure jumping forward over a grid floor”|2925.56|3852.78| |Walker2d-v4|“a stick figure walking across a grid floor”|2038.06|3872.54| Note that TADPoLe is not trained on ground-truth environmental signals, but still manages to achieve high ground-truth returns despite being optimized purely to align with a provided text prompt. We agree that more explorations on other RL backbones would further support the generalizability of TADPoLe, beyond the generalization we have already shown over different tasks (specified by flexible text prompts), as well as robotic states and environments (Humanoid, Dog, MetaWorld). **On real-world experiments:** We would like to clarify a potential misunderstanding on the "real-world experiments" presented in Diffusion-Reward: Diffusion-Reward *does not train any policies for real-world robots*; the only policies they train are in simulation, which we also do in this work. Instead, they use real-world videos to visualize their computed rewards in an *offline manner*. They compare reward curves between an expert and a random policy (as Diffusion-Reward does not have text-conditioning capabilities) to “indicat[e] the **potential** of [their] method for real-world robot manipulation tasks.” Analogously, for the reviewer's interest, we also visualize TADPoLe rewards for natural videos. As we are now interested in text-conditioned rewards, we compare between different text prompts for a given video demonstration, and show that the more-aligned text prompt has higher predicted reward. This is akin to what we have previously reported in Appendix Figure A1, but now for natural videos. Similar to what is reported in Diffusion-Reward, we visualize our computed dense reward for some real-world robotic arm demos from the Bridge Dataset (Diffusion-Reward did not release their robot-arm videos publicly, nor are they text-annotated). We also visualize some human actions. We provide the updated graph comparisons, along with the videos, on the [submission website](https://sites.google.com/view/tadpols/home), and verify that TADPoLe can determine if a natural video is more aligned with a provided text prompt or not, thus further supporting its use as a text-conditioned reward signal for policy learning. With this, we hope the reviewer increases their perception of our contribution to the community.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC