MGT-Prism: Enhancing Domain Generalization for Machine-Generated Text Detection via Spectral Alignment

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Liu, Shengchao, Liu, Xiaoming, Li, Chengzhengxu, Zhang, Zhaohan, Ma, Guoxin, Lan, Yu, Xiao, Shuai
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914001607196672
author Liu, Shengchao
Liu, Xiaoming
Li, Chengzhengxu
Zhang, Zhaohan
Ma, Guoxin
Lan, Yu
Xiao, Shuai
author_facet Liu, Shengchao
Liu, Xiaoming
Li, Chengzhengxu
Zhang, Zhaohan
Ma, Guoxin
Lan, Yu
Xiao, Shuai
contents Large Language Models have shown growing ability to generate fluent and coherent texts that are highly similar to the writing style of humans. Current detectors for Machine-Generated Text (MGT) perform well when they are trained and tested in the same domain but generalize poorly to unseen domains, due to domain shift between data from different sources. In this work, we propose MGT-Prism, an MGT detection method from the perspective of the frequency domain for better domain generalization. Our key insight stems from analyzing text representations in the frequency domain, where we observe consistent spectral patterns across diverse domains, while significant discrepancies in magnitude emerge between MGT and human-written texts (HWTs). The observation initiates the design of a low frequency domain filtering module for filtering out the document-level features that are sensitive to domain shift, and a dynamic spectrum alignment strategy to extract the task-specific and domain-invariant features for improving the detector's performance in domain generalization. Extensive experiments demonstrate that MGT-Prism outperforms state-of-the-art baselines by an average of 0.90% in accuracy and 0.92% in F1 score on 11 test datasets across three domain-generalization scenarios.
format Preprint
id arxiv_https___arxiv_org_abs_2508_13768
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MGT-Prism: Enhancing Domain Generalization for Machine-Generated Text Detection via Spectral Alignment
Liu, Shengchao
Liu, Xiaoming
Li, Chengzhengxu
Zhang, Zhaohan
Ma, Guoxin
Lan, Yu
Xiao, Shuai
Computation and Language
Large Language Models have shown growing ability to generate fluent and coherent texts that are highly similar to the writing style of humans. Current detectors for Machine-Generated Text (MGT) perform well when they are trained and tested in the same domain but generalize poorly to unseen domains, due to domain shift between data from different sources. In this work, we propose MGT-Prism, an MGT detection method from the perspective of the frequency domain for better domain generalization. Our key insight stems from analyzing text representations in the frequency domain, where we observe consistent spectral patterns across diverse domains, while significant discrepancies in magnitude emerge between MGT and human-written texts (HWTs). The observation initiates the design of a low frequency domain filtering module for filtering out the document-level features that are sensitive to domain shift, and a dynamic spectrum alignment strategy to extract the task-specific and domain-invariant features for improving the detector's performance in domain generalization. Extensive experiments demonstrate that MGT-Prism outperforms state-of-the-art baselines by an average of 0.90% in accuracy and 0.92% in F1 score on 11 test datasets across three domain-generalization scenarios.
title MGT-Prism: Enhancing Domain Generalization for Machine-Generated Text Detection via Spectral Alignment
topic Computation and Language
url https://arxiv.org/abs/2508.13768