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

N2C2:面向跨语言上下文学习的最近邻增强置信度校准

N2C2: Nearest Neighbor Enhanced Confidence Calibration for Cross-Lingual In-Context Learning

School of Informatics, University of Edinburgh(爱丁堡大学信息学院);School of Computer Science and Informatics, Cardiff University(卡迪夫大学计算机科学与信息学院);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部)

Jie He, Simon Yu, Deyi Xiong, Víctor Gutiérrez-Basulto, Jeff Z. Pan

AI总结:

本文提出N2C2方法,通过k-最近邻增强分类器校准跨语言上下文学习的预测置信度,在准确率和校准误差上超越微调及现有最优方法。

摘要:

上下文学习(ICL)的最新进展表明,当提供演示示例时,语言模型可以显著提升其性能。然而,在跨语言场景下,ICL的模型校准和预测置信度问题很少受到关注。为弥补这一空白,我们对跨语言情感分类中的ICL进行了深入分析。研究发现,ICL在跨语言场景中表现不佳,准确率较低且校准误差较高。为此,我们提出了一种新方法N2C2,该方法采用k-最近邻增强分类器进行预测置信度校准。N2C2通过利用缓存少样本实例的数据存储来缩小预测差距。具体而言,N2C2整合了来自数据存储的预测,并引入置信度感知分布、语义一致的检索表示和自适应邻居组合模块,以有效利用数量有限的支持实例。在两个多语言情感分类数据集上的评估表明,N2C2优于传统ICL,在准确率和校准误差方面超越了微调、提示微调以及近期最先进的方法。

英文摘要:

Recent advancements of in-context learning (ICL) show language models can significantly improve their performance when demonstrations are provided. However, little attention has been paid to model calibration and prediction confidence of ICL in cross-lingual scenarios. To bridge this gap, we conduct a thorough analysis of ICL for cross-lingual sentiment classification. Our findings suggest that ICL performs poorly in cross-lingual scenarios, exhibiting low accuracy and presenting high calibration errors. In response, we propose a novel approach, N2C2, which employs a -nearest neighbors augmented classifier for prediction confidence calibration. N2C2 narrows the prediction gap by leveraging a datastore of cached few-shot instances. Specifically, N2C2 integrates the predictions from the datastore and incorporates confidence-aware distribution, semantically consistent retrieval representation, and adaptive neighbor combination modules to effectively utilize the limited number of supporting instances. Evaluation on two multilingual sentiment classification datasets demonstrates that N2C2 outperforms traditional ICL. It surpasses fine tuning, prompt tuning and recent state-of-the-art methods in terms of accuracy and calibration errors.

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

↑