Non-Existent Relationship: Fact-Aware Multi-Level Machine-Generated Text Detection

Yang Wu, Ruijia Wang, Jie Wu2025

Abstract

Machine-generated text detection is critical for preventing misuse of large language models (LLMs). Although LLMs have recently excelled at mimicking human writing styles, they still suffer from factual hallucinations manifested as entity-relation inconsistencies with real-world knowledge. Current detection methods inadequately address the authenticity of the entity graph, which is a key discriminative feature for identifying machine-generated content. To bridge this gap, we propose a fact-aware model that assesses discrepancies between textual and factual entity graphs through graph comparison. In order to holistically analyze context information, our approach employs hierarchical feature extraction with gating units, enabling the adaptive fusion of multi-grained features from entity, sentence, and document levels. Experimental results on two public datasets demonstrate that our approach outperforms the state-of-the-art methods. Interpretability analysis shows that our model can capture the differences in entity graphs between machine-generated and human-written texts.

Introduction: The Hallucination Problem

As Large Language Models (LLMs) evolve, they have become masters of stylistic mimicry, making traditional detection methods based on "perplexity" or linguistic patterns increasingly obsolete. However, a persistent flaw remains: factual hallucination. While an AI can generate a grammatically perfect news report, it often "invents" relationships between entities—people, places, or organizations—that do not exist in the real world.

Example of entity-relation inconsistencies in machine-generated text compared to factual knowledge.

Existing entity-based detectors often focus on internal consistency (e.g., whether the model remembers a name it mentioned earlier). The proposed FAML (Fact-Aware Multi-Level) framework shifts the focus toward external truth, identifying "non-existent relationships" by comparing the text's internal entity graph against a factual knowledge base like Wikipedia.

Methodology: The FAML Framework

The FAML model employs a multi-stage pipeline designed to capture discrepancies at various levels of granularity, from global document style to specific factual triplets.

The FAML architecture, featuring multi-level feature extraction and adaptive gating for fusion.

1. Graph Construction and Comparison

The model first extracts a Textual Entity Graph from the input document using REBEL to identify Subject-Relation-Object triplets. Simultaneously, entities are linked to a knowledge base (DBpedia) via TAGME to construct a Factual Entity Graph. By encoding both graphs with Graph Convolutional Networks (GCNs), the model calculates a discrepancy feature ($h_{diff}$) that highlights factual errors where the text claims a relationship that the knowledge base does not support.

2. Multi-Level Feature Extraction

FAML analyzes the text across three distinct levels to ensure a holistic view:

  • Entity level: Captures factual discrepancies between the text and the knowledge base.
  • Sentence level: Uses a Transformer encoder to represent the semantic flow of individual sentences.
  • Document level: Employs RoBERTa to provide a global stylistic and contextual representation.

3. Adaptive Gating Fusion

Rather than simple concatenation, FAML uses learnable gating units to fuse these features. This allows the model to adaptively weight the importance of factual truth versus stylistic patterns depending on the specific characteristics of the input text, acting as a traffic controller for multi-grained information.

Experimental Evaluation

The researchers evaluated FAML on three diverse datasets: GROVER (news), GPT-2 (web text), and the SemEval 2024 Task 8 (a modern mix including GPT-4 and ChatGPT).

Key Results

FAML consistently outperformed state-of-the-art baselines, including DetectGPT and COCO:

  • Accuracy: On the GROVER dataset, FAML achieved 93.4% accuracy, significantly higher than the 89.7% baseline of a standard RoBERTa-Large model.
  • Robustness: The model maintained high performance (over 91%) on the challenging SemEval dataset, proving its effectiveness against advanced models like GPT-4.
  • Ablation Studies: Removing the entity comparison module led to the most significant drop in performance, confirming that factual verification is the "smoking gun" for modern AI detection.

Conclusion

FAML demonstrates that as LLMs become better at mimicking human style, the most reliable signal for detection lies in the "truthfulness" of the relationships they describe. By integrating factual knowledge graphs with multi-level stylistic analysis, FAML provides a robust defense against the misuse of machine-generated content. Future work will focus on expanding the knowledge base beyond Wikipedia and addressing non-entity-based hallucinations, such as logical or arithmetic errors.

Summary updated

Abstract

Machine-generated text detection is critical for preventing misuse of large language models (LLMs).Although LLMs have recently excelled at mimicking human writing styles, they still suffer from factual hallucinations manifested as entity-relation inconsistencies with real-world knowledge.Current detection methods inadequately address the authenticity of the entity graph, which is a key discriminative feature for identifying machine-generated content.To bridge this gap, we propose a fact-aware model that assesses discrepancies between textual and factual entity graphs through graph comparison.In order to holistically analyze context information, our approach employs hierarchical feature extraction with gating units, enabling the adaptive fusion of multi-grained features from entity, sentence, and document levels.Experimental results on two public datasets demonstrate that our approach outperforms the state-of-the-art methods.Interpretability analysis shows that our model can capture the differences in entity graphs between machine-generated and human-written texts.
BibTeX
@misc{wu2025non,
  author = {Yang Wu and Ruijia Wang and Jie Wu},
  title = {{Non-Existent Relationship: Fact-Aware Multi-Level Machine-Generated Text Detection}},
  year = {2025},
  doi = {10.18653/v1/2025.emnlp-main.186},
}
Figure