Fine-Tuning Large Vision-Language Models as Decision-Making Agents via Reinforcement Learning

Large vision-language models (VLMs) fine-tuned on specialized visual instruction-following data have exhibited impressive language reasoning capabilities across various scenarios. However, this fine-tuning paradigm may not be able to efficiently learn optimal decision-making agents in multi-step goal-directed tasks from interactive environments. To address this challenge, we propose an algorithmic framework that fine-tunes VLMs with reinforcement learning (RL). Specifically, our framework provides a task description and then prompts the VLM to generate chain-of-thought (CoT) reasoning, enabling the VLM to efficiently explore intermediate reasoning steps that lead to the final text-based action. Next, the open-ended text output is parsed into an executable action to interact with the environment to obtain goal-directed task rewards. Finally, our framework uses these task rewards to fine-tune the entire VLM with RL. Empirically, we demonstrate that our proposed framework enhances the decision-making capabilities of VLM agents across various tasks, enabling 7b models to outperform commercial models such as GPT4-V or Gemini. Furthermore, we find that CoT reasoning is a crucial component for performance improvement, as removing the CoT reasoning results in a significant decrease in the overall performance of our method.

Paper

Similar papers

Peer review

Reviewer gYxm6/10 · confidence 4/52024-07-05

Summary

The paper introduces a algorithmic framework that fine-tunes VLM using RL to enhance their performance in multi-step, goal-directed decision-making tasks. The authors highlight the limitations of traditional visual instruction tuning, which relies on pre-collected datasets and may not effectively train VLMs for interactive decision-making scenarios. Their proposed framework addresses this by providing task descriptions to the VLMs, prompting them to generate chain-of-thought (CoT) reasoning, and translating these into executable actions within an environment. Empirical results show that this method significantly improves the decision-making capabilities of VLMs, enabling them to outperform commercial models like GPT4-V and Gemini.

Strengths

1. The paper is well-written and clear, making it accessible and easy to follow. 2. The proposal of an alternative to current visual instruction tuning for decision-making is intriguing, with well-justified design choices that demonstrate a thoughtful approach. 3. The execution is particularly noteworthy and well-designed. For instance, the method of balancing the influence of chain-of-thought (CoT) output and action output is elegantly handled and demonstrates innovative thinking.

Weaknesses

The paper is good overall. There are a few areas that could benefit from improvement: 1. The current implementation requires fine-tuning for each task individually. However, large Vision-Language Models (VLMs) are generally capable of handling multiple tasks such as Visual Question Answering (VQA) and Optical Character Recognition (OCR). 2. The trade-off between the CoT output and action output is manually set. This means that the balance must be adjusted for different tasks depending on their nature. It is unclear how this parameter can be set for training a multi-task policy. 3. Despite the use of Low-Rank Adaptation (LoRA) for fine-tuning, the computational cost remains high. 4. The framework shows promise, but the evaluation tasks do not fully convey the benefits of using a multi-modal large language model (MLLM). Specifically, the model's ability to reason or the potential to explicitly correct its own behavior in scenarios where this is crucial is not thoroughly demonstrated.

Questions

It would be interesting to explore how visual prompting could enhance the framework and improve performance.

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

2

Limitations

yes.

Reviewer QEzb7/10 · confidence 4/52024-07-10

Summary

This paper provides a framework that fine-tunes a large vision-language model (VLM) with reinforcement learning (RL) for decision-making tasks requiring vision and language understanding. In the framework, the VLM takes as input a state s_t that contains a visual observation o_t and input prompt v_t^{in}. The input prompt v_t^{in} contains a task description, legal action space, and desired output. Then, the VLM generates text v_t^{out} that contains CoT reasoning and an open-ended text action. The framework applies a post-processing function f on the open-ended text action, and obtain a legal action a_t. Then, the framework inputs the legal action a_t to the environment and obtains reward r(s_t, a_t) and the next visual observation o_{t+1}. Based on the reward r(s_t, a_t), the framework fine-tunes the VLM with RL (i.e., PPO). The proposed framework is evaluated on two environments: gym_cards and ALFWorld. The gym_cards environment contains four tasks like NumberLine, EZPoints, Points24, and Blackjack, and these tasks require an ability to recognize numbers in figures for arithmetic reasoning. This paper empirically demonstrates that the LLaVA-7B model fine-tuned by the proposed framework can outperform close-source LLMs such as GPT4-V and Gemini on these environments.

Strengths

S1. This paper provides a method that can fine-tune VLMs with RL for decision-making tasks. The overall problem setting seems novel and interesting. S2. Technically, the method consists of (1) prompt design for domain-specific outputs, (2) post-processing open-ended text for legal actions, and (3) estimating action probabilities of VLM policies. Among them, the third technique is very interesting. To generate a better text action, the VLM generates CoT reasoning text before it. To estimate action probabilities of VLM policies, this paper proposes to split the probability of generating CoT reasoning and the probability of generating a text action. S3. This paper empirically demonstrates that LLaVA-7B model fine-tuned with RL can outperform GPT-4V and Gemini on the gym-card environment that requires vision and language understanding.

Weaknesses

W1. Even though this paper demonstrates that LLaVA-7B fine-tuned with RL outperforms GPT4-V on the gym-card environment, according to Table 2, on ALFWorld, the performance gain does not seem significant (GPT4-V 19.4 vs Ours 21.7).

Questions

Q1. Regarding the weaknesses W1 above, is there any reason the performance gain does not be significant on ALFWorld?

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

L1. The authors provide limitations in the Section 7 (i.e., Conclusions, Limitations, and Future Directions).

Reviewer QEzb2024-08-13

After the Author Response

Thank you for providing a thoughtful response to my question. I could understand this paper more. I maintain my initial rating. By the way, if the authors will give a name to the proposed method, it will be easier for readers to refer to it. :-)

Authorsrebuttal2024-08-13

Thank you for the kind suggestion on the name of the paper :) we tried some names but never found a suitable one. We will try harder and hopefully we can find one for the updated version. Thanks again for your suggestions and your appreciation!

Reviewer RYx17/10 · confidence 4/52024-07-12

Summary

- This paper studies the training of vision-language models for decision-making tasks via reinforcement learning. - The authors train a 7B parameter Llava model and a baseline CNN model with proximal policy optimization (PPO) on the alfworld and `gym_cards` environments. - Additionally, the authors study the impact of also generating and reinforcing CoT rationales produced by the VLM. - They find that RL is often able to substantially improve the performance of a fine-tuned VLM, and that producing CoT tokens significantly helps during exploration.

Strengths

- This is a useful empirical paper that serves as a sanity check for using RL on multimodal tasks. - I was surprised to see the impact that reinforcing CoT tokens had. I didn't expect this. This could be a useful signal for the community. - The experimental setup is sound and well-designed. I especially liked the carefully prepared Llava-sft baseline. - The paper makes a convincing case that RL adds something beyond SFT, at least for `gym_cards`.

Weaknesses

- Only one VLM. I would like to have seen whether the conclusions change (even on a single environment) with a different VLM or different sizes of VLM.

Questions

- I would have liked to see more of an explanation of why RL does not outperform SFT across the board on Alfworld.

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

Not applicable.

Reviewer MKrq3/10 · confidence 4/52024-07-30

Summary

The paper proposes an algorithmic framework for fine-tuning large vision-language models (VLMs) using reinforcement learning (RL) for multi-step decision-making tasks. The framework enhances VLMs' reasoning and decision-making capabilities by incorporating chain-of-thought (CoT) reasoning. The empirical results demonstrate that the proposed method outperforms existing models like GPT-4V and Gemini in various decision-making tasks, highlighting the significance of CoT reasoning.

Strengths

1. The topic is interesting and valuable to the community. 2. The presentation is clear, and the paper is easy to follow. 3. The methodology is general sound.

Weaknesses

My primary concerns lie with the experimental results and methodology. Please refer to the questions below for detailed points.

Questions

1. In the appendix, it is observed that CoT not only provides thought processes but also manually encoded key states, such as the “current number” and “target number” in the NumberLine task (Figure 9). This crucial information is hidden in the main text (See Figure 3). The authors need to clearly differentiate the source of CoT's effectiveness in improving reasoning—whether it stems from manually labeled key states or the textual thought process itself. This distinction should be experimentally validated and presented in the main text rather than being relegated to the appendix. 2. Moreover, regarding the CoT issue, Figures 11 and 13 show that CoT encodes not only the key states used for decision-making but also information "directly obtained from the formula in the image." There seems to be no reasonable justification for this, as theoretically, this information can be derivable from the images. An effective RL method should be capable of optimizing to identify this critical information through rewards. The inclusion of this manually encoded information makes the experiment tricky because it allows any difficult image understanding problem to be reduced to a manual extraction process. Authors should not manually encode such information to boost the final performance of their method. 3. Did your baselines (GPT4-V and Gemini) include CoT information? 4. To validate the effectiveness of the proposed RL algorithm, it would be beneficial to compare it with other RL methods, such as "OFFLINE RL FOR NATURAL LANGUAGE GENERATION WITH IMPLICIT LANGUAGE Q LEARNING" and "ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RL." If using the authors' SFT model with your CoT, can we replace the proposed RL algorithm with these RL methods to achieve optimization?

Rating

3

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

NA

Authorsrebuttal2024-08-06

Follow up rebuttal page

**Continued from page 1.** Therefore, our framework cannot provide any performance gain due to the limited visual capability of the backbone VLM. We have also briefly discussed such failure examples in Appendix B.5, where our framework fails when the backbone VLM is unable to recognize the key information for the task. Please be assured that we will include the aforementioned table and an additional discussion on how the visual capabilities of the backbone VLM affect the final performance of our method in the updated version. We appreciate your suggestion for improving the presentation of our paper. ## Q.3: > Did your baselines (GPT4-V and Gemini) include CoT information? A: Thank you for the question. Yes, our experimental baselines with GPT4-V and Gemini use the same task-specific prompt for each task, as we discussed in line 711 of Appendix B.2. ## Q.4: > To validate the effectiveness of the proposed RL algorithm, it would be beneficial to compare it with other RL methods, such as "OFFLINE RL FOR NATURAL LANGUAGE GENERATION WITH IMPLICIT LANGUAGE Q LEARNING" and "ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RL." If using the authors' SFT model with your CoT, can we replace the proposed RL algorithm with these RL methods to achieve optimization? A: Once again, we sincerely thank the reviewer for suggesting additional comparison experiments with ILQL [3] and ArCHer [4]. We agree that our end-to-end RL training framework can, in principle, adopt other RL algorithms besides PPO. Studying how different RL algorithms affect VLM training is indeed an important topic for future research. However, due to the limitations of computational resources and the nature of training large models, we are unable to provide results for more RL algorithms on VLMs during the rebuttal period. As mentioned in footnote 2 on page 6, each curve in our experiment takes 30 hours on 4 A100 GPUs to run. This time estimate only covers running the experiments and does not include the integration of a new RL algorithm into VLM training, which generally requires significantly longer development time (e.g., for this project, we spent more than 2 months developing the framework just for PPO). Similar computation cost issues have also been discussed in [3,4]. In section 5.7, section 6 of [4], and section 7 of [3], computational budget is a major bottleneck for comparing different RL algorithms on large model training. Moreover, our backbone VLM (llava-1.6-7b) is substantially larger than the backbone models used in ArCHer and ILQL. For example, ArCHer conducted most experiments on GPT-2, a 1.5b model (Section 6 in [4]), and ILQL conducted all experiments on GPT-2 (Appendix A.4 in [3]). We truly appreciate the reviewer’s suggestion to compare different RL algorithms within our framework, and we will definitely update our paper by discussing the comparison with different algorithms in future work. --- ### Concluding remarks We would like to thank the reviewer again for the insightful suggestions for improving our paper. Please be assured that we will update our paper to better (1) clarify the usage of our task-specific prompts in Figure 3; (2) add more discussion on the computational limitation for comparing with other RL algorithms; and (3) include the additional evaluation results of the visual recognition accuracy of llava-1.6-7b as presented before. **Please let us know if our response addresses your concerns, if so, would you mind kindly improving your rating for our work? If not, please let us know as well, and we would like to further engage and improve our work based on your future suggestions!** --- [1] Wei, Jason, et al. "Chain-of-thought prompting elicits reasoning in large language models." Advances in neural information processing systems 35 (2022): 24824-24837. [2] Fu, Yao, et al. "Complexity-based prompting for multi-step reasoning." The Eleventh International Conference on Learning Representations. 2023. [3] Snell, Charlie, et al. "Offline rl for natural language generation with implicit language q learning." The Eleventh International Conference on Learning Representations. 2023. [4] Zhou, Yifei, et al. "Archer: Training language model agents via hierarchical multi-turn rl." ICML, 2024. **Page 2/2.**

Reviewer MKrq2024-08-11

I would like to appreciate the authors’ faithful rebuttal. Here is my follow-up response: > "Our intention is not to compare the performance of different prompts, but to present an end-to-end RL fine-tuning paradigm that effectively utilizes customized CoT prompting for VLM. However, we agree that studying the effects of different customized prompts using intermediate reasoning steps [1,2] could potentially further improve the performance, and we would like to leave that for future research." I do not mean to study different customized prompts. Mentioning "different customized prompts" is because your current implementation is problematic in this regard. When stating “We provide the first integrated system that enables end-to-end RL fine-tuning on VLMs”, at least we expect that the RL fine-tuning techniques enhance the visual understanding capabilities. Otherwise, it can be just a fine-tuning technique for LLMs. Unfortunately, I cannot find solid evidence in the current experiments to support this claim. > However, the backbone VLM (Llava-1.6b) struggles to recognize the formula from the images, which causes the entire pipeline to fail. It is acceptable to report failed results. If your baseline also excludes this manually extracted information, they are under fair comparison. However, keep the information in the experiments gives the community a false sense of success and burdens future researchers who aim to solve this problem directly. Suggestions: After removing those manually extracted information, perhaps the authors could demonstrate that RL training improves the accuracy of information extracted by VLMs from images. This would provide direct evidence that this is a viable RL training method for VLMs.

Authorsrebuttal2024-08-11

We thank the reviewer for the follow-up. We would like to make the following clarifications: > When stating “We provide the first integrated system that enables end-to-end RL fine-tuning on VLMs”, at least we expect that the RL fine-tuning techniques enhance the visual understanding capabilities. We never claimed our method **improves the performance of the visual understanding capabilities of the VLM**, our main contribution in this work is **to provide a post-training framework for improving VLM’s decision-making capabilities** (e.g., see line 43 of our introduction). Such performance improvement is well justified by our experiments while comparing to SFT, GPT4-v, and Gemini **with the same prompt**. The performance improvement could come from these different possibilities (1) RL can improve VLM’s visual understanding capabilities; (2) RL can improve VLM’s language reasoning capabilities, or (3) both, and we thank you for mentioning one possibility for the performance improvement. > Otherwise, it can be just a fine-tuning technique for LLMs. Unfortunately, I cannot find solid evidence in the current experiments to support this claim. The current VLMs (Llava, GPT4-v, Gemini) actually allow pure text inputs as well, and in principle, our method can be applied to a pure text environment without using the vision input as well. We believe the applicability of our post-training technique on LLM should be a further strength of our paper rather than a weakness. > It is acceptable to report failed results. If your baseline also excludes this manually extracted information, they are under fair comparison. For each task, our experiments on other VLMs (llava-sft, Gemini, GPT4-v) are using the same prompt (with or without the prompt for key information). Hence we believe such a comparison should be fair. > However, keep the information in the experiments gives the community a false sense of success and burdens future researchers who aim to solve this problem directly. On the contrary, we believe that our framework works better with customized CoT prompting and actually provides more information to the community – since it also suggests that CoT significantly improves the decision-making capabilities [1,2] of VLMs under our framework as well, we have also extensively studied this in Section 6.2 on the effect of the CoT prompts. > Suggestions: After removing the manually extracted information, perhaps the authors could demonstrate that RL training improves the accuracy of information extracted by VLMs from images. This would provide direct evidence that this is a viable RL training method for VLMs. Thank you for your suggestion, we agree this is an important question to study in the future, under the hypothesis that **Can RL improve the visual understanding capabilities of the VLMs**, which is **different from** the main hypothesis of this work (**can RL improve VLM’s decision-making capabilities**). Still, this is a very interesting direction and we appreciate the reviewer for pointing it out. **Please let us know if you have any other concerns or suggestions, we would be happy to engage further!** [1] Wei, Jason, et al. "Chain-of-thought prompting elicits reasoning in large language models." Advances in neural information processing systems 35 (2022): 24824-24837. [2] Fu, Yao, et al. "Complexity-based prompting for multi-step reasoning." The Eleventh International Conference on Learning Representations. 2023.

Reviewer MKrq2024-08-12

Thanks for the authors' detailed response and the efforts made in the rebuttal. At this point, I maintain my original concerns; however, I am open to reconsidering my evaluation based on the suggestions from the Area Chairs.

Authorsrebuttal2024-08-12

Thank you for the follow-up. We hope you have a nice rest of your week.

Reviewer gYxm2024-08-12

Thank you for your response. I have no further questions at the moment. While I remain positive about the paper, I do agree that Reviewer MKrq's point is valid. A deeper exploration of the role of reinforcement learning in the context of the paper could be both interesting and important.

Authorsrebuttal2024-08-12

Thank you for the follow-up and your support. We are actively studying the effect of RL for follow-up work, please stay tuned!

Reviewer RYx12024-08-13

I have read the response. I will maintain my original rating of a 7. This paper should be accepted. It presents an empirical study with some interesting and potentially useful observations, but the empirical testbed is limited, so the domain of applicability of the observations is unclear.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC