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

通过上下文单样本演示实现自适应跨语言文本分类

Adaptive Cross-lingual Text Classification through In-Context One-Shot Demonstrations

Mathematics Research Center (CIMAT)(数学研究中心(CIMAT));Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Consejo Nacional de Humanidades, Ciencias y Tecnologías(国家人文科学技术委员会);University of Houston(休斯顿大学)

Emilio Villa-Cueva, A. Pastor López-Monroy, Fernando Sánchez-Vega, Thamar Solorio

AI总结:

本文提出IC-XLT框架,通过目标语言单样本上下文演示使mT5在推理时自适应,提升跨语言分类性能,并在源语言数据有限时保持竞争力。

摘要:

零样本跨语言迁移(ZS-XLT)利用在源语言上训练的模型对另一种语言进行预测,但通常会出现性能损失。为缓解这一问题,可以在后续使用目标语言中的示例进行自适应,从而获得进一步提升。本文针对分类任务中的单样本跨语言迁移,利用上下文调优(ICT),提出了上下文跨语言迁移(IC-XLT)。这一新概念包括训练模型从上下文示例中学习,随后在推理时通过在该语言前添加一个单样本上下文演示,使其自适应到目标语言。结果表明,IC-XLT成功利用目标语言示例提升了所评估mT5模型的跨语言能力,在零样本和少样本场景中优于通过微调进行自适应的基于提示的模型。此外,我们还表明,当源语言数据有限时,IC-XLT所采用的微调框架可与使用显著更多源语言训练数据的基于提示的微调取得相当性能。

英文摘要:

Zero-Shot Cross-lingual Transfer (ZS-XLT) utilizes a model trained in a source language to make predictions in another language, often with a performance loss. To alleviate this, additional improvements can be achieved through subsequent adaptation using examples in the target language. In this paper, we exploit In-Context Tuning (ICT) for One-Shot Cross-lingual transfer in the classification task by introducing In-Context Cross-lingual Transfer (IC-XLT). The novel concept involves training a model to learn from context examples and subsequently adapting it during inference to a target language by prepending a One-Shot context demonstration in that language. Our results show that IC-XLT successfully leverages target-language examples to improve the cross-lingual capabilities of the evaluated mT5 model, outperforming prompt-based models in the Zero and Few-shot scenarios adapted through fine-tuning. Moreover, we show that when source-language data is limited, the fine-tuning framework employed for IC-XLT performs comparably to prompt-based fine-tuning with significantly more training data in the source language.

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

↑