Mainframe operating systems, despite their inception in the 1940s, continue to support critical sectors like finance and government. However, these systems are often viewed as outdated, requiring extensive maintenance and modernization. Addressing this challenge necessitates innovative tools that can understand and interact with legacy codebases. To this end, we introduce XMainframe, a state-of-the-art large language model (LLM) specifically designed with knowledge of mainframe legacy systems and COBOL codebases. Our solution involves the creation of an extensive data collection pipeline to produce high-quality training datasets, enhancing XMainframe's performance in this specialized domain. Additionally, we present MainframeBench, a comprehensive benchmark for assessing mainframe knowledge, including multiple-choice questions, question answering, and COBOL code summarization. Our empirical evaluations demonstrate that XMainframe consistently outperforms existing state-of-the-art LLMs across these tasks. Specifically, XMainframe achieves 30% higher accuracy than DeepSeek-Coder on multiple-choice questions, doubles the BLEU score of Mixtral-Instruct 8x7B on question answering, and scores six times higher than GPT-3.5 on COBOL summarization. Our work highlights the potential of XMainframe to drive significant advancements in managing and modernizing legacy systems, thereby enhancing productivity and saving time for software developers.
翻译:尽管大型机操作系统诞生于20世纪40年代,它们至今仍在支撑金融和政府等关键领域。然而,这些系统常被视为过时技术,需要大量维护和现代化改造。应对这一挑战需要能够理解并与遗留代码库交互的创新工具。为此,我们推出XMainframe——一个专门针对大型机遗留系统和COBOL代码库知识设计的最先进大型语言模型(LLM)。我们的解决方案包括构建一个大规模数据收集管道,以生成高质量训练数据集,从而提升XMainframe在这一专业领域的性能。此外,我们提出了MainframeBench——一个用于评估大型机知识的综合基准测试,涵盖多项选择题、问答任务和COBOL代码摘要生成。实证评估表明,XMainframe在所有任务中均持续超越现有最先进的LLM。具体而言,在多项选择题上XMainframe的准确率比DeepSeek-Coder高出30%,在问答任务上的BLEU分数是Mixtral-Instruct 8x7B的两倍,在COBOL摘要任务上的得分达到GPT-3.5的六倍。本项工作彰显了XMainframe在推动遗留系统管理与现代化方面取得重大进展的潜力,从而提升软件开发者的生产效率并节省时间。