/ Модель

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

Контекст
512 токенов
Лицензия
Apache 2.0
Архитектура
distilbert · dense
Базовая модель
distilbert-base-uncased
Опубликована
30 авг 2026

techjam-route-classifier

Классификация текстаТекст → label3 профессии
7скачиваний за 30 дней0лайковвеса обновлены30 авг 2026

Описание модели

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

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

KhiemGOM/techjam-route-classifier — компактный классификатор диалоговых актов на базе DistilBERT, дообученный разработчиком для маршрутизации сообщений в диалоговом поиске товаров. Модель относит реплику к одному из шести классов: начало разговора с требованием или без него, обновление требования, отсутствие предпочтения, а также начало или продолжение смены намерения.

Её используют как резервный узел агента для поиска товаров: классификатор вызывают, когда буквальный распознаватель не смог определить форму сообщения. Результат помогает очистить список ранее отвергнутых товаров при смене намерения или не извлекать признаки из реплики, в которой пользователь не задаёт ограничений. Модель не ищет и не ранжирует товары и не генерирует текст. Контекст — до 512 токенов; вход и выход текстовые, поддерживается английский язык.

В описанном README эксперименте точность на 9 600 отложенных синтетических примерах составила 0,9909 с применением маски по номеру хода; это не оценка качества на реальных пользователях. Модель предназначена только для структурированных англоязычных бесед о поиске товаров и шести перечисленных классов. Распространяется по лицензии Apache-2.0.

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

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

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

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

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

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

Открыть на Hugging Face

Dialogue-act router for conversational product search

A six-way dialogue-act classifier used as Node 1 of a conversational e-commerce search agent. It reads what a customer means by a turn when the wording is unfamiliar, so the agent can manage state correctly.

This is a small, narrow, task-specific encoder. It does not retrieve products, rank them, or generate text.

What it is for

The agent it belongs to has a literal recognition gate that matches the message shapes its simulator emits. That gate is a detector, not a router: it reports that a message is unfamiliar, and cannot say what the message means. Two behaviours depend on the meaning:

  • override_update / override_opening — the customer changed their mind, so the rejection set must be cleared. Failing to clear it keeps excluding products dismissed under the old intent, which can permanently exclude the right answer.
  • no_evidence — the customer stated they have no requirement for an attribute, so the turn carries nothing and must not be mined for evidence.

Why a model rather than a rule

Lexical cues were built first and measured on held-out templates, and they are not enough:

signalhand-written cuesthis model
override → clear rejection state37.5%100.0%
no-evidence → skip the turn0.0%100.0%
override false positives (of 6,400)02
no-evidence false positives (of 8,000)00

The no-evidence row is decisive. The held-out templates say "indifferent", "nothing to add", "unspecified" where the training templates said "no further preference", "any choice is fine", "use your judgment" — zero shared vocabulary. A lexical rule cannot survive that shift; semantic classification is the only mechanism that transfers when the vocabulary changes, which is the entire threat model.

Overall six-way accuracy under the turn mask: 0.9909 on 9,600 held-out rows. The one material error is buying_opening → override_opening (85/1600), which is benign — it clears a rejection set that is empty at turn 1.

Labels

Positional and alphabetical; id2label in config.json is authoritative.

0 buying_opening      opening turn that also states a requirement
1 constraint_update   a later turn supplying a requirement
2 no_evidence         the customer declines to constrain this attribute
3 override_opening    opening turn of an intent-change scenario
4 override_update     the customer replaces an earlier requirement
5 plain_opening       opening turn with a category and no requirement

Intended use, and the gate around it

Call it only on messages that a literal recognizer has already failed to match. In the host agent this is enforced by control flow, not by a threshold: on clean traffic the gate matches 463 of 463 messages, so the model records 0 loads and 0 inferences and the agent's score is unchanged by construction.

A deterministic turn mask is applied after the model: turn == 1 admits only opening acts, later turns only reply/update acts. That is a released property of the environment, not something learned, and applying it materially raised accuracy in development.

Training

  • Base: distilbert-base-uncased
  • Data: synthetic dialogue-act templates rendered from a participant-visible product catalogue, with train and test template sets sharing zero strings
  • Augmentation: train-only, wrapper-disjoint dialogue-act phrasings
  • Selection: epoch chosen on a held-out eval split, then scored once on a fixed test split

Limitations

  • English only, and only the dialogue acts listed above.
  • Trained on synthetic templates. Train/test are template-disjoint, but both were generated by the same process, so "generalises across held-out templates" is a weaker claim than "generalises to real users". Do not read 0.9909 as an estimate of human traffic.
  • Not a general intent classifier. It assumes a product-search conversation with a turn-numbered structure.
  • Inference cost measured at ~3.6 ms on a consumer GPU; it is small enough for CPU.

License

Apache 2.0, inherited from distilbert-base-uncased.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DistilBertForSequenceClassification
Ревизия весов
5f5a78f

0 моделей