如何在您的DETR中通过匈牙利语进行反向传播?
How to Backpropagate through Hungarian in Your DETR?
摘要:
使用Transformer编码器-解码器架构和基于集合的全局损耗的检测transformer(DETR)方法已经成为许多基于Transformer的应用中的构建块。然而,如最初提出的,分配成本和全局损失不一致,即,减少前者有可能但不能保证减少后者。当使用组合求解器(如匈牙利)时,忽略了梯度问题。在本文中,我们表明,全球损失可以表示为一个分配独立的长期,和分配相关的长期,可以用来定义分配成本矩阵的总和。最近的结果广义梯度的最优分配成本相对于参数的分配问题,然后用于定义广义梯度的损失相对于网络参数,并进行适当的反向传播。我们的实验使用相同的损失权重显示出有趣的收敛特性和进一步提高性能的潜力。
英文摘要:
The DEtection TRansformer (DETR) approach, which uses a transformer encoder-decoder architecture and a set-based global loss, has become a building block in many transformer based applications. However, as originally presented, the assignment cost and the global loss are not aligned, i.e., reducing the former is likely but not guaranteed to reduce the latter. And the issue of gradient is ignored when a combinatorial solver such as Hungarian is used. In this paper we show that the global loss can be expressed as the sum of an assignment-independent term, and an assignment-dependent term which can be used to define the assignment cost matrix. Recent results on generalized gradients of optimal assignment cost with respect to parameters of an assignment problem are then used to define generalized gradients of the loss with respect to network parameters, and backpropagation is carried out properly. Our experiments using the same loss weights show interesting convergence properties and a potential for further performance improvements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。