Improving MPI Error Detection and Repair with Large Language Models and Bug References
Not on the map. Why?
Abstract (arXiv)
Message Passing Interface (MPI) is a foundational technology in high-performance computing (HPC), widely used for large-scale simulations and distributed training (e.g., in machine learning frameworks such as PyTorch and TensorFlow). However, maintaining MPI programs remains challenging due to their complex interplay among processes and the intricacies of message passing and synchronization. With the advancement of large language models like ChatGPT, it is tempting to adopt such technology for automated error detection and repair. Yet, our studies reveal that directly applying large language models (LLMs) yields suboptimal results, largely because these models lack essential knowledge about correct and incorrect usage, particularly the bugs found in MPI programs. In this paper, we design a bug detection and repair technique alongside Few-Shot Learning (FSL), Chain-of-Thought (CoT) reasoning, and Retrieval Augmented Generation (RAG) techniques in LLMs to enhance the large language model's ability to detect and repair errors. Surprisingly, such enhancements lead to a significant improvement, from 44% to 77%, in error detection accuracy compared to baseline methods that use ChatGPT directly. Additionally, our experiments demonstrate our bug referencing technique generalizes well to other large language models.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 20 of its 44 references that are in the map. First posted on arXiv 2 Apr 2026.
Builds on
20 of 44 references.
References · 20
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 144
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 138
- 2024Evaluating Retrieval Quality in Retrieval-Augmented Generationcited by 90
- 2023Prompt-Enhanced Software Vulnerability Detection Using ChatGPTcited by 51
- 2022Retrieval-Enhanced Machine Learningcited by 46
- 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
- 2023Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Studycited by 44
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
8 more
- 2016A Survey of Symbolic Execution Techniquescited by 36
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
- 2023A study on Prompt Design, Advantages and Limitations of ChatGPT for Deep Learning Program Repaircited by 26
- 2018An Empirical Study of Fault Localization Families and Their Combinationscited by 13
- 2024Enhancing Automated Program Repair with Solution Designcited by 8
- 2024FlexFL: Flexible and Effective Fault Localization with Open-Source Large Language Modelscited by 8
- 2024Leveraging Lecture Content for Improved Feedback: Explorations with GPT-4 and Retrieval Augmented Generationcited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Large Language Models for Programming: Actually Fixing or Reimplementing Incorrect Code?
- 2026Exploring the Role of LLMs in HPC Programming: A Survey
- 2025Large Language Models for Fault Localization: An Empirical Study ↗
- 2024Aligning the Objective of LLM-based Program Repair
- 2024Multi-Task Program Error Repair and Explanatory Diagnosis
- 2025ReaLM: Reliable and Efficient Large Language Model Inference with Statistical Algorithm-Based Fault Tolerance
- 2025Automated Repair of C Programs Using Large Language Models
- 2025MPBench: A Comprehensive Multimodal Reasoning Benchmark for Process Errors Identification