Better Together? An Evaluation of AI-Supported Code Translation

A lab study of software engineers at one technology company suggests that translating Java code to Python with AI translations from TransCoder cut the error rate by a relative 50.8% against translating alone. The engineers improved only slightly on the AI drafts they were given, and the paper reports no registration.

Weisz et al., 27th International Conference on Intelligent User Interfaces (IUI '22), March 22-25, 2022, Helsinki, February 15, 2022. AI used: TransCoder

Verdict

Verdict: High

What High means

Model vintage

TransCoder

Model: TransCoder (2020), Facebook AI's research code translation model, named in the study

Software engineers at one large technology company who volunteered, translating one familiar data structure from Java to Python.

So what for leaders

  1. Before you assign a code migration to AI drafts plus review, test it: have engineers translate a sample of your own code with and without the drafts, and count errors in the result.

Use this

Copies the finding, how far it generalizes and a link to this scorecard.

Cite this studyRead the paperDownload chart as SVG
  1. When you pilot, score the AI drafts for errors before review and again after. In this one study engineers improved only slightly on the drafts they got, so test whether your reviewers catch what a weak draft gets wrong.

Keep track of this study

Watch it and I'll email you if it's corrected, re-run or retracted, or a new study on the same kind of work is published. Nothing else. Save it to a pack for your next deck. Alerts aren't switched on yet. Your watches are kept, and the first email goes out when they are.

Just want the newsletter? Subscribe on Substack

The receipts

Setting
Lab task
Number studied (sample size)
2
Design
Non-random comparison (quasi-experiment)
Publication
Conference paper
Model vintage
TransCoder

How far it generalizes

Software engineers at one large technology company who volunteered, translating one familiar data structure from Java to Python. It travels weakly to large codebases, other language pairs and longer migration work.

Reduction in error rate, by arm
  • Presence of AI support
    +50.8%no interval reported

Percent (%)

Show as table
Reduction in error rate, by arm
ArmOutcomeEstimateIntervalUnitBetter whenSource
Presence of AI supportReduction in error rate+50.8No interval reportedPercent (%)Higherp. 13, Section 5.2.1

Design

Design
Non-random comparison (quasi-experiment)
Number studied (sample size)
2
Setting
Lab task
How I found it
Mined from Vaccaro et al. 2024 (scout batch 6, round 2), 2026-11-15

Who it applies to

Functions
Software engineering
Roles
Developers

Critique

What the study did well. Every engineer worked in both conditions, so each person is compared with themselves, and the order of tasks and conditions was balanced across people (Section 4). The outcome is errors found in the code each person wrote, divided by its length, not a self-report. The authors also varied the quality of the AI translations on purpose, which lets the study ask whether better drafts help more (Appendix B).

Hole 1: no reported registration. The paper mentions no registration, and it tests several outcomes and factors. The headline error result is the main stated test, but read the smaller results as leads.

Hole 2: one short timed session on textbook code. Each engineer translated a familiar textbook data structure in a single session with a fixed time limit, one the authors did not expect people to finish in. That says little about translating a large codebase, other language pairs, or work spread over days with review.

Hole 3: the authors scored the code. The authors designed the tasks and counted the errors themselves; the paper reports no outside, blinded graders.

Hole 4: small gains over the AI drafts. On average the engineers improved only slightly on the translations they received (Section 5.2.2). The paper also reports lower error rates with the better drafts than with the worse ones, so the result depends partly on draft quality.

Business significance

The shown result is a 50.8% relative reduction in error rate with AI translations against no AI, where error rate is the errors in a translation divided by its lines of code (p. 13, Section 5.2.1). It comes from a timed session in which nobody was expected to finish, so it measures the quality of partial work, not time saved or a finished migration.

For you, the useful point is that the engineers' own edits improved the drafts only slightly, so the result may depend on how good the draft is. It is not a staffing or cost number for a code migration, and the paper measures neither.

Does it still hold?

I have not re-run it. Participants worked from TransCoder translations, a research model that predates the 2022 paper. Current code models are newer, so both the error result and how much engineers improve on the draft may differ now; that is untested.

Cite this

The paper

Plain

Weisz, Justin D., Muller, Michael, Ross, Steven I., Martinez, Fernando, Houde, Stephanie, Agarwal, Mayank, Talamadupula, Kartik, and Richards, John T. (2022). Better Together? An Evaluation of AI-Supported Code Translation. 27th International Conference on Intelligent User Interfaces (IUI '22), March 22-25, 2022, Helsinki. https://doi.org/10.1145/3490099.3511157

APA

Weisz, Justin D., Muller, Michael, Ross, Steven I., Martinez, Fernando, Houde, Stephanie, Agarwal, Mayank, Talamadupula, Kartik, & Richards, John T. (2022). Better Together? An Evaluation of AI-Supported Code Translation. 27th International Conference on Intelligent User Interfaces (IUI '22), March 22-25, 2022, Helsinki. https://doi.org/10.1145/3490099.3511157

BibTeX

@inproceedings{weisz-ai-code-translation-2022,
  author = {Weisz, Justin D. and Muller, Michael and Ross, Steven I. and Martinez, Fernando and Houde, Stephanie and Agarwal, Mayank and Talamadupula, Kartik and Richards, John T.},
  title = {Better Together? An Evaluation of AI-Supported Code Translation},
  booktitle = {27th International Conference on Intelligent User Interfaces (IUI '22), March 22-25, 2022, Helsinki},
  year = {2022},
  doi = {10.1145/3490099.3511157},
}

My scorecard

Plain

New Baseline (2026). A lab study of software engineers at one technology company suggests that translating Java code to Python with AI translations from TransCoder cut the error rate by a relative 50.8% against translating alone. The engineers improved only slightly on the AI drafts they were given, and the paper reports no registration. Verdict: High; Software engineers at one large technology company who volunteered, translating one familiar data structure from Java to Python. It travels weakly to large codebases, other language pairs and longer migration work. https://www.newbaseline.ai/studies/weisz-ai-code-translation-2022 Accessed December 5, 2026.

APA

New Baseline. (2026). A lab study of software engineers at one technology company suggests that translating Java code to Python with AI translations from TransCoder cut the error rate by a relative 50.8% against translating alone. The engineers improved only slightly on the AI drafts they were given, and the paper reports no registration. Retrieved December 5, 2026, from https://www.newbaseline.ai/studies/weisz-ai-code-translation-2022

BibTeX

@misc{weisz-ai-code-translation-2022-newbaseline,
  author = {{New Baseline}},
  title = {A lab study of software engineers at one technology company suggests that translating Java code to Python with AI translations from TransCoder cut the error rate by a relative 50.8\% against translating alone. The engineers improved only slightly on the AI drafts they were given, and the paper reports no registration.},
  year = {2026},
  howpublished = {\url{https://www.newbaseline.ai/studies/weisz-ai-code-translation-2022}},
  note = {Verdict: High; Software engineers at one large technology company who volunteered, translating one familiar data structure from Java to Python. It travels weakly to large codebases, other language pairs and longer migration work. Accessed December 5, 2026.},
}

An effect

Cite an effect
  • Presence of AI support: +50.8%, no interval reported, p. 13, Section 5.2.1. In Weisz et al. 2022.