VERITAS: Veracity-Enhanced Robust Identification of LLM-generated Text Against Style-shifts

Xiaoquan Yi, Haozhao Wang, Yichen Li, Wenchao Xu, Jinghua Zhang, Yuhua Li, Imran Razzak, Rui Zhang, Ruixuan LiNeurIPS 2026

TL;DR

Current AI-text detectors act like literary critics with tunnel vision: they rely heavily on superficial writing styles, meaning you can easily fool them just by asking an LLM to rewrite its output in the tone of a fairy tale or a news anchor. This paper introduces VERITAS, a detection framework that learns to ignore how something is written and focus on what is beneath the surface—catching machine-generated text by its deeper structural and logical fingerprints, even under disguise.

What Problem Does This Paper Address?

As LLMs become ubiquitous, telling human writing apart from synthetic text is critical for curbing misinformation and academic fraud. Most existing detectors—whether they analyze token probability curves (like DetectGPT) or sentence patterns—quietly rely on static linguistic features: word choice, syntax, and rhythm.

Here is the catch: LLMs are phenomenal mimics. If an adversary prompts an LLM to rewrite machine-generated text in the whimsical style of Hans Christian Andersen, the punchy tone of CNN, or the dense prose of Nature, current detectors stumble badly.

Performance drops under style-based attacks

As the authors show in a preliminary test, state-of-the-art detectors suffer accuracy drops of up to 16.45% when hit with these simple style-shift attacks. Meanwhile, asking general-purpose LLMs (like LLaMA or GPT-4) to play detective zero-shot yields worse results than specialized, robustness-tuned detectors. We need a detector that is style-agnostic.

Methods

Inspired by fake-news detection techniques (specifically a framework called SheepDog), the authors build VERITAS to disentangle surface style from core content.

Figure 1: Overview of the VERITAS framework. It consists of three main components, e.g., style alignment loss, class detection Loss, veracity attribution loss. VERITAS is designed to enhance the robustness of text generation detectors against style-based adversarial attacks by focusing on content-driven features and minimizing reliance on stylistic cues.

First, during an offline training phase, they use an auxiliary LLM to rewrite texts into multiple stylistic variants—injecting colloquialisms, grammatical quirks, topic mixing, or specialized jargon. VERITAS then trains a lightweight classifier backbone using a three-part loss function:

  1. Classification Loss (Standard): Cross-entropy to predict the basic label: human or LLM.
  2. Style Alignment Loss (Novel application): The model passes all stylistic variants of a text through the classifier and minimizes the pairwise Kullback-Leibler (KL) divergence between their output probability distributions. Intuitively, this forces the model to give the exact same answer regardless of the stylistic coat of paint.
  3. Content-Driven Attribution Loss (Novel supervision): Instead of just outputting a binary label, the model is trained (via binary cross-entropy) to predict deeper flaws typical of LLMs—such as overly rigid logic, lack of personal experience, repetitive phrasing, or data biases. Ground-truth pseudo-labels for these traits are generated offline by querying an auxiliary LLM.

Crucially, once training is done, the heavy auxiliary LLM is thrown away. At deployment, only the lightweight backbone remains.

Datasets

The authors evaluate VERITAS across three curated domain categories, enriched with LLM-generated style attacks:

  • Story: Narrative-rich texts drawn from Project Gutenberg and the X-Sum news dataset.
  • PolitiFact: Political statements and social media context combined from the LIAR and FakeNewsNet datasets.
  • Science: Technical and specialized texts pulled from medical records (MedNLI) and scientific works in Project Gutenberg.

Key Insights and Ideas

  • Style invariance + content diagnosis = synergy: Ablation studies show that forcing consistent predictions across styles ($L_{\text{style}}$) and teaching the model why text looks synthetic ($L_{\text{attr}}$) each help on their own, but combining them yields a major jump in resilience.
  • True cross-domain generalization: Because VERITAS strips away style, its learned representations transfer remarkably well. When trained exclusively on narrative stories and tested cold on dense scientific literature, it still outperforms baselines—proving that LLM artifacts exist at a structural level deeper than domain vocabulary.
  • Zero online overhead: Using an LLM to generate training variants and attribution labels sounds expensive, and offline it processes ~65 samples/sec (using quantized LLaMA-3-8B). However, decoupling this from inference means the deployed detector runs at ~200 samples/sec with zero extra memory overhead.

Key Results

Across four distinct adversarial rewriting scenarios (e.g., adding errors/colloquialisms, increasing subjectivity, mixing topics), VERITAS consistently beats specialized detectors (DetectGPT, OUTFOX, COCO, GECScore) and zero-shot LLMs (GPT-4, DeepSeek-R1, Qwen-2).

Detection accuracy across Story, PolitiFact, and Science
  • Overall Accuracy: VERITAS reaches 81.9% on Story, 84.8% on PolitiFact, and 83.7% on Science, outperforming competitive baselines by margins of 6.5% to 33.9%.
  • Adversarial F1 Gains: Under colloquial style attacks on PolitiFact, VERITAS hits an F1 score of 84.69%, beating COCO (71.86%) by nearly 13 percentage points.
  • Backbone Agnostic: Plugging VERITAS into different open-weight models boosts accuracy dramatically—for instance, lifting Neo-2.7B on Story from 59.95% to 82.71%, and Qwen-2 on PolitiFact from 61.32% to 87.24%.
  • Cross-Domain F1: Trained on Story and tested on Science, VERITAS maintains 80.16%–83.30% F1 across attack types, beating GPT-4 (71.24%–79.15%).

Limitations and Future Work

The authors note that VERITAS introduces an offline computational cost prior to training: it relies on an auxiliary LLM to synthesize multiple stylistic variants and generate veracity attribution pseudo-labels for the training set. Future directions are not explicitly discussed in the paper.

Summary updated

Abstract

With the rising prominence of large language models (LLMs), developing technologies to identify LLM-generated text has become increasingly critical. However, existing technologies depend on static linguistic features, which can be evaded as advanced models increasingly mimic a wide range of writing styles. This study reveals two crucial limitations in existing detection systems. First, state-of-the-art detectors experience a substantial accuracy decline of up to 16.45\% when exposed to style-based adversarial attacks generated by LLMs. Furthermore, despite exhibiting remarkable zero-shot capabilities, general-purpose LLMs underperform specialized, robustness-tuned detectors in identifying adversarially manipulated text.To address these limitations, we propose a novel style-agnostic detection framework named \Name that enhances detection accuracy and robustness by prioritizing content-driven features over stylistic attributes. Our approach integrates a style-invariant training paradigm to disentangle content semantics from stylistic variations. We leverage adversarially enriched datasets constructed using LLMs fine-tuned for diverse style-based attacks. Furthermore, we utilize advanced representation learning techniques to extract content-centric features, emphasizing semantic coherence, logical consistency, and factual alignment. Experimental results across multiple datasets and detection models validate the effectiveness of our framework, showing improvements in detection accuracy and robustness against diverse adversarial manipulations.
BibTeX
@inproceedings{yi2026veritas,
  author = {Xiaoquan Yi and Haozhao Wang and Yichen Li and Wenchao Xu and Jinghua Zhang and Yuhua Li and Imran Razzak and Rui Zhang and Ruixuan Li},
  title = {{VERITAS: Veracity-Enhanced Robust Identification of LLM-generated Text Against Style-shifts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=y30cLhgUpI},
}
Figure