Generative AI and labour productivity: a field experiment on coding

The authors report that Ant Group programmers given the CodeFuse coding assistant wrote 55% more lines of code than matched programmers in departments without it, and junior programmers 67% more, in a comparison by department that was not randomized.

Gambacorta et al., BIS Working Papers No 1208, 2024. AI used: CodeFuse (2023)

Verdict

Verdict: Medium

What Medium means

Model vintage

CodeFuse (2023)

Programmers at one large Chinese technology firm using one in-house tool.

So what for leaders

  1. Do not set a productivity target in lines of code on this evidence; the tool adds lines by itself.

Use this

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

Cite this studyRead the paperDownload chart as SVG
  1. If you roll out a coding assistant, measure juniors and seniors separately; here the reported gain was largest for juniors and unclear for seniors.
  2. Before you quote a productivity number for a coding assistant, ask who ran the analysis; here the 55% rise in lines of code comes from the tool owner's own lab.

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
Real work
Number studied (sample size)
1,219
Design
Field experiment
Publication
Working paper
Model vintage
CodeFuse (2023)

How far it generalizes

Programmers at one large Chinese technology firm using one in-house tool. It narrows for other firms, other tools and any measure of output other than lines of code.

Lines of code produced, by arm
  • Programmers with CodeFuse, Ant Group
    +55%no interval reported
  • Junior programmers with CodeFuse
    +67%no interval reported

Percent (%)

Show as table
Lines of code produced, by arm
ArmOutcomeEstimateIntervalUnitBetter whenSource
Programmers with CodeFuse, Ant GroupLines of code produced+55No interval reportedPercent (%)Higherp. 5; Graph 1
Junior programmers with CodeFuseLines of code produced+67No interval reportedPercent (%)Higherp. 5; Graph 2

Design

Design
Field experiment
Number studied (sample size)
1,219
Setting
Real work

Who it applies to

Functions
Software engineering
Roles
Developers
Seniority
Junior and senior

Conflicts

  • Potential conflict, maker of the tool studied. Shuo Shan works at Ant Group, which introduced CodeFuse, the coding assistant studied. Read the source

Critique

What the study did well. The output comes from company records, not surveys, and the comparison group worked over the same weeks. The authors matched programmers on their earlier output, level and experience, and the gain stays stable across the periods they track.

Hole 1: departments, not a random draw. Despite the title, the tool went to two departments, so differences between departments could explain part of the gap.

Hole 2: lines of code. A coding assistant adds lines by its nature, and lines say nothing about quality or value.

Hole 3: no interval. The paper prints no confidence interval or standard error for the headline gain.

Hole 4: the owner ran it. Shuo Shan works at Ant Group, which introduced CodeFuse, a potential conflict, and the analysis ran in Ant's own research lab with no registration mentioned.

Business significance

The paper draws on 1,219 programmers before matching. A 55% rise in lines of code, relative to the matched group, would be large if lines meant output, but they do not, so the number measures activity, not value. The paper measures no cost, hours or quality.

The junior result, 67% more code, is the useful signal for a rollout owner: in this data the gain was largest for the least experienced staff, and unclear for senior staff.

Does it still hold?

Not re-run. The tool is CodeFuse as of September 2023. Current coding assistants write far more of the code themselves, which would inflate a lines-of-code measure further without saying more about value. That is untested.

Cite this

The paper

Plain

Gambacorta, Leonardo, Qiu, Han, Shan, Shuo, and Rees, Daniel M. (2024). Generative AI and labour productivity: a field experiment on coding. BIS Working Papers No 1208. https://www.bis.org/publications/working-paper-1208-generative-ai-and-labour-productivity-field-experiment-coding.pdf

APA

Gambacorta, Leonardo, Qiu, Han, Shan, Shuo, & Rees, Daniel M. (2024). Generative AI and labour productivity: a field experiment on coding. BIS Working Papers No 1208. https://www.bis.org/publications/working-paper-1208-generative-ai-and-labour-productivity-field-experiment-coding.pdf

BibTeX

@techreport{gambacorta-ant-group-2026,
  author = {Gambacorta, Leonardo and Qiu, Han and Shan, Shuo and Rees, Daniel M.},
  title = {Generative AI and labour productivity: a field experiment on coding},
  institution = {BIS Working Papers No 1208},
  year = {2024},
  url = {https://www.bis.org/publications/working-paper-1208-generative-ai-and-labour-productivity-field-experiment-coding.pdf},
}

My scorecard

Plain

New Baseline (2026). The authors report that Ant Group programmers given the CodeFuse coding assistant wrote 55% more lines of code than matched programmers in departments without it, and junior programmers 67% more, in a comparison by department that was not randomized. Verdict: Medium; Programmers at one large Chinese technology firm using one in-house tool. It narrows for other firms, other tools and any measure of output other than lines of code. https://www.newbaseline.ai/studies/gambacorta-ant-group-2026 Accessed December 5, 2026.

APA

New Baseline. (2026). The authors report that Ant Group programmers given the CodeFuse coding assistant wrote 55% more lines of code than matched programmers in departments without it, and junior programmers 67% more, in a comparison by department that was not randomized. Retrieved December 5, 2026, from https://www.newbaseline.ai/studies/gambacorta-ant-group-2026

BibTeX

@misc{gambacorta-ant-group-2026-newbaseline,
  author = {{New Baseline}},
  title = {The authors report that Ant Group programmers given the CodeFuse coding assistant wrote 55\% more lines of code than matched programmers in departments without it, and junior programmers 67\% more, in a comparison by department that was not randomized.},
  year = {2026},
  howpublished = {\url{https://www.newbaseline.ai/studies/gambacorta-ant-group-2026}},
  note = {Verdict: Medium; Programmers at one large Chinese technology firm using one in-house tool. It narrows for other firms, other tools and any measure of output other than lines of code. Accessed December 5, 2026.},
}

An effect

Cite an effect
  • Programmers with CodeFuse, Ant Group: +55%, no interval reported, p. 5; Graph 1. In Gambacorta et al. 2024.

  • Junior programmers with CodeFuse: +67%, no interval reported, p. 5; Graph 2. In Gambacorta et al. 2024.