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

这是什么语言?问你的分词器

What Language is This? Ask Your Tokenizer

EPFL(苏黎世联邦理工学院);University of Cambridge(剑桥大学)

Clara Meister, Ahmetcan Yavuz, Pietro Lesci, Tiago Pimentel

AI总结:

提出基于UnigramLM分词算法的UniLID方法,通过比较字符串在各语言单字分布下的似然进行语言识别,在低资源和细粒度方言场景下显著提升样本效率。

摘要:

语言识别(LID)是许多多语言自然语言处理流程中的重要组成部分,有助于语料库整理、训练数据分析和大型语言模型的跨语言评估。尽管在高资源语言上表现近乎完美,现有系统在低资源和紧密相关语言场景中仍然脆弱。我们提出了UniLID,一种基于UnigramLM分词算法的简单高效LID方法,利用其概率框架、参数估计技术和推理策略。简而言之,要预测字符串的语言标签,我们只需问:该字符串在哪种语言的单字分布下最可能?我们的公式在数据和计算上高效,支持增量添加新语言而无需重新训练现有模型,并且可以自然地集成到现有语言模型的分词流程中。对广泛使用的基线(包括fastText、GlotLID和CLD3)的实证评估表明,UniLID在标准基准上取得了有竞争力的性能,在低资源设置中显著提高了样本效率——每个语言仅需五个标记样本即可达到约70%的准确率——并在细粒度方言识别上取得了大幅提升。

英文摘要:

Language Identification (LID) is an important component of many multilingual natural language processing pipelines, where it facilitates corpus curation, training data analysis, and cross-lingual evaluation of large language models. Despite near-perfect performance on high-resource languages, existing systems remain brittle in low-resource and closely related language settings. We introduce UniLID, a simple and efficient LID method based on the UnigramLM tokenization algorithm. In short, to predict a string's language label, we simply ask: under which language's unigram distribution is this string most likely? Our formulation is data- and compute-efficient, supports incremental addition of new languages without retraining existing models, and can naturally be integrated into existing language model tokenization pipelines. Empirical evaluations against widely used baselines, including fasttext, GlotLID-M, and CLD3, show that UniLID achieves competitive performance on standard benchmarks, reaches 69% accuracy with five labeled samples per language and 89% with 25, and delivers large gains on fine-grained dialect identification.

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

↑