44

Back in November 2023, we ran a moderator-run experiment (moderator-only link) on the accuracy of identifying AI-generated vs human-written content, where the participants have access to the context of the posts in a Q&A site. Due to... a number of complicating factors, it took a while to sort through responses and perform an analysis, but better late than never, eh?

What follows is an in-depth explanation of the design, analysis, and results of that experiment. We're aware that as this was designed by amateurs, the methodology may have some flaws - which are noted in the results - but believe it may provide some useful insights anyway. In any case, feedback is appreciated, and some of the raw data is available for anyone who wants to perform their own analysis.


Background

The AI policies on the Stack Exchange Network

On December 5, 2022, volunteer elected moderators of the Stack Overflow questions-and-answers site, the flagship site of the Stack Exchange network of Q&A sites, enacted an emergency policy banning usage of generative-AI to create content on the site, after a sudden influx of posts that were suspected to be AI-generated rather than human-written. [1] This policy received popular support by the users of the site, and became established policy.

On May 29, 2023, Community Managers of the Stack Exchange network announced a new policy to the volunteer moderators of the network. [2] [3] This policy forbade moderators from taking action on posts suspected to have been created through the use of generative Artificial Intelligence tools in the vast majority of cases. The policy claimed that the evaluations made by the volunteer moderators were inaccurate in a large number of cases, and were biased against non-native English speakers. (The policy also claimed that moderators were making decisions utilizing automated GPT detectors found online, a claim disputed by the moderators.)

In response to the new policy, the volunteer moderators organized a protest, [4] termed a "strike" by the protesting users and moderators. [5] In order to resolve the strike, moderators and users selected representatives to negotiate with Stack Exchange, Inc. [6]
Among the results of the negotiations between Stack Exchange, Inc. and the moderator representatives was an agreement to test the accuracy of Stack Exchange moderators in classifying content as being created by humans or by generative Artificial Intelligence tools. [7]

The company-run experiment

On September 13, 2023, Stack Exchange, Inc. launched an experiment to test the accuracy of Stack Exchange moderators in classifying AI-generated content. [8] The experiment used content from Stack Overflow, a question-and-answer site focused on programming, for the human-written portions of the experiment, and GPT+ (GPT-4) for the AI-generated portions.[8] [9] The content was presented as a screenshot of a post, with no information available about the posting user, the question that the answer was posted in response to, and no way to copy the text elsewhere for testing.[8] [9]
This experiment received mixed responses from moderators during the duration of the experiment, such as noting that content from Stack Overflow is not relevant to much of the rest of the network;[10] noting that many of the signals used by moderators when classifying content are not limited to the post text and were not able to be utilized during this experiment;[11] and that the content provided in the survey did not resemble the content that moderators regularly handle in the actual environment of the sites that they moderate.[11]

This last point was later revealed to be due to the choice of GPT-4 as the model for generating the AI-generated content.[9] This drew further criticism from moderators, as GPT-4 required paid access in order to make use of it, and so did not accurately represent what moderators would typically adjudicate.[12]

This experiment: The idea

On September 14, 2023, the day after the experiment run by Stack Exchange, Inc. launched, and before seeing any results from that experiment, we determined that it would be useful to create an independent experiment in order to independently test the accuracy of classifications in a manner that more accurately reflected the real-world conditions that moderators were working in, including the use of context clues and surrounding supporting information to inform classifications.

Goals

The experiment was designed to test these primary goals:

  • The overall accuracy of human-evaluated classifications in determining if a text was written by a human or generated by generative Artificial Intelligence tools, in the specific context of a strict question-and-answer site model;
  • whether there is any significant difference between the capabilities of Stack Exchange network moderators and the capabilities of non-moderator users in detecting content generated by generative Artificial Intelligence tools.

In addition, the experiment was designed so that in the event that a large enough number of respondents participated, with some volunteering additional information, analysis could be performed on the following subjects:

  • Whether there was a bias towards classifying text written by individuals who speak English as a second language as generated by generative Artificial Intelligence tools; [2]
  • whether the level of proficiency in English of the classifying participant significantly influenced the accuracy of classifications;
  • whether the frequency in use of generative Artificial Intelligence tools by the classifying respondent significantly influenced the accuracy of classifications.

Data on real-world cases of AI usage

In order to accurately reflect the real-world conditions of AI-generated posts, it was necessary to gain confirmed data on how AI-generated posts were being created on the platform. In order to gain some insight into this matter, we turned to data collected during the moderator strike negotiations.

Confirmed AI-generated posts on Stack Overflow

During the negotiations to resolve the Stack Exchange moderator strike, a project was undertaken to gather incidents of cases where it could be definitively determined that moderators correctly identified AI-generated posts. To that end, a Stack Overflow moderator, Zoe, manually trawled through responses to moderator messages sent to users who moderators had determined were posting AI-generated content on the site. [13] She then identified cases where the user had responded to the message in a manner confirming that the user had actually used generative AI tools to create content. Using those confirmed cases, she then identified links to the relevant posts, which were then compiled into a spreadsheet. [14] Roughly a hundred posts were compiled in this manner.
Other users who had the ability to view deleted posts then visited these links and filled out the spreadsheet with all of the data from those posts, including data on the speed of the posts, notes on the writing style of the posts, differences in these posts as compared to other posts by the same involved user, and more.

These confirmed posts and the data collected from them provided us with a basis for how AI-generated posts on the Stack Exchange Network were actually being created.

Experiment design

The experiment was designed in order to test the accuracy of classifications by Stack Exchange moderators and users in an environment that mimicked as closely as possible the actual environment in which those users were adjudicating situations.

Choosing human-written content datasets

Information present

In order to provide participants with the contextual information that moderators typically made use of in real-world cases, the following information had to be available to participants:

  • The parent question that the answer was responding to;
  • the timestamps of all posts;
  • other posts by the users involved;
  • and the revision history of the relevant posts.

Presentation of the data

In order to make it as natural as possible for the participants to go about their classifications in the way that they were accustomed to, we determined that we should present the cases we were asking participants to classify in actual Q&A form. This option allowed us to present all of the information necessary in a format familiar to the participants, and allowed the participants to browse the simulated Q&A site in however manner worked best for them to perform their classifications.

To this end, we chose the open-source QPixel software, due to previous familiarity with the system (note: the author is affiliated with the non-profit organization responsible for maintaining this software), which would allow for easier setup and maintenance.

Subject matter

In order to test accuracy across a wide audience of participants, who are not necessarily all familiar with the same subject matter, we determined that we should include several sections, each containing a different subject matter. This helped to avoid objections raised to the experiment run by Stack Exchange, Inc., which included only material about programming to classify, and allows for comparing accuracy of a participant from one subject to another.

Certainty of the texts' origins

In order to evaluate the accuracy of respondents classifying content as AI-generated or human-written, we needed to start out with content that we were absolutely certain was one or the other. Due to the availability of GPT-3 and GPT-2, we determined that in order to be certain that no AI-generated posts were present in our human-written dataset, we could only use posts written prior to February 2019, when GPT-2 was partially released.[15]

Obscurity of the source content

In order to prevent participants from searching for the original sources of the posts, bypassing the classification process by finding the source of the human-written content, we determined that we should use content that could not be easily searched for on the World Wide Web.

Q&A format

In addition, we needed to find content that could be easily used in a strict Q&A format, to mimic the real-world environment in which our target participants were performing their evaluations.

Closed Stack Exchange sites

The option that satisfied all of these constraints was the "data dumps" of closed sites in the Stack Exchange network. These sites are no longer live on the Stack Exchange network, having been closed due to a lack of activity. The sites are taken down, which means the posts are no longer indexed by search engines. However, the content from those sites is available to be downloaded in a .zip format from the "Area 51" section of the Stack Exchange network for proposing new sites on the Network. The data is available in a Q&A format, and for sites that closed prior to February 2019, there is no risk that content generated by GPT-2 or later models is present in the dataset.

In order to present participants with varying topics, as well as to have posts extant on the simulated site, we made use of the data dumps from these sites:

  • Literature, which closed May 11, 2012; [16]
  • Economics, which closed May 18, 2012; [17]
  • Artificial Intelligence, which closed December 10, 2010; [18]
  • Artificial Intelligence (a different iteration), which closed February 23, 2014; [19]
  • Arduino, which closed April 25, 2013; [20]
  • and Firearms, which closed May 4, 2012. [21]

AI-generated content

Models

In order to present content generated by AI in a manner consistent with the cases typically adjudicated by Stack Exchange moderators, we utilized the three models that users were most familiar with:

  • OpenAI's ChatGPT, using the GPT 3.5 model;
  • Bing AI, using the different "style" options;
  • and Google Gemini, which was known as Bard at the time.

Prompts

In order to present participants with a representative sample of AI-generated posts that reflect real-world conditions, a variety of prompts were used to generate the dataset of AI-generated posts. The majority of posts were generated by pasting the content and title of the relevant question into the chosen AI model; however, other posts were generated with prompts engineered to obfuscate detection, prompts consisting of simply the question title, or prompts designed to produce responses similar to human-written posts extant on the simulated Q&A site.

Obfuscation

Several of the AI-generated posts underwent obfuscation in manners previously observed in real-world environments, such as manually inserting typos into posts.

The complete list of AI-generated posts, what model was used to generate it, the relevant prompt for each post, and what modifications were made to each post is included later on.

Represented user behavior

Based on the data gathered concerning confirmed AI-generated posts, we determined that various different user behaviors needed to be represented in the experiment. These include users with no previous activity posting human-written content; new users posting AI-generated content; established users, with a history of human-written posts, posting human-written content; and established users pivoting to or incorporating AI-generated content.
User behavior also includes users posting content with varying levels of English proficiency, abrupt changes in writing style, users posting content in quick succession, or waiting a significant amount of time between posts.

Post scores

Posts were assigned scores using a normal distribution with a mean of 15, a standard deviation of 10, and then subtracting 5 from all values. These were assigned separately to both the corpus of imported posts and AI-generated posts.

Attribution

The posts imported from the data dumps of closed Stack Exchange sites are licensed under CC BY-SA 3.0, [22] which requires a link to the original webpage where the content was published, the name of the author, and a link to the license itself. [23]

The QPixel platform includes a dedicated field for the license of each post. As we imported each post, we propagated that field with the CC BY-SA 3.0 license, including a link to the license on the Creative Commons site.

As the original webpages for the imported content are no longer available on the internet, it was not possible to include links to those original pages.
As including a link to the data dumps would compromise the integrity of the experiment by allowing users to easily find human-written posts in the data, we determined not to include such a link.

For imported posts, we retained the original usernames of the users who wrote the posts. A line stating that content was either sourced from Stack Exchange, or was generated using AI tools, was added to the footer of the simulated Q&A site.

In order to retain the integrity of the experiment, we marked all AI-generated posts in the experiment as being licensed under CC BY-SA 3.0, as well. With two exceptions, each AI-generated post was then associated with a pre-existing user from the data dumps. This allowed for having users extant on the simulated Q&A site who had both AI-generated and human-written contributions, as well as having natural-language writing in the user's profile to compare the text of the posts against.
One exception was a post (post ID 25953) associated to a user where the user's profile was propagated with AI-generated text, and the other exception was a post (post ID 25987) associated to a user where the user profile was designed to be "spammy".

Comments

Certain imported posts were imported from the data dump along with comments originally posted on the closed Stack Exchange sites. For posts presented to participants, all comments on those posts were removed. Because no such comments would exist on AI-generated posts, the comments on the human-written posts were removed as well to ensure that the presence of comments or lack thereof did not influence the classification made by the participants.

User behaviors

For the purpose of this experiment, we divided users into two main categories:

  1. New users, who have fewer than five previously-existing posts on the site; and
  2. Established users, who have five or more previously-existing posts.

Within each category of user, we designated several user types that we wanted to see represented:

  • Users who posted exclusively AI-generated posts;
  • users who posted exclusively human-written posts;
  • and users who posted a mix of AI-generated and human-written posts.

Outside of those specific user categories, we also had several special user behaviors that we wanted to include:

  • Users with "spammy" profiles;
  • users posting a large number of answers in a small timeframe;
  • and users using AI tools to rewrite a human-written answer.

Timestamps

Overall date and timestamps

As ChatGPT was released in November 2022, with other LLMs gaining in popularity at around the same time, we know that most posts written prior to then were not generated using AI tools. We already know that posts written prior to then are highly unlikely to be classified as AI-generated by participants, and so if participants were to use the date as a heuristic for classification, that would prevent us from gaining insight into the accuracy of any other detection methods used by participants.
With this in mind, in the instructions to participants, we informed them that the datestamps on all posts had been adjusted, but that relative timestamps - i.e., the time between a question and an answer to it, or the time between two posts written by the same user - had been preserved.

Imported posts

For all posts imported from closed Stack Exchange sites, we preserved the relative timestamps for each post. Since the imported content contained posts from a spam of several years, we adjusted all of the timestamps to appear as if the earliest post imported was posted on February 5th, 2020. This date was chosen so that no posts would be dated with dates in the future relative to when the experiment was run.

AI-generated posts

For each AI-generated post, a timestamp was chosen based on the post that it was generated in response to. Based on the user behavior being represented in that post, these timestamps ranged from underneath a minute to several months after the question was posted.

Presentation to participants

In order to allow for participants to make use of all the context available when classifying each post, such as other posts by the user, the timestamps of the posts involved, the revision history of the post, etc., the posts were presented to participants in the form of a link to the post to classify.

The primary method of presentation was a Google Forms survey. In this presentation, the link was accompanied by a screenshot of the post in question to ensure that participants were classifying the correct post at the other end of the link. Additionally, the screenshot was accompanied with a caption containing the username of the user that the post in question was attributed to, as both an additional measure to ensure classification of the correct post and for accessibility to users who may not be able to see images.

In order to reduce the possibility for confusion, since the form linked to an external site that contained the necessary context for evaluation, each post was presented within the form on a page by itself. This acted to reduce the possibility of submitting responses regarding the wrong post by eliminating the possibility of having more than one post displayed by the form at one time.

Participants were asked to classify each post as one of:

  • AI-generated
  • AI-generated with human editing
  • Human-written
  • Human-written with generative-AI editing

Each participant recorded their confidence in each classification on a scale of 1–5, with 1 being "Not at all confident" and 5 being "Extremely confident".

Participants were also encouraged to fill out a free-form text box with any other thoughts on the classification, including their reasoning for why they may have classified a post a certain way, or what program they believed to have been used in cases of generative-AI involvement.

Order of posts presented for classification

Posts were presented to participants in four blocks of ten, with each of those ten posts being associated with a particular category of subject matter. The four blocks were Firearms, Technology, Literature, and Economics. Due to the limitations of the presentation format, it was not possible to randomize the order of presentation while maintaining both an individual screen for each post to be classified and the division into subject matter blocks.

An initial random order for each subject matter block was generated, and then that order used for the survey. The same order was presented to every participant.

Alternate survey presentation

Several potential participants expressed concerns about the use of Google Forms for collecting responses, for reasons including not wishing to create a Google account due to privacy concerns. To accommodate those concerns, an alternate method of submitting responses was created; a GitHub Gist was created with links to each of the posts to be classified, along with instructions on how to log the classification of each post and the confidence of each classification. A response in text form could then be submitted via direct message, such as by email or Discord.

Additionally, due to feedback received during the experiment about the length and time requirement of participation, a second presentation was created and made public. This alternate presentation moved the Firearms block to the end of the survey and made it optional, allowing participants to perform thirty classifications in place of forty.

Terms and instructions

Participants were required to agree to terms stating that their responses would be collected for the purposes of analysis and research, and that a version of their responses may be released once it has been stripped of potentially identifying information.

Participants were given definitions of the terms used in the experiment, such as "AI-generated" or "human-written" along with examples of AI (LLM) services. Instructions were also provided on what external services could and could not be used while performing classifications, how confidence levels should be logged, and specific mention made of the modified datestamps for posts presented in the experiment, explaining that conclusions should not be drawn from the displayed date of the post compared to the release date of popular generative-AI services.

The precise terms and instructions presented to participants can be viewed via the non-Google survey on GitHub Gists, which contains the same terms and instructions as the Google versions.

Finding participants

As the targeted participants for this experiment were Stack Exchange moderators and users, messages went out to places where members of that community were active, requesting that as many people as possible participate. A post was created in the Stack Moderators Stack Overflow for Teams instance, [24] a message was pinned in the Stack Exchange moderators' chatroom the "Teachers' Lounge", a message pinned in the private chatroom "AI Domination" on Stack Overflow chat, and a message sent in the "Meta discussion" Discord server dedicated to discussion about Stack Exchange and Stack Overflow, [25] notifying everyone in the server.
Throughout the time that the survey was collecting responses, reminders and encouragements to participate were sent out.

As the survey relied on participants volunteering to take part, the results may suffer from a self-selection bias.


[1]: Makyen, "Temporary policy: ChatGPT is banned", Meta Stack Overflow, December 5, 2022.

[2]: Stack Exchange staff, "Please stop use of GPT detectors for content moderation on Stack Exchange", Stack Moderators Stack Overflow for Teams instance, May 29, 2023. Made public on Meta Stack Exchange at "(Historical) Policy on the use of GPT detectors" by Philippe on July 26, 2023.

[3]: Philippe, "What is the network policy regarding AI Generated content?", Meta Stack Exchange, May 30, 2023.

[4]: Mithical, "Moderation Strike: Stack Overflow, Inc. cannot consistently ignore, mistreat, and malign its volunteers", Meta Stack Exchange, June 5, 2023.

[5]: Although the company referred to the protest as an "Action", for legal reasons: Jon Ericson, "What Stack Overflow is telling employees about the strike", Jon Quixote, June 12, 2023.

[6]: Nick is tired, "Moderation Strike update: Data dumps, choosing representatives, GPT data, and where we’re holding", Meta Stack Exchange, June 11, 2023.

[7]: Mithical, "Moderation strike: Results of negotiations", Meta Stack Exchange, August 2, 2023.

[8]: Stack Exchange staff, "Testing AI detection capabilities by humans", Stack Moderators Stack Overflow for Teams instance, September 13, 2023; Slate, "Summary results of the 2023 GPT content detection study", Meta Stack Exchange, November 19, 2024.

[9]: Stack Exchange staff, "Summary results of the 2023 GPT content detection study", Stack Moderators Stack Overflow for Teams instance, November 7, 2023; Slate, "Summary results of the 2023 GPT content detection study", Meta Stack Exchange, November 19, 2024.

[10]: Joachim, "Testing AI detection capabilities by humans", Stack Moderators Stack Overflow for Teams instance, September 13, 2023.

[11]: Stack Exchange network moderator, "Testing AI detection capabilities by humans", Stack Moderators Stack Overflow for Teams instance, September 13, 2023.

[12]: Laurel, "Summary results of the 2023 GPT content detection study", Stack Moderators Stack Overflow for Teams instance, November 7, 2023.

[13]: Sourced from private Discord Direct Message conversations.

[14]: Google Sheets, "Confirmed AI-generated posts".

[15]: OpenAI, "Better Language Models and Their Implications", February 14, 2019.

[16]: Area 51 Stack Exchange, "Literature".

[17]: Area 51 Stack Exchange, "Economics".

[18]: Area 51 Stack Exchange, "Artificial Intelligence".

[19]: Area 51 Stack Exchange, "Artificial Intelligence".

[20]: Area 51 Stack Exchange, "Arduino".

[21]: Area 51 Stack Exchange, "Firearms".

[22]: As stated in the license.txt file in each data dump.

[23]: Creative Commons, CC BY-SA 3.0.

[24]: wizzwizz4, "Testing in-context AI-detection", Stack Moderators Stack Overflow for Teams instance, November 5, 2023.

[25]: A message with an @everyone ping was sent to the #Announcements channel, sending a notification to the 900+ individuals in the server at the time.


Continued in an answer due to the character limit.

5
  • 3
    The company-run experiment: meta.stackexchange.com/q/404359/394014
    – GammaGames
    Commented Nov 19 at 19:13
  • 1
    Thanks! Is it possible to share the question-answer pairs that were assessed? (i.e., the SE posts that were assessed) Commented Nov 19 at 20:18
  • 5
    @FranckDernoncourt - see the appendix below with the raw data
    – Mithical
    Commented Nov 19 at 20:24
  • 1
    "scores using a normal distribution with a mean of 15, a standard deviation of 10, and then subtracting 5 from all values." A bit confused by this: Isn't it the same as a normal distribution with both mean and standard deviation 10? Commented Nov 19 at 20:57
  • 1
    Can you please use actual links instead of / in addition to "citation" footnotes? This is makes such a long post even more complicated to read than it already is. Commented Nov 24 at 11:05

3 Answers 3

28

Responses

Responses were monitored across both versions of the survey, as well as the non-Google alternative, from November 5, 2023, until January 1, 2024. 31 responses were submitted to the primary Google Form, 1 response was submitted to the alternate Google Forms version, and 1 response was submitted via direct message. Several individuals expressed an intention to respond but did not do so in the time that responses were monitored.

Overall, 32 classifications of 40 posts and 1 classification of 30 posts were submitted, for a total of 1310 individual post classifications.

Of those 1310 classifications, 769 classified posts as human-written, 369 classified posts as AI-generated, 121 classified posts as AI-generated with human editing, and 51 classified posts as human-written with generative-AI editing.

11 responses were from current Stack Exchange diamond moderators, 2 responses were from former Stack Exchange diamond moderators, and 20 responses were from non-moderator Stack Exchange users.

Analyzing responses

Assigning accuracy scores

Each of the 1310 classifications was assigned an accuracy score. These scores compared the origin of the post with what it was classified as, and awarded a score closer to 1 the more accurate the classification was. Due to the original context of the experiment - i.e., assessing the accuracy of classification in the context of moderation - the accuracy scores were slightly weighted to assign a lower accuracy score to cases where human-written posts were misclassified as involving generative-AI. The following table displays the formula used to assign an accuracy score to each classification:

AI-generated post AI-generated post with human editing Human-written post Human-written post with generative AI editing
Classified as AI 1 0.9 0 0.1
Classified as AI with human editing 0.9 1 0.1 0.1
Classified as human-written 0 0.1 1 0.5
Classified as human-written with AI editing 0.5 0.5 0.1 1

Determining correctness of classifications

For certain data points, classifications were regarded as "correct" if they had an accuracy score of 1 or 0.9, such as when analyzing the relationship between confidence and accuracy of classifications. Classifications were regarded as incorrect if they had an accuracy score of 0 or 0.1. Classifications with an accuracy score of 0.5 were termed "half-correct".

AI classification score

As one way of looking at the average classification of a post, each classification was assigned an AI classification score, on a scale of 0–1. The closer a classification was to declaring the post AI-generated, the closer to 1 its AI classification score was.

Classified as AI Classified as AI with human editing Classified as human-written Classified as human-written with AI editing
1 0.9 0 0.5

Each post's average AI classification score was then calculated. The closer to 1 the average score, the more classifications involving generative-AI the post received.

Results

Accuracy: Overall numbers

Overall post numbers

The following table breaks down the overall numbers for classifications and post origin:

Times classified as human-written Times classified as AI-generated Times classified as AI-generated with human editing Times classified as human-written with AI editing
Human-written posts 601 18 23 13
AI-generated posts 120 311 71 23
AI-generated posts with human editing 28 37 26 7
Human-written posts with generative-AI editing 19 3 2 8

Average AI classification score by post origin type

The average AI classification score for each type of post origin:

Human-written AI-generated AI-generated with human editing Human-written with generative-AI editing
Average AI classification score: 0.06877367424 0.7360381155 0.651104798 0.275

As a reminder, the closer the AI classification score is to 1, the more classifications it received as involving generative-AI, while the closer the score approaches to 0 the more classifications it received as being human-created.

Average confidence by accuracy

The overall average for the confidence in classifications, along with the average confidence for varying levels of accuracy. Classifications were considered to be correct with an accuracy score of 1 or 0.9, incorrect with a score of 0 or 0.1, and half-correct with a score of 0.5.

Overall Correct (1, 0.9) Incorrect (0, 0.1) Half-correct (0.5)
Average confidence: 3.593442235 3.737000463 2.794827979 2.975328947

Confidence: Broken down by accuracy according to text origin

All responses Accuracy of 1 Accuracy of 0.9 Accuracy of 0.5 Accuracy of 0.1 Accuracy of 0
Confidence of 5 289 6 3 3 12
Confidence of 4 407 34 13 15 39
Confidence of 3 133 29 19 22 30
Confidence of 2 84 14 9 15 33
Confidence of 1 52 6 5 8 30
AI-generated texts Accuracy of 1 Accuracy of 0.9 Accuracy of 0.5 Accuracy of 0.1 Accuracy of 0
Confidence of 5 115 2 2 0 10
Confidence of 4 114 25 6 0 32
Confidence of 3 44 25 7 0 27
Confidence of 2 25 14 5 0 27
Confidence of 1 14 4 3 0 24
AI-generated with human editing Accuracy of 1 Accuracy of 0.9 Accuracy of 0.5 Accuracy of 0.1 Accuracy of 0
Confidence of 5 8 4 0 1 0
Confidence of 4 16 9 0 5 2
Confidence of 3 8 4 6 8 2
Confidence of 2 10 0 1 4 1
Confidence of 1 2 2 0 4 1
Human-written with gen-AI editing Accuracy of 1 Accuracy of 0.9 Accuracy of 0.5 Accuracy of 0.1 Accuracy of 0
Confidence of 5 0 0 1 0 0
Confidence of 4 3 0 7 2 0
Confidence of 3 4 0 6 1 0
Confidence of 2 0 0 3 2 0
Confidence of 1 1 0 2 0 0
Human-written Accuracy of 1 Accuracy of 0.9 Accuracy of 0.5 Accuracy of 0.1 Accuracy of 0
Confidence of 5 166 0 0 2 2
Confidence of 4 274 0 0 8 5
Confidence of 3 77 0 0 13 1
Confidence of 2 49 0 0 9 5
Confidence of 1 35 0 0 4 5

Accuracy: By participant

The average accuracy for each participant was calculated by averaging the accuracy score for each of that participant's classifications. This was also compared to the average confidence for that participant.

Graph of accuracy vs. confidence for each participant
Graph created by Elements in Space.

Average accuracy Average confidence Mod status
0.8125 4.175 No
0.6925 3.175 Yes
0.6975 3.575 No
0.7775 3.425 No
0.69 3.925 No
0.66 3.475 No
0.7975 3.85 No
0.495 3.725 Yes
0.915 3.8 No
0.81 3.225 No
0.8875 3.5 No
0.8125 2.075 Yes
0.8975 4 Yes
0.94 3.1 Yes
0.8625 3.925 No
0.9475 3.75 No
0.69 3.225 No
0.8175 3.35 No
0.975 3.7 No
0.925 4.5 Yes
0.7575 3.35 Yes
0.91 3.975 No
0.765 3.95 Yes
0.8875 3.65 No
0.81 2.975 Former
0.84 3.875 Yes
0.815 2 No
0.895 4.4 Former
0.8825 3.65 No
0.97 4.4 Yes
0.83 3.6 No
0.86 4.35 No
0.7633333333 2.7 Yes

Accuracy: Special cases

Spammy users

Two posts presented to participants were shown as posted by a user with a spammy profile (i.e. seeming to advertise a product or service). One post was AI-generated (post ID 25987), while the other was human-written (post ID 27196).

Post ID 25987, the AI-generated post by a spammy profile, received 4 classifications as human-written, 20 classifications as AI-generated, 6 classifications as AI-generated with human editing, and 2 classifications as human-written with generative-AI editing. The spammy profile was referenced 6 times in the freeform comments, all by participants who included this as support of an AI-generated classification.

Post ID 27196, the human-written post by a spammy profile, received 27 classifications as human-written, 2 classifications as AI-generated, 4 classifications as AI-generated with human editing, and 0 classifications as human-written with generative-AI editing. Only 1 freeform comment referenced the spammy profile, noting that something seemed "fishy", while classifying the post as human-written.

Rapid back-to-back answers

Post ID 26708, an AI-generated post posted within a short amount of time to another AI-generated post by the same user, received 14 classifications as human-written, 15 classifications as AI-generated, 2 classifications as AI-generated with human editing, and 2 classifications as human-written with generative-AI editing. The user's other post was referenced in 7 freeform comments, all in support of a classification as AI-generated, although specifically the speed between answers was only referenced a single time.

AI-editing human-written answers

Post ID 26634, a human-written post with generative-AI editing, received 19 classifications as human-written, 3 classifications as AI-generated, 2 classifications as AI-generated with human editing, and 8 classifications as human-written with generative-AI editing. It was the only post included in the experiment to be human-written with generative-AI editing.

9 freeform responses mentioned that the post included text expressing an opinion, with 8 of those using this as justification for a classification as human-written. The other classified the post as AI-generated with human editing.

Several responses noted that the structure of the answer matched the pattern of generative-AI posts, while the content expressed did not seem to be within the capabilities of AI to generate.

The average confidence of responses to this post was somewhat below the mean, with an average confidence of 3.09375 for post ID 26634.

AI-generated profile

Post ID 25953, an AI-generated post associated to a user with AI-generated profile contents, received 8 classifications as human-written, 21 classifications as AI-generated, 4 classifications as AI-generated with human editing, and 0 classifications as human-written with generative-AI editing.
Only one participant noted the user's profile in the freeform responses, in support of a classification as AI-generated.

Accuracy: Participant average

The average total accuracy across all participants was 0.8208585859 when averaging the results of each participant and 0.8212977099 when averaging each classification (on a scale of 0–1, with 0 being entirely inaccurate and 1 being perfectly accurate).

Moderators

The average accuracy for moderators was 0.8053030303, with an average confidence of 3.531818182.

The lowest accuracy score in the set of moderator responses is 0.495, submitted who a participant who noted their English proficiency level as "Conversational", the lowest disclosed English proficiency level of any participant. If we were to exclude this result of 0.495 accuracy as an outlier due to the disclosed level of English proficiency, the average moderator accuracy becomes 0.8363333333.

Non-moderators

As only 2 participants reported themselves to be former moderators, it is impossible to draw a general conclusion with such a low sample size. However, the average accuracy for those two responses was 0.8525, with an average confidence of 3.6875.

The average accuracy for non-moderators was 0.82625, with an average confidence of 3.60625.

Overall Moderators Former moderators Non-moderators
Accuracy 0.8207828283 0.8053030303 0.8525 0.82625
Confidence 3.586363636 3.531818182 3.6875 3.60625

Accuracy: By post origin

Human-written AI-generated AI-generated with human editing Human-written with generative-AI editing
0.9230534351 0.7361904762 0.6816326531 0.5625

Limitations

The experiment was designed by non-professionals, and so was created without the benefit of full professional knowledge. As a result, the experiment as designed has several flaws that became known as analysis was performed, and so drawing conclusive conclusions would be inadvisable.

Among those limitations are:

  • A high number of variables that may affect results, such as the post score visible on each post;
  • a non-randomized presentation order;
  • and a self-selection bias in participants.

In addition, LLM technology has significantly evolved since November 2023, and these results may not accurately reflect the current state of classifying content generated by newer models as opposed to human-written content.

However, we believe that the results do still hold value, even if the experiment is not quite rigorous enough to qualify for a research paper. Even in its current form, the responses shed light on how participants perform their classifications and provides a rough level of accuracy for classifying content in the context of late 2023 LLM technology.

Conclusions

With an average accuracy rate of 82% across all participants and all post types, the results show that the participants in this experiment were highly accurate in differentiating between AI-generated and human-written content. When taking into account the 92% accuracy rate for human-written posts and the 74% accuracy rate for AI-generated posts, the data shows that participants were much more likely to classify AI-generated content as human-written, taking the cautious option rather than over-classifying as AI-generated.

The data did not show a significant different between the accuracy of moderators and non-moderators, with both groups achieving a similar accuracy rate, with a roughly 2% difference in favor of non-moderators. It is, however, worth noting that the sample size for non-moderators was nearly twice the size of the sample size for moderators.

We did not receive enough submissions that disclosed demographic data to perform any significant analysis on how that may impact classification accuracy.

All in all, these results show a high degree of accuracy in classifying content as human-written or AI-generated within the context of a structured Q&A site when accompanying user and site context are available. However, given the limitations of the experiment as outlined above, drawing a conclusive result from this experiment would be inadvisable, and so these results can only hint in the direction of a proper conclusion.

Appendix: Raw data

An anonymized version of the responses and more of the raw data collected has been released and can be found on Google Sheets. You do not need a Google account to view the data.

To view the dataset of human-written answers used in this experiment, you can view the list of human-written answers on GitHub Gists.
To view the dataset of AI-generated answers used in this experiment, along with the specific prompts and models, you can view the list of AI-generated answers on GitHub Gists. You do not need a GitHub account to view the gists.

Acknowledgements

The experiment was designed by wizzwizz4 and Mithical.
The simulated Q&A site was set up and maintained by Taico Aerts (Taeir), on the TU Delft infrastructure. The software used is the TU Delft fork of the open-source QPixel software maintained by the Codidact Foundation organization.
The human-created natural data used was imported from closed Stack Exchange sites available from Area 51 Stack Exchange: Firearms, Literature, Economics, Artificial Intelligence, Artificial Intelligence (2), and Arduino.
The AI-generated data was generated using OpenAI's ChatGPT, Google's Gemini (known as Bard at the time of usage), and Microsoft's Copilot (known as Bing Chat at the time of usage).

Disclaimer

Stack Exchange, the Codidact Foundation, TU Delft, or any other organizations mentioned here are not involved or affiliated with this project in any way, shape, or form. The project is wholly the responsibility of the individuals running it, acting as individuals and not in connection to any organizations those individuals may be affiliated with.

6
  • For the accuracy score table, would it have made sense to normalize the sum of each row to a common value? As it is always choosing "Classified as human-written with AI editing" and all content types occurring equally often, would have resulted in a higher overall accuracy. Many thanks for conducting the study, it must have been a lot of work. Commented Nov 19 at 21:13
  • 2
    Thanks again and very small comment about the given number of digits after the decimal points: Often they aren't that significant and clutter the text. Removing all but say three digits would be good, I think. Commented Nov 19 at 21:30
  • You should probably try to include a side by side comparison with the company numbers. Commented Nov 20 at 9:08
  • 1
    That's not really an option, @ꓢPArcheon, since they're very different approaches. It's a bit like apples and oranges here, since the designs of the experiments are so different. Both have their strengths and weaknesses and provide insight into different aspects of the issue.
    – Mithical
    Commented Nov 20 at 9:41
  • 1
    Sorry, I was in an hurry and the message was indeed unclear. I meant more of a comparative analysis. Reading the company answer, I get the idea they claim that "mods can't do this reliably", looking at yours I get the opposite felling. You folks say "GPT-4 is not a realistic scenario", Slade just "happened" to justify that in a comment. What I meant is that these two answers are distant enough that no one will be able to see who is actually "right", so most will just chose who to trust based on personal antagonistic biasis or the oath signed over a diamond. Commented Nov 20 at 13:19
  • 1
    It would be helpful to include an executive summary at the top of this post. Most of it seems to be fairly boring methodology that I wasn't especially interested in reading
    – Richard
    Commented Nov 24 at 19:04
7

(Note: this is a copy of something I posted on Stack Overflow Teams as a reply to a post about the same experiment as is being discussed here.)

In practice, I assume that the cases in which moderators would take some sort of action would be ones in which they were quite confident that an answer was AI-generated. So I took the data and looked specifically at answers that were classified as "AI-generated" or "AI-generated with human editing" at confidence 4 or 5. I'll regard these as "false positives" if the answer was actually human-written (even if then AI-edited) and as "true positives" if the answer was actually AI-generated (even if then human-edited).

In that case, across 40 answers and 33 participants there are 8 false positives and 256 true positives.

Perhaps we should only consider responses from people who are (or at least said they were at the time of the research) current moderators; in that case it's 5 false positives and 69 true positives.

Perhaps we should also exclude the one respondent whose English proficiency was not very good (most likely someone who knows they don't know the language very well would not take unilateral action on the basis of feeling that something was AI-written); in that case it's 3 false positives and 69 true positives.

The 3 remaining false positives are all from a single participant, who also scored the largest number of true positives of any participant; clearly this person is just a bit more trigger-happy than average.

So, across 21 human-written answers and 11 moderators we have 5 false positives (about 2.2% of them); if we remove that less-English-proficient moderator from the list it's 3/(21x10) or about 1.4%.

Across 19 AI-generated answers and 11 moderators we have 69 true positives (about 33%); if we remove the less-English-proficient moderator from the list it's 36%.

Most SE sites have more than one active moderator, but for the moment let's assume that each answer gets looked at by just one, who unilaterally either acts or doesn't. (I think the way moderators actually behave would produce better outcomes than this.) Then the tradeoff from allowing moderators to act when they think things are AI-generated looks like this: ~1/50 of human-written answers wrongly get some sort of moderator action, and ~1/3 of AI-generated answers rightly get some sort of moderator action.

That looks like a pretty good tradeoff to me, and if I look at things a bit less simplistically they look better rather than worse:

"Some sort of moderator action" probably means, at most, that an answer gets deleted. No one's likely to get suspended for posting an AI-looking answer once.

In practice, moderators collaborate, either explicitly or just via the fact that they see one another's actions and can take their own in response. Among those false positives, there were only two cases where more than one participant thought a human-written answer was AI-generated with confidence 4 or 5, and only one where more than one moderator did. On the other hand, true positives were generally identified as AI by many many participants.

5
  • 3
    "~1/50 of human-written answers wrongly get some sort of moderator action" that's way too high to be acceptable for me. how was this number derived?
    – starball
    Commented Nov 24 at 8:42
  • @starball, the ~1/50 corresponds to the approximately 2% false-positive rate mentioned in the post (i.e., the percentage of human-written posts identified with confidence as being AI-written). Commented Nov 24 at 10:12
  • Bart is right about what I meant. Note that "some sort of moderator action" might mean "poking another moderator and saying: hey, this looks suspicious to me, what do you think?" or "posting a comment saying: this looks like it might be AI-written, please don't do that" or "looking through the poster's history to see whether there are other signs of misbehaviour". It doesn't just mean warnings and deletions and suspensions and the like. Commented Nov 24 at 15:10
  • 3
    so you didn't factor in how often AIGC is actually posted? also, I find it difficult at an emotional level to classify asking a peer for a second pair of eyes "wrong". I do (or used to when I was more active) this frequently in the AI Domination chatroom. also, the assumption that mod eyes have total coverage of posts is totally unrealistic for large sites.
    – starball
    Commented Nov 24 at 21:53
  • The amount of AIGC being posted will probably affect how ready mods are to think "that's probably AI". It isn't at all wrong to ask a peer for a second pair of eyes, so I should maybe have worded things differently: if mod AI-suspicion and skill are as found in this experiment, then ~2% of human-written posts they look at will result in them thinking "that's probably AI" and doing whatever it is they do when they think that. Which might be anywhere from "ask for a second pair of eyes" to "yearlong suspension" :-). Commented Nov 25 at 1:02
-8

Thanks, great study. Answers by decent LLMs tend to be overly verbose and generic, unless prompted otherwise, with near flawless formatting and writing. GPT o1 + human edits to make it less verbose and generic, possibly adding more info, which is how I'd use it to write answers, is where it becomes much harder to distinguish from human answers.

For SO, that'd be interesting to see if humans can detect if code was generated by GPT o1 or humans, as in many cases, one would mostly use the LLM for code generation.

Lastly, note that SOTA LLMs (e.g., Gemini-1.5-Pro-Exp-0827, ChatGPT-4o-2024-09-03, Gemini-Exp-1114) score 200 elos higher than GPT 3.5 in human evals, i.e. outperform it significantly (200 elo higher = beat 3 out of 4 times).

3
  • 4
    Apart from the first sentence, I'm not sure how this relates to the study we ran. You're welcome to run your own, if you'd like.
    – wizzwizz4
    Commented Nov 20 at 8:20
  • @wizzwizz4 follow-up ideas / limitations. Commented Nov 20 at 8:23
  • 4
    I don't see how these are limitations, given that the aim was to model observed patterns. They might be good follow-up ideas, though: once people have poked some holes in our methodology, you should run a study.
    – wizzwizz4
    Commented Nov 20 at 8:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .