Downloads · 30 days
17
100% of all-time downloads
YihangSun/hw1-hc3-detector
hw1-hc3-detector is a text classification model from YihangSun. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Fine-tuned sentence-transformers/all-MiniLM-L6-v2 for binary AI-generated text detection on the HC3 (English) corpus.
Downloads · 30 days
17
100% of all-time downloads
All-time downloads
17
Public
Parameters
22.7M
90.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 99%
From the Hugging Face model README
Fine-tuned sentence-transformers/all-MiniLM-L6-v2 for binary AI-generated text detection on the
HC3 (English) corpus.
Labels: 0 = human, 1 = ChatGPT.
| Model | Test accuracy |
|---|---|
Frozen sentence-transformers/all-MiniLM-L6-v2 embeddings + logistic regression (baseline) | 0.8449 |
| Fine-tuned encoder + classification head (this model) | 0.9901 |
Confusion matrix of the fine-tuned model (rows = true, cols = predicted; order human, ChatGPT):
[[2288 46]
[ 0 2334]]
4d0ff18143b5a7e1b1e79beb540c04549d1e59d3, one human and one ChatGPT answer per
question, split 80/10/10 by question with seed 42 so no question crosses splits.num_labels=2.max_length=256 with dynamic padding.Coursework artifact for CS546. HC3 was collected from ChatGPT in late 2022 under a single prompting setup, and part of what this classifier separates is collection artifacts rather than authorship. It is not a reliable detector for contemporary AI-generated text and must not be used to make accusations about real student work.