Visual-RFT: Visual Reinforcement Fine-Tuning

Ziyu Liu, Zeyi Sun, Yuhang Zang, Xiaoyi Dong, Yuhang Cao, Haodong Duan, Dahua Lin, Jiaqi Wang

TL;DR

This paper introduces Visual Reinforcement Fine-Tuning (Visual-RFT), a novel method that adapts reinforcement learning (RL) for fine-tuning large vision-language models (LVLMs) on visual tasks. By using verifiable, rule-based rewards instead of human preference data, Visual-RFT achieves significant performance gains with much less data, demonstrating improved reasoning and generalization capabilities across various visual perception tasks.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) have shown remarkable capabilities in understanding and generating content that combines visual and textual information. However, effectively fine-tuning these models for specific downstream tasks, especially when labeled data is scarce, remains a challenge. Traditional supervised fine-tuning (SFT) relies on large, high-quality datasets, which can be expensive and time-consuming to create. While reinforcement learning (RL) has shown promise in improving LLMs, particularly in reasoning tasks, its application to LVLMs for visual perception tasks has been less explored. The core problem this paper addresses is how to efficiently fine-tune LVLMs for visual tasks, leveraging their reasoning abilities, without requiring massive amounts of labeled data.

Methods

The core innovation is Visual Reinforcement Fine-Tuning (Visual-RFT). This approach builds upon the concept of Reinforcement Learning with Verifiable Rewards (RLVR), which uses objective, rule-based reward functions rather than relying on a separate reward model trained on human preferences.

Here's how it works:

  1. LVLM Generation: For a given visual input (image + question), the LVLM generates multiple responses, including reasoning steps and final answers.
  2. Verifiable Reward Functions: Instead of human feedback, Visual-RFT employs task-specific, rule-based verifiable reward functions. These functions automatically assess the correctness of the LVLM's output. Examples include:
  3. Intersection over Union (IoU) Reward: For object detection, this reward measures the overlap between predicted and ground-truth bounding boxes, along with confidence scores.
  4. Classification Reward: For classification tasks, this reward is 1 if the predicted class matches the ground truth, and 0 otherwise.
  5. Format Reward: Ensures the output adheres to a specific structure (e.g., <think>...</think><answer>...</answer>).
  6. Policy Optimization: These verifiable rewards are then used to update the LVLM's policy using an algorithm like Group Relative Policy Optimization (GRPO). GRPO compares groups of candidate responses to determine relative quality, avoiding the need for a separate critic model.
  7. KL Divergence Regularization: To ensure training stability, Visual-RFT uses KL divergence to limit the difference between the current policy and a reference model.

This contrasts with SFT, which directly imitates "ground-truth" answers from large datasets. Visual-RFT focuses on learning from trial-and-error guided by objective feedback.

Datasets

The paper evaluates Visual-RFT on several standard benchmarks:

  • Fine-grained Image Classification: Flower102, Pets37, FGVC-Aircraft, Cars196.
  • Few-shot Object Detection: COCO (8 categories), LVIS (6 rare categories).
  • Reasoning Grounding: LISA.
  • Open Vocabulary Object Detection: COCO (trained on 48 base categories, tested on 17 novel categories), LVIS (tested on 13 rare categories).

No new datasets were introduced; the focus was on adapting existing benchmarks to the few-shot and open-vocabulary settings.

Key Insights and Ideas

  • RL for Visual Tasks is Viable: The paper convincingly demonstrates that reinforcement learning, specifically with verifiable rewards, is not limited to language or code tasks but can significantly enhance LVLMs in visual perception.
  • Data Efficiency is Key: Visual-RFT's reliance on verifiable rewards drastically reduces the need for large labeled datasets, making it a powerful tool for domains with scarce data.
  • Verifiable Rewards Simplify RL: By using rule-based rewards, the complexity of training RL agents is reduced, eliminating the need for human annotators or complex reward models.
  • Reasoning Enhances Perception: The "thinking process" generated by the LVLM, guided by RL, leads to a deeper understanding of visual tasks, rather than just memorizing patterns. This is crucial for generalization.
  • Generalization Power: Visual-RFT shows superior generalization capabilities, especially when tested on novel categories or domains different from the training set, outperforming SFT in these scenarios.

Key Results

Visual-RFT consistently outperforms Supervised Fine-Tuning (SFT) across various tasks, especially in few-shot settings:

  • Fine-grained Classification (1-shot): Visual-RFT improves accuracy by 24.3% over the baseline, while SFT declines by 4.3%.
  • Few-shot Object Detection (COCO 4-shot): Visual-RFT exceeds the baseline by 21.0% mAP.
  • Few-shot Object Detection (LVIS 4-shot): Visual-RFT exceeds the baseline by 15.4% mAP.
  • Reasoning Grounding (LISA): Visual-RFT significantly improves IoU metrics compared to SFT.
  • Open Vocabulary Detection (COCO novel categories): Visual-RFT achieves an average nAP increase of 18.3% for Qwen2-VL-2B and 7.3% for Qwen2-VL-7B.
  • Qualitative Results: Figures and examples show that Visual-RFT's generated reasoning processes are more coherent and lead to more accurate visual task completions.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while Visual-RFT significantly improves performance with limited data, SFT can eventually catch up or slightly surpass it when very large amounts of data are available (as seen in 8-shot classification).
  • The effectiveness of Visual-RFT is tied to the quality of the base LVLM and the design of the verifiable reward functions.
  • Future Work:
    • The authors suggest exploring more complex verifiable reward functions for a wider range of visual tasks.
  • Further investigation into the synergistic combination of verifiable rewards and visual perception abilities for even more efficient learning.
  • Extending Visual-RFT to more complex multi-modal reasoning tasks.
  • The paper implies that this approach could be further generalized to other domains beyond visual perception.

Summary updated

BibTeX
@inproceedings{liu2025visual,
  author = {Ziyu Liu and Zeyi Sun and Yuhang Zang and Xiaoyi Dong and Yuhang Cao and Haodong Duan and Dahua Lin and Jiaqi Wang},
  title = {{Visual-RFT: Visual Reinforcement Fine-Tuning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure