深度学习·VPT

VPT

  • 核心思想:冻结backbone,在encoder的输入中
    引入额外可学习的token,微调这些token和decoder部分,避免直接调整backbone。
  • 两种方法:Deep和Shallow
    只有第一层的prompt token是可以学习的参数

    每一层 transformer layer的prompt token都是可以学习的参数

VPT的应用

  • VIT模型
  • SWIN transformer,这个有点不同,没有cls token。

VPT on hierarchical Transformers. We extend VPT to Swin 52, which employs MSA within local shifted windows and merges patch embeddings at deeper layers. For simplicity and without loss of generality, we implement VPT in the most straightforward manner: the prompts are attended within the local windows, but are ignored during patch merging stages. The experiments are conducted on the ImageNet-21k supervised pre-trained Swin-Base. VPT continues to outperform other parameter-efficient fine-tuning methods (b, c) for all three subgroups of VTAB Tab. 2, though in this case Full yields the highest accuracy scores overall (at a heavy cost in total parameters).

VPT的探究

prompt的位置

  • 结论:就是作为独立的输入最好
  • 1:直接单独作为输入的一部分,与patch embedding分开
  • 2:与patch embedding进行累加
  • 3:在embedding,前加入prompt
  • 4:在embeddingprompt作为一个通道加入

prompt length

  • 可以看到10~100这个区间 最合适。
相关推荐
FlechazoCLF3 分钟前
车载底软面经回忆|桦之坚(机器人 · 基础软件)
人工智能
海边夕阳200644 分钟前
智能体 AI 架构的务实转向:从架构狂欢到治理优先
人工智能·自然语言处理·架构
会飞锦鲤1 小时前
基于Mask R-CNN 手机屏幕缺陷检测
pytorch·深度学习·计算机视觉·缺陷检测·实例分割·工业视觉·mask r-cnn
Csvn1 小时前
WorkBuddy 使用指南:连上不等于有权限-外部数据接入与排障
人工智能
回眸&啤酒鸭2 小时前
【回眸】AI 大模型驱动 Tessy 单元测试集成效果全景展示
网络·人工智能·单元测试
AI视频工具指南2 小时前
怎么用AI写短剧里的误会?猫斯卡、小云雀、LibTV对比
人工智能·aigc
邂逅and回眸3 小时前
具身评测:怎么衡量一个机器人模型的好坏
人工智能·机器人
世冠科技3 小时前
世冠科技董事长李京燕受邀出席第三十八届中国仿真大会并作主旨报告
人工智能·科技
aifannihao3 小时前
AI 学习第 29 课:loss 不动先查梯度,177 的范数不是爆炸是累积
pytorch·深度学习·梯度·学习路线·训练监控