SPADE: Structured Prompting Augmentation for Dialogue Enhancement in Machine-Generated Text Detection

Haoyi Li, Angela Yifei Yuan, Soyeon Caren Han, Christopher Leckie
3/19/2025
cs.CL

Official code: AngieYYF/SPADE-customer-service-dialogue (2 stars, Apache-2.0, last commit 2025-03-26).

Abstract

The increasing capability of large language models (LLMs) to generate synthetic content has heightened concerns about their misuse, driving the development of Machine-Generated Text (MGT) detection models. However, these detectors face significant challenges due to the lack of high-quality synthetic datasets for training. To address this issue, we propose SPADE, a structured framework for detecting synthetic dialogues using prompt-based positive and negative samples. Our proposed methods yield 14 new dialogue datasets, which we benchmark against eight MGT detection models. The results demonstrate improved generalization performance when utilizing a mixed dataset produced by proposed augmentation frameworks, offering a practical approach to enhancing LLM application security. Considering that real-world agents lack knowledge of future opponent utterances, we simulate online dialogue detection and examine the relationship between chat history length and detection accuracy. Our open-source datasets, code and prompts can be downloaded from https://github.com/AngieYYF/SPADE-customer-service-dialogue.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
20Python, Jupyter NotebookNov 14, 20241 years agoApache-2.0

Cite this paper

@article{li2025spade,
  title  = {SPADE: Structured Prompting Augmentation for Dialogue Enhancement in Machine-Generated Text Detection},
  author = {Haoyi Li and Angela Yifei Yuan and Soyeon Caren Han and Christopher Leckie},
  year   = {2025},
  eprint = {2503.15044},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.15044v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.15044.svg)](https://codeofpaper.com/paper/2503.15044)

Discussion