arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2104.03820cs.HCcs.SE
收藏

不需要完美?代码翻译中的人机合作伙伴关系

Perfection Not Required? Human-AI Partnerships in Code Translation

Justin D. Weisz, Michael Muller, Stephanie Houde, John Richards, Steven I. Ross, Fernando Martinez, Mayank Agarwal, Kartik Talamadupula

摘要:

生成模型已经能够熟练地以类似人类的熟练程度生成图像、视频和散文等工件。新的生成技术(例如无监督神经机器翻译(NMT))最近已应用于生成源代码的任务,将其从一种程序设计语言翻译为另一种。以这种方式产生的工件可能包含不完善之处,例如编译或逻辑错误。我们研究了软件工程师容忍这种缺陷的程度,并探索了帮助检测和纠正这些错误的方法。使用设计场景的方法,我们采访了11名软件工程师,以了解他们的反应使用NMT模型的应用程序现代化的背景下,专注于从一种语言到另一种语言的源代码翻译的任务。我们的三阶段方案引发了关于使用不完美的AI系统的实用性和可取性的讨论,如何建立对该系统输出的接受,以及生成式人工智能在应用程序现代化中的未来机会。我们的研究强调了UI功能(如置信度突出显示和替代翻译)如何帮助软件工程师使用并更好地理解生成NMT模型。

英文摘要:

Generative models have become adept at producing artifacts such as images, videos, and prose at human-like levels of proficiency. New generative techniques, such as unsupervised neural machine translation (NMT), have recently been applied to the task of generating source code, translating it from one programming language to another. The artifacts produced in this way may contain imperfections, such as compilation or logical errors. We examine the extent to which software engineers would tolerate such imperfections and explore ways to aid the detection and correction of those errors. Using a design scenario approach, we interviewed 11 software engineers to understand their reactions to the use of an NMT model in the context of application modernization, focusing on the task of translating source code from one language to another. Our three-stage scenario sparked discussions about the utility and desirability of working with an imperfect AI system, how acceptance of that system's outputs would be established, and future opportunities for generative AI in application modernization. Our study highlights how UI features such as confidence highlighting and alternate translations help software engineers work with and better understand generative NMT models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑