/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Библиотека
transformers
Опубликована
15 фев 2026

RooseBERT-cont-uncased

Заполнение пропусковТекст → текст3 профессии

Англоязычная BERT-модель, адаптированная к политическим дебатам и предназначенная для заполнения масок и дообучения на задачах анализа политической речи.

171скачиваний за 30 дней0лайковвеса обновлены9 июл 2026

Бенчмарки

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

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

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

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

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

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

RooseBERT-cont-uncased — англоязычная доменная языковая модель на основе BERT-base, разработанная для анализа политической речи. Модель продолжает предобучение весов bert-base-uncased на корпусе англоязычных политических дебатов и парламентских выступлений; она сохраняет стандартный uncased WordPiece-словарь BERT из 30 523 токенов и приводит входной текст к нижнему регистру. Архитектура — BERT encoder-only с головой masked language modeling, 136,7 млн параметров и контекстом до 512 токенов.

Модель предназначена прежде всего как база для дообучения на задачах анализа политического дискурса: классификации тональности и позиции, выделения и классификации аргументов и их связей, классификации политических предложений и распознавания именованных сущностей. Карточка сообщает о превосходстве над BERT-base-uncased в 9 из 10 проверенных задач. Репозиторий помечен для задачи fill-mask. Лицензия — Apache-2.0.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

RooseBERT-cont-uncased

RooseBERT is a domain-specific BERT-based language model pre-trained on English political debates and parliamentary speeches. It is designed to capture the distinctive features of political discourse, including domain-specific terminology, implicit argumentation, and strategic communication patterns.

This variant — cont-uncased — was trained via continued pre-training (CONT) of bert-base-uncased, initialising from its original weights and vocabulary and training for additional steps on the political debate corpus. This allows the model to leverage BERT's general language understanding while adapting its representations to the political domain. The uncased variant lowercases all input text before tokenization, making it more robust to capitalisation variation across debate transcripts.

📄 Paper: RooseBERT: A New Deal For Political Language Modelling
💻 GitHub: https://github.com/deborahdore/RooseBERT


Model Details

PropertyValue
ArchitectureBERT-base (encoder-only)
Training approachContinued pre-training (CONT) from bert-base-uncased
VocabularyBERT standard uncased WordPiece (30,523 tokens)
Hidden size768
Attention heads12
Hidden layers12
Max position embeddings512
Training steps150K
Batch size2048
Learning rate3e-4 (linear warmup + decay)
Warmup steps10,000
Weight decay0.01
Training objectiveMasked Language Modelling (MLM, 15% mask rate)
Hardware8× NVIDIA A100 GPUs
Training time~24 hours
FrameworksHuggingFace Transformers, DeepSpeed ZeRO-2, FP16

The CONT approach initialises from bert-base-uncased's pre-trained weights and continues training on the political debate corpus, retaining BERT's standard vocabulary. This means the model benefits from BERT's broad linguistic knowledge while adapting its contextual representations to the political domain — without the overhead of training a new tokenizer or initialising weights from random. CONT models require fewer training steps (150K vs. 250K for SCR) and can be trained in approximately 24 hours on 8× A100 GPUs.


Training Data

RooseBERT was pre-trained on 11GB of English political debate transcripts spanning 1919–2025, drawn from:

SourceCoverageSize
African Parliamentary Debates (Ghana & South Africa)1999–2024573 MB
Australian Parliamentary Debates1998–20251 GB
Canadian Parliamentary Debates1994–20251.1 GB
European Parliamentary Debates (EUSpeech)2007–2015110 MB
Irish Parliamentary Debates1919–2019~3.4 GB
New Zealand Parliamentary Debates (ParlSpeech)1987–2019791 MB
Scottish Parliamentary Debates (ParlScot)–2021443 MB
UK House of Commons Debates1979–20192.6 GB
UN General Debate Corpus (UNGDC)1946–2023186 MB
UN Security Council Debates (UNSC)1992–2023387 MB
US Presidential & Primary Debates1960–202416 MB

All datasets were sourced from authoritative, official political settings. Pre-processing removed hyperlinks, markup tags, and collapsed whitespace.


Intended Use

RooseBERT is intended as a base model for fine-tuning on downstream NLP tasks related to political discourse analysis. It is especially well-suited for:

  • Sentiment Analysis of parliamentary speeches and debates
  • Stance Detection (support/oppose classification)
  • Argument Component Detection and Classification (claims and premises)
  • Argument Relation Prediction and Classification (support/attack/no-relation)
  • Motion Policy Classification
  • Named Entity Recognition in political texts

The CONT-uncased variant is a good default choice when compatibility with the standard BERT vocabulary is important (e.g., when using pre-trained task-specific heads or embeddings), or when capitalisation distinctions are not critical for your task. It achieves the best overall perplexity among all uncased RooseBERT variants.


How to Use

from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("ddore14/RooseBERT-cont-uncased")
model = AutoModelForMaskedLM.from_pretrained("ddore14/RooseBERT-cont-uncased")

For fine-tuning on a downstream classification task:

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("ddore14/RooseBERT-cont-uncased")
model = AutoModelForSequenceClassification.from_pretrained(
    "ddore14/RooseBERT-cont-uncased",
    num_labels=2
)

# Recommended fine-tuning hyperparameters (from paper):
# learning_rate ∈ {2e-5, 3e-5, 5e-5}
# batch_size ∈ {8, 16, 32}
# epochs ∈ {2, 3, 4}

Note: This model uses an uncased tokenizer. Lowercasing is applied automatically — do not pass do_lower_case=False.


Evaluation Results

RooseBERT was evaluated across 10 datasets covering 6 downstream tasks. Results below are for RooseBERT-cont-uncased (Macro F1 unless noted).

TaskDatasetMetricRooseBERT-cont-uncasedBERT-base-uncased
Sentiment AnalysisParlVoteAccuracy0.800.67
Sentiment AnalysisHanDeSeTAccuracy0.710.66
Stance DetectionConVoteAccuracy0.770.73
Stance DetectionAusHansardAccuracy0.600.55
Arg. Component Det. & Class.ElecDeb60to20Macro F10.620.61
Arg. Component Det. & Class.ArgUNSCMacro F10.610.60
Arg. Relation Pred. & Class.ElecDeb60to20Macro F10.610.58
Arg. Relation Pred. & Class.ArgUNSCMacro F10.700.64
Motion Policy ClassificationParlVote+Macro F10.630.55
NERNERExMacro F10.900.90

RooseBERT-cont-uncased outperforms BERT-base-uncased on 9 out of 10 tasks, with the strongest gains on sentiment analysis (+13% on ParlVote) and motion policy classification (+8%). Results are averaged over 5 runs with different random seeds.

Perplexity on held-out political debate data:

ModelPerplexity (uncased)
BERT-base-uncased9.60
ConfliBERT-cont-uncased5.00
ConfliBERT-scr-uncased4.68
RooseBERT-scr-uncased3.09
RooseBERT-cont-uncased2.71

RooseBERT-cont-uncased achieves the lowest perplexity of all uncased models, indicating the strongest adaptation to the political debate domain.


Available Variants

ModelTrainingCasingHuggingFace ID
RooseBERT-cont-casedContinued pre-trainingCasedddore14/RooseBERT-cont-cased
RooseBERT-cont-uncased (this model)Continued pre-trainingUncasedddore14/RooseBERT-cont-uncased
RooseBERT-scr-casedFrom scratchCasedddore14/RooseBERT-scr-cased
RooseBERT-scr-uncasedFrom scratchUncasedddore14/RooseBERT-scr-uncased

CONT (continued pre-training) models inherit BERT's standard vocabulary and pre-trained weights, requiring fewer training steps. SCR (from scratch) models use a custom political vocabulary that encodes domain-specific terms as single tokens. Cased models preserve capitalisation; uncased models lowercase all input.


Limitations

  • RooseBERT is trained exclusively on English political debates. Cross-lingual use is not supported.
  • The model may reflect biases present in official political speech, including over-representation of certain geopolitical perspectives.
  • Because CONT models retain BERT's standard vocabulary, domain-specific political terms may still be split into sub-tokens (e.g., deterrent → ['de', '##ter', '##rent']). For richer domain vocabulary encoding, consider the SCR variants.
  • Performance on NER tasks does not benefit from domain-specific pre-training when entity categories are general rather than politically specific.
  • As an uncased model, it loses information from capitalisation, which may matter for tasks involving proper nouns or acronyms.
  • As with all encoder-only models, RooseBERT is best suited to classification and labelling tasks rather than generation.

Citation

If you use RooseBERT in your research, please cite:

@article{dore2025roosebert,
  title={RooseBERT: A New Deal For Political Language Modelling},
  author={Dore, Deborah and Cabrio, Elena and Villata, Serena},
  journal={arXiv preprint arXiv:2508.03250},
  year={2025}
}

Acknowledgements

This work was supported by the French government through the 3IA Côte d'Azur programme (ANR-23-IACL-0001). Computing resources were provided by GENCI at IDRIS (grant 2026-AD011016047R1) on the Jean Zay supercomputer.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForMaskedLM
Ревизия весов
71049a3

0 моделей