/ Модель

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

Контекст
512 токенов
Параметры
40 млн
Лицензия
MIT
Архитектура
bert · dense
Базовая модель
bge-small-en-v1.5
Библиотека
transformers
Опубликована
31 авг 2026

banking77-intent-classifier

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

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

31скачиваний за 30 дней0лайковвеса обновлены31 авг 2026

Бенчмарки

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

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

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

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

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

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

functionX86 разработала англоязычный классификатор намерений в обращениях по розничному банкингу. Это модель BERT для классификации текста, дообученная на BANKING77 и предсказывающая один из 77 классов, например запрос о доставке карты. Модель содержит 40 млн параметров, принимает текстовые последовательности длиной до 512 токенов по метаданным; при обучении использовалось ограничение в 64 токена. Она распространяется в формате safetensors по лицензии MIT.

На официальной тестовой выборке BANKING77 автор сообщает macro F1 0,9245, accuracy 0,9247 и top-3 accuracy 0,974. В описанных экспериментах классификатор на замороженных эмбеддингах той же базовой модели с логистической регрессией показал более высокий macro F1, поэтому этот чекпойнт опубликован прежде всего для воспроизводимости и как отрицательный результат сравнения методов. Модель обучена на публичных исследовательских данных и не оценивалась на реальных обращениях или по справедливости для разных групп клиентов; автор не рекомендует применять её в производстве без дополнительной проверки.

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

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

Ограничения

Модель рассчитана только на англоязычные обращения по розничному банкингу; намерения в BANKING77 частично пересекаются, а оценки softmax не откалиброваны. Она обучена на публичных данных, не проверялась на реальных обращениях и не рекомендуется автором для применения в производстве без дополнительной оценки.

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

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

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

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

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

Открыть на Hugging Face

banking77-intent-classifier

A 77-class banking intent classifier, fine-tuned from BAAI/bge-small-en-v1.5 on BANKING77.

Given a customer message such as "my card still hasn't arrived after two weeks", it predicts the intent (card_arrival) so the request can be routed automatically.

Results

MetricValue
Macro F10.9245
Accuracy0.9247
Top-3 accuracy0.974
Inference~0.34 ms per request

Evaluated on the official BANKING77 test split (3080 requests, 40 per intent), scored once, at the end. Model selection used a stratified 10 % validation split carved out of the training data.

An honest note on what this model is for

This model was beaten by a simpler approach, and that is the interesting part.

It was trained as the third rung of a deliberate ladder, to measure what fine-tuning actually buys over cheaper alternatives on this dataset:

ApproachMacro F1Training cost
TF-IDF (word + char n-grams) → logistic regression0.91523 s, CPU
Frozen bge-small embeddings → logistic regression0.93554 s, CPU
This model — bge-small fine-tuned end to end0.9245~215 s, GPU

Using the same encoder frozen, with nothing but a logistic regression on top, scores higher. The gap held across five training runs spanning three random seeds, which scored between 0.9245 and 0.9307 (mean ≈ 0.927). Runs vary by a few tenths of a point even at a fixed seed, because GPU kernel scheduling and multi-worker data loading are not bit-deterministic — so the comparison rests on the spread of runs rather than on any single number.

Two plausible reasons:

  1. bge-small is contrastively pre-trained for semantic similarity. Grouping semantically similar sentences is more or less what intent classification is, so its embedding space already arrives close to the right shape — and fine-tuning distorts a geometry that was already good.
  2. 10 003 examples across 77 intents is roughly 130 per class. That is thin for updating 33 M parameters, and the model reaches a memorised training loss before it generalises further.

An earlier version of this model, trained without a validation split, drove training loss to 0.037 and scored 0.9295 — marginally higher than the properly regularised model published here. That version was overfit, and comparing it against a regularised alternative would have proved nothing. The lower, honest number is the one reported.

If you want the best model for this task, use frozen embeddings with a linear head. This checkpoint is published for reproducibility and as a documented negative result.

Usage

from transformers import pipeline

classifier = pipeline("text-classification", model="functionX86/banking77-intent-classifier")
classifier("my card still hasn't arrived after two weeks")
# [{'label': 'card_arrival', 'score': 0.98}]

Training

SettingValue
Base modelBAAI/bge-small-en-v1.5 (33 M parameters)
Max sequence length64 tokens
Epochsup to 15, early stopping on validation macro-F1 (patience 3)
Batch size32
Learning rate5e-5, 10 % warmup, weight decay 0.01
Precisionfp16
Hardwareone NVIDIA RTX 3050 Ti (4 GB)

The 64-token cap comes from the data: the 95th percentile of BANKING77 requests is 29 words, so it truncates almost nothing while running roughly four times faster than the default 256.

Limitations

  • English only, and trained on retail banking requests. It will not transfer to another domain without retraining.
  • Several BANKING77 intents genuinely overlap — card_arrival vs card_delivery_estimate, top_up_failed vs top_up_reverted, and the whole identity-verification cluster. A share of the residual error is label ambiguity that no model can resolve.
  • Raw softmax scores are not calibrated. For any use that depends on a confidence threshold, fit a temperature on held-out data first — on the frozen-embedding variant this reduced expected calibration error from 0.110 to 0.012 without changing a single prediction.
  • Trained on public research data, not on real customer messages, and never evaluated for fairness across customer segments. Not suitable for production use as-is.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей