Skip to main content
QUICK REVIEW

[Paper Review] Fine-Tuning Large Vision-Language Models as Decision-Making Agents via Reinforcement Learning

Yuexiang Zhai, Hao Bai|arXiv (Cornell University)|May 16, 2024
Multimodal Machine Learning ApplicationsComputer Science8 citations
TL;DR

The paper presents a framework to fine-tune large vision-language models (VLMs) with reinforcement learning by having the model generate chain-of-thought reasoning and a text-based action, which is parsed into executable environment actions for RL training.

ABSTRACT

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.

Motivation & Objective

  • Motivate learning capable VLM-based agents for multi-step, goal-directed tasks that require vision-language reasoning in interactive environments.
  • Introduce an RL-based fine-tuning framework that leverages chain-of-thought (CoT) reasoning to generate actionable text outputs.
  • Enable end-to-end training of a 7B-scale VLM to outperform some commercial models on specific decision-making benchmarks.
  • Demonstrate the importance of CoT reasoning for improved RL-driven decision-making across multiple tasks and domains.

Proposed method

  • Define the VLM policy as a mapping from (image observation, input prompt) to an open-ended text output that includes CoT reasoning and a proposed action.
  • Use a post-processing function to extract a legal environment action from the text output; if extraction fails, perform random exploration over admissible actions.
  • Compute a regularized log-probability for the chosen action by combining scaled CoT-token probability and action-token probability, controlled by a factor lambda.
  • Train the VLM end-to-end with PPO using environment rewards and the computed action probabilities to update the model parameters.
  • Design a domain-specific prompt to elicit CoT reasoning and a formatted output, and introduce a scaling mechanism to mitigate CoT tokens’ dominance in action probability estimation.
  • Evaluate on two domains (gym_cards and ALFWorld) using a 7B backboned VLM (Llava-7B family) and compare against GPT4-V, Gemini, and a supervised fine-tuned baseline.
(a) NumberLine
(a) NumberLine

Experimental results

Research questions

  • RQ1Can RL fine-tuning of a large VLM improve decision-making in multi-step vision-language tasks requiring environment interaction?
  • RQ2How crucial is chain-of-thought reasoning to the success of RL fine-tuning for VLM agents?
  • RQ3Does end-to-end RL fine-tuning of a VLM outperform frozen-model prompting or vanilla RL baselines on vision-language decision tasks?
  • RQ4What are effective methods to extract actionable environment actions from open-ended text outputs of VLMs?
  • RQ5How does the CoT scale with action extraction in terms of performance and stability across domains?

Key findings

  • The RL-fine-tuning framework improves VLM decision-making across both a fine-grained vision-language gym domain (gym_cards) and an embodied AI domain (ALFWorld).
  • A 7B-sized VLM with RL fine-tuning can surpass commercial models such as GPT4-V and Gemini on the evaluated tasks.
  • Chain-of-thought reasoning is crucial for performance; removing CoT reasoning leads to a significant drop in overall performance across domains.
  • A CoT token scaling factor lambda (typically between 0.2 and 0.5) is important to balance CoT and action-token contributions and significantly affects performance.
  • Compared to CNN-based RL or frozen-VLM prompting baselines, the end-to-end RL-fine-tuning approach yields superior task success rates on the tested tasks.
(b) EZPoints
(b) EZPoints

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.