Skip to main content
QUICK REVIEW

[Paper Review] Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questions

Samia Kabir, David N. Udo-Imeh|arXiv (Cornell University)|Aug 4, 2023
Topic ModelingComputer Science66 references51 citations
TL;DR

The paper empirically analyzes ChatGPT answers to 517 Stack Overflow questions, finding substantial misinformation, verbosity, and inconsistency, yet noting some user preference for ChatGPT for comprehensiveness and language style.

ABSTRACT

Q&A platforms have been crucial for the online help-seeking behavior of programmers. However, the recent popularity of ChatGPT is altering this trend. Despite this popularity, no comprehensive study has been conducted to evaluate the characteristics of ChatGPT's answers to programming questions. To bridge the gap, we conducted the first in-depth analysis of ChatGPT answers to 517 programming questions on Stack Overflow and examined the correctness, consistency, comprehensiveness, and conciseness of ChatGPT answers. Furthermore, we conducted a large-scale linguistic analysis, as well as a user study, to understand the characteristics of ChatGPT answers from linguistic and human aspects. Our analysis shows that 52% of ChatGPT answers contain incorrect information and 77% are verbose. Nonetheless, our user study participants still preferred ChatGPT answers 35% of the time due to their comprehensiveness and well-articulated language style. However, they also overlooked the misinformation in the ChatGPT answers 39% of the time. This implies the need to counter misinformation in ChatGPT answers to programming questions and raise awareness of the risks associated with seemingly correct answers.

Motivation & Objective

  • Assess the correctness and quality of ChatGPT answers to programming questions compared to Stack Overflow (SO).
  • Characterize the types of errors and inconsistencies in ChatGPT responses.
  • Explore linguistic and sentiment differences between ChatGPT and human SO answers.
  • Understand programmer preferences and heuristics when choosing between ChatGPT and SO.
  • Inform design considerations to counter misinformation in AI-assisted programming.

Proposed method

  • Sampled 517 SO questions across popularity, recency, and type and generated ChatGPT answers via prompts based on question title/body/tags.
  • Manually analyzed ChatGPT answers for correctness, consistency, comprehensiveness, and conciseness using a multi-label coding scheme.
  • Conducted large-scale LIWC-based linguistic analysis and RoBERTa-based sentiment analysis on 2000 ChatGPT and SO answers.
  • Carried out a within-subjects user study with 12 programmers to assess perceptions, correctness, and preferences between ChatGPT and SO answers.
  • Performed semi-structured interviews to uncover heuristics for identifying misinformation and user reasoning.
  • Made data and codebooks publicly available for replication.

Experimental results

Research questions

  • RQ1RQ1: How do ChatGPT answers differ from SO answers in terms of correctness and quality?
  • RQ2RQ2: What are the fine-grained issues associated with each correctness and quality aspect?
  • RQ3RQ3: Do the types of SO questions affect the quality of ChatGPT answers?
  • RQ4RQ4: Do the language structure and attributes of ChatGPT answers differ from SO answers?
  • RQ5RQ5: Do the underlying sentiment of ChatGPT answers differ from SO answers?
  • RQ6RQ6: Can programmers differentiate ChatGPT answers from human answers?
  • RQ7RQ7: Can programmers identify misinformation in ChatGPT answers?
  • RQ8RQ8: Do programmers prefer ChatGPT over Stack Overflow?

Key findings

  • 52% of ChatGPT answers contain misinformation.
  • 77% of ChatGPT answers are more verbose than human SO answers.
  • 78% of ChatGPT answers exhibit some form of inconsistency with human answers.
  • Participants preferred ChatGPT for comprehensiveness and articulation, but overall leaned toward human SO answers.
  • Participants overlooked misinformation in ChatGPT answers 39% of the time.
  • ChatGPT answers exhibit more formal and analytical language and less negative sentiment according to linguistic analyses.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.