NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LensCT: Fine-Grained AI-Involved Text Detection via Temporal-Hierarchical Tomograms of LLM Internals

Hanxi Guo, Siyuan Cheng, Kaiyuan Zhang, Guangyu Shen, Xiangyu ZhangNeurIPS 2026

TL;DR

We rarely write in strict binaries anymore—an essay might be human-drafted, grammar-polished by an LLM, or auto-completed from a human outline, and traditional AI detectors completely fumble these nuances. LensCT solves this by passing text through a frozen reference LLM and taking a "CT scan" (tomogram) of how its predictions evolve across every token and transformer layer. By turning LLM internals into a 3-channel image read by a lightweight vision model, it cleanly separates pure human, pure AI, AI-polished, and AI-extended text.

What Problem Does This Paper Address?

Asking "Did an AI write this?" is increasingly the wrong question. A professor might permit grammar polishing while banning full essay generation; a scientific journal might require disclosure for AI-extended paragraphs while ignoring light copy-editing. Downstream users need fine-grained detection across four distinct realities: Human, AI-Polished, AI-Extended, and AI-Generated.

Current post-hoc detectors weren't built for this nuance because they crush rich signals too early:

  • Single-score detectors (like perplexity thresholds) squash a whole document into one number, causing hybrid texts to pile up indistinguishably in the middle.
  • Temporal-only detectors look at token-by-token probabilities at the final output layer. They can spot where a human stops and an AI takes over (AI-Extended), because there's a sharp boundary. However, AI-Polished text is rewritten throughout—on the surface (the final layer), it looks entirely machine-made.
  • Fine-tuned text classifiers memorize surface vocabulary and phrasing, falling apart the moment you switch domains, languages, or underlying LLMs.
Four-class separability showing how single-score and temporal-only detectors fail to separate AI-Polished from AI-Generated text, while LensCT isolates all four.

Methods

Instead of inventing a better text classifier, the authors reframe text forensics as a computer vision problem applied to LLM internals.

Figure 2: Overview of LensCT.

Here is how the three-stage LensCT pipeline works:

  1. Layer-Wise Internal Probing: You feed the suspect text into a frozen, open-weight "surrogate" LLM (defaulting to Qwen3.5-9B) in a single forward pass. Rather than just checking the final output, LensCT applies the logit lens—projecting intermediate hidden states into vocabulary log-probabilities—at every transformer layer. At each token position and layer, it extracts three numbers:
  2. Input Recall: log-probability assigned to the current token ($x_i$).
  3. Next Prediction: log-probability of the immediate next token ($x_{i+1}$).
  4. Future Forecast: log-probability of two tokens ahead ($x_{i+2}$).
  5. Tomogram Assembly: Stacking these probes across $L$ layers and $T-2$ tokens creates a 3D tensor ($3 \times L \times (T-2)$)—essentially an RGB image where the x-axis is sequence time, the y-axis is network depth, and RGB channels represent past, present, and future token dynamics. Per-sample z-score normalization and bilinear resizing turn this into a crisp $3 \times 224 \times 224$ "canonical tomogram."
  6. Vision Classification: A standard vision backbone (ResNet-18 trained from scratch) reads this image to classify the exact type of AI involvement, leaving the LLM completely frozen.

Datasets

Because existing benchmarks focus largely on binary detection, the authors curated a massive four-class AI-involvement benchmark totaling 697,500 samples:

  • Clean English Core (237,500 samples): Sourced human texts from five diverse domains—Peer Review, Student Essay, News, Customer Review, and QA Forum—paired with AI-involved counterparts generated by six frontier models (Sonnet-4.6, GPT-5.4, DeepSeek-V3.2, Kimi-K2.5, GLM-5, and Qwen-3-235B).
  • Cross-Language Suite (+190,000 test samples): Translations of English test sets into Chinese, German, Spanish, and French.
  • Adversarial Suite (+270,000 test samples): AI-involved texts perturbed by six evasion attacks, including DIPPER paraphrasing, back-translation, and character/word-level perturbations (e.g., TextFooler).

Key Insights and Ideas

  • Human semantics survive in middle layers: Why can LensCT distinguish AI-Polished from AI-Generated when final-layer detectors fail? While an LLM rewrite coats the text in AI-like surface statistics at the final layer, the underlying human semantic scaffolding still resonates differently in the intermediate layers. Capturing the vertical (layer) axis preserves that history.
  • Layer-to-layer transitions hold the magic: In ablations, throwing away the entire bottom half of the LLM layers barely dents performance (-0.011 cross-domain AUROC). Yet randomly zeroing out just 25% of layers across the network craters performance (-0.137). The ResNet isn't just reading isolated layers; it's reading smooth visual gradients between adjacent layers.
  • Surrogate behaviour is universal: You don't need access to GPT-5.4's weights to detect GPT-5.4. Even swapping the 9B surrogate down to a tiny Gemma3-270M model keeps performance remarkably steady (varying by just 0.058 AUROC across 11 open-weight surrogates).

Key Results

Evaluated against six state-of-the-art baselines (including Binoculars, BiScope, Profiler, RepreGuard, RoBERTa, and DETree):

  • In-Distribution: Achieves 0.990 average macro-AUROC across all domains and generators, cutting detection error by 28.6% relative to the strongest baseline (DETree at 0.986)—and by 73.3% on student essays (0.999 AUROC).
  • Out-of-Distribution Generalization: Fine-tuned classifiers collapse when switching domains (DETree drops from 0.986 to 0.701) or languages (0.608). LensCT holds the top overall spot across unseen generators (0.965), unseen domains (0.921), and unseen languages (0.801—even beating a multilingual XLM-RoBERTa baseline while trained strictly on English).
  • Adversarial Robustness & Speed: Leads across adversarial attacks (0.932 average AUROC) and processes a text sample in 252 ms—making tomogram assembly practically free compared to multi-pass baselines like Profiler (1,164 ms).

Limitations and Future Work

Not explicitly discussed as a dedicated section in the provided text, though empirical results highlight a few natural boundaries:

  • Human-aligned generators are tougher: DeepSeek-V3.2 consistently caused the largest performance dip across every domain (-0.023 AUROC for LensCT), likely due to stronger stylistic alignment with human prose.
  • Heavy semantic rewriting: Among adversarial evasions, semantic-level paraphrasing (DIPPER) remains the most challenging perturbation (pushing AUROC down to 0.850), as it alters structure deeper than surface word swaps.
  • Cross-lingual drop-off: Zero-shot transfer from English to distant or morphologically rich languages (e.g., 0.783 AUROC on German) still leaves a noticeable gap compared to native in-distribution detection (0.990).

Summary updated

BibTeX
@inproceedings{guo2026lensct,
  author = {Hanxi Guo and Siyuan Cheng and Kaiyuan Zhang and Guangyu Shen and Xiangyu Zhang},
  title = {{LensCT: Fine-Grained AI-Involved Text Detection via Temporal-Hierarchical Tomograms of LLM Internals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=dWfmHmnjCZ},
}
Figure