Problem
Picnic operates in several European countries and receives customer feedback in several languages. Each message has to be routed at scale. The data scientists wanted to know whether a hosted large language model beats traditional approaches and a multilingual transformer. A wrong choice means extra GPU or API spend and risks slow, unreliable or non-compliant production service. The team had a two-day hackathon to compare candidates.
Example from the article: routing customer feedback into 5 classes that are slightly imbalanced, as in production, with weighted F-beta as the metric.
Solution in brief
Benchmark three model families on the same routing task: a TF-IDF classifier, multilingual DistilBERT and fine-tuned GPT-3. Compare them with a single metric tied to the business goal, then weigh the scores against inference cost, multilingual support, cold start, reliability, vendor lock-in and GDPR. The cheap TF-IDF model and the small transformer came out ahead.
Questions this case answers
- How to choose between a classical text classifier, a small fine-tuned transformer and a hosted LLM when labeled data is plentiful in one language and scarce in others
- How to compare candidate classifiers quickly on one imbalanced test set with a single business-aligned metric
- How to choose between TF-IDF, a multilingual transformer and a fine-tuned LLM for routing customer feedback?
- How to benchmark candidate text classifiers fairly within a two-day hackathon?
Tools and methods
- TF-IDF with a simple classifier — baseline on scikit-learn and pandas, cheap and explainable
- DistilBERT (multilingual) — Hugging Face and PyTorch, one model for all languages
- Fine-tuned GPT-3 — OpenAI API, trained on a few thousand prompt and answer pairs
- Weighted F-beta score — the single comparison metric
Google or a one-time email code. No password.