Can Large Language Models Code Like a Linguist?: A Case Study in Low Resource Sound Law Induction
Not on the map. Why?
Abstract (arXiv)
Historical linguists have long written a kind of incompletely formalized ''program'' that converts reconstructed words in an ancestor language into words in one of its attested descendants that consist of a series of ordered string rewrite functions (called sound laws). They do this by observing pairs of words in the reconstructed language (protoforms) and the descendent language (reflexes) and constructing a program that transforms protoforms into reflexes. However, writing these programs is error-prone and time-consuming. Prior work has successfully scaffolded this process computationally, but fewer researchers have tackled Sound Law Induction (SLI), which we approach in this paper by casting it as Programming by Examples. We propose a language-agnostic solution that utilizes the programming ability of Large Language Models (LLMs) by generating Python sound law programs from sound change examples. We evaluate the effectiveness of our approach for various LLMs, propose effective methods to generate additional language-agnostic synthetic data to fine-tune LLMs for SLI, and compare our method with existing automated SLI methods showing that while LLMs lag behind them they can complement some of their weaknesses.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 22 of its 53 references that are in the map. First posted on arXiv 18 Jun 2024.
Builds on
22 of 53 references.
References · 22
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Qwen Technical Reportcited by 3,344
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
10 more
- 2022Interactive Code Generation via Test-Driven User-Intent Formalizationcited by 50
- 2024Is Programming by Example solved by LLMs?cited by 27
- 2019Ab Antiquo: Neural Proto-language Reconstructioncited by 18
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
- 2020Optimal Neural Program Synthesis from Multimodal Specificationscited by 15
- 2024Constructions Are So Difficult That Even Large Language Models Get Them Right for the Wrong Reasonscited by 13
- 2024Improved Neural Protoform Reconstruction via Reflex Predictioncited by 6
- 2024Verbing Weirds Language (Models): Evaluation of English Zero-Derivation in Five LLMscited by 5
- 2021Sample-efficient Linguistic Generalizations through Program Synthesis: Experiments with Phonology Problemscited by 4
- 2024Automating Sound Change Prediction for Phylogenetic Inference: A Tukanoan Case Studycited by 4
Built on by
Citing papers per year: 2025: 2.
2 papers.