CoolFace
Modelpublic

synapti/nci-technique-classifier-v5.2

sourceHugging Faceapache-2.0updated 10mo agoView on Hugging Face
1likes87downloads
Model Card

NCI Technique Classifier v5.2

Multi-label propaganda technique classifier based on ModernBERT, trained to identify 18 propaganda techniques from the SemEval-2020 Task 11 taxonomy.

Model Description

This model is part of the NCI (Narrative Coordination Index) Protocol for detecting coordinated influence operations. It classifies text into 18 propaganda techniques with well-calibrated probability outputs.

Key Improvements in v5.2

  • Reduced False Positives: Scientific/factual content false positive rate reduced from 35% (v4) to 8.8%
  • Better Calibration: ASL loss with clip=0.02 provides more discriminative probability outputs
  • Hard Negatives Training: Trained on v5 dataset with 1000+ hard negative examples (scientific, business, factual content)
  • Document-Level Analysis: Works well with full documents, no need for sentence-level splitting

Training Details

  • Base Model: answerdotai/ModernBERT-base
  • Dataset: synapti/nci-propaganda-v5 (24,037 samples)
  • Loss Function: Asymmetric Loss (ASL)
  • gamma_neg: 4.0
  • gamma_pos: 1.0
  • clip: 0.02 (reduced from 0.05 to minimize probability shifting)
  • Training: 3 epochs, lr=2e-5, batch_size=16
  • Validation: 4/7 tests passed (57%)

Techniques Detected

IDTechniqueDescription
0Loaded_LanguageWords with strong emotional implications
1Appealtofear-prejudiceBuilding support through fear or prejudice
2Exaggeration,MinimisationOverstating or understating facts
3RepetitionRepeating messages for reinforcement
4Flag-WavingAppealing to patriotism/national identity
5Name_Calling,LabelingUsing labels to evoke prejudice
6ReductioadhitlerumComparing to Hitler/Nazis
7Black-and-White_FallacyPresenting only two choices
8Causal_OversimplificationAssuming single cause for complex issues
9Whataboutism,StrawMen,RedHerringDeflection techniques
10Straw_ManMisrepresenting opponent's position
11Red_HerringIntroducing irrelevant topics
12DoubtQuestioning credibility
13AppealtoAuthorityUsing authority figures to support claims
14Thought-terminating_ClichesPhrases that end rational thought
15Bandwagon"Everyone is doing it" appeals
16SlogansCatchy phrases for memorability
17Obfuscation,Intentional_Vagueness,ConfusionDeliberately confusing language

Usage

python
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch

model_id = "synapti/nci-technique-classifier-v5.2"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)

text = "This is OUTRAGEOUS! They are LYING to you. WAKE UP!"

inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
    outputs = model(**inputs)
    probs = torch.sigmoid(outputs.logits)[0]

# Get techniques with probability > 0.5
LABELS = [
    "Loaded_Language", "Appeal_to_fear-prejudice", "Exaggeration,Minimisation",
    "Repetition", "Flag-Waving", "Name_Calling,Labeling", "Reductio_ad_hitlerum",
    "Black-and-White_Fallacy", "Causal_Oversimplification",
    "Whataboutism,Straw_Men,Red_Herring", "Straw_Man", "Red_Herring", "Doubt",
    "Appeal_to_Authority", "Thought-terminating_Cliches", "Bandwagon", "Slogans",
    "Obfuscation,Intentional_Vagueness,Confusion"
]

for i, (label, prob) in enumerate(zip(LABELS, probs)):
    if prob > 0.5:
        print(f"{label}: {prob:.1%}")

Performance

Validation Results

Test Casev5.2v4Status
Pure Propaganda66.8%70.8%✓ Detected
Neutral News6.9%5.5%✓ Clean
SpaceX Factual3.7%-✓ Clean
Multi-Label Propaganda76.5%-✓ Detected
Mixed Content7.3%--
Fear Appeal69.9%-✓ Detected
Scientific Report8.8%35.4%✓ Clean

Key Metrics

  • Scientific Report FPR: 8.8% (vs 35% in v4) - 75% reduction
  • Factual News FPR: 4.6% (vs 29% in v4) - 84% reduction
  • Propaganda Detection: Maintained (73.7% max confidence on propaganda)

Citation

bibtex
@inproceedings{da-san-martino-etal-2020-semeval,
    title = "{S}em{E}val-2020 Task 11: Detection of Propaganda Techniques in News Articles",
    author = "Da San Martino, Giovanni and others",
    booktitle = "Proceedings of the 14th International Workshop on Semantic Evaluation",
    year = "2020",
}

License

Apache 2.0