arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.10636cs.LG
收藏

双编码器用于极端多标签分类

Dual-Encoders for Extreme Multi-Label Classification

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Google(谷歌);Google Research(谷歌研究院)

Nilesh Gupta, Devvrit Khatri, Ankit S Rawat, Srinadh Bhojanapalli, Prateek Jain, Inderjit Dhillon

AI总结:

针对极端多标签分类中双编码器性能不足的问题,提出解耦softmax损失和soft top-k损失,使标准双编码器在参数减少20倍的情况下,在最大数据集上Precision@1提升至多2%,匹配或超越SOTA方法。

摘要:

双编码器(DE)模型广泛用于检索任务,通常在开放问答基准上进行研究,这些基准往往以多类别和有限的训练数据为特征。相比之下,它们在多标签和数据丰富的检索设置(如极端多标签分类(XMC))中的性能仍未得到充分探索。目前的经验证据表明,DE模型在XMC基准上表现明显不足,而最先进(SOTA)方法通过为每个类别使用分类头,使可学习参数的数量与类别总数(语料库中的文档数)呈线性增长。为此,我们首先研究并强调现有的多标签对比训练损失不适用于在XMC任务上训练DE模型。我们提出了解耦softmax损失——对InfoNCE损失的一种简单修改——它克服了现有对比损失的局限性。我们进一步将我们的损失设计扩展到基于soft top-k算子的损失,该损失专门用于优化top-k预测性能。当使用我们提出的损失函数进行训练时,即使是在最大的XMC数据集上,标准DE模型单独就能在Precision@1上匹配或超越SOTA方法,最高可提升2%,同时可训练参数数量减少20倍。这导致了更参数高效且普遍适用的检索任务解决方案。我们的代码和模型可在https://github.com/nilesh2797/dexml公开获取。

英文摘要:

Dual-encoder (DE) models are widely used in retrieval tasks, most commonly studied on open QA benchmarks that are often characterized by multi-class and limited training data. In contrast, their performance in multi-label and data-rich retrieval settings like extreme multi-label classification (XMC), remains under-explored. Current empirical evidence indicates that DE models fall significantly short on XMC benchmarks, where SOTA methods linearly scale the number of learnable parameters with the total number of classes (documents in the corpus) by employing per-class classification head. To this end, we first study and highlight that existing multi-label contrastive training losses are not appropriate for training DE models on XMC tasks. We propose decoupled softmax loss - a simple modification to the InfoNCE loss - that overcomes the limitations of existing contrastive losses. We further extend our loss design to a soft top-k operator-based loss which is tailored to optimize top-k prediction performance. When trained with our proposed loss functions, standard DE models alone can match or outperform SOTA methods by up to 2% at Precision@1 even on the largest XMC datasets while being 20x smaller in terms of the number of trainable parameters. This leads to more parameter-efficient and universally applicable solutions for retrieval tasks. Our code and models are publicly available at https://github.com/nilesh2797/dexml.

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

↑