> Paper: SpecDetect: Simple, Fast, and Training-Free Detection of LLM-Generated Text via Spectral Analysis > Authors: Haitong Luo, Weiyao Zhang, Suhang Wang, Wenji Zou, Chungang Lin, Xuying Meng, Yujun Zhang > Institutions: Institute of Computing Technology, Chinese Academy of Sciences; University of Chinese Academy of Sciences; Pennsylvania State University; Purple Mountain Laboratories; Nanjing Institute of Information Superconductivity Research > arXiv: 2508.11343
---
An Old Problem, Asked in a New Way
LLM-generated text is increasingly indistinguishable from human writing, and detecting it has become a cat-and-mouse game. Most existing methods work in the "time domain" — looking at word frequencies, perplexity, or syntactic patterns. These surface-level statistics are easy to evade.
The team from ICT, CAS takes a different angle: instead of treating text as a string, treat it as a signal.
---
Core Insight: Human Writing Has "Vitality"
The paper views a text's token log-probability sequence \(l(x) = (\log P_\theta(x_1), ..., \log P_\theta(x_n))\) as a discrete-time signal.
Human writing has a characteristic: large fluctuations in flow. Some days you write boldly; other days you're sleepy and conservative. This amplitude variation shows up in the log-probability sequence as an uneven, jagged pattern.
LLMs, constrained by sampling from high-probability tokens, have suppressed fluctuation — like someone who always takes the safe route with uniform, unvarying strides.
In the frequency domain, this difference is immediately visible.
---
Method: Two Detectors
SpecDetect (Single-Pass)
Apply a DFT to the token log-probability sequence and compute total energy:
Higher energy is more likely human-written. Implemented with FFT, complexity is \(O(n \log n)\).
Just one feature. No training, no hyperparameters.
SpecDetect++ (Distribution-Enhanced)
Take one segment of the original text and one segment sampled from an LLM, then compare the z-scores of their DFT energies:
Sampling differences amplify the signal.
---
Results: Faster by Half, and Better
Black-box detection AUC (averaged over 3 datasets, across 12 source models)
| Method | AUC | |--------|-----| | Lastde (previous SOTA) | 0.8776 | | SpecDetect | 0.8875 | | Lastde++ | 0.9246 | | SpecDetect++ | 0.9259 |
Efficiency comparison (GPT-4-Turbo text, GPT-J surrogate model)
| Method | Time per sample | |--------|-----------------| | Lastde | 50.92 ms | | SpecDetect | 42.57 ms (16% faster) | | Lastde++ | 93.28 ms | | SpecDetect++ | 47.29 ms (~50% faster) |
SpecDetect++ uses only 10 comparison samples yet outperforms Lastde++ with 50 samples.
---
Robustness Validation
- Paraphrase attacks: SpecDetect++ matches Lastde++
- Text length: Best at all lengths, with a larger advantage on long texts
- Surrogate model generalization: Consistently best across 4 source–surrogate combinations
- Non-English: Strong performance on German (WMT16-De) and Chinese (Zhihu economics)
- Decoding strategies: Robust to top-k, top-p, and temperature
- Multi-round editing: If AI-generated text is polished by humans multiple times, do spectral features decay? In theory yes, but by how much is unknown.
- Cross-model differences: Different LLMs' sampling strategies (temperature, top-p) affect the log-probability distribution; the paper verifies robustness, but does it hold under extreme settings?
- Adversarial attacks: If attackers know detection is based on spectral energy, could they deliberately inject high-frequency noise to disguise themselves? In theory yes, but this requires controlling the log-probability sequence — an internal model quantity, uncontrollable in black-box scenarios.
- Paper: https://arxiv.org/abs/2508.11343
---
Why the Frequency Domain?
Time-domain analysis asks "what happened at this moment." Frequency-domain analysis asks "how is energy distributed over the entire process."
The vitality of human writing — the unpredictable jumps, pauses, and accelerations — becomes a quantifiable physical quantity in the frequency domain. DFT total energy captures not any particular word choice, but the breathing rhythm of an entire passage.
It's a bit like music. Two pieces can share the same notes, but different energy distributions determine whether one is a rigid étude and the other a live performance.
---
Limitations and Extensions
What the paper doesn't address:
---
One-Sentence Summary
Throwing classical signal processing at LLM detection beats end-to-end neural networks. Sometimes old tools know better than new models where to look.
---