BED:基于双编码器的分布外检测器
BED: Bi-Encoder-Based Detectors for Out-of-Distribution Detection
AI总结:
本文提出基于双编码器的OOD检测器,在多个NLP数据集上优于需/不需OOD标签的现有方法,训练简单且性能优越,并提供代码与基准。
摘要:
本文介绍了一种利用基于双编码器的检测器的新方法,并开展了一项综合研究,比较了使用不同特征提取器的自然语言处理(NLP)中各种分布外(OOD)检测方法。特征提取阶段采用通用句子编码器(USE)、BERT、MPNET和GLOVE等流行方法,从文本数据中提取信息丰富的表示。评估在多个数据集上进行,包括CLINC150、ROSTD-Coarse、SNIPS和YELLOW。使用F1分数、MCC、FPR@90、FPR@95、AUPR和AUROC等指标评估性能。实验结果表明,所提出的基于双编码器的检测器在所有数据集上均优于其他方法,无论是那些在训练中需要OOD标签的方法,还是不需要OOD标签的方法,显示出在NLP中进行OOD检测的巨大潜力。训练过程的简单性和优越的检测性能使其适用于现实场景。所提出的方法和基准指标为未来OOD检测研究提供了宝贵资源,推动该领域的进一步发展。代码和实现细节可在我们的GitHub仓库中找到:https://github.com/yellowmessenger/ood-detection。
英文摘要:
This paper introduces a novel method leveraging bi-encoder-based detectors along with a comprehensive study comparing different out-of-distribution (OOD) detection methods in NLP using different feature extractors. The feature extraction stage employs popular methods such as Universal Sentence Encoder (USE), BERT, MPNET, and GLOVE to extract informative representations from textual data. The evaluation is conducted on several datasets, including CLINC150, ROSTD-Coarse, SNIPS, and YELLOW. Performance is assessed using metrics such as F1-Score, MCC, FPR@90, FPR@95, AUPR, an AUROC. The experimental results demonstrate that the proposed bi-encoder-based detectors outperform other methods, both those that require OOD labels in training and those that do not, across all datasets, showing great potential for OOD detection in NLP. The simplicity of the training process and the superior detection performance make them applicable to real-world scenarios. The presented methods and benchmarking metrics serve as a valuable resource for future research in OOD detection, enabling further advancements in this field. The code and implementation details can be found on our GitHub repository: https://github.com/yellowmessenger/ood-detection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。