CoolFace
Modelpublic

Tonic/climate-guard-toxic-agent

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
1likes18downloads
Model Card

Climate Guard Toxic Agent - ModernBERT Classifier for Climate Disinformation

This model is a fine-tuned version of answerdotai/ModernBERT-base on the Tonic/climate-guard-toxic-agent dataset. It achieves the following results on the evaluation set:

  • —Loss: 4.9405
  • —Accuracy: 0.4774
  • —F1: 0.4600
  • —Precision: 0.6228
  • —Recall: 0.4774
  • —F1 0 Not Relevant: 0.5064
  • —F1 1 Not Happening: 0.6036
  • —F1 2 Not Human: 0.3804
  • —F1 3 Not Bad: 0.4901
  • —F1 4 Solutions Harmful Unnecessary: 0.3382
  • —F1 5 Science Is Unreliable: 0.4126
  • —F1 6 Proponents Biased: 0.4433
  • —F1 7 Fossil Fuels Needed: 0.4752

Model description

This model implements a novel approach to classifying climate change skepticism arguments by using only synthetic data. The base architecture uses ModernBERT with an accuracy of 99.45% on the validation dataset which is the entire QuotaClimat dataset.

The model categorizes text into the following climate change denial types:

  • —label: Following categories:
  • —0_not_relevant: No relevant claim detected or claims that don't fit other categories
  • —1_not_happening: Claims denying the occurrence of global warming and its effects - Global warming is not happening. Climate change is NOT leading to melting ice (such as glaciers, sea ice, and permafrost), increased extreme weather, or rising sea levels. Cold weather also shows that climate change is not happening
  • —2_not_human: Claims denying human responsibility in climate change - Greenhouse gases from humans are not the causing climate change.
  • —3_not_bad: Claims minimizing or denying negative impacts of climate change - The impacts of climate change will not be bad and might even be beneficial.
  • —4_solutions_harmful_unnecessary: Claims against climate solutions - Climate solutions are harmful or unnecessary
  • —5_science_is_unreliable: Claims questioning climate science validity - Climate science is uncertain, unsound, unreliable, or biased.
  • —6_proponents_biased: Claims attacking climate scientists and activists - Climate scientists and proponents of climate action are alarmist, biased, wrong, hypocritical, corrupt, and/or politically motivated.
  • —7_fossil_fuels_needed: Claims promoting fossil fuel necessity - We need fossil fuels for economic growth, prosperity, and to maintain our standard of living.

Intended uses & limitations

This model can be used for multi-class text classification tasks where the input text needs to be categorized into one of the eight predefined classes. It is particularly suited for datasets with class imbalance, thanks to its weighted loss function.

Training and evaluation data

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 16
  • —evalbatchsize: 32
  • —seed: 22
  • —gradientaccumulationsteps: 2
  • —totaltrainbatch_size: 32
  • —optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 7
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyF1PrecisionRecallF1 0 Not RelevantF1 1 Not HappeningF1 2 Not HumanF1 3 Not BadF1 4 Solutions Harmful UnnecessaryF1 5 Science Is UnreliableF1 6 Proponents BiasedF1 7 Fossil Fuels Needed
0.45021.023240.25390.92140.92080.92560.92140.86740.86270.91160.94730.94610.90920.92770.9683
0.30612.046480.17010.94460.94470.94610.94460.88580.91850.92950.95740.96280.94500.94460.9750
0.13393.069720.22390.94990.94990.95020.94990.89000.94120.95060.94690.96110.95060.93640.9786
0.02174.092960.31980.95170.95170.95200.95170.90730.94300.95200.95610.95420.95370.93690.9771
0.00325.0116200.30090.95300.95300.95310.95300.90070.94080.95530.95650.96020.95250.93880.9815
0.00016.0139440.30550.95380.95370.95370.95380.90550.94240.95360.95900.95890.95400.94130.9802
0.00286.9972162610.31080.95290.95290.95290.95290.90550.94130.95410.95740.95640.95410.94030.9792

Framework versions

  • —Transformers 4.48.3
  • —Pytorch 2.6.0+cu124
  • —Datasets 3.2.0
  • —Tokenizers 0.21.0