Downloads · 30 days
851
62% of all-time downloads
mokawa3018/cmj-chinese-aigc-text-detector
cmj-chinese-aigc-text-detector is a text classification model from mokawa3018. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This repository provides a fine-tuned Chinese AIGC text detector with both PyTorch and ONNX weights.
Downloads · 30 days
851
62% of all-time downloads
All-time downloads
1.4K
Public
Repo size
1.2 GB
Likes
1
Public
Click a slice to open those files.
.onnx409 MB · 50%
From the Hugging Face model README
This repository provides a fine-tuned Chinese AIGC text detector with both PyTorch and ONNX weights.
GitHub project: https://github.com/mokawa3018-ctrl/cmj-chinese-aigc-text-detector
Binary classification for Chinese text:
0 = human
1 = AI
The model is intended as an auxiliary signal for AIGC text detection. It should not be used as the only basis for punishment, academic misconduct decisions, identity judgment, or other high-stakes decisions.
This model was fine-tuned from yuchuantian/AIGC_detector_zhv3.
Upstream references:
The upstream model and code pages are marked Apache-2.0. HC3-Chinese is marked CC-BY-SA-4.0 on its dataset page. This model card does not claim unconditional commercial use; downstream users should review the upstream model, code, data, generated-data, and hosting terms for their own use case.
The selected model was trained with a 1:1 balanced Chinese dataset:
pair_id to reduce question-level leakageThe training data combined HC3-Chinese and authorized multi-model generated text. Full training and test data are not included in this model repository.
epochs: 1
batch_size: 16
validation_batch_size: 8
max_length: 512
learning_rate: 0.00002
weight_decay: 0.01
seed: 0
optimizer: AdamW
scheduler: no explicit scheduler found
loss: classification loss + 0.4 * PU loss
pu_type: dual_softmax_dyn_dtrun
prior: 0.2
length_threshold: 55
PyTorch / Transformers files are stored at the repository root:
config.json
pytorch_model.bin
tokenizer.json
tokenizer_config.json
special_tokens_map.json
vocab.txt
ONNX files are stored under onnx/:
onnx/model.onnx
onnx/config.json
onnx/tokenizer.json
onnx/tokenizer_config.json
onnx/special_tokens_map.json
onnx/vocab.txt
Final balanced PyTorch model on fixed test sets:
| Evaluation set | Metric | Value |
|---|---|---|
| Human-only fixed test | Human accuracy | 91.60% |
| Human-only fixed test | Human false positive rate | 8.40% |
| AI-only fixed test | AI recall | 94.10% |
| Mixed fixed test | Accuracy | 92.85% |
HC3-Chinese 7,696-row test:
| Model | Overall accuracy | AI detection rate | Human false positive rate |
|---|---|---|---|
| Original zh-v3 baseline | 89.54% | 91.14% | 11.60% |
| This fine-tuned model | 91.84% | 92.78% | 8.84% |
ONNX consistency, verified in the original server environment:
max absolute logits difference: 1.43e-6
max absolute probability difference: 2.31e-7
sample prediction labels: fully consistent
ONNX fixed test results:
| Evaluation set | Metric | Value |
|---|---|---|
| Human-only fixed test | Human accuracy | 91.60% |
| Human-only fixed test | Human false positive rate | 8.40% |
| AI-only fixed test | AI recall | 94.10% |
| Mixed fixed test | Accuracy | 92.85% |
ONNX export configuration used:
inputs: input_ids, attention_mask, token_type_ids
output: logits
opset: 14
dynamic batch: enabled
dynamic sequence length: enabled
nlpcc_dbqa, with legal and finance categories also requiring more attention than medicine, encyclopedia, psychology, and open-question text.This repository includes Apache-2.0 license text because the upstream model and code pages are marked Apache-2.0. HC3-Chinese is marked CC-BY-SA-4.0. The model was trained from upstream work and should not be described as a from-scratch model.
Please preserve upstream attribution when reusing the model or code, and review all upstream and data licenses before redistribution or production use.