CoolFace
Modelpublic

pangboo/hw1-hc3-detector

sourceHugging Faceupdated 3d agoView on Hugging Face
0likes37downloads
Model Card

HW1 HC3 Detector

This model classifies English answer text as human-written or ChatGPT-generated. It was fine-tuned from sentence-transformers/all-MiniLM-L6-v2 with a two-class sequence classification head for CS546 Homework 1.

Repository: https://huggingface.co/pangboo/hw1-hc3-detector

Labels

Label IDMeaning
0Human-written
1ChatGPT-generated

Only answer text is used as input; questions are excluded from the model input.

Evaluation results

Both models were evaluated on the same held-out HC3 test split of 4,668 answers.

ModelTest accuracy
Baseline: frozen MiniLM sentence embeddings + logistic regression0.8449 (84.49%)
Fine-tuned MiniLM sequence classifier0.9931 (99.31%)

[image] [image]

Dataset and preprocessing

The retained 23,334 question pairs are sorted by normalized question text, shuffled with seed 42, and split by question before answers are flattened. Answers associated with the same question therefore remain in the same split. Each split contains equal numbers of human and ChatGPT answers.

SplitAnswer count
Training37,334
Validation4,666
Test4,668

Training

The baseline uses frozen 384-dimensional SentenceTransformer embeddings and scikit-learn LogisticRegression(random_state=42) with its remaining defaults.

The fine-tuned model updates all encoder parameters and the classification head using the following settings:

SettingValue
Base modelsentence-transformers/all-MiniLM-L6-v2
Model classAutoModelForSequenceClassification
Number of labels2
Random seed42
Epochs5
Training batch size128
OptimizerPyTorch AdamW
Learning rate2e-5
LossCross-entropy
Maximum input length256 tokens
PaddingDynamic padding within each batch
Test batch size32

The final model is the checkpoint after five epochs. The training loop does not use early stopping, a learning-rate scheduler, or validation-based checkpoint selection.