A binary AI text detector that classifies text as human-written or AI-generated/edited, built with adaptive-classifier on the EditLens ICLR 2026 benchmark.
Uses frozen embeddings from TrustSafeAI/RADAR-Vicuna-7B (a RoBERTa-large model adversarially trained for AI detection) as a feature extractor, with adaptive-classifier's prototype memory + neural head for classification.
Text → RADAR backbone (frozen, 355M) → 1024-dim embedding → adaptive-classifier head → human / ai
pip install adaptive-classifier
from adaptive_classifier import AdaptiveClassifier
classifier = AdaptiveClassifier.from_pretrained("adaptive-classifier/ai-detector")
predictions = classifier.predict("Your text here")
# Returns: [('ai', 0.85), ('human', 0.15)]
# Batch prediction
results = classifier.predict_batch(["text 1", "text 2"], k=2)
# Continuous learning — add new examples without retraining
classifier.add_examples(
["new human text example", "new ai text example"],
["human", "ai"]
)
Evaluated on the EditLens ICLR 2026 test splits.
| Model | Method | Test F1 |
|---|---|---|
| EditLens Mistral-Small 24B | QLoRA fine-tuned | 95.6 |
| Pangram v2 | Proprietary | 83.7 |
| Binoculars | Perplexity ratio | 81.4 |
| FastDetectGPT | Log-prob based | 80.5 |
| This model | Frozen RADAR + adaptive-classifier | 73.7 |
| Split | Accuracy | Macro-F1 | AI F1 | Human F1 |
|---|---|---|---|---|
| test (in-distribution) | 74.2% | 73.7 | 77.5 | 69.9 |
| test_enron (OOD domain) | 79.1% | 75.2 | 85.0 | 65.3 |
| test_llama (OOD model) | 74.3% | 73.8 | 77.2 | 70.4 |
The model generalizes well to OOD splits: accuracy on emails (test_enron) and unseen AI models (Llama 3.3-70B / test_llama) is on par with or above the in-distribution test set.
human (human_written), ai (ai_edited + ai_generated)Predictions made through the hosted Space are continuously logged to adaptive-classifier/ai-detector-data — a public dataset of real-world predictions with optional user feedback (Correct / Incorrect). This dataset grows over time and can be used to track model performance, find failure cases, and drive future retraining.
@software{adaptive_classifier,
title = {Adaptive Classifier: Dynamic Text Classification with Continuous Learning},
author = {Sharma, Asankhaya},
year = {2025},
publisher = {GitHub},
url = {https://github.com/codelion/adaptive-classifier}
}
onnx/model.onnx 1.4 GBonnx/model_quantized.onnx 356 MBmodel.safetensors 6 MB