Downloads · 30 days
30
36% of all-time downloads
bilalzafar/CBDC-Stance
CBDC-Stance is a text classification model from bilalzafar. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
The CBDC-Stance model classifies Central Bank Digital Currency (CBDC)–related text into three stance categories: Pro-CBDC — supportive of CBDC adoption (e.g., highlighting benefits, efficiency, innovation), Wait-and-S…
Downloads · 30 days
30
36% of all-time downloads
All-time downloads
84
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
The CBDC-Stance model classifies Central Bank Digital Currency (CBDC)–related text into three stance categories: Pro-CBDC — supportive of CBDC adoption (e.g., highlighting benefits, efficiency, innovation), Wait-and-See — neutral or cautious, expressing neither strong support nor strong opposition, often highlighting the need for further study, and Anti-CBDC — critical of CBDC adoption (e.g., highlighting risks, concerns, opposition).
Base Model: bilalzafar/CentralBank-BERT — CentralBank-BERT is a domain-adapted BERT base (uncased), pretrained on 66M+ tokens across 2M+ sentences from central-bank speeches published via the Bank for International Settlements (1996–2024). It is optimized for masked-token prediction within the specialized domains of monetary policy, financial regulation, and macroeconomic communication, enabling better contextual understanding of central-bank discourse and financial narratives.
Training Data: The training dataset consisted of 1,647 CBDC-related sentences from BIS speeches, manually annotated into three sentiment categories: Pro-CBDC (742 sentences), Wait-and-See (694 sentences), and Anti-CBDC (211 sentences).
Intended Uses: The model is designed for classifying stance in speeches, articles, or statements related to CBDCs, supporting research into CBDC discourse analysis, and monitoring stance trends in central banking communications.
The model was trained starting from the bilalzafar/CentralBank-BERT checkpoint, using a BERT-base architecture with a new three-way softmax classification head and a maximum sequence length of 320 tokens. Training was run for up to 8 epochs, with early stopping at epoch 6, a batch size of 16, a learning rate of 2e-5, weight decay of 0.01, and a warmup ratio of 0.06, optimized using AdamW. The loss function was Focal Loss (γ = 1.0, soft focal, no extra class weights), and a WeightedRandomSampler based on the square root of inverse frequency was applied to handle class imbalance. FP16 precision was enabled for efficiency, and the best checkpoint was selected based on the Macro-F1 score. The dataset was split into 80% training, 10% validation, and 10% test sets, stratified by label with class balance applied.
On the test set, the model achieved an accuracy of 0.8485, a macro F1-score of 0.8519, and a weighted F1-score of 0.8484. Class-wise performance showed strong results across all categories: Anti-CBDC (Precision: 0.8261, Recall: 0.9048, F1: 0.8636), Pro-CBDC (Precision: 0.8421, Recall: 0.8533, F1: 0.8477), and Wait-and-See (Precision: 0.8636, Recall: 0.8261, F1: 0.8444). The best validation checkpoint recorded an accuracy of 0.8303, macro F1 of 0.7936, and weighted F1 of 0.8338, with a validation loss of 0.3883. On the final test evaluation, loss increased slightly to 0.4223, while all key metrics improved compared to the validation set.
This model is part of the CentralBank-BERT / CBDC model family, a suite of domain-adapted classifiers for analyzing central-bank communication.
| Model | Purpose | Intended Use | Link |
|---|---|---|---|
| bilalzafar/CentralBank-BERT | Domain-adaptive masked LM trained on BIS speeches (1996–2024). | Base encoder for CBDC downstream tasks; fill-mask tasks. | CentralBank-BERT |
| bilalzafar/CBDC-BERT | Binary classifier: CBDC vs. Non-CBDC. | Flagging CBDC-related discourse in large corpora. | CBDC-BERT |
| bilalzafar/CBDC-Stance | 3-class stance model (Pro, Wait-and-See, Anti). | Research on policy stances and discourse monitoring. | CBDC-Stance |
| bilalzafar/CBDC-Sentiment | 3-class sentiment model (Positive, Neutral, Negative). | Tone analysis in central bank communications. | CBDC-Sentiment |
| bilalzafar/CBDC-Type | Classifies Retail, Wholesale, General CBDC mentions. | Distinguishing policy focus (retail vs wholesale). | CBDC-Type |
| bilalzafar/CBDC-Discourse | 3-class discourse classifier (Feature, Process, Risk-Benefit). | Structured categorization of CBDC communications. | CBDC-Discourse |
| bilalzafar/CentralBank-NER | Named Entity Recognition (NER) model for central banking discourse. | Identifying institutions, persons, and policy entities in speeches. | CentralBank-NER |
All training pipelines, preprocessing scripts, evaluation notebooks, and result outputs are available in the companion GitHub repository:
🔗 https://github.com/bilalezafar/CentralBank-BERT
from transformers import pipeline
# Load pipeline
classifier = pipeline("text-classification", model="bilalzafar/CBDC-Stance")
# Example sentences
sentences = [
"CBDCs will reduce costs and improve payments."
]
# Predict
for s in sentences:
result = classifier(s, return_all_scores=False)[0]
print(f"{s}\n → {result['label']} (score={result['score']:.4f})\n")
# Example output:
# [{CBDCs will reduce costs and improve payments. → Pro-CBDC (score=0.9788)}]
If you use this model, please cite as:
Zafar, M. B. (2025). CentralBank-BERT: Machine learning evidence on central bank digital currency discourse. Journal of Economics and Business. https://doi.org/10.1016/j.jeconbus.2026.106300
@article{zafar2025centralbankbert,
title={CentralBank-BERT: Machine learning evidence on central bank digital currency discourse},
author={Zafar, Muhammad Bilal},
year={2026},
journal={Journal of Economics and Business},
url={https://doi.org/10.1016/j.jeconbus.2026.106300}
}