Text Classification
PEFT
Safetensors
Transformers
English
misinformation-detection
social-media
fakett
lora
Instructions to use DS4AI-UPB/roberta-misinfo-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use DS4AI-UPB/roberta-misinfo-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("roberta-base") model = PeftModel.from_pretrained(base_model, "DS4AI-UPB/roberta-misinfo-lora") - Transformers
How to use DS4AI-UPB/roberta-misinfo-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="DS4AI-UPB/roberta-misinfo-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DS4AI-UPB/roberta-misinfo-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,493 Bytes
fdc7c46 cd87270 fdc7c46 cd87270 fdc7c46 cd87270 fdc7c46 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | ---
base_model: roberta-base
library_name: peft
pipeline_tag: text-classification
language:
- en
tags:
- misinformation-detection
- social-media
- fakett
- peft
- lora
- transformers
- base_model:adapter:roberta-base
---
# RoBERTa — Text-Only Misinformation Detection on FakeTT
**Authors:** Andrei-Gabriel Radu, Ciprian-Octavian Truică, Elena-Simona Apostol
**National University of Science and Technology POLITEHNICA Bucharest**
LoRA adapter fine-tuned from `roberta-base` for binary **text-only misinformation classification** on the FakeTT social-media video dataset.
This model accompanies the bachelor thesis *Misinformation Detection in Social Media Videos*.
## Results
| Dataset | Modality | Macro-F1 |
|---|---|---:|
| FakeTT | Text-only | 0.8443 |
## Model
- **Base model:** `roberta-base`
- **Task:** Binary misinformation classification
- **Modality:** Text-only
- **Fine-tuning:** LoRA / PEFT
- **Dataset:** FakeTT
- **Number of classes:** 2
- **Primary metric:** Macro-F1
## Training
- **LoRA rank (`r`):** 16
- **LoRA alpha:** 16
- **LoRA dropout:** 0.05
- **Target modules:** `value`, `query`, `key`, `dense`
- **Bias:** none
## Usage
```python
import torch
from peft import PeftModel
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo_id = "DS4AI-UPB/roberta-misinfo-lora"
base_model_id = "roberta-base"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
base_model = AutoModelForSequenceClassification.from_pretrained(base_model_id, num_labels=2)
model = PeftModel.from_pretrained(base_model, repo_id).eval()
text = "Example social media video description."
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad():
logits = model(**inputs).logits
print(logits.argmax(dim=-1).item())
```
> Use the class-to-label mapping from the original FakeTT training pipeline.
## Intended Use
Research and benchmarking of English-language text-only misinformation detection for social-media video content.
## Limitations
This is a classification model, not a factual verification system. It cannot inspect the associated video and can degrade under domain shift.
## Citation
```bibtex
@thesis{radu2026misinformation,
author = {Radu, Andrei-Gabriel and Truică, Ciprian-Octavian and Apostol, Elena-Simona},
title = {Misinformation Detection in Social Media Videos},
school = {National University of Science and Technology POLITEHNICA Bucharest},
year = {2026}
}
```
|