CoChat

Threads of Subtlety: Detecting Machine-Generated Texts Through Discourse Motifs

Open access
Kim, Zae Myung, Lee, Kwang, Zhu, Preston, Raheja, Vipul, Kang, Dongyeop · 2024 · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)

The DOI matches its Crossref record; 64 of the 64 references it cites were found in a registry or an index; none of the 15 sources its claims cite is checked for support yet.

Abstract

With the advent of large language models (LLM), the line between human-crafted and machine-generated texts has become increasingly blurred. This paper delves into the inquiry of identifying discernible and unique linguistic properties in texts that were written by humans, particularly uncovering the underlying discourse structures of texts beyond their surface structures. Introducing a novel methodology, we leverage hierarchical parse trees and recursive hypergraphs to unveil distinctive discourse patterns in texts produced by both LLMs and humans. Empirical findings demonstrate that, although both LLMs and humans generate distinct discourse patterns influenced by specific domains, human-written texts exhibit more structural variability, reflecting the nuanced nature of human writing in different domains. Notably, incorporating hierarchical discourse features enhances binary classifiers’ overall performance in distinguishing between human-written and machine-generated texts, even on out-of-distribution and paraphrased samples. This underscores the significance of incorporating hierarchical discourse features in the analysis of text patterns. The code and dataset will be available at [TBA].

Overview

CoChat Summary

TL;DR

The paper proposes using hierarchical discourse structures—RST parse trees converted to recursive hypergraphs—and discourse motif analysis to distinguish human-written from machine-generated texts. It reports that adding motif features improves binary detectors, including on out-of-distribution and paraphrased samples, and that human texts show greater structural variability.

Key findings

  • Discourse motifs improve detection: GAT improved 0.67→0.73 on HC3; LF improved 0.97→0.98 on HC3, 0.90→0.93 on DeepfakeTextDetect, 0.74→0.82 on OOD, and 0.60→0.62 on OOD-Para (Table 3). On TenPageStories, LF+Motifs improved over LF across settings (e.g., FIG 1: 0.30→0.43; FIG 3: 0.40→0.65; FIG 5: 0.45→0.71; constrained FIG 1: 0.59→0.71; 3: 0.50→0.69; 5: 0.55→0.70).
  • Motif distributions differ: in TenPageStories, as generation length increases, motifs indexed 0 (Elaboration) and 28 (Temporal) become more prevalent in machine-generated texts, while motifs 7 (Joint) and 5 (Joint) appear more in human-authored texts. Across domains, machine-generated texts tend to feature more Background relations; human-written texts show more Temporal in YELP/WP and more Joint in CMV/XSUM.
  • Structural variability and formality: after paraphrasing, lower segments of discourse graphs show greater absolute distance than upper segments, supporting the hypothesis that higher-level structure is preserved. Human-written texts show weak-to-moderate correlation between formality scores and hyperedge frequency (Pearson R=0.39), while machine-generated texts show no correlation (0.08).
  • Motif inventory: 69 single-triads, 592 double-triads, 2,394 triple-triads; 207 motifs selected by MF-IDF >1 SD (31 single, 96 double, 80 triple).

Methods

  • Documents parsed with RST using the DMRST parser; RST trees converted to recursive hypergraphs and isomorphic Levi graphs; motifs generated as unions of triads (single-, double-, triple-triads); features include motif frequency, weighted average depth, and MF-IDF.
  • Evaluated with Random Forest, Graph Attention Network, and Longformer on HC3-English, DeepfakeTextDetect (five domains: YELP, WP, CMV, XSUM, SCI_GEN), and new TenPageStories dataset (20 fictional stories up to 8K tokens, generated with GPT-4-1106-preview in unconstrained, fill-in-the-gap, and constrained fill-in-the-gap settings; 552 request calls, $55).
  • Binary classification F1; analyses of OOD and paraphrased OOD samples, structural variation after paraphrasing, formality score vs hyperedge frequency, and average shortest path length.

Limitations

  • Paper states: findings rely on parsed discourse trees from an existing parser; parsed results may be suboptimal due to difficulty of hierarchical discourse parsing, limited training data, and discourse relation ambiguities; alternative frameworks like SDRT not used. Motif analyses limited to single-, double-, and triple-triads; longer patterns may exist but expanding is not feasible. Formality scorer was trained on short sentence-level inputs and may not suit longer documents. More comprehensive analysis of TenPageStories is needed.
  • Evident from text: unconstrained TenPageStories generations were not used in experiments due to limited input length of the discourse parser; TenPageStories is small (20 stories); detection F1 scores on TenPageStories are low due to many false negatives; DeepfakeTextDetect results cover only five of ten domains; ~56% of original dataset used to mitigate imbalance; single classifier across ten domains and no decision boundary adjustment.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.18653/v1/2024.acl-long.298

Cites

64 of 64 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Figures

Figure 1 Human writers often employ hierarchical linguistic structures in writing whereas LLMs primarily operate by the sequential next token prediction task.
Figure 1 Human writers often employ hierarchical linguistic structures in writing whereas LLMs primarily operate by the sequential next token prediction task.CC-BY · From the PDF
Figure 2 Difference in motif distribution of machine-generated and human-written texts for Yelp domain. Below are the top discourse motifs for each authorship and their corresponding discourse relations with examples. Text enclosed in angle brackets denotes the EDUs involved in the relation.
Figure 2 Difference in motif distribution of machine-generated and human-written texts for Yelp domain. Below are the top discourse motifs for each authorship and their corresponding discourse relations with examples. Text enclosed in angle brackets denotes the EDUs involved in the relation.CC-BY · From the PDF
Image 3
CC-BY · From the PDF
Image 4
CC-BY · From the PDF
Figure 4 A data flow diagram illustrating how various types of input features are fed into the three baseline models: Graph Attention Network (GAT), Random Forest (RF), and Longformer (LF).
Figure 4 A data flow diagram illustrating how various types of input features are fed into the three baseline models: Graph Attention Network (GAT), Random Forest (RF), and Longformer (LF).CC-BY · From the PDF
Figure 5 Difference distribution of motifs for TENPAGESTORIES under the fi ll-in-the-gap settings. The xaxis represents unique indices of single-triads while the y-axis shows the difference in motif frequency (scaled by 1e-3) of machine-generated and human-written texts for each motif. Discourse motifs indexed at 0 (Elaboration), 5 (Joint), 7 (Joint), and 28 (Temporal) seem to be useful in distinguishing the two groups.
Figure 5 Difference distribution of motifs for TENPAGESTORIES under the fi ll-in-the-gap settings. The xaxis represents unique indices of single-triads while the y-axis shows the difference in motif frequency (scaled by 1e-3) of machine-generated and human-written texts for each motif. Discourse motifs indexed at 0 (Elaboration), 5 (Joint), 7 (Joint), and 28 (Temporal) seem to be useful in distinguishing the two groups.CC-BY · From the PDF
Figure 6 We posit that sentence-level paraphrasing typically leads to greater variability in lower segments of discourse structures compared to higher segments near the root node.
Figure 6 We posit that sentence-level paraphrasing typically leads to greater variability in lower segments of discourse structures compared to higher segments near the root node.CC-BY · From the PDF
Figure 7 Two heatmaps illustrating the absolute differences of normalized motif counts (above) and weighted average depth (below) between motifs present in discourse graphs of original and paraphrased texts. A graph is further divided into two separate subgraphs (i.e., 'upper (U)' and 'lower (L)') depending on the distance from the root node.
Figure 7 Two heatmaps illustrating the absolute differences of normalized motif counts (above) and weighted average depth (below) between motifs present in discourse graphs of original and paraphrased texts. A graph is further divided into two separate subgraphs (i.e., 'upper (U)' and 'lower (L)') depending on the distance from the root node.CC-BY · From the PDF
Figure 8 Steve Job's motivational quote and its corresponding RST tree.
Figure 8 Steve Job's motivational quote and its corresponding RST tree.CC-BY · From the PDF
Figure 9 An example of calculating motif frequency and weighted average depth for the single-triad m 18 .
Figure 9 An example of calculating motif frequency and weighted average depth for the single-triad m 18 .CC-BY · From the PDF
Figure 10 Correlation between selected single-triads with high MF-IDF scores and influential edges computed by a GAT explainer on DEEPFAKETEXTDETECT dataset.
Figure 10 Correlation between selected single-triads with high MF-IDF scores and influential edges computed by a GAT explainer on DEEPFAKETEXTDETECT dataset.CC-BY · From the PDF
Figure 11 Proportions of labels of influential edges. Note that 'Non-influential' refers to edges whose mask values are under the threshold. Note also that the value '0.0%' in this figure does not indicate the zero, but a very small positive number like '1e-5%.'
Figure 11 Proportions of labels of influential edges. Note that 'Non-influential' refers to edges whose mask values are under the threshold. Note also that the value '0.0%' in this figure does not indicate the zero, but a very small positive number like '1e-5%.'CC-BY · From the PDF
Figure 12 Difference in single-triad motif distribution of machine-generated and human-written texts for five different domains in DEEPFAKETEXTDETECT dataset. Y-axis represent the difference in MF-IDF scores scaled by 1e-3. Full-scaled versions including a larger number of motifs and plots for double- and triple-triads can be found in Appendix J.
Figure 12 Difference in single-triad motif distribution of machine-generated and human-written texts for five different domains in DEEPFAKETEXTDETECT dataset. Y-axis represent the difference in MF-IDF scores scaled by 1e-3. Full-scaled versions including a larger number of motifs and plots for double- and triple-triads can be found in Appendix J.CC-BY · From the PDF
Figure 13 Illustration of document graph structures with different discourse hierarchies. For simplicity, the horizontal edge linking two child nodes is omitted.
Figure 13 Illustration of document graph structures with different discourse hierarchies. For simplicity, the horizontal edge linking two child nodes is omitted.CC-BY · From the PDF
Figure 14 Average shortest path lengths per domain for document graphs. We
Figure 14 Average shortest path lengths per domain for document graphs. WeCC-BY · From the PDF
Image 16
CC-BY · From the PDF
Image 17
CC-BY · From the PDF
Figure 16 displays two bar plots for single- and double-motifs, depicting MF-IDF difference distributions. Triple-triads are excluded due to label clutter.
Figure 16 displays two bar plots for single- and double-motifs, depicting MF-IDF difference distributions. Triple-triads are excluded due to label clutter.CC-BY · From the PDF
Figure 17 Examples of three types of motifs. More examples of single-triads are drawn in Figure 18.
Figure 17 Examples of three types of motifs. More examples of single-triads are drawn in Figure 18.CC-BY · From the PDF
Figure 18 All 69 motifs of size three. The 31 marked motifs are the selected ones that exhibit MF-IDF scores surpassing at least one standard deviation.
Figure 18 All 69 motifs of size three. The 31 marked motifs are the selected ones that exhibit MF-IDF scores surpassing at least one standard deviation.CC-BY · From the PDF

Verification

Claims the paper makes

0 Valid · 2 Not valid · 10 Not checked · 54 Own results and interpretations

36 more claims

Create a free account to see all 66 claims and to verify the 9 references still open.

See all claims — free account
  • It may state two separate claims as one. 6
  • Probably not a substantial claim. 21
  • The quote only partly states this claim. 1

Create a free account to see these claims.

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

1 of 1

Citations

Cites

Research works printed but not linked: 3

  1. John Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz, Ian Miers, and Tom Goldstein. 2023. A watermark for large language models. In Proceed- ings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 17061-17084.
  2. PMLR.
  3. Eleni Miltsakaki, Rashmi Prasad, Aravind Joshi, and Bonnie Webber. 2004. The Penn Discourse Tree- bank. In Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC'04), Lisbon, Portugal. European Language Resources Association (ELRA).

Cited by

See all 32

Metadata

Authors
Kim, Z. M., Lee, K., Zhu, P., Raheja, V., & Kang, D.
Affiliations
Kumoh National Institute of Technology (KR)
Venue
Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Published
2024
Pages
5449-5474
ISSN
0736-587X (ISSN-L)
OpenAlex
W4402671728
Cited by
31
References
48
Citations by year
2026: 17 · 2025: 13 · 2024: 1
FWCI
2.26
Type
conference paper
Language
en
Open access
Licence
cc-by
Locations
  • Proceedings of the conference - Association for Computational Linguistics. Meeting (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion, cc-by-nc-nd)
Funders
  • National Research Foundation
  • National Research Foundation of Korea
  • Korea Advanced Institute of Science and Technology
  • Ministry of Science and ICT, South Korea (RS-2024-00345567)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Authorship Attribution and Profiling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
AI-generated text detection, large language models, human-written vs machine-generated text, discourse structure, binary classification, out-of-distribution generalization

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

A language model drew the claims from the paper on 2026-11-24, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-11-24 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.