Manuscript Offprint

arXiv:2608.28009

Beyond Global Scalars: Synergizing Token-Level Statistics and Deep Semantics for Adversarial AIGC Text Detection

Peiming Li, Yifan Wang, Zhiyuan Hu, Shiyu Li, Zheng Wei, Yang Tang

Abstract

The rapid evolution of large language models necessitates robust machine-generated text detection. Existing paradigms typically follow two isolated tracks. Training-free methods rely on global statistical scalars such as perplexity, while training-based methods utilize semantic hidden states. Both approaches exhibit fundamental vulnerabilities in adversarial scenarios. Global scalars act as lossy compressions that obscure local probabilistic burstiness in interleaved texts, whereas pure semantic models overfit to specific fingerprints and remain susceptible to spoofing. To expose these flaws, we introduce MOSAIC, a comprehensive adversarial benchmark comprising 16000 samples across a full-granularity attack spectrum. To address these challenges, we propose NeuroStat, an end-to-end framework bridging the statistical and semantic gap. NeuroStat captures uncompressed token-level probabilistic logits alongside deep semantic hidden states from a single causal language model backbone. We fuse these heterogeneous signals through Macro-State Residual Modulation, which adaptively calibrates local convolutional features using global uncertainty indicators. Orthogonal and contrastive losses further ensure the learning of complementary representations. Extensive experiments demonstrate that NeuroStat maintains exceptional robustness on MOSAIC compared to the severe degradation of state-of-the-art methods, establishing a new standard for adversarial text detection. Code and the MOSAIC benchmark are available at https://github.com/TencentBAC/NeuroStat.

1 Introduction

The proliferation of advanced Large Language Models (LLMs) (Brown et al., 2020; Touvron et al., 2023; OpenAI et al., 2024; GLM-5-Team et al., 2026; Team et al., 2026) has blurred the boundary between human-written and machine-generated text (Clark et al., 2021). While this technological leap empowers productivity, it exacerbates the spread of misinformation (Zellers et al., 2019). Consequently, Machine-Generated Text Detection (MGTD) has emerged as a critical research frontier.

Current MGTD methodologies predominantly follow two isolated paradigms, Training-Free (TF) methods that calculate global statistical scalars (e.g., perplexity) (Mitchell et al., 2023; Bao et al., 2024b), and Training-Based (TB) methods that fine-tune black-box encoders to capture semantic styles (Solaiman et al., 2019; Verma et al., 2024). Recent hybrid strategies (Chen et al., 2024; Fu et al., 2025) attempt to optimize scoring models but still rely on lossy global scalars. In real-world applications, malicious users rarely generate entire documents directly. Instead, they employ Interleaved Human-AI Writing or Statistical Hijacking (Sadasivan et al., 2025; Krishna et al., 2023). As illustrated in Fig. 1, existing paradigms are easily bypassed, TF methods average out local probability bursts and are spoofed by high-entropy instructions (Fig. 1a), while TB methods overfit to specific semantic fingerprints, leaving them susceptible to style manipulation (Fig. 1b).

To systematically diagnose these vulnerabilities, we introduce MOSAIC (Multidimensional Obfuscation and Spoofing Adversarial Interleaved Corpus), the most comprehensive adversarial MGTD benchmark to date. Unlike existing datasets (Guo et al., 2023; Dugan et al., 2024), MO-

∗^{*}Corresponding authors.

†^{\dagger}Project Lead.

Figure

Figure 1: Comparison of detection paradigms under adversarial attacks. Existing methods fail due to their reliance on either (a) easily hijacked global statistical scalars (Training-Free) or (b) overfitted semantic patterns that can be disrupted by style manipulation (Training-Based). (c) NeuroStat robustly detects adversarial AIGC by synergizing uncompressed token-level statistical trajectories and deep semantic representations.

SAIC constructs a full-granularity attack spectrum encompassing 8 categories and 36 sub-methods, employing a cross-allocation mechanism across six frontier LLMs to mitigate model fingerprint bias.

To overcome the inherent flaws exposed by MO-SAIC, we propose NeuroStat (Neural Embeddings and Representations Orthogonalized with Statistical Trajectories), a novel end-to-end framework that bridges the TF-TB methods' gap. We argue that TF and TB provide orthogonal but complementary views, TF captures the probabilistic mechanics of decoding, while TB captures contextual semantics. NeuroStat extracts both token-level statistical trajectories and deep semantic representations from a single CausalLM backbone.

Crucially, instead of compressing probabilities into a vulnerable scalar, NeuroStat preserves the full sequential trajectory. To fuse these heterogeneous signals, we design a Macro-State Residual Modulation (MSRM) mechanism. MSRM utilizes global uncertainty indicators to dynamically amplify local probability anomalies, effectively capturing hidden AI bursts within fluent human contexts. Trained with orthogonal and contrastive objectives, NeuroStat learns discriminative and non-redundant representations, maintaining exceptional robustness against adversarial attacks (Fig. 1c).

Our contributions are summarized as follows:

• A Paradigm Shift in Detection Architecture. We propose NeuroStat, the first framework to achieve end-to-end fusion of probabilistic trajectories and semantic artifacts. By replacing lossy global scalars with MSRM, it overcomes dilution and spoofing flaws.

• A Full-Spectrum Adversarial Benchmark: We construct MOSAIC, a benchmark featuring an unprecedented 8×368 \times 36 attack matrix and multi-model cross-generation, establishing a new standard for MGTD robustness.

• State-of-the-Art Robustness. Extensive experiments demonstrate that NeuroStat significantly outperforms existing baselines across diverse domains, models, and attack granularities, maintaining high accuracy even in extreme adversarial scenarios.

References (14)