paperbot · PL 论文追踪

全部论文 待读 收藏

P2 ChatGPT Incorrectness Detection in Software Reviews

软件评审中的 ChatGPT 不正确性检测
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 3/10 · 论文关注 ChatGPT 回答错误检测,属于 LLM 可靠性/测试与提示词变形方法,既不是用静态分析改进 Agentic 程序,也不是用 LLM/Agent 改进静态分析或形式化验证;与浮点程序分析、贝叶斯程序分析也无直接交叉。引用 11 inbox
Minaoar Hossain Tanzil, Junaed Younus Khan, Gias Uddin
crossref: 2026-09-12

AI 速览

一句话:通过问题变形与迭代提示检测 ChatGPT 回答中的错误,在库选择基准上 F1 达 0.74—0.75。

本文关注软件工程从业者使用 ChatGPT 等生成式 AI 聊天机器人时对其回答真实性的担忧。作者先对 135 名从业者进行调研,发现他们希望用 ChatGPT 完成软件库选择等任务,但常担心答案不正确。为此提出 CID(ChatGPT Incorrectness Detector)及配套技术:通过迭代提示,向 ChatGPT 提出上下文相似但文本表述不同的问题,并利用文本中的蜕变关系生成问题变体;其核心假设是,若某回答与同一问题多个变体所得回答差异显著,则该回答很可能不正确。在软件库选择基准评测中,CID 检测 ChatGPT 错误回答的 F1 分数为 0.74—0.75。

问题
软件工程从业者想用 ChatGPT 等生成式 AI 完成软件库选择等任务,但难以判断其回答是否真实正确。本文旨在自动检测 ChatGPT 回答中的不正确性。
方法
作者先调研 135 名 SE 从业者,再提出 CID 工具:利用蜕变关系构造上下文相似但文本不同的问题,通过迭代提示让 ChatGPT 多次回答,并将与多数回答明显不同的回答判为可能错误。
评估
在软件库选择任务的基准研究中,CID 检测 ChatGPT 错误回答的 F1 分数达到 0.74—0.75。
原文摘要(Abstract)

We conducted a survey of 135 software engineering (SE) practitioners to understand how they use Generative AI-based chatbots like ChatGPT for SE tasks. We find that they want to use ChatGPT for SE tasks like software library selection but often worry about the truthfulness of ChatGPT responses. We developed a suite of techniques and a tool called CID (ChatGPT Incorrectness Detector) to automatically test and detect the incorrectness in ChatGPT responses. CID is based on the iterative prompting to ChatGPT by asking it contextually similar but textually divergent questions (using an approach that utilizes metamorphic relationships in texts). The underlying principle in CID is that for a given question, a response that is different from other responses (across multiple incarnations of the question) is likely an incorrect response. In a benchmark study of library selection, we show that CID can detect incorrect responses from ChatGPT with an F1-score of 0.74 -- 0.75.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11444,
  title = {ChatGPT Incorrectness Detection in Software Reviews},
  author = {Minaoar Hossain Tanzil and Junaed Younus Khan and Gias Uddin},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639194}
}