Saved in:
Bibliographic Details
Main Authors: Zhang, Kexun, Choi, Yee Man, Song, Zhenqiao, He, Taiqi, Wang, William Yang, Li, Lei
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.18025
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916477312958464
author Zhang, Kexun
Choi, Yee Man
Song, Zhenqiao
He, Taiqi
Wang, William Yang
Li, Lei
author_facet Zhang, Kexun
Choi, Yee Man
Song, Zhenqiao
He, Taiqi
Wang, William Yang
Li, Lei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_18025
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Hire a Linguist!: Learning Endangered Languages with In-Context Linguistic Descriptions
Zhang, Kexun
Choi, Yee Man
Song, Zhenqiao
He, Taiqi
Wang, William Yang
Li, Lei
Computation and Language
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.
title Hire a Linguist!: Learning Endangered Languages with In-Context Linguistic Descriptions
topic Computation and Language
url https://arxiv.org/abs/2402.18025