Downloads · 30 days
16
33% of all-time downloads
bintanghutagalung/banking77-deberta-v3-base
banking77-deberta-v3-base is a text classification model from bintanghutagalung. 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.
Fine-tuned microsoft/deberta-v3-base for 77-class banking intent classification using the BANKING77 dataset.
Downloads · 30 days
16
33% of all-time downloads
All-time downloads
49
Public
Parameters
184M
738 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
Fine-tuned microsoft/deberta-v3-base for 77-class banking intent classification using the BANKING77 dataset.
The model maps an English banking customer utterance to one of 77 intents such as card_arrival, cash_withdrawal, pending_transfer, cash_withdrawal_wrong_exchange_rate, and other banking-service categories defined by BANKING77.
microsoft/deberta-v3-baseBANKING77 contains 13,083 English banking queries across 77 fine-grained intents.
Official dataset split:
| Split | Rows |
|---|---|
| Train | 10,003 |
| Test | 3,080 |
| Total | 13,083 |
Dataset source:
The official training set was used for model development. The official test set was kept out of model selection and hyperparameter tuning.
For the main final evaluation, rows overlapping with development data and one duplicated test row were excluded, leaving 3,072 unique evaluation examples.
The project used the following workflow:
microsoft/deberta-v3-base.Selected hyperparameters:
| Hyperparameter | Value |
|---|---|
| Learning rate | 3e-5 |
| Weight decay | 0.01 |
| Warmup ratio | 0.1 |
| Per-device batch size | 8 |
| Gradient accumulation steps | 2 |
| Epochs | 3 |
Training was performed in Google Colab using an NVIDIA T4 GPU.
Main evaluation population: 3,072 examples across all 77 intents.
| Metric | TF-IDF + Logistic Regression | DeBERTa-v3-base |
|---|---|---|
| Macro-F1 | 0.873659 | 0.922648 |
| Accuracy | 0.873372 | 0.922852 |
| Macro Precision | 0.880722 | 0.925809 |
| Macro Recall | 0.873347 | 0.922858 |
| Weighted-F1 | 0.873635 | 0.922591 |
| Error Rate | 0.126628 | 0.077148 |
| Log Loss | 1.179109 | 0.326044 |
| Brier Score | 0.430436 | 0.121375 |
| Expected Calibration Error | 0.445879 | 0.033650 |
The Macro-F1 improvement over the baseline was +0.048989.
Paired bootstrap 95% confidence interval for the Macro-F1 difference:
McNemar comparison:
Per-intent comparison:
Install the required packages:
pip install transformers torch sentencepiece
Load the model:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
model_id = "bintanghutagalung/banking77-deberta-v3-base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
text = "I am still waiting for my card"
inputs = tokenizer(
text,
return_tensors="pt",
truncation=True
)
with torch.no_grad():
logits = model(**inputs).logits
predicted_id = int(logits.argmax(dim=-1).item())
predicted_intent = model.config.id2label[predicted_id]
print(predicted_intent)
For probabilities:
probabilities = torch.softmax(logits, dim=-1)[0]
confidence = float(probabilities[predicted_id])
print({
"intent": predicted_intent,
"confidence": confidence
})
This model is intended for:
This model should not be treated as:
It predicts an intent label from text. It does not verify whether the customer's statement is true and does not determine the correct financial action by itself.
The accompanying GitHub repository contains the training notebook and selected experiment artifacts, including:
GitHub repository: https://github.com/BINTANNG99/klasifikasi-intent-banking77-deberta-v3-base
The fine-tuned model is released under the MIT License, consistent with the base model license.
BANKING77 is a separate dataset and remains subject to its own license and attribution requirements.
Casanueva, I., Temčinas, T., Gerz, D., Henderson, M., & Vulić, I. (2020).
Efficient Intent Detection with Dual Sentence Encoders.
https://aclanthology.org/2020.nlp4convai-1.5/
He, P., Gao, J., & Chen, W. (2021).
DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing.
https://arxiv.org/abs/2111.09543
Ying, R., & Thomas, C. (2022).
Label Errors in BANKING77.
https://aclanthology.org/2022.insights-1.19/