Distillation / AI and work · 2 min read
In ChatGPT's first six months, Stack Overflow posts fell about 25% versus similar forums.
Much free coding help you find online was written by people. On Stack Overflow, they posted less after ChatGPT.
del Rio-Chanona et al. · UCL, LMU Munich, Corvinus · PNAS Nexus · Sep 2024 · peer reviewed
A curious soul · 1 min
Why should you care?
Search a coding problem and the answer may come from a stranger on a free site like Stack Overflow. AI chatbots learn from that public writing too.
What did they do?
A team in Europe counted weekly questions and answers on Stack Overflow, the biggest help site for programmers. They compared it with four similar sites where ChatGPT was harder to reach or less useful: one Russian, one Chinese and two on maths.
What did they find?
After ChatGPT arrived in late 2022, Stack Overflow fell behind the others. Within six months, its posting was down about 25% compared with them. The mix of well-rated and badly rated posts barely changed.
25%
Fall in Stack Overflow posting relative to four similar sites, within six months of ChatGPT's release.
Estimated drop in weekly Stack Overflow posts (questions and answers) relative to four comparison Q&A sites, %, by the end of the period studied. Redrawn from Fig. 2 and the Abstract of the paper
What explains it?
The authors think programmers began asking ChatGPT privately instead of asking each other in public. Think of a neighbourhood noticeboard that gets quieter once people can ask a helper at home.
What's the catch?
- It covers one website and the first half year after ChatGPT.
- It was not an experiment, so it leans on the other sites being a fair comparison.
So what?
Our read: if your product depends on people answering each other in public, a private chatbot is a rival.
Test yourself: one question
Compared with similar sites, what happened to posting on Stack Overflow after ChatGPT came out?
Options: It rose as people asked about ChatGPT / It fell about 25% compared with them / It held steady while the maths sites fell
Answer: It fell about 25% compared with them. Within six months, Stack Overflow posting was down about 25% compared with the four similar sites.
That one smart friend · 2 min
Why should you care?
Stack Overflow is a huge free library of programming help, written by its users. Public writing like this is also what chatbots such as ChatGPT learn from, so if people stop adding to it, everyone has less to draw on.
What did they do?
Researchers at University College London, LMU Munich and Corvinus University of Budapest counted weekly posts, meaning questions plus answers, on Stack Overflow from January 2022 to May 2023. They set those against four sites ChatGPT should touch less: the Russian-language Stack Overflow and the Chinese site Segmentfault, aimed at users in Russia and China, where ChatGPT is officially unavailable, and two maths sites, where the free ChatGPT of the time did poorly. This method, called difference-in-differences, asks whether one site changed more than its comparison group after a shared moment.
What did they find?
Stack Overflow was already shrinking slowly. After ChatGPT, weekly posts fell from about 60,000 to 40,000 within six months. Against the four comparison sites, the drop averaged 15% over that time and reached about 25% by its end.
The share of well-rated and badly rated posts barely changed. Inexperienced, experienced and expert users all posted less, while first-time users dropped only slightly. Posts about popular languages such as Python and JavaScript fell most.
25%
Fall in Stack Overflow posting relative to four similar sites, within six months of ChatGPT's release.
Estimated drop in weekly Stack Overflow posts (questions and answers) relative to four comparison Q&A sites, %, by the end of the period studied. Redrawn from Fig. 2 and the Abstract of the paper
What explains it?
The authors think programmers took their questions to ChatGPT instead of posting them, and that good posts went too, since the votes held steady. They think ChatGPT had more code to learn from in popular languages, so it was a better stand-in there. They see their estimate as a floor, since ChatGPT probably reached the comparison sites a little too.
What's the catch?
- It is one site, about half a year after ChatGPT, and not an experiment: it rests on the comparison sites being a fair stand-in.
- Votes are a rough guide to quality, and VPNs let some Russian and Chinese users reach ChatGPT anyway.
So what?
Our read: if your product depends on people answering each other in public, a good chatbot competes for those answers, and here the loss was biggest for the most widely used languages.
Test yourself: one question
Why do the authors think posts about popular languages like Python fell the most?
Options: Moderators removed more posts about those languages / Developers using them are paid more and had less free time / ChatGPT learned from more code in them, so it was a better stand-in
Answer: ChatGPT learned from more code in them, so it was a better stand-in. The authors link it to training data: ChatGPT learned from more code in popular languages, so people likely swapped Stack Overflow for it there.
The Final Boss · 4 min
Why should you care?
Open Q&A sites are a public good: anyone can read an answer without using it up, and the same text helps train large language models (LLMs). If LLMs replace those sites as the place people ask, they may shrink the supply of human-written data they were built on.
What did they do?
R. Maria del Rio-Chanona (University College London, Bennett Institute at Cambridge, Complexity Science Hub Vienna), Nadzeya Laurentsyeva (LMU Munich) and Johannes Wachs (Corvinus University of Budapest) used the Stack Exchange data dump, which holds 58 million Stack Overflow posts. Their comparison group was four technical Q&A sites: Russian-language Stack Overflow (over 900 thousand posts) and the scraped Chinese site Segmentfault, aimed at users in Russia and China, where ChatGPT is officially unavailable, plus Mathematics Stack Exchange (3.5 million posts) and MathOverflow, where free ChatGPT then scored in the 0 to 20th percentile on advanced high-school maths exams.
The main model is a difference-in-differences regression of log weekly posts (questions plus answers) with platform and week fixed effects and standard errors clustered by month. It covers January 2022 to May 2023: 48 weeks before ChatGPT's release on 30 November 2022 and 25 weeks after. A second version estimates a separate effect for each week. They split posts by the author's earlier posts: new (none), inexperienced (1 to 10), experienced (11 to 100) and expert (more than that), compared against three sites, as Segmentfault has no user data. For languages they ran an event study on Stack Overflow alone, over 69 tags linked to GitHub data, and they fitted a logistic regression on 89,184 responses to the 2023 Stack Overflow Developer Survey.
What did they find?
In Table 1, the coefficient for Stack Overflow after release is -0.163, an average fall of 15% relative to the comparison sites over the six months. The weekly estimates in Fig. 2 grow over time and settle at about 25% by the end of April 2023. Questions alone fell 10%, significant only at P<0.1, and weekday posts 14%. In raw terms, weekly posts dropped from about 60,000 to 40,000, more than 5 years of the earlier decline in half a year.
Post quality, proxied by a post's score five weeks after posting, showed no clear shift. In Table 2 (log coefficients), posts fell for inexperienced (-0.245), experienced (-0.254) and expert users (-0.168), all at P<0.001, while new users fell only slightly (-0.0833, P<0.05). Across tags, slope changes ran from a 0.25 standard deviation fall per week to a 0.03 rise. Python and JavaScript were among the hardest hit, and languages with more GitHub repositories fell more (correlation -0.45), while median salary showed no clear link. In the survey, ChatGPT users were about 0.8 percentage points (2.7%) less likely to contribute weekly or more than similar non-users.
Estimated drop in Stack Overflow activity relative to four comparison sites, %. The first bar is the weekly estimate by the end of the study; the others are averages over the six months. Redrawn from Table 1, Fig. 2 and the Results of the paper | Drop relative to the four comparison sites, % |
|---|
| All posts, weekly estimate near the end | 25% |
|---|
| All posts, six-month average | 15% |
|---|
| Weekday posts, six-month average | 14% |
|---|
| Questions only, six-month average | 10% |
|---|
What explains it?
The authors think developers substituted ChatGPT for Stack Overflow, and that the steady votes and the drop among experienced users suggest it displaced good content, not just beginner questions. They link the language pattern to training data: where ChatGPT had seen more code, it was a better substitute. They suggest experienced users and experts cut answers in particular because the visibility reward for answering shrinks with the audience.
They call the estimate a lower bound: ChatGPT likely touched the comparison sites, and any ChatGPT-written posts on Stack Overflow would hide part of the fall. A raw series to May 2024 shows weekly posts down to 30,000, but they do not model it, since other LLMs became available in Russia and China and got better at maths. What the study cannot show is the counterfactual itself: no one was randomly given ChatGPT, so the estimate rests on the comparison sites tracking what Stack Overflow would otherwise have done.
What's the catch?
- Scope: one platform and one tool over about half a year, set against four sites that differ from Stack Overflow in language, subject and audience, and whose activity also moved with holidays and the invasion of Ukraine.
- Quality is measured only by votes, and the authors could not see how many Russian and Chinese users reached ChatGPT through VPNs, though they say the result holds without those two sites. Fewer duplicates cannot explain much, they argue, as duplicates are only about 3% of posts.
- The survey link is cross-sectional, and respondents were recruited through Stack Overflow: 75% had contributed and 42% visit daily, so less active users are under-represented.
So what?
Our read: for a founder whose product runs on users answering each other in public, a capable chatbot competes for exactly those answers, and the hit here was biggest in the most widely used languages.
Test yourself: one question
Which limit matters most for the main estimate?
Options: No one was randomly given ChatGPT, so it rests on the comparison sites being a fair stand-in / It counted only questions and left out answers / It used just one week of data after ChatGPT's release
Answer: No one was randomly given ChatGPT, so it rests on the comparison sites being a fair stand-in. Without random assignment, the estimate depends on the four comparison sites tracking what Stack Overflow would otherwise have done.
Go deeper
| Number | Value | Where in the paper |
|---|
| Drop in Stack Overflow posting relative to four comparison sites, by the end of the six months (authors call it a lower bound) | about 25% | Abstract; Results and Fig. 2; Discussion |
| Average drop over the six months (log posts coefficient) | 15% (-0.163, SE 0.0584, P<0.05) | Results; Table 1, column 1 |
| Average drop, questions only | 10% (-0.105, SE 0.0597, P<0.1) | Results; Table 1, column 2 |
| Average drop, weekday posts | 14% (-0.151, SE 0.0613, P<0.05) | Results; Table 1, column 3 |
| Platform-weeks per Table 1 regression | 370 | Table 1 |
| Weeks before and after ChatGPT's release in the main window | 48 and 25 | Models, Difference-in-differences |
| Weekly Stack Overflow posts, 2016 to 2022, then within six months of ChatGPT | about 110,000 to 60,000; then 60,000 to 40,000 | Results, Decrease in posting activity; Fig. 1a |
| The post-ChatGPT fall in raw weekly posts, measured in years of the earlier decline | more than 5 years in half a year | Results, Decrease in posting activity |
| Weekly Stack Overflow posts, May 2022 to May 2024 (raw, not modelled) | 60,000 to 30,000 | Results, Subsequent dynamics; Fig. 5 |
| Posts in the data: Stack Overflow, Russian Stack Overflow, Mathematics, MathOverflow, Segmentfault | 58 million; over 900 thousand; 3.5 million; 300 thousand; about 300 thousand | Data and methods |
| Free ChatGPT on advanced high-school maths exams | 0 to 20th percentile | Data and methods |
| Coefficients by user experience: new, inexperienced, experienced, expert | -0.0833 (P<0.05); -0.245, -0.254, -0.168 (all P<0.001) | Table 2 |
| Earlier posts defining inexperienced, experienced and expert users | 1 to 10; 11 to 100; more than 100 | Data and methods; Table 2 notes |
| Tags analysed, out of the most used | 69 of 1,000 | Results; Materials, Selection of tags |
| Range of slope changes across tags, standard deviations per week | 0.25 fall to 0.03 rise | Results, Heterogeneities across programming languages; Fig. 4a |
| Correlation, GitHub repositories and estimated effect | -0.45 (P<0.001) | Results; Fig. 4c |
| Survey responses and countries | 89,184 from 185 | Data and methods; Materials |
| Survey respondents who had contributed, and who visit daily | 75% and 42% | Results, Decrease in posting activity |
| ChatGPT users' lower chance of contributing weekly or more | about 0.8 percentage points (2.7% lower probability) | Results, Decrease in posting activity |
| Score window used as the quality proxy | 5 weeks | Results, Post and user heterogeneities; Fig. 3 |
| Share of posts that are duplicates (earlier work) | 3% | Discussion |
The Results text says Stack Overflow lost roughly 7,000k posts per week each year before ChatGPT, while the Fig. 1 caption says about 7,000 posts each year. The k looks like a typo.
The text calls the drop for inexperienced and experienced users about 21%, but converting their Table 2 coefficients the way the paper converts Table 1 gives a slightly larger figure.
The Significance Statement gives the 25% drop without saying it is relative to the comparison sites, which the Abstract and Results do say.
The Discussion says the developer survey confirms that ChatGPT users post less, while the Methods say the survey cannot be read as causal.
Say this at dinner
In one study, Stack Overflow posting fell about 25% within six months of ChatGPT's release, compared with similar sites where ChatGPT was harder to reach or weaker.
All papers