Sebastian Raschka open-sources an end-to-end 'AI text detector from scratch' project

rasbt · x · 2026-09-20

Sebastian Raschka released the full codebase accompanying his article 'Build an AI Text Detector From Scratch'. The project covers the entire pipeline: three-stage dataset construction (licensed human text, AI-generated text validated with Pangram, AI-assisted text), comparisons of several classifier architectures, and experiments using the detector as a verifier during reinforcement learning. The binary classifier scores text 0–100 for likelihood of being AI-generated; he stresses the score reflects the classifier and its training distribution, not proof of authorship. Numbered scripts, tests, and MIT license make it directly reproducible.

Original post →

More from Research

Research channel →