HCSEApr 8, 2021

Perfection Not Required? Human-AI Partnerships in Code Translation

arXiv:2104.03820v1171 citations
Originality Synthesis-oriented
AI Analysis

This research addresses the practical challenge of integrating imperfect AI tools into software engineering workflows, though it is incremental as it builds on existing generative models.

The study investigated software engineers' tolerance for imperfections in AI-generated code translations and explored UI features to aid error detection and correction, finding that features like confidence highlighting improved their ability to work with the system.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes