Abstract
The rapid advancement of Large Language Models (LLMs) has created an urgent need for reliable and explainable machine-generated text (MGT) detection. We present LM²OTIFS, a novel framework that treats documents as graphs to capture complex linguistic dependencies. By integrating Graph Neural Networks (GNNs) with post-hoc explainability tools, LM²OTIFS achieves state-of-the-art detection performance while extracting "linguistic motifs" that serve as interpretable fingerprints of AI-generated content.
Introduction
As LLMs like ChatGPT and Llama produce increasingly human-like text, distinguishing between human and machine authorship has become a critical challenge. Existing detection methods often operate as "black boxes," providing probability scores without justifying their decisions. In high-stakes domains such as legal proceedings or academic integrity, this lack of transparency is a significant barrier.
LM²OTIFS addresses this by moving beyond sequential text analysis. It operates on the hypothesis that every LLM leaves a unique "linguistic fingerprint"—structural patterns in word relationships that differ from human prose. By modeling these relationships as graphs, the framework can identify non-linear dependencies that traditional sequence-based models overlook.
Methodology
The LM²OTIFS framework consists of three primary stages: graph construction, GNN-based detection, and motif extraction.
- Graph Construction: Documents are transformed into graphs where nodes represent tokens and the document itself. Edges are established using Point-wise Mutual Information (PMI) within a sliding window, capturing lexical dependencies that sequential models might miss.
- GNN Detection: A Graph Convolutional Network (GCN) classifies document nodes. Theoretical analysis suggests that this graph-based representation is more expressive than empirical sequential detectors.
- Explainable Motif Extraction: Using GNNExplainer, the system identifies the "minimal and sufficient" subgraphs (motifs) responsible for a classification. These motifs provide visual and structural evidence of the AI's linguistic patterns.
Experimental Evaluation
We evaluated LM²OTIFS across several diverse benchmarks, including HC3 (finance/medicine), M4 (multi-generator/multi-lingual), and RAID (robust multi-genre).
Performance Results
LM²OTIFS demonstrated exceptional performance, frequently achieving an AUC of 1.00. It consistently outperformed or matched established baselines such as Binoculars, Fast-DetectGPT, and GPTZero across various datasets.
Explainability and Efficiency
Beyond accuracy, the framework's explainability was validated using the "Most Relevant First" (MoRF) protocol. Results showed that the extracted motifs are highly indicative of the model's decision; removing the top 20% of edges in a motif led to a significant 15% drop in accuracy. Furthermore, LM²OTIFS exhibited the lowest inference time among training-based baselines, highlighting its potential for real-time deployment.
Discussion and Insights
A key finding of this research is that machine-generated text tends to be "denser" in terms of word-to-word connections compared to human text. LLMs often rely on specific, calculated token co-occurrences that form detectable structural motifs.
While highly effective, the framework faces challenges common to the field, such as sensitivity to specific GNN architectures and potential performance degradation in cross-domain scenarios. Additionally, the discovery of these "fingerprints" raises the possibility of adversarial attacks where users might attempt to mask these motifs to evade detection.
Conclusion
LM²OTIFS represents a significant step toward transparent MGT detection. By leveraging graph structures and GNN-based explainability, it provides not just a verdict on text authorship, but the structural evidence required for informed decision-making in critical applications.
Summary updated