explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR — classical ML detector at a glance
  • Why TF-IDF + SVM in 2026?
  • Training setup — twins, not crawlers alone
  • Accuracy claims — in-distribution vs unseen models
  • Web demo — 107MB of JSON in the browser
  • Lofter field test — 32% trending tags above 50% AI
  • Bypass attempts — weaker than HN feared
  • HN debate — skeptics, Pangram, and harm
  • Responsible use matrix
  • Reproduce locally
  • Classical vs neural detectors — when to pick which
  • Summary
  • Related on explainx.ai
← Back to blog

explainx / blog

LLM Text Detection with Classical ML — TF-IDF + SVM That Still Works (2026)

lyc8503's AITextDetector uses scikit-learn TF-IDF + LinearSVC — ~85% sentence accuracy, 7-model voting, under 0.01% human false positives. Demo, limits, HN debate, and why not to punish students without review.

Jul 17, 2026·7 min read·Yash Thakker
AI DetectionMachine LearningNLPAI Ethicsscikit-learnContent Integrity
go deep
LLM Text Detection with Classical ML — TF-IDF + SVM That Still Works (2026)

July 2026 — A Hacker News thread (~162 points) resurfaced a counter-narrative to billion-parameter AI detectors: classical machine learning still catches a lot of LLM prose. Researcher lyc8503 trains TF-IDF + LinearSVC (scikit-learn) with seven binary classifiers and majority voting, reports ~85% sentence-level accuracy, and ships a browser demo at lyc8503.github.io/AITextDetector/. The stack is fully inspectable — unlike black-box SaaS — which makes it worth understanding even if you disagree with automated academic punishment.

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.


TL;DR — classical ML detector at a glance

QuestionAnswer
Algorithm?TF-IDF features + LinearSVC (scikit-learn)
Ensemble?7 binary classifiers — one per training LLM; ≥2 votes = AI
Sentence accuracy?~85% (author-reported, in-distribution)
Unseen models?~70% on Claude Sonnet 4.6, GPT 5.2
Human false positives?Under 0.01% at 70% threshold on 10k pre-2022 fanfics
Web demo?JS port — ~500k features, 107MB JSON
Training data?~10k human web fiction (pre-2022) + LLM-regenerated twins
Training LLMs (7)?Gemini, Qwen, GLM, Kimi K2.5, Doubao, DeepSeek, + one more family
Real-world signal?Lofter trending tags — 32% scored above 50% AI
Bypasses?Translate roundtrip, "reduce AI flavor" — still often flagged
Open source?GitHub lyc8503/AITextDetector

Why TF-IDF + SVM in 2026?

Most 2024–2026 detectors market neural embeddings or perplexity from a reference LM. lyc8503's bet: bag-of-words statistics still separate LLM-regenerated text from human web fiction because:

  1. Training objective artifacts — function-word ratios, sentence length variance, dialogue tag patterns
  2. Twin regeneration — same plot, different function words → classifier learns distribution shift, not plagiarism
  3. Interpretability — linear weights inspectable; no GPU farm to retrain a demo
snippet
Human fiction (pre-2022)
         │
         ├─► TF-IDF vector ──► LinearSVC #1 (vs Gemini regen)
         ├─► TF-IDF vector ──► LinearSVC #2 (vs Qwen regen)
         ├─► ... (7 models)
         │
New text ─► same TF-IDF ──► 7 scores ──► majority vote (≥2) ──► AI / human

This is not magic — it is supervised text classification on a narrow genre (web fiction). Performance will drop on legal briefs, STEM homework, or Claude Opus 4.8 fiction (author admits this arms-race gap).


Training setup — twins, not crawlers alone

ComponentDetail
Human corpus~10k web fiction chapters pre-2022 (before ChatGPT-era contamination)
Positive classSame stories regenerated by 7 LLMs (Gemini, Qwen, GLM, Kimi K2.5, Doubao, DeepSeek, etc.)
FeaturesTF-IDF — high-dimensional sparse vectors
ClassifierLinearSVC per source model
Decision ruleMajority voting — ≥2 classifiers flag AI → label AI

Why pre-2022 human text? Reduces label noise from humans pasting ChatGPT into fanfic platforms — a common failure mode for detectors trained on "everything after 2023."

Kimi K2.5 in the training set connects to explainx.ai's Chinese open-model coverage — detectors must track non-English-West generators, not just GPT clones.


Accuracy claims — in-distribution vs unseen models

Test sliceApprox. sentence accuracy
Held-out same distribution~85%
Unseen Claude Sonnet 4.6~70%
Unseen GPT 5.2~70%
Human fanfic @ 70% thresholdFP < 0.01% (10k samples)

70% on unseen frontier models is remarkable for linear bag-of-words — and simultaneously too low for automatic expulsion from school. A 30% miss rate on adversarial or novel-model prose is a feature, not a bug, if your policy requires human review.

Author honesty: Claude Opus 4.8 fiction is harder now — expect retrains or score drift monthly.


Web demo — 107MB of JSON in the browser

The public demo lyc8503.github.io/AITextDetector/ ports the sklearn pipeline to JavaScript:

SpecValue
Feature space~500k TF-IDF dimensions
Artifact size~107MB JSON weights
RuntimeClient-side — no server upload (privacy win)

Paste a paragraph → get per-sentence scores and ensemble vote. Good for journalists, moderators, and researchers auditing slop — bad as a sole disciplinary record.

For platform-scale slop (PRs, feeds), see Slopocalypse / SlopGuard patterns.


Lofter field test — 32% trending tags above 50% AI

The author scanned Lofter (Chinese creative blogging) trending tags — 32% of sampled posts scored above 50% AI by the ensemble.

ReadingCaveat
Platform slop influx is realTag trending ≠ random sample
Genre match helps detectorFiction-like posts align with training
Cultural contextWestern educators should not import Lofter stats blindly

Ties to AI copying creativity — when copying is free, detection becomes an arms race, not a morality substitute.


Bypass attempts — weaker than HN feared

Author-tested evasions:

BypassResult
Translate roundtrip (e.g. EN→ZH→EN)Still often flagged
"Reduce AI flavor" promptStill often flagged

HN skeptics note stronger paraphrase models and humanization services will adapt. Classical detectors age faster when attackers optimize against public weights — the GitHub repo is a double-edged sword (auditability vs evasion).


HN debate — skeptics, Pangram, and harm

Thread themes:

  1. Arms race — every public method becomes training noise for the next generator
  2. False positives harm — formal ESL prose, neurodivergent writing styles flagged by brittle detectors
  3. Pangram cited — commercial SOTA neural detector with enterprise API (name only — no competitor link per explainx.ai policy)
  4. Author humility — Opus 4.8 fiction evades; retrains required

explainx.ai position: Use scores as triage, like SEO/GEO audits — not verdicts. For images, prefer C2PA content credentials where signing exists; prose lacks universal credentials today.


Responsible use matrix

Use caseOK?Notes
Editorial queue prioritizationYesHuman confirms before action
Research on slop prevalenceYesReport methods + genre limits
Moderation with appealsCarefulDisclose detector version
Automatic essay grading penaltyNoFP ruins lives — see HN ethicists
Legal evidenceNoNot forensic-grade
Marketing "100% AI free" badgeNoMisleading — scores are probabilistic

Aligns with ThoughtWorks zero-cost fallacy — "free detection" still has social cost when wrong.


Reproduce locally

bash
git clone https://github.com/lyc8503/AITextDetector.git
cd AITextDetector
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# Follow README for train/eval scripts — sklearn pipeline

Extend with your domain corpus (internal docs, support tickets) — do not assume fanfic weights transfer to engineering RFCs without retraining.


Classical vs neural detectors — when to pick which

CriterionTF-IDF + SVM (lyc8503)Neural / commercial SOTA
AuditabilityHigh — sparse weightsLow — black box
Offline demo107MB JSON in browserUsually API-only
Genre sensitivityHigh — fiction-tunedVaries by vendor
Unseen model robustness~70% (author)Often higher — unverified here
MaintenanceYou retrainVendor chases models
CostOpen sourceSubscription

For multimodal provenance, pair prose scores with C2PA on LinkedIn/X — different problem, complementary signal.


Summary

lyc8503's AITextDetector proves TF-IDF + LinearSVC with 7-model majority voting still hits ~85% sentence accuracy on fiction-like text and ~70% on unseen Claude Sonnet 4.6 / GPT 5.2 — with under 0.01% human false positives on pre-2022 fanfic at a 70% threshold. The 107MB browser demo is transparent and privacy-friendly; Lofter trending data shows real-world slop pressure. Do not auto-punish students or employees from scores alone — use human review, disclose limits, and expect Opus 4.8-class fiction to evade. See AI copying debate for why detection ≠ creativity policy.


Related on explainx.ai

  • AI copying creativity — shadcn debate
  • LinkedIn C2PA content credentials for AI images
  • Slopocalypse — AI slop on the internet
  • ThoughtWorks zero-cost fallacy in the agentic era
  • SEO & GEO agent skill — measurement not verdicts
  • Hallmark — anti-AI-slop design skill (Jul 17) · Install
  • Top Chinese AI companies — Kimi, Qwen, DeepSeek
  • AI benchmarks complete guide
  • What is generative AI? — complete guide

Official sources: GitHub lyc8503/AITextDetector · Web demo


Accuracy figures and Lofter statistics accurate as of July 17, 2026 per author blog and HN thread. Retrain on your genre before high-stakes use; model vendors ship weekly.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jun 25, 2026

What Is Bias in AI? Types, Examples, and How to Fix It [2026]

AI bias is not a glitch — it is a systematic pattern of skewed outputs baked into a model through its training data, design choices, or the way outputs are used. It can cause hiring tools to screen out qualified candidates, lending algorithms to deny loans by zip code, and facial recognition to fail on darker skin tones at higher rates. Understanding the types, causes, and mitigation approaches is now a core skill for anyone building or procuring AI systems.

Aug 1, 2026

Sam Altman’s AI Family Podcast Backlash: Tool or Substitute?

A personalized podcast about soccer games, birthdays, and news sounds useful until the AI starts doing the talking parents and children could do themselves. The real design question is whether AI prepares a conversation or replaces it.

Jul 26, 2026

Can AI Cure Cancer? A Research-Backed Reality Check

A careful evidence review of AI in cancer screening, diagnosis, treatment selection, drug discovery, and clinical care—without turning promising studies into a cure claim.