Alignment Imprint: Zero-Shot AI-Generated Text Detection via Provable Preference Discrepancy

Junxi Wu, Kailin Huang, Dongjian Hu, Bin Chen, Hao Wu, Shu-Tao Xia, Changliang Zou

TL;DR

Instead of relying on absolute text likelihood—which is easily fooled by content complexity—this paper detects AI-generated text by measuring the "alignment imprint." This imprint is the systematic shift in probability distribution that occurs when a base Large Language Model (LLM) undergoes instruction fine-tuning and preference optimization. By weighting this imprint with token-level self-information, the authors' proposed method, LAPD, achieves state-of-the-art zero-shot detection accuracy and exceptional robustness, particularly in low false-positive regimes.

What Problem Does This Paper Address?

Detecting AI-generated text is a high-stakes cat-and-mouse game. Traditional training-free detectors look at the log-likelihood of a text under a specific model, operating on the assumption that AI-generated text will yield a higher probability score. However, this approach is fundamentally confounded by intrinsic content complexity: a simple, generic human sentence ("The sky is blue") often receives a higher likelihood score than a complex, technical paragraph generated by an AI.

Furthermore, users in the real world almost exclusively interact with aligned models (e.g., ChatGPT, Claude) rather than raw, pre-trained base models. Alignment processes—such as Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF)—systematically reallocate probability mass toward a narrower subset of safe, helpful, and structured responses. The authors exploit this phenomenon, turning the very process that makes LLMs useful into a statistical fingerprint for detection.

Methods

The authors introduce Log-likelihood Alignment Preference Discrepancy (LAPD), a zero-shot detection pipeline that leverages a matched pair of models: a pre-trained base model and its aligned counterpart (e.g., Llama-2-7B and Llama-2-7B-Instruct).

The pipeline consists of three core steps:

  1. Raw Alignment Imprint (RAI): The detector calculates the log-likelihood ratio of an input text between the aligned model ($P_\phi$) and the base model ($P_\theta$). This subtraction effectively cancels out the intrinsic, content-dependent components shared by both models.
  2. Information Weighting: High-entropy regions (where model confidence is low) introduce aleatoric noise that can mask the alignment signal. LAPD couples the raw alignment imprint with token-level self-information ($-\log P_\phi(x_t)$). This amplifies the alignment signal in regions where the aligned model is highly confident.
  3. Standardization: To maintain robustness across different domains and text lengths, the score is standardized using a conditional independence sampling perturbation technique.
Overview of the LAPD detection pipeline compared to vanilla log-likelihood approaches.

Datasets

The authors evaluated LAPD across several comprehensive benchmarks:

  • M4: A large-scale benchmark featuring multi-generator, multi-domain, and multi-lingual text.
  • DetectRL: A dataset simulating realistic scenarios, evaluated under both Multi-LLM and Multi-Domain settings.
  • RAID: A benchmark specifically designed to assess detector robustness against adversarial attacks.
  • RealDet: A high-reliability bilingual benchmark that includes text from recent reasoning models like DeepSeek-R1.
  • Standard NLP Datasets: XSum (summarization), WritingPrompts (creative writing), and Arxiv (scientific abstracts).

AI texts within these datasets were generated by advanced models including GPT-4-Turbo, Gemini-2.0-Flash, and Claude-3.7-Sonnet.

Key Insights and Ideas

  • Alignment as a Mathematical Constraint: By formalizing SFT and preference tuning as constrained optimization steps, the authors prove that the log-likelihood ratio naturally decomposes into implicit instructional biases and explicit preference rewards. This means the alignment imprint can be extracted mathematically without needing access to the original training data or reward models.
  • Entropy Contraction: AI-generated text typically converges to low-entropy regions with positive alignment shifts. In contrast, human language is highly diverse and frequently traverses high-entropy regions where the alignment signal is weak or negative.
  • The Power of Model Pairs: Comparing an aligned model to its exact base model isolates the stylistic and prescriptive constraints imposed during alignment, completely bypassing the confounding factor of text complexity.
Figure 2. Distributions of human-written texts and AI-generated texts. Dashed vertical lines represent the mean value of each distribution. (a) Average log-likelihood under the base model; (b) average log-likelihood under the aligned model; (c) raw alignment imprint, defined as the log-likelihood ratio between the aligned and base models; and (d) the Log-likelihood Alignment Preference Divergence (LAPD), a standardized information-weighted aggregation.

Key Results

  • Substantial Baseline Outperformance: LAPD achieved an average relative AUROC improvement of 45.82% over the strongest existing baselines (such as Binoculars and DNA-DetectLLM) and 56.99% over Fast-DetectGPT across the four primary benchmarks.
  • Excellence in Low False-Positive Regimes: In real-world deployment, minimizing false positives (falsely accusing a human of using AI) is critical. At a strict 0.5% False Positive Rate (FPR) constraint, LAPD achieved an average True Positive Rate (TPR) of 92.27%, representing a 76.81% relative improvement over baselines.
  • Short-Text Robustness: Detecting short text is notoriously difficult due to weak statistical signals. LAPD demonstrated rapid AUROC growth in the 20–80 word interval, consistently outperforming all baselines once text length exceeded 40 words.
  • Attack Resistance: LAPD maintained near-perfect detection accuracy under 1% token insertion, deletion, or replacement editing attacks, where baseline methods suffered noticeable degradation.

Limitations and Future Work

  • Model Family Dependency: LAPD strictly requires a matched base and aligned model pair from the same family that share the same tokenizer. Swapping in a cross-family pair (e.g., pairing a Falcon base model with a Llama aligned model) causes an average AUROC drop between 8.73% and 29.80% due to pre-training distribution mismatches.
  • Computational Cost: While significantly faster than older perturbation methods like DetectGPT (which requires multiple autoregressive rollouts), LAPD still requires evaluating text across two separate models, introducing more computational overhead than simple single-model likelihood checks.

Summary updated

BibTeX
@inproceedings{wu2026alignment,
  author = {Junxi Wu and Kailin Huang and Dongjian Hu and Bin Chen and Hao Wu and Shu-Tao Xia and Changliang Zou},
  title = {{Alignment Imprint: Zero-Shot AI-Generated Text Detection via Provable Preference Discrepancy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Y714JTtMXQ},
}
Figure