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

示例编程与历史语言学相结合:一种基于大型语言模型的语音定律归纳方法

Programming by Examples Meets Historical Linguistics: A Large Language Model Based Approach to Sound Law Induction

Carnegie Mellon University(卡内基梅隆大学);Ohio State University(俄亥俄州立大学)

Atharva Naik, Darsh Agrawal, Hong Sng, Clayton Marr, Kexun Zhang, Nathaniel R Robinson, Kalvin Chang, Rebecca Byrnes, Aravind Mysore, Carolyn Rose, David R Mortensen

AI总结:

本文将自动语音定律归纳表述为示例编程,提出四种合成数据生成方法,并基于此创建了性能提升6%且参数量更少的最先进开源模型。

摘要:

历史语言学家长期以来编写“程序”,通过有序的字符串重写函数(称为语音定律)将祖先语言中的重建词转换为其有文献证明的后代词。然而,编写这些程序非常耗时,这促使了自动语音定律归纳(SLI)的发展,我们在本文中将其表述为使用大型语言模型(LLMs)的示例编程(PBE)。虽然LLMs在代码生成方面很有效,但最近的研究表明PBE具有挑战性,但可以通过微调来改进,特别是当训练数据与评估数据来自相同分布时。在本文中,我们创建了一个概念框架,说明什么构成了SLI的“相似分布”,并提出了四种具有不同归纳偏置程度的合成数据生成方法,以研究什么能带来最佳性能。基于结果,我们创建了一个作为PBE的SLI的最先进开源模型(通过率提高6%,参数量仅为第二好的LLM的三分之一),并强调了PBE研究令人兴奋的未来方向。

英文摘要:

Historical linguists have long written "programs" that convert reconstructed words in an ancestor language into their attested descendants via ordered string rewrite functions (called sound laws) However, writing these programs is time-consuming, motivating the development of automated Sound Law Induction (SLI) which we formulate as Programming by Examples (PBE) with Large Language Models (LLMs) in this paper. While LLMs have been effective for code generation, recent work has shown that PBE is challenging but improvable by fine-tuning, especially with training data drawn from the same distribution as evaluation data. In this paper, we create a conceptual framework of what constitutes a "similar distribution" for SLI and propose four kinds of synthetic data generation methods with varying amounts of inductive bias to investigate what leads to the best performance. Based on the results we create a SOTA open-source model for SLI as PBE (+6% pass rate with a third of the parameters of the second-best LLM) and also highlight exciting future directions for PBE research.

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

↑