Knowledge-Enhanced Program Repair for Data Science Code
Not on the map. Why?
Abstract (arXiv)
This paper introduces DSrepair, a knowledge-enhanced program repair method designed to repair the buggy code generated by LLMs in the data science domain. DSrepair uses knowledge graph based RAG for API knowledge retrieval as well as bug knowledge enrichment to construct repair prompts for LLMs. Specifically, to enable knowledge graph based API retrieval, we construct DS-KG (Data Science Knowledge Graph) for widely used data science libraries. For bug knowledge enrichment, we employ an abstract syntax tree (AST) to localize errors at the AST node level. DSrepair's effectiveness is evaluated against five state-of-the-art LLM-based repair baselines using four advanced LLMs on the DS-1000 dataset. The results show that DSrepair surpasses all five baselines. Specifically, when compared to the second-best baseline, DSrepair demonstrates significant improvements, fixing 44.4%, 14.2%, 20.6%, and 32.1% more buggy code snippets for each of the four evaluated LLMs, respectively. Additionally, it achieves greater efficiency, reducing the number of tokens required per code task by 17.49%, 34.24%, 24.71%, and 17.59%, respectively.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Feb 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 23
- 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repaircited by 9
- 2025Rethinking Autonomy: Preventing Failures in AI-Driven Software Engineeringcited by 4
- 2025ViTAD: Timing Violation-Aware Debugging of RTL Code using Large Language Modelscited by 2
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2026Beyond Execution: Static-Analysis Rewards and Hint-Conditioned Diffusion RL for Code Generationcited by 0
- 2026Beyond Execution: Static-Analysis Rewards and Hint-Conditioned Diffusion RL for Code Generation16 May 2026
- 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair27 Feb 2026
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025ViTAD: Timing Violation-Aware Debugging of RTL Code using Large Language Models18 Aug 2025
- 2025Rethinking Autonomy: Preventing Failures in AI-Driven Software Engineering15 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2026From Discussion to Execution: Replicating Buggy and Correct Data Science Code ↗
- 2025Enhancing repository-level software repair via repository-aware knowledge graphs
- 2025Why Stop at One Error? Benchmarking LLMs as Data Science Code Debuggers for Multi-Hop and Multi-Bug Errors
- 2024ThinkRepair: Self-Directed Automated Program Repair
- 2025Detecting and Fixing API Misuses of Data Science Libraries Using Large Language Models ↗
- 2026Rethinking Automated Program Repair: The Impact of Bug Complexity, Fault Localization, and LLM Cost-efficiency
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repair
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models