[论文解读] Prompt Tuning for Generative Multimodal Pretrained Models
本文针对生成式多模态预训练模型提出提示微调方法,实验证明仅使用约1%可训练参数的轻量级提示微调即可实现与全量微调相当的性能,同时显著提升对对抗攻击的鲁棒性。该方法在编码器-解码器框架中采用前缀提示微调,并提供了关于最优提示长度、深度及重参数化策略的实证指导。
Prompt tuning has become a new paradigm for model tuning and it has demonstrated success in natural language pretraining and even vision pretraining. In this work, we explore the transfer of prompt tuning to multimodal pretraining, with a focus on generative multimodal pretrained models, instead of contrastive ones. Specifically, we implement prompt tuning on the unified sequence-to-sequence pretrained model adaptive to both understanding and generation tasks. Experimental results demonstrate that the light-weight prompt tuning can achieve comparable performance with finetuning and surpass other light-weight tuning methods. Besides, in comparison with finetuned models, the prompt-tuned models demonstrate improved robustness against adversarial attacks. We further figure out that experimental factors, including the prompt length, prompt depth, and reparameteratization, have great impacts on the model performance, and thus we empirically provide a recommendation for the setups of prompt tuning. Despite the observed advantages, we still find some limitations in prompt tuning, and we correspondingly point out the directions for future studies. Codes are available at \url{https://github.com/OFA-Sys/OFA}
研究动机与目标
- 探究提示微调是否能有效迁移生成式多模态预训练模型,尤其与全量微调进行对比。
- 评估提示微调在多模态理解与生成任务中的性能与鲁棒性。
- 识别影响模型性能的关键超参数,如提示长度、深度及重参数化策略。
- 为生成式多模态模型中的提示微调设置提供实证建议。
- 探讨提示微调的局限性,特别是收敛缓慢与训练不稳定性问题,并提出未来研究方向。
提出的方法
- 将前缀提示微调(一种轻量级提示微调方法)应用于统一的序列到序列多模态预训练模型,以支持理解与生成任务。
- 冻结预训练模型的大部分参数,仅微调提示嵌入与输出层,将可训练参数减少至约1%。
- 在Transformer编码器与解码器的多个层中插入可学习的提示标记,并通过消融实验研究插入深度(仅编码器、仅解码器或两者均插入)。
- 通过多层感知机(MLP)进行重参数化以稳定训练并改善优化效果,与直接优化提示嵌入的方法进行对比。
- 采用统一的序列到序列框架,支持基于视觉与文本的任务,实现端到端微调,且仅需极少的参数更新。
实验结果
研究问题
- RQ1提示微调是否能在生成式多模态预训练模型中实现与全量微调相当的性能?
- RQ2在多模态设置下,提示微调与其它轻量级微调方法(如适配器和BitFit)相比表现如何?
- RQ3提示长度、深度及重参数化对下游任务性能与鲁棒性有何影响?
- RQ4与微调模型相比,提示微调是否能提升模型对对抗攻击的鲁棒性?
- RQ5在多模态生成任务中,哪些超参数配置能实现提示微调的最优性能?
主要发现
- 提示微调仅使用约1%的参数即可实现与全量微调相当的性能,显著降低计算成本。
- 提示微调模型在对抗攻击下表现出优于微调模型的鲁棒性。
- 64个标记的提示长度在各项任务上平均表现最佳,提示过长则收益递减甚至导致性能下降。
- 在Transformer模型的所有层中插入提示可获得最佳性能,尽管仅在编码器中插入的方案也优于仅在解码器中插入的方案。
- 通过MLP进行重参数化在部分数据集(如RefCOCO、RefCOCOg)上提升性能,但在其他数据集(如SNLI-VE、VQA)上反而损害性能,表明其效果具有上下文依赖性。
- 提示微调收敛缓慢,部分基准需至少40个周期才能达到最优性能,凸显其虽具效率优势但仍存在关键局限性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。