GitHub Copilot and Developer Productivity: An Observational Dose-Response Analysis
Using 16,223 Microsoft engineers over 43 weeks and a within-engineer fixed-effects design to control for individual skill and effort, this study finds that GitHub Copilot usage is associated with a monotonic, 40.5% increase in pull request completion rates at equivalent coding time, indicating a genuine efficiency gain rather than a correlation with inherently busier work periods.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to figure out if a new pair of high-tech running shoes actually makes people run faster.
The obvious way to test this is to compare two groups: people wearing the shoes and people wearing regular sneakers. But here's the problem: maybe the people who choose to wear the high-tech shoes are already professional athletes, while the sneaker-wearers are casual joggers. If the shoe-wearers run faster, is it the shoes, or just the fact that they are better runners to begin with?
This is the exact puzzle Microsoft researchers faced with GitHub Copilot, an AI tool that helps software engineers write code. They wanted to know: Does using the AI actually make engineers more productive, or are the engineers who use it the most just naturally more productive people?
Even worse, there's a second layer of confusion. Maybe an engineer uses the AI a lot during a specific week not because the AI is magic, but because that week was a "crunch time" where they were working 80 hours a day on a huge project. In that case, they would finish more work (Pull Requests) simply because they worked longer, not because the AI helped them work faster.
The Solution: The "Self-Comparison" Experiment
Since the researchers couldn't randomly force some engineers to stop using the tool (that would be unethical and disrupt their work), they used a clever trick called a "Within-Engineer" analysis.
Think of it like this: Instead of comparing Engineer A (who uses AI) to Engineer B (who doesn't), they compared Engineer A to themselves.
They looked at the same engineer over 43 weeks.
- Week 1: The engineer barely used the AI.
- Week 2: The engineer used the AI heavily.
By comparing the engineer to themselves, they automatically canceled out all the things that make Engineer A different from Engineer B (like natural talent, job role, or team culture). They were asking: "When this specific person uses the AI more, do they get more done compared to when they use it less?"
The "Efficiency" Test: Did they work harder or smarter?
There was still one tricky variable: Effort.
If an engineer uses the AI a lot, they might also just be sitting at their computer coding for 10 hours instead of 5. If they finish more work, it might just be because they spent more time at the desk.
To fix this, the researchers used a statistical "filter" (a model called PPML) that held the time spent coding constant.
- The Question: "If Engineer A spends exactly 8 hours coding, do they finish more code when they use the AI heavily compared to when they don't?"
The Result: Yes. Even when the time spent coding was exactly the same, engineers who used the AI heavily completed about 40% more code projects (Pull Requests) than in weeks they didn't use it at all.
The "Falsification" Battery: Ruling Out Excuses
The researchers knew skeptics would come up with other reasons for this result. So, they ran seven different "lie detector" tests to see if the results were just a fluke.
The "Generic AI" Test: Maybe engineers who use AI a lot are just generally "tech-savvy" and use other AI tools (like in Word or Excel) which makes them feel productive?
- Test: They checked if using AI in non-coding apps (like PowerPoint) predicted more code.
- Result: No. Using AI in Word didn't help write code. It was specifically the coding AI that mattered.
The "Team Hype" Test: Maybe the whole team was in a "hype" week, so everyone used the AI and everyone wrote more code?
- Test: They checked if one engineer's AI usage predicted their teammates' code output.
- Result: No. If it was just team hype, your AI usage should predict your neighbor's output. It didn't.
The "Task Switching" Test: Maybe in AI-heavy weeks, engineers just stopped reviewing other people's code and focused entirely on writing their own?
- Test: They checked if writing more code meant reviewing less code.
- Result: No. Engineers wrote more code AND reviewed more code when using the AI. They didn't just swap tasks; they did more of everything.
The "Slicing" Test: Maybe engineers were just chopping big projects into tiny, easy pieces to make the numbers look good?
- Test: They looked at the size of the code projects.
- Result: No. The biggest boost was actually in the largest, most complex projects (7+ files), not the tiny ones.
The "Easy Work" Test: Maybe they were just doing easy paperwork (like updating text files) instead of hard coding?
- Test: They separated "easy" config files from "hard" code files.
- Result: No. The productivity boost was actually stronger for the hard code files.
The "Timing" Test: Maybe the AI usage in Week 1 was just a sign that the engineer was in a "productive mood" that lasted into Week 2?
- Test: They checked if last week's AI usage predicted this week's output.
- Result: No. The boost only happened in the exact same week the AI was used.
The Bottom Line
The study concludes that GitHub Copilot genuinely makes engineers more efficient.
When an engineer uses the tool more intensively, they get roughly 40% more work done in the same amount of time. It's not just that productive people use the tool; the tool itself seems to act as a force multiplier, helping engineers get more done without needing to work longer hours.
However, the researchers are careful to note: This study measures efficiency (getting more done per hour). It doesn't measure the total time saved. If the AI helps you finish a task in 30 minutes instead of an hour, your "efficiency" goes up, but you might also just stop working early. The study proves the speed increases, but it doesn't tell us exactly how engineers spend that extra time.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.