A Survey on LLM-Based Code Generation for Low-Resource and Domain-Specific Programming Languages
Sathvik Joel, Jie JW Wu, Fatemeh H. Fard · 2026 · 205 citationsRead the paper
Large Language Models (LLMs) have shown remarkable capabilities in code generation for popular programming languages. However, their performance in Low-Resource Programming Languages (LRPLs) and Domain-Specific Languages (DSLs) remains a critical challenge. This gap affects millions of developers—with Rust alone having 3.5 million users—who are currently unable to fully leverage LLM capabilities. LRPLs and DSLs face unique challenges, including severe data scarcity and, for DSLs, highly specialized syntax and semantics that are poorly represented in general-purpose datasets. Addressing these challenges is crucial as LRPLs and DSLs significantly enhance development efficiency in specialized domains and applications, including financial and scientific works. While several surveys on LLMs for software engineering and code exist, none comprehensively address the challenges and opportunities specific to LRPLs and DSLs. Our survey fills this gap by providing a systematic review of the current state, methodologies, and challenges in leveraging LLMs for code generation in LRPL and DSL. We filtered 111 papers from over 27,000 published studies from 2020–2024 to understand the capabilities and limitations of LLMs in these specialized domains. We also expanded our literature search to include five recent papers from 2024–2025. We report LLMs used, benchmarks, and metrics to evaluate code generation in LRPLs and DSLs, as well as strategies used to enhance LLM performance, and the collected datasets and curation methods in this context. We identified four main evaluation techniques used in the literature, along with several metrics to assess code generation in LRPL and DSL. We categorized the methods used for LLM improvement into six main groups and summarized the novel methods and architectures proposed by the researchers. We also classified different approaches used for data collection and preparation. While different techniques, metrics, and datasets are used, there is a lack of a standard approach and a benchmark dataset to evaluate code generation in several LRPLs and DSLs. We discuss several distinctions of the studied approaches with the ones used in High-Resource Programming Languages (HRPLs), as well as several challenges unique to these languages, especially DSLs. The challenges stem from the scarcity of data, the unique requirements, and specialized domains, which often need expertise guidelines or domain-specific tools. Accordingly, we provide insights into different research opportunities for the studied aspects. This survey serves as a comprehensive resource for researchers and practitioners working at the intersection of LLMs, software engineering, and specialized programming languages, providing a foundation for future advancements in LRPL and DSL code generation. A GitHub repository was created to organize the papers of this survey at https://github.com/jie-jw-wu/Survey-CodeLLM4LowResource-DSL .
What the full text shows
Shown in the lab- Unimax algorithm for balanced language distribution in training corpora improved low-resource language performance. — 66.48% improvement in pass@k (Low-resource languages vs. 12.94% decrease in high-resource languages)
- Code-to-code augmentation using knowledge distillation (Claude3-Haiku as teacher, DeepSeek-Coder-7B-Instruct as student) improved Verilog generation. — 76.1% pass@1 (Human) and 51.4% pass@1 (Machine) (VerilogEval benchmarks)
- Knowledge distillation for Verilog self-reflection surpassed GPT-4 Turbo in syntactic correctness. — 18.1% higher than GPT-4 Turbo (VerilogFixEval benchmark)
- Small-scale domain-specific pre-training (FLAME, 60M parameters) competed effectively with massive general models. — Comparable to Codex (175B parameters) (Excel formula last-mile repair and completion)
- Setup
- Analysis of 111 filtered papers (2020-2024) plus 5 recent papers (2024-2025) covering LRPLs and DSLs.
- How
- The authors conducted a systematic literature review using the Goal Question Metric (GQM) approach, filtering 116 papers from a pool of over 27,000 published between 2020 and 2025.
- Limitations
- Severe data scarcity for LRPLs and DSLs compared to high-resource languages. · Proprietary nature of many DSLs (e.g., Verilog, Ansible) prevents public data sharing. · Lack of standardized benchmarks and evaluation metrics for specialized languages. · High dependency on domain-specific expert judgment for evaluation.
Summarized by Gemma 4 from the open-access full text · 20 Nov 2026. Read it