SproutStackSproutStack home

Classical ML vs Generative AI

5 min readBeginner-friendlyFree to read

Read a little, play a little. No scary maths, and no rush.

Share:

Two hammers, different nails

  • Classical ML (this track): learns from labeled tables — churn, fraud, prices, demand. Models are small, fast (milliseconds), cheap (pennies per million predictions), and explainable ("tenure drove this decision").
  • GenAI (AI track): handles open language — summarize, chat, draft, reason over messy text. Flexible and fluent, but slower, pricier, and occasionally confidently wrong.

Neither replaces the other. The skill is reaching for the right hammer without ideology.

The decision rule (with examples)

Structured rows + a clear right answer → train a small model. Fraud detection on transaction tables, demand forecasting from sales history, churn from usage logs — a random forest beats a prompted LLM on accuracy, cost, and latency here, while running on a laptop.

Messy text + judgment → prompt an LLM. Summarizing support threads, drafting replies, extracting terms from contracts — no labeled table exists, and writing rules is hopeless. This is the home turf you learned in the AI track.

The power combo

Many real products use both, each where it wins: a classical model scores (fraud probability: 0.87) and an LLM explains ("flagged for review: three out-of-state charges in an hour"). Cheap filter first, expensive reasoning only where judgment is needed — the same triage pattern as model routing in production AI.

A worked comparison: routing support tickets

A company has 50,000 past tickets, each labeled with the team that resolved it, and receives a million new tickets a month.

  • Option A: train a small classifier. Turn ticket text into word counts and train a logistic regression. It predicts in milliseconds for a negligible cost per ticket and reaches good accuracy, because 50,000 labeled examples is plenty. The catch: adding a new team means relabeling examples and retraining.
  • Option B: prompt an LLM. Describe the teams in a prompt and ask for one. No training at all, and a new team is a one-line prompt edit. The catch: every ticket is a paid API call taking around a second, which adds up to real money at a million tickets a month.
  • Option C: both. Use an LLM to label a few thousand tickets for a new category, check a sample by hand, then train the small model on them. You get the flexibility of prompting and the running cost of a small model.

Questions that settle the choice

  • Do you have labeled examples, or could you create them?
  • How many predictions a day, and what is the budget per prediction?
  • How fast must each answer be?
  • Must each decision be explainable or auditable?
  • Are the inputs structured columns or free text?
  • How often will the categories or rules change?

Embeddings: a bridge between the two

You can feed text into a classical model by first turning it into an embedding, the meaning-as-numbers representation from the AI track. A small model trained on those vectors often classifies text well, cheaply, and quickly, combining the language understanding of large models with the speed and cost of classical ML.

Remember this

  • Tables + labels + budgets → classical ML. Messy language → LLMs.
  • Best systems combine: score cheaply, explain richly.

Check your understanding

5 questions · first-try answers earn the most XP

1. You have a million labelled transaction rows and need a fraud score under 50ms. What should you reach for?
2. You need to summarise free-text support threads and have no labels. What fits?
3. A product scores with a small model and then explains with an LLM. Why is that a good shape?
4. What is the honest summary of classical ML versus generative AI?
5. Why is a small trained model often *cheaper* than a prompted LLM for high-volume prediction?

My notes

Saved in this browser. Highlight a line above and save it, or write it in your own words.

Nothing saved yet. Your highlights will live here.

References

Finished reading?

Ticking it here also ticks the chapter in the sidebar, the section count and your streak — it is all one number.

Related chapters

Spotted a mistake or want a topic covered? Report an issue

📬 An occasional email when new lessons land

New lessons and showdowns, no more than a few times a month. No spam, unsubscribe anytime. We store your email only to send the newsletter.