/ Модель

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

Контекст
512 токенов
Лицензия
MIT
Архитектура
distilbert · dense
Базовая модель
distilbert-base-uncased
Библиотека
transformers
Опубликована
12 авг 2026

distilbert-fakenews

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

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

123скачиваний за 30 дней1лайквеса обновлены13 авг 2026

Бенчмарки

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

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

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

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

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

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

GhostFaith/distilbert-fakenews — модель, разработанная Amey Dande и дообученная на DistilBERT для бинарной классификации англоязычных новостных статей и заголовков на реальные и фейковые. Это шестислойный трансформерный энкодер DistilBERT с классификационной головой; модель использует контекст до 512 токенов и обучалась на очищенном от дубликатов наборе WELFake.

Модель предназначена для учебных и демонстрационных проектов, а также как базовый сигнал в системах проверки фактов или модерации. В README сообщается о точности 99,12% и F1 0,9900 на отложенной выборке WELFake; эти результаты относятся к этому набору данных и не гарантируют перенос на другие источники и жанры новостей. Модель выпущена по лицензии MIT.

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

  • Классификация англоязычной новости как реальной или фейковой
  • Предварительная проверка заголовка новости
  • Добавление сигнала о возможной дезинформации в систему проверки фактов
  • Демонстрация бинарной классификации текста в учебном проекте

Ограничения

Обучение и оценка проведены на WELFake, поэтому качество на других источниках, стилях, сатире и форматах новостей может быть ниже; модель не оценивалась для текстов на других языках. Её не следует использовать как единственное основание для решений о достоверности, модерации или правоприменении.

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

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

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

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

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

Открыть на Hugging Face

DistilBERT Fake News Classifier

A fine-tuned DistilBERT model that classifies news articles as Real or Fake.

Model Details

Model Description

This model is a fine-tuned version of distilbert-base-uncased for binary classification of news articles as Real or Fake. It was fine-tuned on the WELFake dataset after deduplication (removing ~9,337 duplicate rows) to prevent train/test leakage and ensure an honest evaluation.

  • Developed by: Amey Dande
  • Model type: Text classification (binary)
  • Language(s) (NLP): English
  • License: MIT
  • Finetuned from model: distilbert-base-uncased

Model Sources

Uses

Direct Use

This model can classify English-language news article text or headlines as real or fake, given raw text input. Intended for portfolio, educational, and demonstration purposes, and as a baseline fake-news detection component.

Downstream Use

Could be integrated into a larger content-moderation or fact-checking pipeline as one signal among several, rather than a standalone decision-maker.

Out-of-Scope Use

Not intended for production moderation decisions, legal/policy enforcement, or as the sole basis for judging content authenticity. Not evaluated on non-English text, satire, or news domains/formats outside the WELFake dataset.

Bias, Risks, and Limitations

  • Trained on a single dataset (WELFake); may not generalize well to other fake-news domains, sources, or writing styles.
  • Deduplication reduced train/test leakage substantially, but residual near-duplicate or topically similar content may still inflate reported metrics slightly.
  • May reflect labeling biases or source-selection biases present in the original WELFake dataset.

Recommendations

Users should treat predictions as one signal, not ground truth, and independently verify claims rather than relying solely on this model's output — especially in any real-world or high-stakes deployment.

How to Get Started with the Model

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tokenizer = AutoTokenizer.from_pretrained("GhostFaith/distilbert-fakenews")
model = AutoModelForSequenceClassification.from_pretrained("GhostFaith/distilbert-fakenews")

text = "Your news article text here"
inputs = tokenizer(text, truncation=True, padding=True, max_length=256, return_tensors="pt")
with torch.no_grad():
    logits = model(**inputs).logits
pred = torch.argmax(logits, dim=-1).item()
print("Fake" if pred == 1 else "Real")

Training Details

Training Data

WELFake news dataset (~71,537 rows total). Deduplicated on article text (~9,337 duplicate rows removed) before splitting, to prevent identical or near-identical articles from appearing in both train and test sets. Split 80/10/10 into train/validation/test.

Training Procedure

Fine-tuned using Hugging Face Trainer.

Preprocessing

Text tokenized with the distilbert-base-uncased tokenizer, truncation enabled, padded to a fixed max length.

Training Hyperparameters

  • Epochs: 2
  • Train batch size: 8 (per device)
  • Eval batch size: 16 (per device)
  • Warmup steps: 500
  • Weight decay: 0.01
  • Training regime: fp16 mixed precision

Speeds, Sizes, Times

Trained on a single Colab T4 GPU; full training run (2 epochs, ~57K training examples after split) completed in well under an hour.

Evaluation

Testing Data, Factors & Metrics

Testing Data

Held-out test split (10%) from the deduplicated WELFake dataset — not seen during training or validation.

Metrics

Accuracy and F1 score, plus a full precision/recall/F1 breakdown per class (real vs. fake).

Results

MetricScore
Accuracy99.12%
F10.9900
Precision (Real / Fake)0.99 / 0.99
Recall (Real / Fake)0.99 / 0.99

Confusion matrix (rows = actual, columns = predicted, order = [Real, Fake]):

[[3453   28]
 [  27 2712]]

Summary

The model performs strongly on held-out, deduplicated test data, with balanced errors across both classes (28 false positives, 27 false negatives out of 6,220 test examples) — no systematic bias toward over- or under-flagging either class.

Environmental Impact

  • Hardware Type: NVIDIA T4 GPU (Google Colab)
  • Hours used: < 1 hour
  • Cloud Provider: Google Colab
  • Compute Region: Not tracked
  • Carbon Emitted: Not estimated

Technical Specifications

Model Architecture and Objective

DistilBERT (6-layer transformer encoder, distilled from BERT-base) with a sequence classification head (pre-classifier + classifier layers) for binary text classification.

Compute Infrastructure

Hardware

Single NVIDIA T4 GPU (Google Colab free tier).

Software

Python, Hugging Face transformers, datasets, PyTorch.

Model Card Contact

See the GitHub repository for contact information.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей