1Problem Formulation, Frontier Control & Pre-Registered Gates
At the end of Part 3, our promoted local writer (human-dpo-q38-v2) achieved 88.03/100 Combined, 5/5 ceiling adherence, zero clichés, zero em-dashes, and a 99.57/100 editorial Human-Voice score on Brief 2 (Damp-Proof Course in Heritage Brick Walls) — yet scored 100% AI on external ZeroGPT while a pre-2021 human Wikipedia article on Sydney sandstone scored 0% AI.
Before attributing that wall to local 27B parameter scale, we ran an exact apples-to-apples frontier control: we handed the identical Brief 2 prompt and our strictest anti-AI system instructions (writer_system_v3_human.txt) to Claude, then submitted Claude’s completed article to Pangram 4.1. Claude scored 100% AI. Prompt engineering alone cannot move a heavily RLHF-aligned policy off its low-entropy, high-curvature next-token manifold.
We therefore formulated writer-human-v3 around a central mechanistic tension — the Distribution-Shift vs. Instruction-Compliance Trade-off: aggressive post-training toward pre-2015 human prose flattens RLHF probability curvature but risks catastrophic forgetting of structured Markdown links, fact ledgers, and negative constraints, whereas conservative updates preserve compliance while leaving commercial detector fingerprints intact. All runs stayed strictly on two local consumer RTX 3090 24 GB GPUs at $0 API cost, enforcing zero closed-source model outputs (Claude, Grok, GPT, Gemini, GLM) in any training target.
2Stage 0 Day-1 Detector Audit & Stage 1 Zero-Training Diagnostic
Enforcing Rule #1 from Part 2, we calibrated five independent open-weight AI-detector families offline before launching any training. Each detector scored 30 full-length labeled controls (15 pre-2021 human articles — 2 Wikipedia controls + 13 May 2013 FineWeb articles — versus 15 AI drafts from v2-base-q38-fp8-k3, human-dpo-q38-v2, and human-dpo-q35-v2), with a pre-registered admission gate of AUROC ≥ 0.90.
Zero of five detector families passed (Table 1). Worse than weak discrimination, two widely cited supervised classifiers actively inverted on modern 27B drafts: yaful/MAGE Longformer assigned ai_prob = 1.000 (100% AI) to a real pre-2021 human Wikipedia article on lime mortar (1,693 words) while scoring both v2 AI writers at 0.0001–0.0002 (0.01% AI, yielding AUROC 0.3644). Catching this miscalibration on Day 1 prevented our DPO pair filter from discarding valid human-vs-AI pairs on broken thresholds; we used local scores strictly for gentle upweighting and reserved unseen commercial detectors as ground truth.
| Detector Family / Metric | AUROC | Pre-2021 Wiki (n=2) | 2013 FineWeb (n=13) | v2 Base FP8 (n=5) | v2 DPO-q38 (n=5) | v2 DPO-q35 (n=5) |
|---|---|---|---|---|---|---|
RADAR-Vicuna-7B (AI prob ↓) | 0.6889 | 0.0115 | 0.1063 | 0.2324 | 0.1461 | 0.1032 |
Qwen2.5-7B Fast-DetectGPT (↓ human) | 0.5911 | −1.3164 | −0.3640 | +0.5227 | +0.6848 | −0.6844 |
Qwen2.5-7B Binoculars (↑ human) | 0.5822 | 1.0253 | 1.0103 | 0.9926 | 0.9863 | 1.0169 |
Falcon-7B Fast-DetectGPT (↓ human) | 0.5556 | −0.8359 | +0.5772 | +1.6789 | +0.7750 | −0.5283 |
Falcon-7B Binoculars 2048 (↑ human) | 0.5156 | 1.0152 | 0.9880 | 0.9686 | 0.9862 | 1.0103 |
MAGE Longformer (AI prob ↓) | 0.3644 | 0.5009 | 0.3147 | 0.6003 | 0.0001 | 0.0002 |
Hello-SimpleAI RoBERTa (AI prob ↓) | 0.1867 | 0.0040 | 0.0409 | 0.0403 | 0.0014 | 0.0004 |
Stage 1 zero-training inference diagnostic (stage1-infer-bo16): Before modifying any weights, we sampled 16 high-diversity anti-template candidates per masonry brief on Qwen3.8-27B-FP8 and selected by combined compliance + curvature ranking. Without changing a single weight, stage1-infer-bo16 reached 85.82/100 Combined (83.98 Checklist, 89.24 Human-Voice, 63/78 facts, 52/60 URLs, 5/5 ceiling, 0 DNC, 0 em-dashes) and pulled whole-draft Qwen2.5 Fast-DetectGPT curvature −0.92 units toward human (+0.6848 → −0.2398, moving 3 of 5 briefs below the pre-2021 human Wikipedia mean −1.3164). Inference selection confirmed that probability curvature is movable, yet deeper parameter-level shifts were still required.
3OCR-Free May 2013 Corpus, Locked 15-Brief OOD Suite & Three-Arm Architecture
In Part 3, scanned two-column PDFs injected mid-sentence heading splits and OCR defects that limited safe training steps. In v3, we eliminated PDFs completely and harvested 2,200 born-digital May 2013 human articles across 1,891 unique domains (pre2015_clean_v3.jsonl, sha256: 7a57ffbba81b326cbd6f637a640ef68b; length 950–2,146 words, median 1,216w). Automated structural auditing verified 0 OCR defects (0.0%), and a 60-article random audit read solidly human across all local signals (Hello-SimpleAI 0.0736, RADAR 0.1672, Qwen2.5 Binoculars 1.0169, Qwen2.5 FDG −0.7823).
To prevent domain overfitting to heritage masonry, we pre-registered and SHA-256 locked (a6470e9476c5e87f) a 15-brief cross-domain out-of-domain (OOD15) holdout suite spanning three completely unrelated Australian professional verticals: 5 personal finance/tax briefs (CGT main residence, Div 293 super, PSI contractors, franked dividends, GST registration), 5 civil/water engineering briefs (stormwater OSD, sewer I&I, water hammer surge, WSUD bioretention, concrete chloride corrosion), and 5 clinical preventive health briefs (home BP monitoring, HbA1c prediabetes, bowel screening iFOBT, DEXA bone density, OSA sleep apnoea) — totaling 180 locked facts, 75 internal URLs, 45 official external citations, and 60 FAQs.
Local FP8 synthesis constructed two disjoint training tracks from the 2,200 clean articles: Track A (Direct Writer) yielded 1,200 SFT train / 40 val reverse-briefs with verbatim inline links plus 392 train / 19 val detector-weighted human-vs-AI DPO pairs (+0.4748 mean margin, range [−0.0087, +0.7834]); Track B (Two-Stage De-AI Rewriter) synthesized 326 train / 30 val stiff-AI-to-untouched-2013-human pairs at 0.498 median edit similarity — explicitly avoiding the 0.911 identity-copy trap uncovered in Part 1 and Part 2. All three competing arms used rank-64 LoRA NF4 training with length-normalized DPO (β = 2.5, λNLL = 0.15, Table 2):
| Arm / Hypothesis | Base Model | Track | SFT Schedule & Val Loss | Norm-DPO Schedule & Val Acc |
|---|---|---|---|---|
Model 1 (v3-armA · Direct) | Qwen3.8-27B (chat) | Track A | 120 steps, eff. bsz 16, lr 3e-5 → 1.8357 (from 4.3546) | 60 steps, eff. bsz 8, lr 1e-5 → 0.6778 (84.2% acc) |
Model 2 (v3-armB · Zero-RLHF) | Qwen3-14B-Base (raw) | Track A | 150 steps, eff. bsz 16, lr 4e-5 → 1.8360 | 50 steps, eff. bsz 8, lr 1.2e-5 → 0.0276 (100% acc) |
Model 3 (v3-armC · Humanizer) | Qwen3.8-27B (Pass-2) | Track B | 90 steps, eff. bsz 16, lr 3e-5 → 1.2681 | 50 steps, eff. bsz 8, lr 1e-5 → 0.0004 (100% acc) |
4Direct Generation Arms (Models 1 & 2): Breaking Commercial Detection — And The Brief-Copy Leak
Model 1 (27B Direct Writer, v3-armA): Deeper rank-64 adaptation on OCR-free 2013 human text pushed held-out validation loss far below Part 3’s v2 checkpoint (1.8357 vs 2.1696, zero overfitting) and shattered commercial AI detection on the exact Damp-Proof Course brief (Brief 2) where v2 hit 100% AI on ZeroGPT and Claude hit 100% AI on Pangram 4.1. Model 1 scored 0% AI on ZeroGPT (“Your Text is Human written”), 0% AI on Grammarly, and 30% AI (70% Human) on Pangram 4.1 — outperforming frontier Claude by 70 percentage points with relaxed, asymmetric human phrasing (“throw moisture meter readings right out of whack”). On Brief 4 (Lintel & Arch Bar), however, commercial flags climbed back to 36% Grammarly, 50.8% ZeroGPT, and 68% Pangram 4.1.
Model 2 (14B Zero-RLHF Base, v3-armB): Starting from an un-aligned base checkpoint confirmed that RLHF post-training is a primary driver of commercial detectability. Matching 27B’s SFT validation loss at half the parameter count (1.8360) and hitting 100% DPO accuracy (0.0276), Model 2 scored 0% AI on Grammarly and 12% AI (88% Human — “highly confident this text is entirely human”) on GPTZero Model 5.0b on Brief 2, and 8% AI on Grammarly on Brief 4 (where GPTZero flagged 100% AI as “Possible AI Paraphrasing”).
The compliance cost of blunt SFT & cold base models: Across the full 20-topic evaluation, both direct arms paid an unacceptable structural penalty:
- Model 1 catastrophic forgetting of formatting & constraints: Because born-digital 2013 web targets lacked strict Markdown brief syntax, 120 rank-64 SFT steps collapsed paragraph-structure burstiness (
para_cv = 0.0,def_opening = 0.0), stripped##headings, ran short on Brief 2 (873w, 11/14 facts, one leaked placeholder URL), and dropped across all 20 briefs to 46.2% masonry facts (36/78), 23.3% masonry URLs (14/60), and 77.8% OOD facts (140/180, 56.7% URLs). - Model 2 “2013 Blog Time Capsule” collapse: Without pre-existing RLHF instruction-following weights, 150 SFT steps on 1,200 examples failed to induce multi-constraint obedience. URL retention collapsed to 1/60 masonry (1.7%) and 7/120 OOD (5.8%), masonry facts fell to 62.8% (49/78, 2 DNC violations), and whenever prompt constraints loosened, Model 2 reverted to pretraining priors — fabricating a byline (“By Steve Stonemason”), fake phone and fax numbers, banned Twitter/Facebook plugs, and repeated “Click here to visit our main website” footers.
5Model 3 (Two-Stage De-AI Humanizer): 97.2% OOD Facts — Yet 100% AI
If direct training trades away compliance, decoupling content generation from style transfer appears to be the textbook engineering solution. Arm V3-C (Model 3) first ran frozen v2 (human-dpo-q38-v2) to draft a strictly compliant Pass-1 article, then passed that draft into a dedicated 27B rewriter trained on Track B (326 pairs at 0.498 edit similarity; 90 SFT steps to 1.2681, 50 DPO steps to 0.0004 at 100% accuracy).
On factual faithfulness, decoupling worked decisively: Model 3 preserved 175/180 OOD facts (97.2% — virtually matching v2’s 97.8%), 64/78 masonry facts (82.1%), 0 prohibited claims across all 20 briefs, and 0 masonry clichés. Even its two formatting defects were mechanical and fixable: (a) because plain-text 2013 rewrite targets stripped anchor syntax, Model 3 turned inline Markdown links into plain reference titles on roughly half of OOD briefs (URL recall dropped from 94.2% to 53.3%, with 11.9 dashes/article); and (b) on 4 of 5 masonry briefs it wrote a complete, accurate article through the final FAQ answer, then missed EOS stopping and looped into an extra “About this page” footer repeating the intro.
The Curvature Warning That Predicted Commercial Failure Before Testing: Before submitting a single Model 3 draft to external detectors, a stark diagnostic contradiction appeared inside its local scores. Model 3 crushed the adversarial surface paraphrase classifier RADAR down to 0.036 (3.6% AI) on masonry (0.0529 OOD) and MAGE to 0.0008 — yet its Qwen2.5 Fast-DetectGPT conditional probability curvature spiked to +2.793 (masonry) and +2.257 (OOD), four times steeper than v2 (+0.685) and twenty times steeper than Model 1 (+0.138).
External commercial detector testing verified that curvature prediction bluntly:
Pangram 4.1: 100% AI
GPTZero 5.0b: 100% AI
Grammarly AI: 85% AI
Clean, crisp prose with strong factual accuracy — caught flat out by all three commercial detectors.
Pangram 4.1: 100% AI
GPTZero 5.0b: 100% AI
Grammarly AI: 96% AI
Identical 100% AI failure on the exact brief where Model 1 scored 0% ZeroGPT / 0% Grammarly / 16% GPTZero / 30% Pangram and Model 2 scored 0% Grammarly / 12% GPTZero / 7% Pangram.
Why post-hoc neural humanizers fail modern detectors: Paraphrasing a complete 1,200-word AI draft is the extreme limit of the Brief-Copy Leak. Conditioned on an AI Pass-1 draft in context, cross-token attention preserves section geometry, logical clause ordering, and high-confidence RLHF next-token transitions. Lexical substitution shifts surface n-grams enough to defeat legacy paraphrase classifiers like RADAR (3.6%), yet the underlying conditional log-probability curve becomes even sharper (+2.793) — trivially exposed by curvature-sensitive commercial detectors.
Surface vs. Curvature Split. Model 3 fooled legacy RADAR (3.6% AI), yet its Qwen2.5 Fast-DetectGPT curvature spiked to +2.793 — predicting 100% Pangram / 100% GPTZero / 85–96% Grammarly before testing.
Brief-Copy Attention Leak. Both AI-written briefs and Pass-1 AI drafts feed high-probability LLM trajectories through attention copy-heads straight into output logits — triggering red spans even on human-voiced weights.
v4 Mechanistic Prescription. Separate RLHF cadence from fact/link compliance via ΔW = WInstruct − WBase, null-space projection, SwiGLU neuron/SAE clamping, and Telegraphic Non-Prose Briefs.
writer-human-v3 and why they prescribe surgical weight editing over fine-tuning or humanizing.6Unified 20-Topic Scoreboard & Breakthrough Gate Verdict
Figure 2 and Table 3 aggregate every arm across all 20 locked briefs (5 masonry + 15 cross-domain OOD), local distributional diagnostics, and unseen commercial detector scores. Zero of five arms cleared Gates G1–G4 simultaneously — every single architecture sat on a different corner of the compliance-versus-detectability Pareto frontier:
| Arm | Masonry5 Check / Facts / URLs | OOD15 Check / Facts / URLs | RADAR / MAGE | Qwen2.5 FDG (M5 / OOD) | Commercial Detectors (Brief 2 / Brief 4) |
|---|---|---|---|---|---|
| Claude (control) | — | — | — | — | 100% PG / — |
v2 Baseline (q38) |
88.0 / 83.3% / 86.7% | 90.5 / 97.8% / 94.2% | 0.146 / 0.000 | +0.68 / +1.27 | 100% ZG / — |
stage1-infer-bo16 |
84.0 / 80.8% / 86.7% | — | 0.090 / 0.000 | −0.24 / — | — |
| Model 1 (27B Direct) | 38.6 / 46.2% / 23.3% | 60.8 / 77.8% / 56.7% | 0.283 / 0.800 | +0.14 / +2.10 | 0% ZG, 0% Gr, 16% GZ, 30% PG / 51% ZG, 36% Gr, 68% PG |
| Model 2 (14B Base) | 34.9 / 62.8% / 1.7% | 54.4 / 77.8% / 5.8% | 0.190 / 1.000 | +0.67 / +0.81 | 0% Gr, 12% GZ, 7% PG (93% human) / 8% Gr, 100% GZ |
| Model 3 (27B Rewriter) | 62.7 / 82.1% / 75.0% | 65.9 / 97.2% / 53.3% | 0.036 / 0.001 | +2.79 / +2.26 | 100% PG, 100% GZ, 96% Gr / 100% PG, 100% GZ, 85% Gr |
7Out-of-Distribution Stress Test: The Part 4 Head-to-Head Meta-Test
As a final real-world stress test outside all 20 benchmark briefs, we fed the exact structured editorial brief behind this Part 4 report to Model 1 (testing both our standard human-voice system prompt and the brief’s own top instructions as system prompt, enable_thinking=False) and scored the cleaner Model 1 run head-to-head against our finalized Part 4 reference draft (Table 4):
| Evaluation Dimension | Finalized Reference Draft | Model 1 (Cleaner Brief-Prompt Run) |
|---|---|---|
| Word count & completion | 1,597 total (1,470 prose words) — inside window, finishes cleanly | 1,851 words — over ceiling; hit max-token cap and cut off mid-sentence before Models 2 & 3 |
| Verified fact groups preserved | 13 / 13 (zero fabricated figures) | 8 / 13 (never reached Models 2 & 3, final gate verdict, or v4) |
| Hallucinations & logical errors | None | Severe: inverted the Brief-Copy Leak backwards (claimed brief copying helped beat detectors), fabricated a fake Brief 4 scorecard (83.04 Checklist, 13/13 facts, 7/7 URLs, +1.39 FDG), invented extra SHA-256 characters, and fabricated a link |
| Required internal links | 3 / 3 woven organically into prose | 0 / 3 (missed Parts 1–3 links; inserted invented URL) |
| Markdown & typography | Clean headings, paragraphs, lists, and tables | Collapsed: zero Markdown headings, zero blank paragraph lines, broken vertical table cells |
| AI clichés / Local Qwen2.5 FDG | 0 clichés · −1.85 (more negative than −1.32 human control) | 0 clichés · +1.32 (+3.13 on standard human-voice prompt) |
This single stress test crystalized the entire v3 lesson: Model 1’s casual 2013 voice contained zero clichés, yet blunt full-model SFT on plain 2013 web pages damaged factual grounding and multi-section planning so severely that on a dense research brief it ran past the token cap, invented numerical tables, and literally inverted a central empirical finding.
8Threats to Validity & Pre-Registered v4 Mechanistic Weight-Surgery Roadmap
Limitations & validity boundaries: First, commercial detector spot checks covered 2 masonry briefs per arm rather than all 20 briefs (and Pangram credits were exhausted prior to Model 2, after which GPTZero 5.0b and Grammarly covered Models 2 and 3; Model 3 Brief 2 skipped Pangram once GPTZero hit 100% and Grammarly hit 96%). Second, 4-bit NF4 LoRA quantization may interact differently with high-rank updates than full BF16 weights. Third, while Qwen2.5 Fast-DetectGPT tracked commercial detector rankings cleanly across v2, Model 1, Model 3, and our Part 4 meta-test, cross-family validation on an unrelated base LM (e.g., Falcon-7B) is required to guard against same-family circularity.
What v3 proved — and the formal v4 (Part 5) design: Post-hoc humanizers fail modern detectors (+2.79 curvature, 85–100% AI), while blunt full-model SFT destroys structured compliance. Because both capabilities already coexist inside the same Qwen3 family — Qwen3-14B Instruct preserves facts and links, while Qwen3-14B-Base exhibits natural human token variance — our next chapter (v4 Mechanistic Weight & Neuron Surgery) abandons black-box SFT in favor of direct tensor-level separation across the exact matched pair (Qwen3-14B-Base vs. Qwen3-14B):
- Phase 1–2 Multi-Scale Causal Localization & Hard Falsification Gate: Streaming CPU SVD of ΔWℓ across all 40 layers, 4-class token-level logit geometry (
FACT_LITERAL,SYNTAX_LINK,PROSE_CONNECTIVE,PROSE_CONTENT), Grassmann principal-angle separation between RLHF-cadence Vstyle,ℓ and protected fact/syntax subspaces, layer-by-layerBase ↔ Instructactivation patching, SwiGLU MLP neuron attribution + lightweight Top-K Sparse Autoencoder (SAE) feature extraction, and Brief-Copy attention-head localization. If no causal band clears Grassmann separability ≥ 0.65 with low factual NLL damage (< 0.15), we abort cleanly and publish an honest entanglement null. - Phase 3–4 Surgical Projection, 2×2 Telegraphic Briefs & Three Negative Controls: Apply covariance null-space projection (
AlphaEdit-style Pnull protecting factual and Markdown-link activations), SVD-filtered layer-selective ΔWℓ damping, and neuron/SAE/copy-head clamping — paired with lossless Telegraphic Non-Prose Briefs (stripping fluent AI sentences from input briefs to seal the Brief-Copy Leak). Every surgical arm must strictly dominate three mandatory negative controls (norm-matched random subspace/neuron edit, perplexity-matched elevated-temperature decoding, and wrong-layer edit) across all 20 locked briefs with 1,000-resample bootstrap 95% CIs and third-family (Falcon-7B) Wasserstein/KS distribution match.
Training telemetry, corpus checksums & artifact hashes (writer-human-v3)
- Hardware & data hygiene: 2 × NVIDIA RTX 3090 24 GB (local, $0 closed-source API cost); zero closed-source outputs in any training target.
- Pre-2015 corpus:
pre2015_clean_v3.jsonl(2,200 born-digital May 2013 articles, 1,891 domains, 0 OCR defects,sha256: 7a57ffbba81b326cbd6f637a640ef68b). - Locked 15-brief cross-domain OOD suite:
eval_suite_ood_15brief/suite.json(sha256: a6470e9476c5e87f569b8026bafcb919; 180 facts, 75 int URLs, 45 ext URLs, 60 FAQs). - Dual-track synthesis: Track A 1,200/40 SFT + 392/19 DPO (
+0.4748mean margin); Track B 326/30 rewriter pairs (0.498median edit similarity). - Stage 4 convergence: Arm A (120 SFT
1.8357, 60 DPO0.6778/84.2%); Arm B (150 SFT1.8360, 50 DPO0.0276/100%); Arm C (90 SFT1.2681, 50 DPO0.0004/100%).
9References
- Bao et al. (2024). Fast-DetectGPT: Efficient Zero-Shot Detection via Conditional Probability Curvature. ICLR.
- Fang et al. (2025). AlphaEdit: Null-Space Constrained Knowledge Editing for Language Models. ICLR.
- Gao et al. (2024). Scaling and Evaluating Sparse Autoencoders.
- Hans et al. (2024). Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text. ICML.
- Hu et al. (2023). RADAR: Robust AI-Text Detection via Adversarial Learning. NeurIPS.
- Li et al. (2024). MAGE: Machine-generated Text Detection in the Wild. ACL.
- Meng et al. (2024). SimPO: Simple Preference Optimization with a Reference-Free Reward. NeurIPS.
- Olsson et al. (2022). In-Context Learning and Induction Heads. Transformer Circuits Thread.
- Rafailov et al. (2023). Direct Preference Optimization: Your Language Model is Secretly a Reward Model. NeurIPS.
- Reinhart et al. (2025). Do LLMs Write Like Humans? Variation in Grammatical and Rhetorical Styles. PNAS.
- Syed et al. (2024). Attribution Patching Outperforms Automated Circuit Discovery. BlackboxNLP.
Cite this
To cite Part 4 of the Canary Builds local-model research series:
@techreport{canarybuilds-2026-part4-breaking-ai-detector-wall,
title = {Part 4: Cross-Domain Stylometric Adaptation, Brief-Copy Leaks, and Curvature Diagnostics},
year = {2026},
month = {12},
institution = {Canary Builds},
url = {https://canarybuilds.com/papers/part-4-breaking-the-ai-detector-wall}
}