/ Модель

Характеристики

Контекст
512 токенов
Архитектура
distilbert · dense
Библиотека
transformers
Опубликована
7 фев 2025

fake-news-bert

Классификация текстаТекст → label3 профессии

Дообученная DistilBERT-модель классифицирует англоязычные новости как реальные или фальшивые для первичного выявления дезинформации.

103скачиваний за 30 дней6лайковвеса обновлены7 фев 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель Dhruv Pal — дообученная версия DistilBERT для классификации новостных статей по тексту на реальные и фальшивые. Она предназначена для первичного выявления дезинформации в новостях и публикациях в социальных сетях, а также для интеграции в инструменты модерации и проверки фактов. Архитектура — DistilBERT с классификационной головой; модель принимает текст и выдаёт метку класса. Контекст ограничен 512 токенами. Заявленный язык — английский, лицензия — MIT.

В README сообщается о точности 92% и F1 90% на тестовой выборке из 10 000 статей. Возможны ложные срабатывания и пропуск фальшивых материалов; качество может снижаться на текстах из незнакомых источников, тем и стилей. Модель не выполняет проверку утверждений по внешним источникам и не должна быть единственным основанием для суждения о достоверности; рекомендуется проверка человеком.

Сценарии применения

  • классификация новостной статьи как реальной или фальшивой
  • первичная фильтрация публикаций в социальных сетях на признаки дезинформации
  • поддержка модерации новостных сайтов
  • сортировка материалов для последующей проверки журналистом или фактчекером

Ограничения

Модель может ошибочно помечать достоверные новости или пропускать фальшивые, особенно на текстах вне распределения обучающих данных. Она не проверяет сложные утверждения с помощью внешних знаний и слабо подходит для языков, кроме английского.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Model Card for Fake News Detection Model

Model Summary

This is a fine-tuned DistilBERT model for fake news detection. It classifies news articles as either real or fake based on textual content. The model has been trained on a labeled dataset consisting of true and false news articles collected from various sources.

Model Details

Model Description

  • Developed by: Dhruv Pal
  • Finetuned from: distilbert-base-uncased
  • Language: English
  • Model type: Transformer-based text classification model
  • License: MIT
  • Intended Use: Fake news detection on social media and news websites

Model Sources

Uses

Direct Use

  • This model can be used to detect whether a given news article is real or fake.
  • It can be integrated into fact-checking platforms, misinformation detection systems, and social media moderation tools.

Downstream Use

  • Can be further fine-tuned on domain-specific fake news datasets.
  • Useful for media companies, journalists, and researchers studying misinformation.

Out-of-Scope Use

  • This model is not designed for generating news content.
  • It may not work well for languages other than English.
  • Not suitable for fact-checking complex claims requiring external knowledge.

Bias, Risks, and Limitations

Risks

  • The model may be biased towards certain topics, sources, or writing styles based on the dataset used for training.
  • There is a possibility of false positives (real news misclassified as fake) or false negatives (fake news classified as real).
  • Model performance can degrade on out-of-distribution samples.

Recommendations

  • Users should not rely solely on this model for determining truthfulness.
  • It is recommended to use human verification and cross-check information from multiple sources.

How to Use the Model

You can load the model using transformers and use it for inference as shown below:

from transformers import DistilBertTokenizerFast, DistilBertForSequenceClassification
import torch

tokenizer = DistilBertTokenizerFast.from_pretrained("your-model-id")
model = DistilBertForSequenceClassification.from_pretrained("your-model-id")

def predict(text):
    inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
    outputs = model(**inputs)
    probs = torch.nn.functional.softmax(outputs.logits, dim=-1)
    return "Fake News" if torch.argmax(probs) == 1 else "Real News"

text = "Breaking: Scientists discover a new element!"
print(predict(text))

Training Details

Training Data

The model was trained on a dataset consisting of news articles labeled as real or fake. The dataset includes information from reputable sources and misinformation websites.

Training Procedure

  • Preprocessing:

    • Tokenization using DistilBertTokenizerFast
    • Removal of stop words and punctuation
    • Converting text to lowercase
  • Training Configuration:

    • Model: distilbert-base-uncased
    • Optimizer: AdamW
    • Batch size: 16
    • Epochs: 3
    • Learning rate: 2e-5

Compute Resources

  • Hardware: NVIDIA Tesla T4 (Google Colab)
  • Training Time: ~2 hours

Evaluation

Testing Data

  • The model was evaluated on a held-out test set of 10,000 news articles.

Metrics

  • Accuracy: 92%
  • F1 Score: 90%
  • Precision: 91%
  • Recall: 89%

Results

MetricScore
Accuracy92%
F1 Score90%
Precision91%
Recall89%

Environmental Impact

  • Hardware Used: NVIDIA Tesla T4
  • Total Compute Time: ~2 hours
  • Carbon Emissions: Estimated using the ML Impact Calculator

Technical Specifications

Model Architecture

  • The model is based on DistilBERT, a lightweight transformer architecture that reduces computation while retaining accuracy.

Dependencies

  • transformers
  • torch
  • datasets
  • scikit-learn

Citation

If you use this model, please cite it as:

@misc{DhruvPal2025FakeNewsDetection,
  title={Fake News Detection with DistilBERT},
  author={Dhruv Pal},
  year={2025},
  howpublished={\url{https://huggingface.co/your-model-id}}
}

Contact

For any queries, feel free to reach out:

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
DistilBertForSequenceClassification
Ревизия весов
7b22092

0 моделей