arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.07320cs.CLcs.AI
收藏

基于上下文的翻译评估:同步上下文无关文法转换

Evaluating In-Context Translation with Synchronous Context-Free Grammar Transduction

New York University(纽约大学)

Jackson Petty, Jaulie Goe, Tal Linzen

AI总结:

本文研究LLM在低资源语言翻译中的挑战,通过构建形式文法模型评估翻译性能,发现语法规模、句子长度及语言差异显著影响翻译准确性。

摘要:

低资源语言对大型语言模型(LLM)的机器翻译构成挑战,因为LLM需要大量训练数据。一种可能的解决方法是利用LLM对语言上下文描述(如教科书和词典)的能力。为此,LLM必须能够推断语言的句法描述与句子之间的联系。本文通过形式文法的类比任务,构建同步上下文无关文法,定义形式语言对以模拟自然语言的句法、形态和书写表示。使用这些文法,我们测量LLM在给定文法和源语言句子时,将句子从一种形式语言翻译到另一种形式语言的准确性。我们变化文法大小、句子长度、语言的句法和形态属性以及书写符号。我们发现三个关键结论:首先,LLM的翻译准确性随着文法规模和句子长度显著下降。其次,源语言和目标语言之间形态和书写表示的差异会显著降低模型性能。第三,我们检查模型犯的错误类型,发现模型最易错误地回忆目标语言词汇、编造新词汇或遗漏源语言词汇。

英文摘要:

Low-resource languages pose a challenge for machine translation with large language models (LLMs), which require large amounts of training data. One potential way to circumvent this data dependence is to rely on LLMs' ability to use in-context descriptions of languages, like textbooks and dictionaries. To do so, LLMs must be able to infer the link between the languages' grammatical descriptions and the sentences in question. Here we isolate this skill using a formal analogue of the task: string transduction based on a formal grammar provided in-context. We construct synchronous context-free grammars which define pairs of formal languages designed to model particular aspects of natural language grammar, morphology, and written representation. Using these grammars, we measure how well LLMs can translate sentences from one formal language into another when given both the grammar and the source-language sentence. We vary the size of the grammar, the lengths of the sentences, the syntactic and morphological properties of the languages, and their written script. We note three key findings. First, LLMs' translation accuracy decreases markedly as a function of grammar size and sentence length. Second, differences in morphology and written representation between the source and target languages can strongly diminish model performance. Third, we examine the types of errors committed by models and find they are most prone to recall the wrong words from the target language vocabulary, hallucinate new words, or leave source-language words untranslated.

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

↑