Fine-Tuning Code Language Models to Detect Cross-Language Bugs
Zengyang Li, Yimeng Li, Binbin Huang, Peng Liang, Ran Mo, Hui Liu, Yutao Ma

TL;DR
This paper explores the use of fine-tuned code language models for detecting cross-language bugs in multilingual programming, demonstrating that targeted fine-tuning improves detection accuracy.
Contribution
It introduces CLCFinder, a dataset for cross-language bugs, and shows that fine-tuning CodeLMs enhances their ability to detect these bugs, especially with larger datasets.
Findings
All 13 CodeLMs improved after fine-tuning.
Small CodeLMs sometimes outperform larger ones.
Increasing dataset size boosts performance.
Abstract
Multilingual programming, which involves using multiple programming languages (PLs) in a single project, is increasingly common due to its benefits. However, it introduces cross-language bugs (CLBs), which arise from interactions between different PLs and are difficult to detect by single-language bug detection tools. This paper investigates the potential of pre-trained code language models (CodeLMs) in CLB detection. We developed CLCFinder, a cross-language code identification tool, and constructed a CLB dataset involving three PL combinations (Python-C/C++, Java-C/C++, and Python-Java) with nine interaction types. We fine-tuned 13 CodeLMs on this dataset and evaluated their performance, analyzing the effects of dataset size, token sequence length, and code comments. Results show that all 13 CodeLMs exhibited varying degrees of performance improvement after fine-tuning, with…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
