[Paper Review] VPGTrans: Transfer Visual Prompt Generator across LLMs
This paper proposes VPGTrans, a two-stage transfer framework that enables efficient visual prompt generator (VPG) transfer across different large language model (LLM) sizes and types, significantly reducing training costs. By using projector warm-up with a high learning rate followed by fine-tuning, VPGTrans achieves up to 10x faster convergence and reduces GPU hours by over 90% compared to training from scratch, even outperforming original models on multiple benchmarks.
While developing a new multimodal LLM (MLLM) by pre-training on tremendous image-text pairs from scratch can be exceedingly resource-consuming, connecting an existing LLM with a comparatively lightweight visual prompt generator (VPG) becomes a feasible paradigm. However, further tuning the VPG part of the MLLM still suffers from indispensable computational costs, i.e., requiring thousands of GPU hours and millions of training data. One alternative solution is to transfer an existing VPG from any existing MLLMs for the target MLLM. In this work, we for the first time investigate the VPG transferability across LLMs, and explore a solution to reduce the cost of VPG transfer. We first study the VPG transfer across different LLM sizes (e.g., small-to-large), and across different LLM types, through which we diagnose the key factors to maximize the transfer efficiency. Based on our observation, we design a two-stage transfer framework named VPGTrans, which is simple yet highly effective. Through extensive experiments, we demonstrate that VPGTrans helps significantly speed up the transfer learning process without compromising performance. Remarkably, it helps achieve the VPG transfer from BLIP-2 OPT$_ ext{2.7B}$ to BLIP-2 OPT$_ ext{6.7B}$ with over 10 times speed-up and 10.7% training data compared with connecting a VPG to OPT$_ ext{6.7B}$ from scratch. Further, a series of intriguing findings and potential rationales behind them are provided and discussed. Finally, we showcase the practical value of our VPGTrans approach, by customizing two novel MLLMs, including VL-LLaMA and VL-Vicuna, with recently released LLaMA and Vicuna LLMs.
Motivation & Objective
- To investigate the feasibility and efficiency of transferring visual prompt generators (VPGs) across different LLMs, including varying sizes and architectures.
- To identify key factors that maximize transfer efficiency in VPG adaptation, especially when moving from smaller to larger LLMs or between different LLM types.
- To reduce the computational and data overhead of fine-tuning VPGs for new multimodal LLMs (MLLMs), avoiding expensive pre-training from scratch.
- To demonstrate practical utility by customizing new MLLMs using VPGs transferred from existing models, such as VL-LLaMA and VL-Vicuna.
- To provide a scalable, low-cost solution for deploying high-performing MLLMs with any LLM backbone using pre-trained VPGs.
Proposed method
- Proposes a two-stage VPG transfer framework: (1) projector warm-up with an extremely high learning rate (5× baseline) to stabilize initial adaptation, and (2) standard fine-tuning of both VPG and projector.
- Employs a pre-trained VPG from a source MLLM (e.g., BLIP-2 OPT 2.7B) and adapts it to a target LLM (e.g., OPT 6.7B or FlanT5) by freezing the LLM and only tuning the VPG and projector.
- Uses a linear projector for dimension matching between the VPG output and the target LLM’s input embedding space, which is re-initialized and fine-tuned during warm-up.
- Applies the same training data and hyperparameters across all transfer settings to ensure fair comparison and isolate the effect of the VPGTrans framework.
- Validates the method across multiple transfer scenarios: small-to-large LLMs (TaS) and different LLM types (TaT), including decoder vs. encoder-decoder architectures.
- Employs standard multimodal benchmarks (e.g., COCO, VQAv2, GQA, VizWiz) to evaluate performance and convergence speed during transfer.
Experimental results
Research questions
- RQ1Can a pre-trained visual prompt generator (VPG) be effectively transferred from one LLM to another with different sizes, and if so, what factors maximize transfer efficiency?
- RQ2Does VPG transfer between different LLM types (e.g., decoder-only vs. encoder-decoder) yield comparable performance to training from scratch, and can it be accelerated?
- RQ3Why does VPG transfer show speed-up only on larger LLMs and not on smaller ones, and what underlying mechanism enables this difference?
- RQ4Can the VPGTrans framework enable the creation of new, high-performing MLLMs using any LLM backbone, such as LLaMA or Vicuna, with minimal training cost?
- RQ5What role does projector initialization and learning rate scheduling play in stabilizing and accelerating VPG transfer, especially in the early training phase?
Key findings
- VPGTrans reduces GPU hours by over 90% and training data by 10.7% when transferring a VPG from BLIP-2 OPT 2.7B to OPT 6.7B, achieving comparable or better performance than training from scratch.
- The framework achieves up to 10 times faster convergence in small-to-large LLM transfers (TaS), with no performance drop, thanks to projector warm-up with a 5× learning rate.
- For cross-LLM-type transfers (TaT), VPGTrans achieves at least 2x speed-up on large models (e.g., FlanT5 XL → OPT 2.7B), while maintaining or improving performance over baseline methods.
- The method outperforms the original BLIP-2 OPT 6.7B model on most benchmarks, achieving a +2.9% improvement on average across evaluated datasets.
- Transfer speed-up is observed only on large LLMs, suggesting that larger models learn more linear and generalizable text embeddings, enabling easier VPG transfer.
- VL-LLaMA and VL-Vicuna, built using VPGTrans, achieve state-of-the-art performance on multimodal reasoning and dialogue tasks, with VL-Vicuna ranking 3rd on the Multimodality Chatbot Arena (Elo: 1012.1).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.