mlsanityData to 14 Oct 2026

SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning

arXiv 2511.19422 ↗First posted 24 Nov 2025cs.SE cs.AI cs.PLcited by 2

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have shown impressive capabilities in code generation across many programming languages but even state-of-the-art LLMs generate programs that contain syntactic errors and fail to complete the given tasks, especially for low-resource programming languages (LRPLs). In addition, the high cost of training makes finetuning LLMs unaffordable for those with constrained computational resources, further weakening the effectiveness of LLMs for code generation. In this work, we propose SLMFix, a novel code generation pipeline that leverages a small language model (SLM) finetuned using reinforcement learning (RL) techniques to fix syntactic errors in LLM-generated programs for domain-specific languages (DSLs) based on interpreter feedback. Our experimental results demonstrate the effectiveness and generalizability of our approach across multiple DSLs, improving the validator pass rates by 40% on LRPLs and eliminating more than 50% of syntactic errors for high-resource DSLs. Notably, SLMFix brings substantial performance improvement to the base model and outperforms supervised finetuning approach even for 7B models on LRPLs including Ansible and Lean, showing the potential of our approach in improving the quality of LLM-generated programs.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 27 of its 49 references that are in the map. First posted on arXiv 24 Nov 2025.

Builds on

27 of 49 references.

References · 27

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  6. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  7. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  8. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  9. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  10. 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 126
  11. 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
  12. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 111
15 more
  1. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 102
  2. 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 98
  3. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
  4. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 47
  5. 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
  6. 2024Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distancecited by 26
  7. 2025Process-Supervised Reinforcement Learning for Code Generationcited by 22
  8. 2024RePair: Automated Program Repair with Process-based Feedbackcited by 16
  9. 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
  10. 2025Towards Formal Verification of LLM-Generated Code from Natural Language Promptscited by 8
  11. 2022MultiCoder: Multi-Programming-Lingual Pre-Training for Low-Resource Code Completioncited by 6
  12. 2025Grammar-Based Code Representation: Is It a Worthy Pursuit for LLMs?cited by 5
  13. 2024Chain of Targeted Verification Questions to Improve the Reliability of Code Generated by LLMscited by 3
  14. 2024FastFixer: An Efficient and Effective Approach for Repairing Programming Assignmentscited by 3
  15. 2025How Small is Enough? Empirical Evidence of Quantized Small Language Models for Automated Program Repaircited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning
  2. 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey
  3. 2025ACE-RLHF: Automated Code Evaluation and Socratic Feedback Generation Tool using Large Language Models and Reinforcement Learning with Human Feedback
  4. 2024CHAI for LLMs: Improving Code-Mixed Translation in Large Language Models through Reinforcement Learning with AI Feedback
  5. 2026Learn2Zinc: Fine-tuning Small Language Models for Text-to-Model Translation in MiniZinc
  6. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback
  7. 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning
  8. 2024RLSF: Fine-tuning LLMs via Symbolic Feedback