A ruGPT-3 Detector Flagged the Russian Constitution as AI Text: Perplexity 6.4 vs. 11.9
AI-text detectors often measure perplexity, which is how easily a model can guess the next word. The lower the number, the more 'machine-like' the text looks. On ruGPT-3 small, the Constitution scored 6.4 and a neural-network paragraph scored 11.9, so the law looked more machine-written. The model had simply seen these articles many times during training. A detector's percentage is therefore a reason for discussion, not proof.
AI-processed from Habr AI; edited by Hamidun News
A teacher uploads a thesis to a detector, and the service returns: "written by a neural network." How does the service know? Most of these detectors rely on a single quantity: perplexity, meaning how predictable the text is for a language model. The easier it is for the model to guess each next word, the more 'machine-like' the text appears to the detector. The authors of a Habr analysis tested this idea on five short Russian texts and got an uncomfortable result. On ruGPT-3 small, the Constitution of Russia scored 6.4, while a paragraph written by a neural network scored 11.9. The detector would call the 1993 law more machine-like than text a machine actually wrote.
What the Detector Actually Measures
At each step, a language model estimates the probability of the next word. If, after "Every person has the right to," it expects "life" with 90% probability, the text is predictable to it. Perplexity averages this "surprise" across the whole text. The simplest way to think about it is as the number of options the model wavers between at each step: 3 means it almost always guesses right, 70 means the text is constantly unexpected.
The logic of a simple detector goes like this: a neural network picks likely words, so its text is smooth and predictable. Humans more often insert an unexpected detail or break off a sentence. The second quantity is "burstiness," which measures how much the score varies from sentence to sentence. GPTZero, one of the first mass-market detectors, launched in January 2023 using these two signals.
For the experiment, the author used three open models: Qwen2.5-1.5B and Qwen2.5-0.5B from Alibaba, and ruGPT-3 small from Sber, which was trained mostly on Russian. Everything ran on a CPU, no graphics card required. The largest model needs about 6 GB of memory. The code is 25 lines long. The texts were the opening of Anna Karenina, the first paragraph of Chekhov's "The Piano Tuner," Articles 2, 20, and 21 of the Constitution, a typical neural-network answer about morning walks, and the same paragraph with nearly every word replaced by a synonym, as "humanizer" services do.
What the Numbers Show
On the Qwen models, the detector would have worked correctly: the neural-network paragraph is the most predictable, at 3.1 and 4.0, and has the smallest burstiness. But problems start after that.
- The Constitution looks more machine-like than AI text. On ruGPT-3 small it scores 6.4 against 11.9 for the neural-network paragraph. On Qwen2.5-1.5B the Constitution also ranks just behind the neural network: 5.4, while Tolstoy scores 7.4 and Chekhov 9.3.
- Synonyms make AI text look human. The paragraph with substitutions got the highest score on all three models, above Tolstoy and Chekhov: 72.9 on ruGPT-3 small. It is unreadable ("temper the blood vessel device," "strengthening of the doze"), but the statistics register the unexpected words and treat them as human. A person sees nonsense.
- The model remembers the classics. The first sentence of Anna Karenina scored 2.0 on Qwen2.5-1.5B, lower than any sentence in the neural-network paragraph, whose minimum was 3.1. The next sentence, about the Oblonskys' house, scored 32.3. Style has nothing to do with it: the model has seen the novel's first line thousands of times in its training data. The Constitution works the same way, since it is quoted everywhere.
- Burstiness across four sentences tells you nothing. On ruGPT-3 small, the Constitution's burstiness is 33.1, higher than Tolstoy's and Chekhov's, even though the text is dry and even. The cause is one sentence: "The dignity of the individual is protected by the state" scored 96.8, while the others ranged from 8 to 18.
- The threshold does not transfer between models. The same paragraph with synonyms scored 11.2 on Qwen2.5-1.5B and 72.9 on ruGPT-3 small. A rule like "below 10 means machine" only makes sense for a specific model and its tokenizer. That is why percentages from different services cannot be compared, and why they so often disagree on the same text.
In July 2023, Ars Technica explained why detectors flagged the US Constitution as machine-written. In May 2026, a complaint to Russia's Ministry of Science and Higher Education cited a case in which a Russian system marked classic literature as generated (Parlamentskaya Gazeta, 11.05.2026). The mechanism behind these stories appears to be the same.
What Serious Systems Do, and What to Do Instead
The script in the article illustrates the first generation of this idea. DetectGPT (Mitchell et al., 2023) slightly perturbs a text by rewriting individual spans with another model, then compares the probability of the original with that of the edited versions.
Machine text tends to sit at a peak of probability: any edit makes it less likely under the model. The method is more accurate than raw perplexity, but it requires dozens of model passes per text. Fast-DetectGPT (Bao et al.
, ICLR 2024) uses the same idea but samples tokens instead of rewriting; according to its authors, it is two orders of magnitude faster at comparable accuracy. Binoculars (Hans et al., 2024) compares the probabilities of two related models.
All of these methods rely on the same kind of probabilities, so they inherit some of the same weaknesses.
Practical takeaways. For reviewers: treat a detector report as a reason to talk, not a verdict. Ask for drafts and revision history, and ask a few questions about the flagged paragraphs. For teams building verification into a product: set thresholds on your own human-written texts in the same domain, because legal and technical writing is predictable by nature, and do not include widely quoted texts in your sample, or you will be measuring the model's memory. It is better to display scores per fragment rather than a single overall percentage.
Caveat: this experiment is a toy, with small models and five texts and no statistical analysis. But the weak points of the basic mechanism are already visible in 25 lines of code, and both simple and more sophisticated detectors are built on it.
- Nov 27, 2026ChatGPT Linked to YouTube in 20 of 45 Answers, Always as a "Watch This Video" Suggestion
- Nov 26, 2026How to Tell If an AI Bot Sees a CAPTCHA Instead of Your Site: Checking Logs and curl
- Nov 25, 2026Perplexity Gives Agents a Time Machine for Web Search: 0.25% Future Leakage vs. Exa's 1.10%
- Nov 25, 2026Stores Take 35% of Brand Mentions in ChatGPT, But They Aren't Recommendations
Key Questions Answered
What the Detector Actually Measures?
At each step, a language model estimates the probability of the next word. If, after "Every person has the right to," it expects "life" with 90% probability, the text is predictable to it. Perplexity averages this "surprise" across the whole text. The simplest way to think about it is as the number of options the model wavers between at each step: 3 means it almost always guesses right, 70 means the text is constantly unexpected.
What the Numbers Show?
On the Qwen models, the detector would have worked correctly: the neural-network paragraph is the most predictable, at 3.1 and 4.0, and has the smallest burstiness. But problems start after that. The Constitution looks more machine-like than AI text. On ruGPT-3 small it scores 6.4 against 11.9 for the neural-network paragraph. On Qwen2.5-1.5B the Constitution also ranks just behind the neural network: 5.4, while Tolstoy scores 7.4 and Chekhov 9.3. Synonyms make AI text look human.
What Serious Systems Do, and What to Do Instead?
The script in the article illustrates the first generation of this idea. DetectGPT (Mitchell et al., 2023) slightly perturbs a text by rewriting individual spans with another model, then compares the probability of the original with that of the edited versions. Machine text tends to sit at a peak of probability: any edit makes it less likely under the model. The method is more accurate than raw perplexity, but it requires dozens of model passes per text.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
