Text Classification
Transformers
ONNX
Safetensors
ai-detection
machine-generated-text
knowledge-distillation
modernbert
mmbert
webgpu
webassembly
lightgbm
treeshap
Run this model with HF Jobs
Run ElderRyan/proseguard on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ElderRyan/proseguard. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ElderRyan/proseguard on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ElderRyan/proseguard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ElderRyan/proseguard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ElderRyan/proseguard")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ElderRyan/proseguard", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Replace cross-dataset charts with same-split results and bootstrap CIs; remove unsupported claims
Browse filesFiles changed (7)
4 unmodified lines56784 unmodified linestokenizer.json filter=lfs diff=lfs merge=lfs -textassets/benchmark_hero.png filter=lfs diff=lfs merge=lfs -textassets/pareto_multilingual.png filter=lfs diff=lfs merge=lfs -textassets/benchmarks_tiers.png filter=lfs diff=lfs merge=lfs -text26 unmodified lines272829303031323334353536373839404141424343444546474849505152535455564546585960474849505152626364656667686970535472737455565758596061766263786465668182838485868767686970919271727311 unmodified lines8586871108889909111492939411795969712098991221001011021031 unmodified line10510610713010810911011111211311411511611713211811913412026 unmodified lines
# ProseGuard
**Client-to-Server Multilingual AI Text Detection · Zero Manuscript Upload · Strict 1% FPR Safety****Multilingual AI text detection that runs locally, from a 679 KiB WASM screener to a 296 MB server verifier**
[](https://aidetect.rist.edu.rs)[](https://prosegrain.com)[](./LICENSE)[](#tiers)[](#pick-your-tier)
*English · Simplified & Traditional Chinese · Japanese | Built on Rust WASM & [`jhu-clsp/mmBERT`](https://huggingface.co/jhu-clsp/mmBERT-base)*
</div>


---
## Pick Your Tier
Pull **only the tier you need** (`--include`) instead of cloning the full `2.3 GB` monorepo:
| Tier | Path | Footprint | Latency (M1 Max) | 2026 Catch (`@1%FPR`) | Chinese `DeepSeek-V3` | Use Case || :--- | :--- | :---: | :---: | :---: | :---: | :--- || **Tier 1 · ML** | [`ml/`](./ml) | **`679 KiB`** WASM | **`2.3 ms`** | `39.3%` | `58.3%` | Instant browser screening + exact `TreeSHAP` || **Tier 2 · Web** | [`mmbert-small/web/`](./mmbert-small) | **`51.8 MB`** Q4 | `~35 ms` WebGPU | **`76.8%`** (`3x` browser SOTA) | `75.5%` | 100% browser-local neural verification || **Tier 2 · Edge** | [`mmbert-small/onnx/`](./mmbert-small) | **`136 MB`** INT8 | `31 ms` MPS | **`96.4%`** (`91.7%` Opus 5) | `75.5%` | Fast local CLI & CPU microservice || **Tier 3 · Base** | [`mmbert-base/onnx/`](./mmbert-base) | **`296 MB`** INT8 | `75 ms` MPS | **`100.0%`** (`100%` Opus 5) | **`90.3%`** | Maximum precision + 3-way hybrid & span audit |## What these numbers say, and what they don't
---
## Ecosystem Comparison at a Glance- **Measured on the same split:** on [TextSight OOD-2026](https://huggingface.co/datasets/textsightai/ai-text-detection-benchmark-2026) (338 modern human vs 56 2026 AI passages), the neural tiers catch more AI text at 1% FPR than the open detectors we could run (`Oxidane/TMR` 50.0%, `e5-small-lora` 25.0%).- **The sample is small.** 56 AI passages, 12 from Claude Opus 5. A 1% FPR threshold rests on about 3 human passages, so `mmBERT-base`'s 96.4% has a CI of 46 to 100%. `mmBERT-small` INT8 is the most stable (86 to 100%).- **ESL false positives depend on the tier.** At a plain 0.5 threshold, `mmBERT-small` INT8 flags 13.7% of non-native PubMed papers, about the same as `Oxidane/TMR`. `ProseGuard-ML` (3.8%) and `mmBERT-base` (4.4%) are lower. These are published, copy-edited papers, not raw learner essays.- **Not tested yet:** commercial APIs (GPTZero, Originality.ai, Pangram, ZeroGPT) have not been run on this split. We make no claim about them.- **Where we lose:** on English adversarial paraphrase (RAID+MAGE) we reach 51 to 54% TPR@1%FPR. GPTZero (92.9%) and Desklib v1.01 (76.5%) report higher numbers on the RAID leaderboard. That is a different split, but the gap is large.
| Detector | License & Runtime | Size | Context | Languages | Output | Low-FPR Catch | ESL Human FPR || :--- | :--- | :---: | :---: | :---: | :--- | :---: | :---: || [`roberta-base-openai`](https://huggingface.co/openai-community/roberta-base-openai-detector) | MIT · Server | `501 MB` | `512` | EN | Binary | `0.0%` (`OOD-26`) | `1.09%` || [`chatgpt-detector-roberta`](https://huggingface.co/Hello-SimpleAI/chatgpt-detector-roberta) | Apache-2.0 · Server | `499 MB` | `512` | EN / sep. ZH | Binary | `19.6%` (`RAID`) | `n/a` || [`TextSight e5-small`](https://huggingface.co/spaces/textsightai/free-ai-text-detector) | Open · Browser | `~33 MB` | `512` | EN | Binary | `25.0%` (`OOD-26`) | `1.09%` || [`Binoculars`](https://github.com/ahans30/Binoculars) (`2x7B`) | Apache-2.0 · GPU | `~14 GB` | `2,048` | EN-centric | Binary | `69.5%` (`RAID` clean) | `<1.0%` || [`desklib/v1.01`](https://huggingface.co/desklib/ai-text-detector-v1.01) | MIT · Server | `1.74 GB` | `768` | EN only | Binary | **`76.5%`** (`RAID` all) | `n/a` || `ZeroGPT` | Closed Cloud API | Cloud | `n/a` | Multi | Binary | Fails `<16.9%` FPR | **`61.3%`** (TOEFL) || **`ProseGuard` (Ours)** | **MIT · Browser to Server** | **`0.68 - 296 MB`** | **`8,192`** | **EN + ZH + JA** | **3-Way + Edit% + Span** | **`76.8% - 100%`** (`OOD-26`) | **`0.55%`** (PMC) |## Pick your tier
> **Bottom Line**: `ProseGuard-mmBERT-small` (`51.8 MB` Q4) triples browser-local catch rate at `1%` FPR (`25.0% -> 76.8%`), while `mmBERT-base` (`296 MB` INT8) catches **`100%`** of cliché-free 2026 frontier prose (`Claude Opus 5`, `Qwen 3.8`) with **`0.55%`** ESL false positives. For heavy multi-pass English-only humanizer attacks (`RAID`), `1.74 GB` English-specialized `Desklib v1.01` achieves higher recall (`76.5%` vs `53.9%`) at `6x - 33x` larger size without CJK or browser support.
---| Tier | Path | Size | Latency (M1 Max) | Best for || :--- | :--- | :---: | :---: | :--- || **ML** | [`ml/`](./ml) | `679 KiB` WASM | `2.3 ms` | Instant in-browser screening with exact `TreeSHAP` explanations || **Small · Web** | [`mmbert-small/web/`](./mmbert-small) | `51.8 MB` Q4 | `~320 ms` CPU 1 thread | Neural check fully inside the browser (WebGPU / WASM) || **Small · INT8** | [`mmbert-small/onnx/`](./mmbert-small) | `136 MB` INT8 | `~200 ms` CPU | Local CLI and CPU services || **Base · INT8** | [`mmbert-base/onnx/`](./mmbert-base) | `296 MB` INT8 | `~430 ms` CPU | Highest Chinese recall, 3-way + span output |
## Quick StartAll neural tiers output `Human / AI-Assisted / AI-Native` probabilities, a continuous edit-intensity score, and a 64-token sliding-window peak for locating AI spans inside long human text. Non-commercial (`NC`) corpora were excluded from neural training.
### 1. Selective Download (`hf` CLI)## Quick start
```bash# Browser 679 KB Rust WASM enginehf download ElderRyan/proseguard --include "ml/*" --local-dir ./proseguard
# Browser 51.8 MB WebGPU/WASM Q4 neural packagehf download ElderRyan/proseguard --include "mmbert-small/web/*" "mmbert-small/tokenizer*" "mmbert-small/calibration.json" --local-dir ./proseguard
# Server / CLI INT8 ONNX ("mmbert-small" 136 MB or "mmbert-base" 296 MB)# Pull only one tierhf download ElderRyan/proseguard --include "mmbert-base/onnx/*" "mmbert-base/tokenizer*" "mmbert-base/calibration.json" --local-dir ./proseguard```
### 2. Python ONNX Inference (`0` PyTorch Dependency)
```pythonimport json, numpy as np, onnxruntime as ortfrom huggingface_hub import snapshot_download11 unmodified lines
p = np.exp((s := logits[0] / cal["temperature"]) - s.max()); p /= p.sum()ai_score = (1 - cal["window_blend"]) * (1 - p[0]) + cal["window_blend"] * max(1 - p[0], float(win_max[0]))print({"ai_score": round(float(ai_score), 4), "human_assisted_ai": p.round(4).tolist(), "window_peak": round(float(win_max[0]), 4)})print({"ai_score": round(float(ai_score), 4), "human_assisted_ai": p.round(4).tolist()})```
<details><summary><b>Browser WASM & WebGPU Snippets (Click to expand)</b></summary><summary><b>Browser WASM and WebGPU</b></summary>
```javascript// Tier 1: 679 KB Zero-Dependency WASM (2.3 ms + Exact TreeSHAP)// ML tier: 679 KiB WASMimport './ml/wasm-loader.js';await globalThis.ProseGuardWasm.initWasmEngine();console.log(globalThis.ProseGuardWasm.analyzeArticle('Draft stays 100% local.'));console.log(globalThis.ProseGuardWasm.analyzeArticle('Draft stays local.'));
// Tier 2: 51.8 MB WebGPU / WASM Q4 Neural Verifier// Small tier: 51.8 MB Q4 in a Web Workerimport { initProseGuardWeb, analyzeProseGuardWeb } from './mmbert-small/web/proseguard_web_worker.mjs';await initProseGuardWeb('https://your-cdn.example.com/proseguard/mmbert-small');console.log(await analyzeProseGuardWeb('Manuscript never leaves the browser.'));1 unmodified line
</details>
---<details><summary><b>Evaluation details</b></summary>
- OOD-2026 numbers use the shipped files (`onnx/model_int8.onnx`, `web/model_web_q4.onnx`, WASM), `max_length=1024`. CIs: 2,000 stratified bootstrap resamples (TPR, AUC) and Wilson intervals (ESL FPR). Scores and script: `eval_results/ood2026_modern_scores.json`, `src/eval_ood_ci.py`.- `Oxidane/TMR` and `e5-small-lora` scores are the per-passage files TextSight ships with the dataset.- Tier chart (N=1,400 per split, `seed=20261204`) uses PyTorch weights. C-ReD and AnxForever are held-out splits of sources seen in training. NLPCC-2025 was unseen by the neural tiers but its train split was used for `ProseGuard-ML`.- We evaluated on OOD-2026 several times during development, so treat it as a validation set rather than a clean test set.
</details>
## Attribution & Citation## Attribution
`mmbert-small` and `mmbert-base` fine-tune and distill [`jhu-clsp/mmBERT`](https://huggingface.co/jhu-clsp/mmBERT-base) (Marone et al., Johns Hopkins University CLSP, `arXiv:2509.06888`, MIT License). All non-commercial (`NC`) corpora were excluded from neural training. Released under the [MIT License](./LICENSE).`mmbert-small` and `mmbert-base` fine-tune and distill [`jhu-clsp/mmBERT`](https://huggingface.co/jhu-clsp/mmBERT-base) (Marone et al., JHU CLSP, `arXiv:2509.06888`, MIT). Released under the [MIT License](./LICENSE).65 unmodified lines666768697071727374757677787980818283848569707172737475767778798065 unmodified lines});```

## Benchmark Comparison vs. Open-Source Detectors & Neural Tiers
| Detector | Footprint & Latency | `OOD-2026 Modern` `ROC-AUC` | `OOD-2026 Modern` `TPR@1%FPR` | ESL Human FPR (`n=183`) | `NLPCC-2025` ZH `ROC-AUC` | `NLPCC-2025` ZH `TPR@1%FPR` || :--- | :--- | :---: | :---: | :---: | :---: | :---: || [`roberta-base-openai-detector`](https://huggingface.co/openai-community/roberta-base-openai-detector) | `501 MB` (`47 ms` GPU) | `0.3155` | `0.0%` | `1.09%` | `0.4571` | `0.5%` || [`TextSight e5-small-lora`](https://huggingface.co/spaces/textsightai/free-ai-text-detector) | Browser LoRA | `0.6711` | `25.0%` | `1.09%` | EN only | EN only || [`Oxidane/tmr-ai-text-detector`](https://huggingface.co/datasets/textsightai/ai-text-detection-benchmark-2026) | Server Model | `0.8670` | `50.0%` | **`0.55%`** | EN only | EN only || **`ProseGuard-ML`** (`ml/`) | **`679 KiB` (`2.3 ms` WASM)** | `0.8636` (`0.9109` Full) | `39.3%` | `1.09%` | `0.9647` | `58.3%` || `ProseGuard-mmBERT-small` (`web/`) | `51.8 MB` Web Q4 | `0.9874` | `76.8%` | **`0.55%`** | `0.9840` | `75.5%` || `ProseGuard-mmBERT-small` (`onnx/`) | `136 MB` INT8 | **`0.9986`** | `96.4%` | `1.09%` | `0.9840` | `75.5%` || `ProseGuard-mmBERT-base` (`mmbert-base/`) | `295.9 MB` INT8 | `0.9976` (`0.9987` Full) | **`100.0%`** | **`0.55%`** | **`0.9922`** | **`90.3%`** |
**When to Use `ProseGuard-ML`**:* **Sub-Megabyte Instant Screening (`2.3 - 6.8 ms`)**: `737x` smaller than `RoBERTa-Base` (`679 KiB` vs `501 MB`) while outperforming `RoBERTa-Base` and `e5-small-lora` across `OOD-2026`, `RAID+MAGE` (`44.5%` vs `17.1%` `TPR@1%FPR`), and Chinese `NLPCC-2025` (`58.3%` vs `0.5%`), with exact `TreeSHAP` feature-family explanations.* **Escalation Path**: Sub-megabyte statistical models miss RLHF-cliché-free `Claude Opus 5` prose (`0.0%` at `1%` FPR); escalate borderline or high-stakes documents to `mmbert-small` (`96.4%` `TPR@1%FPR`) or `mmbert-base` (`100.0%` `TPR@1%FPR`).## Benchmark

On OOD-2026 Modern (338 human vs 56 AI passages, 2026 generators), `ProseGuard-ML` reaches 0.864 ROC-AUC and **39.3%** TPR@1%FPR (95% CI 21 to 52%). That is below `Oxidane/TMR` (50.0%) and above `e5-small-lora` (25.0%). It misses all 12 Claude Opus 5 passages at 1% FPR. At a 0.5 threshold it flags 3.8% (7/183) of non-native PubMed papers.
Held-out splits (N=1,400, TPR@1%FPR): NLPCC-2025 Chinese 58.3%, C-ReD 97.1%, AnxForever 79.8%, RAID+MAGE 44.5%.
Use it as a 2 to 7 ms first pass and send borderline text to `mmbert-small` or `mmbert-base`. Commercial APIs (GPTZero, Originality.ai, Pangram, ZeroGPT) have not been tested on this split. Full caveats: [main Model Card](https://huggingface.co/ElderRyan/proseguard).
## Limitations
31 unmodified lines3233343536373839404142434445464748495051525354553536373839404142434431 unmodified lines 2. **Token-Level Attribution & 64-Token Sliding Window Max**: Predicts token-wise AI probabilities and peak 64-token window scores to prevent short AI insertions inside long human articles from being diluted by document-level averaging. 3. **Low-FPR Training Objective**: Trained exclusively on commercially clean MIT / Apache-2.0 / CC-BY-SA multilingual datasets using online `SpanMix` paragraph splicing, Markdown/punctuation de-shortcutting, and `12x` asymmetric false-positive penalties on mined hard human technical and academic prose.

## Benchmark Evaluation & Comparison vs. Open-Source Detectors
* **`ROC-AUC` (`0.5` to `1.0`)**: Overall ranking separation across all thresholds (`1.0` = ideal).* **`TPR@1%FPR` (`0%` to `100%`)**: AI catch rate when human false positives are strictly capped at `1%`.
| Detector | Footprint | `OOD-2026 Modern` `ROC-AUC` | `OOD-2026 Modern` `TPR@1%FPR` | `Claude Opus 5` (`@1%FPR`) | `Qwen 3.8` (`@1%FPR`) | ESL Human FPR (`n=183`) | `NLPCC-2025` ZH `TPR@1%FPR` || :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: || [`roberta-base-openai-detector`](https://huggingface.co/openai-community/roberta-base-openai-detector) | `501 MB` FP32 | `0.3155` | `0.0%` | `0.0%` | `0.0%` | `1.09%` | `0.5%` || [`TextSight e5-small-lora`](https://huggingface.co/spaces/textsightai/free-ai-text-detector) | Browser LoRA | `0.6711` | `25.0%` | `8.3%` | `0.0%` | `1.09%` | EN only || [`Oxidane/tmr-ai-text-detector`](https://huggingface.co/datasets/textsightai/ai-text-detection-benchmark-2026) | Server Model | `0.8670` | `50.0%` | `0.0%` | `0.0%` | **`0.55%`** | EN only || `ProseGuard-ML` (`ml/`) | `679 KiB` WASM | `0.8636` | `39.3%` | `0.0%` | `37.5%` | `1.09%` | `58.3%` || `ProseGuard-mmBERT-small` (`web/`) | `51.8 MB` Web Q4 | `0.9874` | `76.8%` | `50.0%` | `37.5%` | **`0.55%`** | `75.5%` || `ProseGuard-mmBERT-small` (`onnx/`) | `136 MB` INT8 | **`0.9986`** | `96.4%` | `91.7%` | `87.5%` | `1.09%` | `75.5%` || **`ProseGuard-mmBERT-base`** (`onnx/`) | **`295.9 MB` INT8** | `0.9976` | **`100.0%`** (56/56) | **`100.0%`** (12/12) | **`100.0%`** (8/8) | **`0.55%`** (1/183) | **`90.3%`** (`0.9922` AUC) |
**Key Takeaways**:* **100% Zero-Shot Frontier Recall at `1%` FPR**: Catches `12/12` `Claude Opus 5` and `8/8` `Qwen 3.8` passages where `RoBERTa-OpenAI`, `Oxidane/TMR`, and sub-megabyte n-gram models score `0%`, while achieving `0.9987` `ROC-AUC` across the full `N=700` `OOD-2026` suite.* **Multilingual & Hybrid Accuracy**: Reaches `90.3%` `TPR@1%FPR` (`81.6%` at `0.1%` FPR) on zero-shot Chinese `DeepSeek-V3` (`NLPCC-2025`), `97.5%` `TPR@1%FPR` on `C-ReD`, `74.2%` recall on lightly AI-polished human drafts (`AnxForever`), and `50.95%` predicted AI on a blind 50/50 human-AI co-authored technical essay.* **Compact CPU Deployment vs. Heavy Baselines**: At `295.9 MB` `INT8` (`75 ms` MPS / `247 ms` CPU), `ProseGuard-mmBERT-base` is `6x` smaller than `desklib/ai-text-detector-v1.01` (`1.74 GB` EN-only) and `47x` smaller than `Binoculars` (`~14 GB` dual-7B VRAM), while avoiding `ZeroGPT`'s `16.9%` minimum FPR floor and `61.3%` ESL false-positive rate.## Benchmark

On OOD-2026 Modern (338 human vs 56 AI passages, 2026 generators), the shipped `onnx/model_int8.onnx` reaches 0.996 ROC-AUC and **96.4%** TPR@1%FPR, but the 95% CI is wide (46 to 100%) because the 1% threshold rests on about 3 human passages. It catches 10/12 Claude Opus 5 passages and flags 4.4% (8/183) of non-native PubMed papers at 0.5. For comparison, `Oxidane/TMR` gets 50.0% and `e5-small-lora` 25.0% on the same passages.
Held-out splits (N=1,400, TPR@1%FPR, PyTorch weights): NLPCC-2025 Chinese **90.3%** (81.6% at 0.1% FPR), C-ReD 97.5%, AnxForever light-polish subset 74.2%, RAID+MAGE English attacks 50.7%. On English adversarial paraphrase, RAID leaderboard entries such as GPTZero (92.9%) and Desklib v1.01 (76.5%) report higher numbers on a different split. Commercial APIs (GPTZero, Originality.ai, Pangram, ZeroGPT) have not been tested on this split. Full caveats: [main Model Card](https://huggingface.co/ElderRyan/proseguard).
## Quick Start (ONNX Runtime)
35 unmodified lines36373839404142434445464748495051525354555657585960613940414243444546474849505152535455565735 unmodified lines * **Token-Level Span & 64-Token Sliding Window Head**: Outputs per-token AI probabilities and peak 64-token window scores to catch localized AI insertions inside long human manuscripts. * **Online SpanMix & Asymmetric Low-FPR Distillation**: Trained on commercially clean MIT / Apache-2.0 / CC-BY-SA multilingual corpora with online paragraph splicing (`SpanMix`), format de-shortcutting, `12x` asymmetric false-positive penalties on mined hard human academic/technical prose, and multi-head KL + token MSE distillation from [`ElderRyan/ProseGuard-mmBERT-base`](https://huggingface.co/ElderRyan/ProseGuard-mmBERT-base).

## Benchmark Evaluation & Comparison vs. Open-Source Detectors
* **`ROC-AUC` (`0.5` to `1.0`)**: Overall ranking separation across all thresholds (`1.0` = ideal).* **`TPR@1%FPR` (`0%` to `100%`)**: AI catch rate when human false positives are strictly capped at `1%`.
| Detector | Footprint | `OOD-2026 Modern` `ROC-AUC` | `OOD-2026 Modern` `TPR@1%FPR` | `Claude Opus 5` (`@1%FPR`) | ESL Human FPR (`n=183`) | `NLPCC-2025` ZH `TPR@1%FPR` | `RAID+MAGE` EN `TPR@1%FPR` || :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: || [`roberta-base-openai-detector`](https://huggingface.co/openai-community/roberta-base-openai-detector) | `501 MB` FP32 | `0.3155` | `0.0%` | `0.0%` | `1.09%` | `0.5%` | `17.1%` || [`Hello-SimpleAI/chatgpt-detector-roberta`](https://huggingface.co/Hello-SimpleAI/chatgpt-detector-roberta) | `499 MB` FP32 | `n/a` | `n/a` | `n/a` | `n/a` | EN only | `19.6%` (RAID) || [`TextSight e5-small-lora`](https://huggingface.co/spaces/textsightai/free-ai-text-detector) | Browser LoRA | `0.6711` | `25.0%` | `8.3%` | `1.09%` | EN only | `n/a` || [`Oxidane/tmr-ai-text-detector`](https://huggingface.co/datasets/textsightai/ai-text-detection-benchmark-2026) | Server Model | `0.8670` | `50.0%` | `0.0%` | **`0.55%`** | EN only | `n/a` || [`Binoculars`](https://github.com/ahans30/Binoculars) (`2x Falcon-7B`) | `~14 GB` VRAM | `n/a` | `n/a` | `n/a` | `<1.0%` | EN-centric | `69.5%` (Clean) || [`desklib/ai-text-detector-v1.01`](https://huggingface.co/desklib/ai-text-detector-v1.01) | `1.74 GB` FP32 | `n/a` | `n/a` | `n/a` | `n/a` | EN only | **`76.5%`** (In-dom.) || `ProseGuard-ML` (`ml/`) | **`679 KiB` WASM** | `0.8636` | `39.3%` | `0.0%` | `1.09%` | `58.3%` | `44.5%` || **`ProseGuard-mmBERT-small`** (`web/`) | **`51.8 MB` Web Q4** | `0.9874` | `76.8%` | `50.0%` | **`0.55%`** | `75.5%` | `53.9%` || **`ProseGuard-mmBERT-small`** (`onnx/`) | **`136 MB` INT8** | **`0.9986`** | `96.4%` | `91.7%` | `1.09%` | `75.5%` | `53.9%` || `ProseGuard-mmBERT-base` (`mmbert-base/`) | `295.9 MB` INT8 | `0.9976` | **`100.0%`** | **`100.0%`** | **`0.55%`** | **`90.3%`** | `50.7%` |
**Key Takeaways**:* **3x Higher Browser Recall**: `ProseGuard-mmBERT-small` (`51.8 MB` Web Q4) triples recall at `1%` FPR over prior browser baselines (`25.0% -> 76.8%`) with zero manuscript upload, while full-vocab `INT8` (`136 MB`) reaches **`96.4%` `TPR@1%FPR`** (`91.7%` on `Claude Opus 5`).* **Multilingual & Low-FPR Calibrated**: Covers `EN + ZH + JA` up to `8,192` tokens (`0.9990` AUC on `C-ReD` ZH, `72.7%` recall at `1%` FPR on lightly AI-polished human drafts in `AnxForever`) while holding ESL human false positives at `0.55% - 1.09%` (compared to `ZeroGPT`'s `16.9%` minimum FPR floor and `61.3%` TOEFL ESL false positives).## Benchmark

On OOD-2026 Modern (338 human vs 56 AI passages, 2026 generators), measured with the shipped files:
| Build | ROC-AUC | TPR@1%FPR (95% CI) | Claude Opus 5 @1%FPR | ESL papers flagged @0.5 || :--- | :---: | :---: | :---: | :---: || `onnx/model_int8.onnx` (136 MB) | 0.998 | **94.6%** (86 to 100) | 11/12 | 13.7% (25/183) || `web/model_web_q4.onnx` (51.8 MB) | 0.988 | 76.8% (62 to 91) | 6/12 | 0.5% (1/183) || `Oxidane/tmr-ai-text-detector` | 0.867 | 50.0% (38 to 70) | 0/12 | 13.1% (24/183) || `TextSight e5-small-lora` | 0.671 | 25.0% (11 to 38) | 1/12 | 10.4% (19/183) |
The INT8 build scores high at 0.5 on many ESL papers, so calibrate your threshold on your own human text before use. The Q4 build loses about 18 points of recall to 4-bit quantization and vocabulary compaction.
Held-out splits (N=1,400, TPR@1%FPR, PyTorch weights): NLPCC-2025 Chinese 75.5%, C-ReD 96.8%, AnxForever 83.6% (light-polish subset 72.7%), RAID+MAGE English attacks 53.9%. Commercial APIs (GPTZero, Originality.ai, Pangram, ZeroGPT) have not been tested on this split. Full caveats: [main Model Card](https://huggingface.co/ElderRyan/proseguard).
## Usage
.gitattributes+1
README.md+36-50
assets/benchmark_hero.png

Large File Pointer Details
- SHA256: 834cc2b61aa1cbc638ab6429c2afa916dec9f186685e17e63632cd5d2241de55
- Pointer size: 131 Bytes
- Size of remote file: 415 kB

Large File Pointer Details
- SHA256: 9b2089cdff2d73fb643bbd0d0a0484c86785a8838b5782145b27bbbc40fe7837
- Pointer size: 131 Bytes
- Size of remote file: 312 kB
assets/pareto_multilingual.png → assets/benchmarks_tiers.pngRenamed

Large File Pointer Details
- SHA256: 164ec77c18245b524770310da2b8cbd52988b674d979852ef16834e7505a51a0
- Pointer size: 131 Bytes
- Size of remote file: 270 kB

Large File Pointer Details
- SHA256: 2b2e340c2818c455b347bb84a09d8f52b351e0ee61127f15f09b7a132f30dd81
- Pointer size: 131 Bytes
- Size of remote file: 174 kB
ml/README.md+9-17
mmbert-base/README.md+7-21
mmbert-small/README.md+16-23