arXiv:2506.10984cs.SEcs.AI2025-06被引 1

用大模型提升代码现代化,解决可靠性与安全难题

Application Modernization with LLMs: Addressing Core Challenges in Reliability, Security, and Quality

  • 结合代码推理与生成能力,融合人类专家指导
  • 案例实证框架可有效应对真实场景的现代化挑战
  • 强调人工干预关键性,适合研发团队参考实践

AI辅助代码生成工具已显著提升软件开发效率与规模。然而,多项研究持续指出其存在安全漏洞、可靠性不足及生成代码不一致等问题。尽管基础模型与代码专用模型在缓解部分问题上取得进展,仍需提升输出质量与可信度。本文基于现有研究,提出一种聚焦代码推理与生成的改进框架,结合人类专家参与,系统应对应用现代化中的核心挑战。通过一个真实案例的详细分析,展示该框架的实施步骤与多种替代方案评估。研究旨在为未来AI驱动的应用现代化提供可操作的洞察与坚实基础。论文配套参考实现已开源至GitHub。

原文摘要 · Abstract (English)

AI-assisted code generation tools have revolutionized software development, offering unprecedented efficiency and scalability. However, multiple studies have consistently highlighted challenges such as security vulnerabilities, reliability issues, and inconsistencies in the generated code. Addressing these concerns is crucial to unlocking the full potential of this transformative technology. While advancements in foundational and code-specialized language models have made notable progress in mitigating some of these issues, significant gaps remain, particularly in ensuring high-quality, trustworthy outputs. This paper builds upon existing research on leveraging large language models (LLMs) for application modernization. It explores an opinionated approach that emphasizes two core capabilities of LLMs: code reasoning and code generation. The proposed framework integrates these capabilities with human expertise to tackle application modernization challenges effectively. It highlights the indispensable role of human involvement and guidance in ensuring the success of AI-assisted processes. To demonstrate the framework's utility, this paper presents a detailed case study, walking through its application in a real-world scenario. The analysis includes a step-by-step breakdown, assessing alternative approaches where applicable. This work aims to provide actionable insights and a robust foundation for future research in AI-driven application modernization. The reference implementation created for this paper is available on GitHub.

代码生成AI开发应用现代化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。