arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.14204cs.CV
收藏

分桶排序损失用于目标检测器的高效训练

Bucketed Ranking-based Losses for Efficient Training of Object Detectors

METU(中东科技大学);Five AI Ltd.(Five AI有限公司);METU ROMER Robotics Center(中东科技大学ROMER机器人中心)

Feyza Yavuz, Baris Can Cam, Adnan Harun Dogan, Kemal Oksuz, Emre Akbas, Sinan Kalkan

AI总结:

本文提出分桶排序损失,通过将负预测分组减少成对比较,将时间复杂度从O(PN)降至O(max(N log(N), P^2)),在保持精度的同时实现2倍加速,并首次成功训练基于变换器的检测器。

摘要:

排序损失函数,如平均精度损失和排序损失,在目标检测中优于广泛使用的基于分数的损失函数。这些损失函数与评估标准更一致,具有更少的超参数,并对正负类别之间的不平衡具有鲁棒性。然而,它们需要对P个正预测和N个负预测进行成对比较,引入时间复杂度O(PN),由于N通常很大(例如,在ATSS中为10^8),这是不可行的。尽管有这些优点,排序损失函数的广泛采用因其高时间和空间复杂度而受到阻碍。在本文中,我们专注于提高排序损失函数的效率。为此,我们提出了分桶排序损失,将负预测分组到B个桶中(B << N),以减少成对比较的数量,从而降低时间复杂度。我们的方法提高了时间复杂度,将其降低到O(max(N log(N), P^2))。为了验证我们的方法并展示其通用性,我们在2个不同任务、3个不同数据集、7个不同检测器上进行了实验。我们表明,分桶排序(BR)损失与未分桶版本产生相同的精度,并平均提供2倍更快的训练。我们还首次使用排序损失训练基于变换器的目标检测器,这得益于我们BR的效率。当我们使用我们的BR损失训练CoDETR(一种最先进的基于变换器的目标检测器)时,我们在几个不同的骨干网络上始终优于其原始结果。代码可在https://github.com/blisgard/BucketedRankingBasedLosses获取。

英文摘要:

Ranking-based loss functions, such as Average Precision Loss and Rank&Sort Loss, outperform widely used score-based losses in object detection. These loss functions better align with the evaluation criteria, have fewer hyperparameters, and offer robustness against the imbalance between positive and negative classes. However, they require pairwise comparisons among $P$ positive and $N$ negative predictions, introducing a time complexity of $\mathcal{O}(PN)$, which is prohibitive since $N$ is often large (e.g., $10^8$ in ATSS). Despite their advantages, the widespread adoption of ranking-based losses has been hindered by their high time and space complexities. In this paper, we focus on improving the efficiency of ranking-based loss functions. To this end, we propose Bucketed Ranking-based Losses which group negative predictions into $B$ buckets ($B \ll N$) in order to reduce the number of pairwise comparisons so that time complexity can be reduced. Our method enhances the time complexity, reducing it to $\mathcal{O}(\max (N \log(N), P^2))$. To validate our method and show its generality, we conducted experiments on 2 different tasks, 3 different datasets, 7 different detectors. We show that Bucketed Ranking-based (BR) Losses yield the same accuracy with the unbucketed versions and provide $2\times$ faster training on average. We also train, for the first time, transformer-based object detectors using ranking-based losses, thanks to the efficiency of our BR. When we train CoDETR, a state-of-the-art transformer-based object detector, using our BR Loss, we consistently outperform its original results over several different backbones. Code is available at https://github.com/blisgard/BucketedRankingBasedLosses

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑