DeBERTa-v3-large
↓
mask-aware mean pooling
↓
Linear(1024 → 4)
├── human
├── ai
├── ai_edited
└── humanized
The headline AI score is:
AI score = 1 - P(human)
Input and inference behavior
English text
Minimum input: 50 words
Maximum chunk: 768 tokens including special tokens
Longer documents: sentence-aware chunks combined using token-weighted class probabilities
Calibrated AI-score threshold:
0.9974874649196864
The ONNX graph contains the DeBERTa encoder, mask-aware mean pooling, and four-class classifier. No remote code is required.
Fine-tuning
Only the published MAGE training split was used for gradient updates. The accepted training sample contained 4,000 human and 4,000 AI documents, balanced across sources.
Rank-8 LoRA adapters were trained on all 24 layers' query and value projections together with the classifier. This made 790,532 of 434,802,692 parameters trainable. Training ran for one epoch on Apple MPS with an effective batch size of 16 and learning rate
1e-4
.
MAGE provides binary labels while this detector has four output classes. The training objective therefore compared the human logit with the combined nonhuman logit:
A KL-divergence preservation term discouraged collapse of the conditional distribution among
ai
,
ai_edited
, and
humanized
.
Training, validation, calibration, development, and sealed evaluation data were separated by published split and source group. Cross-boundary exact normalized-text matches and identical normalized 50-word prefixes were excluded.
See
FINE_TUNING.md
for the complete methodology and limitations.
Evaluation
On the untouched 1,997-document MAGE validation partition, ROC-AUC improved from
0.7820
to
0.9712
.
The package-native threshold was selected on a separate 1,999-document MAGE calibration partition, targeting no more than 0.5% human false positives. At the selected threshold, calibration produced 54.6% AI recall, 0.40% human FPR, and 0.9659 ROC-AUC.
A fresh sealed package-native comparison used 4,000 documents from previously unused HC3 and RAID source groups:
The maximum absolute logit difference between PyTorch and ONNX across three reference inputs, including a 768-token input, was
0.000020682811737060547
.
Limitations and responsible use
AI-text detection is probabilistic evidence, not proof of authorship. This model should not be the sole basis for disciplinary, employment, academic-integrity, legal, or other high-impact decisions.
Performance can vary with domain, language, generator, editing level, document length, and author population. The original model's undisclosed training corpus may overlap with public benchmarks. A false-positive rate measured on these samples does not guarantee the same rate in deployment.
ai-text-detector huggingface.co is an AI model on huggingface.co that provides ai-text-detector's model effect (), which can be used instantly with this BillFisk ai-text-detector model. huggingface.co supports a free trial of the ai-text-detector model, and also provides paid use of the ai-text-detector. Support call ai-text-detector model through api, including Node.js, Python, http.
ai-text-detector huggingface.co is an online trial and call api platform, which integrates ai-text-detector's modeling effects, including api services, and provides a free online trial of ai-text-detector, you can try ai-text-detector online for free by clicking the link below.
BillFisk ai-text-detector online free url in huggingface.co:
ai-text-detector is an open source model from GitHub that offers a free installation service, and any user can find ai-text-detector on GitHub to install. At the same time, huggingface.co provides the effect of ai-text-detector install, users can directly use ai-text-detector installed effect in huggingface.co for debugging and trial. It also supports api for free installation.