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

雇佣一位语言学家!:利用上下文语言学描述学习濒危语言

Hire a Linguist!: Learning Endangered Languages with In-Context Linguistic Descriptions

Carnegie Mellon University(卡内基梅隆大学);UC Santa Barbara(加州大学圣巴巴拉分校)

Kexun Zhang, Yee Man Choi, Zhenqiao Song, Taiqi He, William Yang Wang, Lei Li

AI总结:

提出LINGOLLM,一种无需训练的方法,通过在LLM提示中注入语言学知识(词典、语法书、形态分析),显著提升GPT-4和Mixtral在8种濒危语言5任务上的翻译能力,BLEU从0升至10.5。

摘要:

大型语言模型(LLMs)如何处理和翻译濒危语言?许多语言缺乏大型语料库来训练像样的LLM;因此现有的LLMs在未见的、濒危语言上表现不佳。相反,我们观察到2000种濒危语言虽然没有大型语料库,但有语法书或词典。我们提出了LINGOLLM,一种无需训练的方法,使LLM能够处理在其预训练中几乎未出现的未见语言。我们的核心见解是在LLM的提示中展示未见语言的语言学知识,包括词典、语法书和形态学分析的输入文本。我们在GPT-4和Mixtral两个模型上实现了LINGOLLM,并在8种濒危或低资源语言的5项任务上评估了其性能。结果表明,LINGOLLM将GPT-4的翻译能力从0提升至10.5 BLEU,覆盖10个语言方向。我们的发现证明了在LLM时代语言学知识对濒危语言的巨大价值。数据、代码和模型生成可在https://github.com/LLiLab/llm4endangeredlang找到。

英文摘要:

How can large language models (LLMs) process and translate endangered languages? Many languages lack a large corpus to train a decent LLM; therefore existing LLMs rarely perform well in unseen, endangered languages. On the contrary, we observe that 2000 endangered languages, though without a large corpus, have a grammar book or a dictionary. We propose LINGOLLM, a training-free approach to enable an LLM to process unseen languages that hardly occur in its pre-training. Our key insight is to demonstrate linguistic knowledge of an unseen language in an LLM's prompt, including a dictionary, a grammar book, and morphologically analyzed input text. We implement LINGOLLM on top of two models, GPT-4 and Mixtral, and evaluate their performance on 5 tasks across 8 endangered or low-resource languages. Our results show that LINGOLLM elevates translation capability from GPT-4's 0 to 10.5 BLEU for 10 language directions. Our findings demonstrate the tremendous value of linguistic knowledge in the age of LLMs for endangered languages. Our data, code, and model generations can be found at https://github.com/LLiLab/llm4endangeredlang.

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

↑