/ Модель

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

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

RooseBERT-cont-cased

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

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

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

Бенчмарки

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

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

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

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

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

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

RooseBERT-cont-cased — англоязычная модель семейства BERT, разработанная для анализа политической речи. Это вариант BERT-base с архитектурой только для кодирования текста, дообученный продолжением предобучения исходной модели bert-base-cased на корпусе объёмом 11 ГБ с парламентскими дебатами и выступлениями за 1919–2025 годы. Модель содержит 135,5 млн параметров, сохраняет регистр и стандартный токенизатор BERT WordPiece; контекст ограничен 512 токенами.

Модель предназначена прежде всего как основа для дообучения на задачах анализа политического дискурса: классификации тональности и позиции, выявления компонентов и связей аргументации, классификации политических предложений и распознавания именованных сущностей. В карточке сообщается, что она превзошла BERT-base-cased в 9 из 10 оценённых задач и показала особенно заметные улучшения в анализе позиции, классификации предложений и тональности. Для прямого использования модель также поддерживает заполнение пропусков в тексте.

Обучение только на англоязычных политических дебатах ограничивает применение другими языками и жанрами; модель может отражать смещения официальных политических выступлений. Стандартный словарь BERT может дробить специализированные термины на подслова, а преимущество доменной адаптации для распознавания сущностей общего типа может быть небольшим. Как модель-кодировщик, она подходит для классификации и разметки, но не для генерации текста. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

RooseBERT-cont-cased

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-cased — was trained via continued pre-training (CONT) of bert-base-cased, 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 cased variant preserves capitalisation, making it sensitive to distinctions between proper nouns, acronyms, and common words — particularly relevant in political text where named entities and institutional references are abundant.

📄 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-cased
VocabularyBERT standard cased WordPiece (28,997 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-cased'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-cased variant is a strong general-purpose choice for political NLP tasks. It achieves the lowest perplexity of all RooseBERT variants (cased or uncased), reflecting the strongest overall adaptation to the political debate domain. It is particularly recommended for tasks where capitalisation carries semantic weight, such as NER, or where compatibility with the standard BERT vocabulary is required.


How to Use

from transformers import AutoTokenizer, AutoModelForMaskedLM

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

For fine-tuning on a downstream classification task:

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("ddore14/RooseBERT-cont-cased")
model = AutoModelForSequenceClassification.from_pretrained(
    "ddore14/RooseBERT-cont-cased",
    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}

Evaluation Results

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

TaskDatasetMetricRooseBERT-cont-casedBERT-base-cased
Sentiment AnalysisParlVoteAccuracy0.790.69
Sentiment AnalysisHanDeSeTAccuracy0.740.67
Stance DetectionConVoteAccuracy0.760.72
Stance DetectionAusHansardAccuracy0.630.54
Arg. Component Det. & Class.ElecDeb60to20Macro F10.630.61
Arg. Component Det. & Class.ArgUNSCMacro F10.620.61
Arg. Relation Pred. & Class.ElecDeb60to20Macro F10.610.58
Arg. Relation Pred. & Class.ArgUNSCMacro F10.700.57
Motion Policy ClassificationParlVote+Macro F10.620.54
NERNERExMacro F10.900.92

RooseBERT-cont-cased outperforms BERT-base-cased on 9 out of 10 tasks, with the strongest gains on stance detection (+9% on AusHansard), motion policy classification (+8%), and sentiment analysis (+7% on HanDeSeT). NER performance is comparable to BERT, as the NEREx dataset uses general rather than politically specific entity categories. Results are averaged over 5 runs with different random seeds.

Perplexity on held-out political debate data:

ModelPerplexity (cased)
BERT-base-cased22.11
PoliBERTweet154.42
ConfliBERT-scr-cased4.66
ConfliBERT-cont-cased4.37
RooseBERT-scr-cased2.80
RooseBERT-cont-cased2.61

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


Available Variants

ModelTrainingCasingHuggingFace ID
RooseBERT-cont-cased (this model)Continued pre-trainingCasedddore14/RooseBERT-cont-cased
RooseBERT-cont-uncasedContinued 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 (e.g., deterrent, bureaucrat, statutorily). 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 meaningfully from domain-specific pre-training when entity categories are general rather than politically specific.
  • 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
Ревизия весов
48ab63d

0 моделей