深度学习·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这个区间 最合适。
相关推荐
翻滚的芋头1 分钟前
注意力机制
人工智能
陈天伟教授4 分钟前
《数据处理和标注技术》课程能力图谱
人工智能·算法
海宇数据4 分钟前
零信任架构实战:基于海宇公安二要素认证即时版构建自动化消费金融实名合规网关
人工智能·金融·架构·自动化
用户9788587019506 分钟前
资料换版以后,我先清旧索引,再做一轮短词补查
人工智能
一楼的猫6 分钟前
第十一届中国教育后勤展览会杭州开幕 夏拾光影像为阿里、淘宝闪购提供云相册直播与视频服务 - 夏拾光影像
大数据·人工智能·音视频
飞猫的边缘AI8 分钟前
智能制造与EDA版图仿真
人工智能·芯片·边缘ai
智行合一科技13 分钟前
中国互联网营销发展报告发布,GEO与代理式AI成焦点
人工智能
禁默17 分钟前
论文解读与思考:基于场所地图的标识感知机器人探索方法及工程参考的价值
人工智能·深度学习·算法·机器人
青衫烟雨18 分钟前
DeepSeek 崩了 5 小时:你的 AI 应用为什么跟着一起挂?
人工智能·架构
loulanyue_20 分钟前
不改一个参数底座的智能跃迁:智谱GLM-5.3极致后训练与Slime长程强化学习——读智谱AI技术报告与《Lau博士的云组会》深度解析
人工智能