25 · Text analytics · Open weights

Voice requests in 7 Indian languages, routed to the right intent.

cbx-indim-intent-classifier-32M

Routes voice-assistant requests in 7 Indian languages to the right intent.

Real inputs it was built for.

Not in the hosted Playground yet. Run it from the open weights on Hugging Face.

Hindi

कल सुबह सात बजे का अलार्म लगा दो

On Hugging Face

Tamil

நாளை சென்னையில் வானிலை எப்படி இருக்கும்?

On Hugging Face

Benchmark

Measured against the alternative.

0.0%

Accuracy, MASSIVE test (20,818 requests, 7 languages)

Full results ↗
  • cbx-indim-intent-classifier-32M85.2%
  • IndicBERT v2 (278M)86.4%
  • mmBERT-base (307M)85.0%
  • mmBERT-small (140M)84.2%

From the model card

An intent classifier for voice-assistant style requests in 7 Indian languages: Hindi, Bengali, Tamil, Telugu, Kannada, Malayalam and Urdu. Give it a short request ("set an alarm for seven tomorrow morning") and it returns one of the 60 MASSIVE intents (alarm_set). It is InDIM-small (32M) fine-tuned on MASSIVE, and runs in a few milliseconds on a CPU.

Model

32M

Licence

Apache 2.0

Fine-tuned from

CobuildX-AI/InDIM-small

Read the full model card ↗

Full results. Every number, from the card.

MASSIVE test set, 20,818 requests (2,974 per language), one model for all 7 languages. Every model was fine-tuned with the same recipe and data (plain fine-tuning, learning rate picked on validation); mean of 3 training runs ± SD unless marked.

ModelParametersAccuracyMacro F1bnhiknmltateur
InDIM-small (this model's base)32M85.2 ± 0.182.385.986.185.185.284.384.585.4
mmBERT-small140M84.2 ± 0.081.284.385.383.784.583.283.884.4
mmBERT-base307M85.0 ± 0.282.184.786.984.185.284.284.785.6
IndicBERT v2278M86.4 ± 0.183.587.087.785.986.785.486.385.9
  • This repository holds the training run with the best validation score: test accuracy 85.25, macro F1 82.83.
  • InDIM-small matches mmBERT-base at a tenth of its size and is 1.0 point above mmBERT-small, in every language. IndicBERT v2 is 1.2 points higher at 9× the size.

CPU latency (Intel i7-10700, 8 threads, one request at a time, PyTorch fp32): 5.6 ms for a 12-token request, 12.9 ms for a long (about 60-word) input. For comparison, the mmBERT-small and mmBERT-base classifiers took about 2.5× and 5× as long as InDIM-small on the same machine (4 threads, one sentence).

Precision: fp16 gives the same accuracy as fp32. Dynamic int8 (PyTorch, per-channel) loses 0.3 points of accuracy; ONNX int8 changed 3% of decisions in our test, so only the fp32 ONNX file is provided.

Know its limits. Before you ship it.

Limitations

  • Domain: the 60 intents are those of a voice assistant (alarms, music, smart home, calendar, …). Requests outside them still get one of the 60 labels; there is no "other" class. Check the top score and route low-confidence requests elsewhere.
  • Translated data: MASSIVE text is translated from English, so it can differ from how people actually phrase requests in these languages.
  • Languages: only the 7 languages above were trained and tested.

Training data

What it learned from.

InDIM-small (32M) fine-tuned on the MASSIVE training split of the same 7 languages (plain fine-tuning, cross-entropy, 10 epochs with early stopping on validation, learning rate 4e-4).

One size. Smaller is faster, larger is more accurate.

Run it on your own infrastructure. Open weights on Hugging Face.

Download the model, run it beside your own systems, and talk to us about tuning it to your data.