CoolFace
Modelpublic

almanach/xlmr-chatgptdetect-noisy

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes55downloads
Model Card

xlmr-chatgptdetect-noisy

Multilingual ChatGPT detection model from Towards a Robust Detection of Language Model-Generated Text: Is ChatGPT that easy to detect?

This model is a fine-tuned version of xlm-roberta-base on the HC3 FULLMULTI1.00.50.5 dataset with noise added. It achieves the following results on the:

Evaluation set:

  • —Loss: 0.1573
  • —F1: 0.9633

Test Set:

  • —F1: 0.97

Adversarial:

  • —F1: 0.45

Model description

This a model trained to detect text created by ChatGPT in French. The training data is the combination of the hc3_fr_full and hc3_en_full subsets of almanach/hc3_multi, but with added misspelling and homoglyph attacks.

Intended uses & limitations

This model is for research purposes only. It is not intended to be used in production as we said in our paper:

We would like to emphasize that our study does not claim to have produced an universally accurate detector. Our strong results are based on in-domain testing and, unsurprisingly, do not generalize in out-of-domain scenarios. This is even more so when used on text specifically designed to fool language model detectors and on text intentionally stylistically similar to ChatGPT-generated text, especially instructional text.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 8
  • —seed: 1
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 32
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 5.0
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossF1
0.03171.085380.17320.9492
0.0082.0170760.35410.9270
0.00853.0256140.11610.9726
0.00154.0341520.25570.9516
0.05.0426900.22860.9650

Framework versions

  • —Transformers 4.26.1
  • —Pytorch 1.11.0+cu115
  • —Datasets 2.8.0
  • —Tokenizers 0.13.2