Improving MPI Error Detection and Repair with Large Language Models and Bug References

Scott Piersall, Yang Gao, Shenyang Liu, Liqiang Wang
4/2/2026
cs.SEcs.AI
rag

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{piersall2026improving,
  title  = {Improving MPI Error Detection and Repair with Large Language Models and Bug References},
  author = {Scott Piersall and Yang Gao and Shenyang Liu and Liqiang Wang},
  year   = {2026},
  eprint = {2604.02398},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.02398v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.02398.svg)](https://codeofpaper.com/paper/2604.02398)

Discussion