Who is using AI to code? Global diffusion and impact of generative AI

Simone Daniotti, Johannes Wachs, Xiangnan Feng, Frank Neffke · 2025

Read Who is using AI to code? Global diffusion and impact of generative AI by Simone Daniotti, Johannes Wachs, Xiangnan Feng, Frank Neffke (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-08945.txt.

Introduction

Simone Daniotti and co-authors track who is using AI to write code, and what that use does to output, published in 2025. Generative coding tools promise large gains in productivity. Uneven uptake, though, could widen skill and income gaps between programmers.

The team trained a classifier to spot AI-written Python functions in tens of millions of public code commits. They estimate that AI now writes a large share of Python functions in the United States, with a lead over other countries that is modest and shrinking. Quarterly output, measured in code contributions, has risen due to this use. Programmers using AI also branch into new areas of software more readily. Yet experienced programmers capture nearly all of the gains, widening the skill gap.

Catalog record

CREATORSimone Daniotti, Johannes Wachs, Xiangnan Feng, Frank Neffke
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE23 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2506-08945

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Who is using AI to code? Global diffusion and impact of generative AI Simone Daniotti, Johannes Wachs, Xiangnan Feng, Frank Neffke Abstract Generative coding tools promise big productivity gains, but uneven uptake could widen skill and income gaps. We train a neural classifier to spot AI-generated Python functions in 80 million GitHub commits (2018–2024) by 200,000 developers and track how fast—and where—these tools take hold. By December 2024, AI wrote an estimated 30.1% of Python functions from U.S. contributors, versus 24.3% in Germany, 23.2% in France, 21.6% in India, 15.4% in Russia and 11.7% in China. Newer GitHub users use AI more than veterans, while male and female developers adopt at similar rates. Within-developer fixed-effects models show that moving to 30% AI use raises quarterly commits by 2.4%. Coupling this effect with occupational task and wage data puts the annual value of AI-assisted coding in the United States at $9.6–$14.4 billion, rising to $64–$96 billion if we assume higher estimates of productivity effects reported by randomized control trials. Moreover, generative AI prompts learning and innovation, leading to increases in the number of new libraries and library combinations that programmers use. In short, AI usage is already widespread but highly uneven, and the intensity of use, not only access, drives measurable gains in output and exploration. According to proponents, Artificial Intelligence (AI)—in particular Large Language Models (LLMs) and generative AI—will drastically increase our productivity and revolutionize the way we work. For instance, generative AI is expected to complement or substitute humans in an increasing set of tasks [ 1 ] . This forces individuals, firms, and policymakers to make important decisions about the use and regulation of generative AI under major uncertainty. The stakes are high: generative AI has become widely accessible through tools such as ChatGPT or Claude, directly complements human thinking [ 2 ] , and holds the potential of becoming a general-purpose technology that can solve a wide variety of problems [ 3 ] . Experimental and quasi-experimental evidence so far supports the notion that generative AI has transformative potential, showing that Generative AI leads to increases in productivity and output of individual workers in a variety of jobs [ 1 , 4 , 5 , 6 ] . Surveys and data reported by LLM owners suggest that these technologies are diffusing rapidly [ 7 , 8 , 9 ] . Yet, estimates of the aggregate impact of AI on GDP and employment are often modest [ 10 , 11 ] . Resolving such contradictions requires accurately determining adoption rates, intensity of use, and productivity effects at a global level. However, surveys are often limited to a single country and their self-reported adoption rates may be inaccurate [ 12 ] or biased [ 13 ] . Randomized controlled trials (RCTs) [ 14 , 6 , 1 , 4 , 5 ] or natural experiments [ 15 , 16 , 17 ] consider an individual treated if they have access to generative AI tools, leaving intensity of use or importance in real work activities unobserved. Moreover, both surveys and experiments tend to observe individuals over short time periods, obscuring any learning effects. To address these challenges, we quantify the diffusion and effects of generative AI by measuring its use at a fine grained level in software development, an important and high-value sector [ 18 , 19 ] that is uniquely exposed to generative AI [ 20 , 15 , 14 , 21 ] . Although the general diffusion of generative AI is undisputed, self-reported adoption rates differ markedly across demographics, seniority, work experience, and sectors [ 9 , 8 ] . Evidence from job ads and firm websites suggests that adoption of generative AI varies across geography [ 22 , 23 ] , possibly due to economic, cultural or regulatory differences [ 24 , 25 ] . If generative AI indeed substantially raises productivity, any implied barriers to adoption will have significant consequences for inequality within and across countries [ 26 ] . However, historically, macro-level productivity effects of general-purpose technologies have taken long to materialize [ 27 , 4 , 28 , 29 ] . Together, this leads to substantial uncertainty about the impact of generative AI today. Our research addresses this uncertainty with a large-scale empirical study of generative AI usage in software development. To do so, we design and implement a machine learning classifier to identify code written with substantial AI assistance in over 80 million software developer contributions to open-source Python projects on GitHub. This allows us to analyze shifting patterns of AI-generated code at a highly granular level. To train this classifier, we assemble a custom training set, combining existing sources with a procedure that generates synthetic training data. We then apply the classifier to contributions to GitHub projects between 2019 and 2024. Linking commits to developers’ locations, this allows us to trace the timing and intensity of AI adoption across countries. We observe noticeable growth spikes in AI-generated code soon after key generative AI releases such as GitHub Copilot, the original ChatGPT, and GPT-4.0, highlighting how breakthroughs in LLMs prompt rapid uptake by developers worldwide. Yet, we also observe significant differences among countries. In the US, which leads in the intensity of use of AI throughout our data, AI-written code grows from 0% in 2020 to approximately 30% by the end of 2024. Contributions from Germany, France, India, Russia, and China vary between 12 and 24% in 2024, suggesting significant geographic barriers to diffusion. Furthermore, corroborating existing studies [ 8 , 9 ] , adoption rates are higher among less experienced programmers. This would, other things equal, compress productivity inequality between junior and senior workers. Unlike most previous work, we find no significant differences between men and women. AI use changes user activity. Models that exploit changes in AI usage by the same developer at different points in their career suggest that use of generative AI increases programming contributions. Based on our measurement that by the end of 2024 AI writes 30% of functions contributed by US developers, we conservatively estimate that generative AI increased the volume of such contributions by 2.4%. Combining wage information with estimates of how much programming happens in each of nearly 900 US occupations, this estimate implies that generative AI generates $9.6-$14.4 billion dollars in value annually just in the US software sector by 2024. Pooling the larger productivity effects reported in recent RCTs and natural-experiment studies [ 30 , 6 , 15 , 17 ] drives the implied annual value of generative AI in software well beyond this conservative baseline. Finally, AI-use also is associated with changes in the nature of the code developers produce, in particular, in terms of the exploration of new software libraries and combinations of such libraries. Taking libraries as an expression of the type of functionality developers try to program, this finding suggests that generative AI helps developers extend their capabilities, and to learn to move into new programming areas. Results Figure 1 illustrates how we classify code contributions as either human or AI generated. We train a machine learning classifier on a dataset containing examples of Python code written by humans and by AI. To focus on coherent units of code,

Read the complete text