AI Detector 35BA3B (Codename: Nippers)
This model assigns Human, Assisted or Generated to each original token. It was trained for 2 epochs on 59,970 intact EditLens training documents. The 0.8B model is the smaller variant (Codename: Ginger Nut). Both models use an encoder-decoder architecture with 64x compression at the interface. I found this compression to have negligible effects on full document classification (human/mixed/ai).
The training used one 80 GB A100, document-weighted loss, 256 documents per optimizer update, and 470 total updates. The model was trained with Repeat2.
Architecture
The released 35B uses a 20-layer encoder, a 20-layer compressed decoder, and a per-token classification head.
- Encode every token. The encoder produces one contextual state for each input position.
- Pool each 64-token chunk into one query. A learned projection scores every valid encoder state in the chunk. A softmax over those scores gives the weights for their weighted sum.
- Read from the encoder. Each pooled query attends to individual encoder states in an overlapping window of up to 512 tokens. This happens in an initial retrieval pass and again in the decoder’s full-attention layers.
- Classify every token. The head combines each token’s encoder state with its chunk’s final decoder state to produce Human, Assisted, and Generated scores. Tokens within the same chunk can receive different labels.
For 512 input positions, the model computes 512 encoder states, 8 decoder queries, and 512 token predictions. Released 35B implementation
Linux GPU inference with vLLM
For inference on an A100 or H100, start with this runner. The BF16 A100 and mixed-FP8 H100 profiles load this release and run its token head through a packed vLLM worker. Both Repeat1 and Repeat2 return three scores per original token. Installation, profiles and scoring example
Reference PyTorch loader
The safetensors file contains all 148,051,075 trained parameters, including expert adapters, retrieval donor, pooler and token head. The frozen weights come from the base revision pinned in model-config.json. Run the included reference loader with one visible Hopper SM90 GPU and at least 75 GiB of visible device memory with Flash Linear Attention and causal-conv1d installed. Add runtime to PYTHONPATH and run from the downloaded repository.
import json
from huggingface_hub import snapshot_download
from safetensors.torch import load_file
from detector_model import AIDetector35BA3B
cfg = json.load(open("model-config.json"))
base = snapshot_download(cfg["base_repository"], revision=cfg["base_revision"])
model = AIDetector35BA3B(base, None, 64, cfg).cuda().eval()
state = load_file("trainable.safetensors")
assert set(state) == {k for k, v in model.named_parameters() if v.requires_grad}
model.load_state_dict(state, strict=False)
Use BF16 autocast, pad the sequence to a multiple of 64, and pass its actual unpadded length.
Benchmark comparison
AI Detector 35B-A3B is the released Qwen3.6-35B-A3B detector after two Repeat2 training epochs. AI Detector 35BA3B E1 is its all-token-pooled predecessor after one epoch. AI Detector 0.8B is the document-weighted, all-token-pooled Qwen3.5-0.8B detector after one epoch. All three models use Repeat2 inference. The commercial columns reproduce published results as outlined in the appendix. Checkpoint identities, protocols and sources
| Benchmark | Ginger Nut | Nippers (E1) | Nippers (E2) | Pangram 3 | Pangram 4 | GPTZero | Copyleaks | Turnitin |
|---|---|---|---|---|---|---|---|---|
| Perkins · original AI | 75.97% | 100.00% | 93.89% | — | 100.00% | 26.4% | 73.9% | 50.0% |
| Perkins · rewritten AI | 58.78% | 85.00% | 85.04% | — | 94.10% | 16.7% | 58.7% | 7.9% |
| GEDE | 79.75% | 83.97% | 88.61% | 98.90% | 100.00% | 77.6% | — | — |
| VUB | 40/40 | 40/40 | 40/40 | 38/39 | 39/39 | 0/39 | 0/39 | 0/39 |
| Epoch AI | 79.73% | 91.58% | 90.13%* | 97.47% | 98.57% | 97.14% | — | — |
| DetectRL | 80.62% | 89.23% | 88.11% | 96.70% | 95.30% | — | — | — |
| Sem-Detect | 100.00% | 100.00% | 100.00% | 100.00% | 95.50% | — | — | — |
| Saha Peer Review | 95.18% | 99.91% | 99.88% | 97.84% | 98.83% | 94.98% | — | — |
| DetectionAI | 81.28% | 90.19% | 90.84% | 87.14% | 92.99% | 35.74% | — | — |
| OpAI-Bench | 85.93 | 85.80 | 84.99 | 55.72 | 73.17 | — | — | — |
| MELD | 97.46% | 99.98% | 99.85% | 99.95% | 99.99% | — | — | — |
| EditLens · token F1 | 68.25%³ | 73.01% | 76.71% | — | — | — | — | — |
| EditLens · boundary F1 | 23.55%³ | 26.82% | 38.09% | — | — | — | — | — |
| EditLens · document accuracy | 93.40% | 95.07% | 95.48% | 92.00% (v3.2) | — | — | — | — |
| EditLens · Enron | 92.42% | 95.33% | 94.21% | 90.50% (v3.2) | — | — | — | — |
| EditLens · Llama | 93.48% | 95.51% | 94.98% | 95.20% (v3.2) | — | — | — | — |
Inference speed
| Model | GPU | Precision | Workload | Input | Original tokens/s | Documents/s |
|---|---|---|---|---|---|---|
| AI Detector 0.8B | H100 PCIe | Mixed FP8 | Public suite | Repeat1 | 499,723 | — |
| AI Detector 0.8B | H100 PCIe | Mixed FP8 | Public suite | Repeat2 | 256,117 | — |
| EditLens Llama 3B | H100 PCIe | Mixed FP8 | EditLens | Single copy | 94,665 | 215.2 |
| EditLens Llama 3B | H100 PCIe | BF16 | EditLens | Single copy | 65,749 | 149.4 |
| Nippers 35B | H100 PCIe | Mixed FP8 | OpAI-Bench | Repeat1 | 88,597 est. | 165.0 est. |
| Nippers 35B | H100 PCIe | Mixed FP8 | OpAI-Bench | Repeat2 | 44,849 | 83.5 |
| Nippers 35B | A100 SXM4 | BF16 | EditLens | Repeat1 | 45,950 | 103.5 |
| Nippers 35B | A100 SXM4 | BF16 | EditLens | Repeat2 | 23,285 | 52.4 |
| EditLens Llama 3B | A100 SXM4 | BF16 | EditLens | Single copy | 43,122 | 98.0 |
| Mac M5 · AI Detector 0.8B | Repeat1 tokens/s | Repeat2 tokens/s |
|---|---|---|
| BF16 | 13,105 | 6,600 |
Impact of 64× compression
The released 35B model delivered 1.79× the throughput at Repeat1 and 1.81× at Repeat2 versus running all 40 native layers on every token with the same epoch-2 weights and token head. Both paths scored all 6,041 intact EditLens documents (2,683,077 original tokens) on one A100 80 GB in BF16.
| Input | Batches | Native time | Compressed time | Wall time saved |
|---|---|---|---|---|
| Repeat1 | 61 | 104.25 s | 58.39 s | 44.0% |
| Repeat2 | 116 | 208.87 s | 115.23 s | 44.8% |
Within each copy mode, both paths used identical length-sorted batches, a 49,152-position batch budget, and the same tuned MoE settings. Timing started after tokenization, loading and warmup. It included inference, transfer to the host and writing three scores per original token. Each native time is one full pass. Each compressed time is the mean of two full passes. Repeat2 concatenates two copies and scores the second.
Attribution quality. In earlier 35B experiments with separately trained full-resolution and 64× compression models, compression moved raw edited-token macro F1 from 76.96% to 76.13%, Generated-token F1 from 63.15% to 63.11%, and boundary F1 within eight tokens from 46.81% to 37.81% after Repeat2 continuation. Boundary recall was close (60.88% versus 60.08%). The compressed model predicted more false transitions. Whole-document accuracy moved from 95.20% to 95.43%. These paired quality results describe a slightly changed architecture. The updated/released architecture is not expected to change these results.
Appendix · measures and sources
Commercial detector accuracy scores come from the Pangram 4 Technical Report, benchmark tables, except for the Pangram 3.2 EditLens result from Pangram’s in-domain ternary evaluation. GPTZero, Copyleaks and Turnitin figures use the vendor baselines reported there. The study links in the first column identify each benchmark.
- DetectionAI, Table 18, VUB, Table 20, GEDE, Table 21, Perkins, Table 22, Epoch AI, Table 23.
- DetectRL, Table 24, MELD, Tables 25–26, Sem-Detect, Table 27, Saha, Table 28, OpAI-Bench, Table 29.
- Reported accuracy comes from our saved Repeat2 evaluations. For the external detector columns we calculated DetectionAI and Saha cohort means, Epoch balanced accuracy from the published error counts, VUB hits from score bands, and OpAI-Bench coverage error from the reported stage means. Dashes indicate unavailable comparisons.
The paired 0.8B H100 public-suite timings cover 180,413,135 original tokens in 361.03 s (Repeat1) and 704.42 s (Repeat2). The 35B H100 measurement is the first-epoch all-token checkpoint on 42,786 OpAI-Bench documents. The first-epoch H100 Repeat1 OpAI-Bench projection scales its measured Repeat2 throughput by 1.9754×, the Repeat1/Repeat2 ratio measured with the original 16,384-token A100 BF16 batches for epoch 2 on EditLens. This assumes that the ratio transfers across hardware, precision, workload and checkpoint. An H100 speed result for epoch 2 is unavailable. The epoch-2 A100 rows report total original tokens and documents divided by total time over two full EditLens replays per mode using the tuned batch settings. EditLens GPU timings use the same 6,041 documents, including inference, transfer and saving predictions. Token counts depend on the tokenizer. Repeat2 throughput counts each original token once. Mac BF16 rates are median warm MLX forward timings on an Apple M5 with 16 GB of memory, eight 512-token inputs per batch.
- Perkins — Arithmetic mean of the binary, partial-credit (semi-binary), and logarithmic scores for each AI cohort. A percentage here is an average over grading methods.
- GEDE — Recall at 1% FPR on the 569-document cohort.
- VUB — Papers above 60% Generated + Assisted coverage for this model (40 papers), or in the published ≥60% detector-score band (39 papers).
- Epoch AI — Balanced accuracy under the written document-verdict rule.
- DetectRL — Mean AI-class F1 across eight families.
- Sem-Detect — Recall at 1% FPR on the original Table 1 comparison of AI-written and untouched human reviews.
- Saha Peer Review — Mean accuracy across nine subgroups.
- DetectionAI — Mean recall at 1% FPR across four cohorts.
- OpAI-Bench — 100 minus the mean absolute error, in percentage points, between predicted and reference character coverage across nine edit stages. A score of 84.99 means a 15.01-point mean stage error.
- MELD — Recall at 1% FPR.
- EditLens — Macro F1 across Human, Assisted and Generated tokens within edited documents, one-to-one boundary F1 within ±8 tokens, and three-way accuracy on whole documents. Document predictions use mean token probabilities and validation-fitted cutoffs.
* Pangram grades a document Human at ≥90% Human coverage, AI at ≥80% Generated coverage, and Mixed otherwise. Mixed counts as an error on either reference class. The epoch-2 35B scored 96.03% when each sentence cast one vote for its own label and a strict majority determined the verdict. Pangram grading and Epoch results
Epoch-2 MELD recall uses all 220,136 AI texts and 7,862 human controls. EditLens Enron and Llama report three-way document accuracy using the in-domain validation thresholds. My detector scored 6,147 Enron and 5,877 Llama documents. Pangram 3.2 reported 6,147 and 5,957 respectively.
¹ The rewritten Perkins cohort has 90 documents for GPTZero, Copyleaks and Turnitin, and 89 for this model and Pangram 4. GPTZero’s DetectionAI and Saha figures are equal-weight means across the reported cohorts. Pangram benchmark tables
² This model and Pangram 4 use character coverage. Pangram 3 uses its published mean edit score. OpAI-Bench results
³ The 0.8B token F1 comes from its packed FP8 serving replay and its boundary F1 from its BF16 evaluator. For EditLens document accuracy, this model scored all 6,041 rows of its test file. Pangram 3.2 reported 6,115 documents. Published EditLens evaluation
EditLens token labels
I kept the EditLens labels for entirely human and entirely AI-generated documents. For AI-edited documents, I split the revision into sentences and clauses and compared each passage with the original human draft. I used sentence-transformers/all-MiniLM-L6-v2 to find the closest source passage, considering both individual passages and adjacent pairs.
- Human if the passage’s normalized word sequence appeared anywhere in the draft, or its word-sequence similarity was ≥0.88 against any of the six closest candidates. This check applied at every length.
- Assisted if the passage passed neither Human check, contained at least five words, and had a best-match embedding cosine similarity ≥0.60.
- Generated for every remaining passage, including unmatched fragments under five words.
Each token inherited the label of the passage containing its character midpoint. EditLens token F1 measures agreement with these labels.
License
| Component | License |
|---|---|
| Trained model weights and adapters | CC BY-NC-SA 4.0 |
| Our inference code, loaders, and export tools | Apache-2.0 |
Third-party components retain their respective licenses and notices.
Model tree for matthewagi/AI-Detector-35BA3B
Base model
Qwen/Qwen3.6-35B-A3B