AutoML for NLU without manual tuning: sharing the OpenAutoNLU library

Grigory Arshinov, Alexander Boriskin, Sergey Senichev, Ayaz Zaripov, Daria Galimzyanova, Daniil Karpov, Leonid Sanochkin, Daria Samsonova, Anton Nenashev23 Apr 2026

Problem

A team that must ship an intent classifier or an entity extractor quickly faces three chores. It has to guess which hyperparameters and training mode suit its data, or run every preset and compare metrics. Labels are rarely clean, yet most AutoML tools do not check them inside the pipeline. Production traffic also brings requests never seen in training, which typical tools ignore or handle only with labeled out-of-scope examples.

Illustrative example: a support-bot intent classifier with a handful of examples for some intents, where an unknown request must not be forced into a known intent.

Solution in brief

OpenAutoNLU is an open-source Python library that picks the training mode from the smallest class size (few-shot, SetFit or full fine-tuning), optionally audits label quality, and trains an out-of-scope (OOD) detector on synthetic out-of-scope examples. An LLM can add training examples or generate a proxy test set. The result exports to ONNX.

Questions this case answers
  • How to choose the training regime for a text classifier from the class-size distribution when labeled data per class ranges from a handful to hundreds
  • How to detect inputs that belong to none of the known classes when no examples of such inputs are available for training
  • How to train an intent classifier with 5-100 labeled examples per class without tuning hyperparameters by hand
  • How to make a text classifier reject requests that match none of its classes when no out-of-scope examples exist

Tools and methods

  • OpenAutoNLU — the library: low-code training and inference for text classification and NER
  • AncSetFit / SetFit / full fine-tuning — the three training modes, chosen by minimum class size
  • Marginal / Centroid Mahalanobis Distance, MaxProb — built-in OOD detection methods
  • Augmentex and an LLM — upsampling of small classes
  • Optuna (TPE) — optional hyperparameter search for fine-tuning
  • GPT-4o-mini — generates the proxy test set
Continue reading — it's free

Google or a one-time email code. No password.