General
11 min
How Perplexity-Based AI Code Detectors Actually Work
Perplexity-based detectors aren’t magic — they measure how surprising a sequence of code tokens would be to a model trained on real human code. This report breaks open the inner math, real false-positive rates from Stanford and Edinburgh benchmarks, and why the strongest detectors stack statistical signals with AST fingerprinting and web-source checks.