Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q13EasyConcept

When should you use classical ML instead of an LLM in a system?

30-second answerSay your answer out loud first, then reveal.
FactorClassical ML favouredLLM favoured
Data typeTabular, numeric, structuredText, images, unstructured
Labelled dataAbundantScarce (zero/few-shot)
Volume / latencyMillions per second, < 10 msLower volume, seconds OK
Cost per predictionMust be tinyHigher acceptable
Explainability / calibrationRequired (credit, regulation)Less critical
TaskScore, rank, forecastSummarise, extract, converse, reason over text

Hybrid patterns

  • An LLM generates labels or features → train a cheap classifier (distillation).
  • Classical ML scores risk → an LLM explains the decision to analysts (Q40).
  • LLM embeddings as features into a gradient-boosted model.
  • A small classifier routes; an LLM handles only complex cases.
Interview signal. Not reaching for an LLM by reflex. "For fraud scoring at 50K TPS, I'd keep the XGBoost model; the LLM helps investigators review flagged cases."

Slow is fine. Stopping is the only problem.