EMNLP 20250 citations

Rust-doctor: Enhanced Feature for Rust Ownership and Lifetime Repair with Balanced Training Data Generation

Wenzhang Yang, Xiaoning Ren, Cuifeng Gao, Yinxing Xue

Abstract

As a relatively new programming language, Rust has gained significant popularity in recent years due to its safety features during compilation. However, Rust developers often face challenges stemming from its strict compilation checks due to the steep learning curve of safety rules. To make matters worse, the lack of training data and the unique semantics of Rust lead to poor performance in learning-based automated program repair techniques. To address these challenges, we propose a novel error injection approach to generate a balanced training dataset and leverage the Mid-level Intermediate Representation (MIR) as enhanced features for Rust’s unique compilation error repair. Using these innovations, we fine-tuned a new code model, LLaRRA: L arge L anguage a nd R ust R epair A ssistant. Experimental results demonstrate that LLaRRA significantly outperforms state-of-the-art models in terms of Pass@K and Acc@K.

BibTeX
@inproceedings{emnlp2025_rustdoctorenhanc,
  title = {Rust-doctor: Enhanced Feature for Rust Ownership and Lifetime Repair with Balanced Training Data Generation},
  author = {Wenzhang Yang and Xiaoning Ren and Cuifeng Gao and Yinxing Xue},
  booktitle = {EMNLP 2025},
  year = {2025}
}