当前位置:网站首页>Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
2022-07-06 14:53:00 【Rainylt】
paper: https://arxiv.org/pdf/2203.15332.pdf
一句话总结:解决多模态训练时主导模态训得太快导致辅助模态没训充分的问题
交叉熵损失函数:
其中,f(x)为
解耦一下:
其中,a表示audio模态,v表示visual模态,f(x)为softmax前的两个模态联合输出的logits。在这个任务中a为主导模态,即对于gt类别,a模态输出的logits更大
以 W a W^a Wa为例,L对 W a W^a Wa求导:
可以看到,根据链式求导法则, φ a \varphi^a φa是与a模态相关的输出, ∂ L ∂ f ( x i ) \frac{\partial{L}}{\partial{f(x_i)}} ∂f(xi)∂L的值对于两个模态都相同,因此影响对不同模态的梯度差异的就是后面这部分,也就是 φ \varphi φ的值。由于一般主导模态输出的logits较高,即 φ \varphi φ和 W W W的值较大,因此反传时的梯度也更大,收敛也更快。
因此可能会出现主导模态先训好了,loss降得比较低了,辅助模态还没训好的问题。具体为啥辅助模态不能接着训好,有待探究。
对于本文,为了减速主导模态训练,因此在求梯度时加个衰减系数,减少主导模态反传的梯度,相当于单独减小主导模态的学习率:
用两个模态各自输出logits的softmax后的score比值来确定
将比值大于1的(主导模态)设置衰减系数k(0~1),辅助模态为1(不变)
与学习率相乘,相当于减小学习率
此外,根据SGD的梯度反传过程,梯度可以推到为原梯度+高斯噪声:
学习率越大=>高斯噪声协方差越大=>泛化能力越强。这里减小学习率相当于削弱了主导模态的泛化能力。加了衰减系数后的梯度,方差缩小为原来的k^2倍:
因此,本文人为增加一个高斯噪声,方差=batch内样本的方差:
相当于噪声的协方差相比以前还变大了:
边栏推荐
- That's why you can't understand recursion
- Daily question 1: force deduction: 225: realize stack with queue
- [sdx62] wcn685x will bdwlan Bin and bdwlan Txt mutual conversion operation method
- Build op-tee development environment based on qemuv8
- PVL EDI project case
- 12、 Start process
- Senior soft test (Information System Project Manager) high frequency test site: project quality management
- 剑指offer刷题记录1
- 新手程序员该不该背代码?
- Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
猜你喜欢
Self made j-flash burning tool -- QT calls jlinkarm DLL mode
在IPv6中 链路本地地址的优势
Attack and defense world ditf Misc
C # realizes crystal report binding data and printing 4-bar code
Seata聚合 AT、TCC、SAGA 、 XA事务模式打造一站式的分布式事务解决方案
0 basic learning C language - digital tube
C# 三种方式实现Socket数据接收
The nearest common ancestor of binary (search) tree ●●
config:invalid signature 解决办法和问题排查详解
第4章:再谈类的加载器
随机推荐
Installation and use of labelimg
Assembly and interface technology experiment 5-8259 interrupt experiment
UDP编程
二分图判定
Unity3D学习笔记6——GPU实例化(1)
做接口测试都测什么?有哪些通用测试点?
RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
在IPv6中 链路本地地址的优势
NPDP认证|产品经理如何跨职能/跨团队沟通?
Should novice programmers memorize code?
0 basic learning C language - digital tube
The SQL response is slow. What are your troubleshooting ideas?
Assembly and Interface Technology Experiment 6 - ADDA conversion experiment, AD acquisition system in interrupt mode
Mysql database basic operations DML
const关键字
C#實現水晶報錶綁定數據並實現打印4-條形碼
CCNA-思科网络 EIGRP协议
Advantages of link local address in IPv6
云原生技术--- 容器知识点
lora同步字设置