Skip to content
mentoor

Classic ML or an LLM? Pick with evidence

For engineers

Supervised and classic ML, data and math intuition, and when fine-tuning or buying beats building.

Pick the model by running a cheap baseline on a clean, honest split and comparing it with the LLM on the same test rows, not by guessing which tool sounds more modern.

The case

Lumen Mobile has 48,000 subscribers and loses about 6% of them each month. The retention team wants a weekly list of customers likely to cancel in the next 30 days, so agents can call them. A product manager suggests sending each customer record to an LLM and asking, "Will this customer churn?" An engineer says a gradient-boosted tree model would do better. Both are guessing. This scenario is how to stop guessing.

Why it matters

Most of Lumen's data is a table: tenure, plan, monthly charge, late payments, support calls in the last 90 days. On tabular data, tree ensembles such as XGBoost, LightGBM and random forests often match or beat deep models, and they cost a tiny fraction per prediction (see the tabular-data paper in the references). An LLM is strong on text. Lumen also has free-text support notes, so the honest answer may be a mix. Only a measured comparison tells you.

How to do it

1. Frame the problem. One example is one customer on one snapshot date. The label is "cancelled within 30 days after that date". The features are only what was known on that date.

2. Build the data honestly. Check consent and licence for the data you use, and redact card numbers before any text leaves your systems. Hunt for leakage: a feature recorded after the outcome, such as a cancel reason code or "retention offer sent" (offers go out after a customer asks to leave), makes the score look great and the model useless. Split by time: train on older months, test on the newest. Fit scalers and encoders on the training rows only.

3. Read the numbers with some math. Only 6% churn, so a model that says "nobody leaves" scores 94% accuracy and finds no one. Use recall, precision and a ranking score such as AUC. Precision depends on the base rate: with 70% recall and 10% false alarms on 10,000 customers, only about 31% of flagged customers actually leave (420 caught, 940 false alarms).

4. Fit the classical baseline first. A logistic regression in a pipeline, then a gradient-boosted model on the same split. This takes an afternoon and costs almost nothing to run.

5. Test the LLM on the same rows. Give it the same 2,000 test customers. Measure the same metrics. Note the cost per 1,000 rows and the time. If it needs to read the support notes, try a prompt with a few labelled examples before any training.

6. Decide what needs training. Fine-tuning changes behaviour, such as a fixed label format. It is a poor way to teach changing facts like today's prices, which belong in retrieval. Exhaust prompting and context first, with an eval set that shows the gap.

7. Build, buy or wrap. For tagging notes, a hosted model API is the fastest start for a small team. A vendor's churn product needs a trial on your own labelled data, not its demo. Self-hosting an open-weight model adds GPU and operations work.

Before and after

Before: the LLM scores 93% accuracy on a demo of 50 hand-picked customers, and the team plans to fine-tune on 10,000 tickets. After: on 2,000 time-split test customers, boosted trees reach the best ranking score, the LLM adds a "billing complaint" tag from notes that lifts recall a little, and nobody fine-tunes.

What goes wrong

  • A leaking feature gives AUC 0.97 and the team ships. In production it falls to chance.
  • Accuracy is reported on a 6% base rate and hides a model that finds nobody.
  • The LLM is judged on a friendly sample, the classical model on the full set.
  • A vendor's own demo numbers are used in place of a trial on your data.

Start small: one snapshot date, one label, one baseline, one table of results that anyone on the team can read.

Steps

  1. Frame churn as a prediction problem

    Skill: ml-supervised

    Define one example as one customer on one snapshot date. The label is "cancelled within 30 days after that date". List only features known on that date, and write down what is excluded and why.

    Problem frame for the churn model
    PartDecision
    One exampleOne customer on one Monday snapshot
    LabelCancelled within 30 days (1) or not (0)
    FeaturesTenure, plan, monthly charge, late payments, support calls in 90 days
    ExcludedCancel reason code, retention offer sent (recorded after the outcome)
  2. Check the data for consent, coverage and leakage

    Skill: ml-data

    Confirm the data may be used for this purpose, redact card numbers from support notes, and split by time so the test set is the newest months. Any feature recorded after the outcome is dropped. A score that looks too good is a warning to check for leakage, not to celebrate.

    Split plan

    Goal: Honest estimate of next-month performance

    1. Train: snapshots from January to June
    2. Validation: July (tune settings here)
    3. Test: August, scored once at the end
    4. Fit imputers and encoders on the training rows only
  3. Read the metrics with the base rate in mind

    Skill: ml-math

    With 6% churn, accuracy hides failure. Compute precision, recall and a ranking score. Work out how many flagged customers are real churners before planning how many agent calls the team can make.

    Flagging 10,000 customers
    GroupCount
    Real churners600
    Churners flagged (70% recall)420
    Stayers flagged by mistake (10%)940
    Precision420 / 1,360 = about 31%
  4. Fit a classical baseline first

    Skill: ml-classic

    Build a scikit-learn pipeline with imputing, encoding and scaling, fit a logistic regression, then a gradient-boosted tree model on the same split. Record ranking score, recall at the call budget and cost per 1,000 scored rows.

    Results on the same 2,000 August customers
    Illustrative numbers for the pattern
    ModelAUCRecall at top 10%Cost per 1,000 rows
    Logistic regression0.8131%under $0.01
    Gradient-boosted trees0.8638%under $0.01
    LLM zero-shot on the record0.6414%about $14
  5. Try prompting before any fine-tuning

    Skill: train-when

    Use the LLM where text is the problem: tag support notes by theme with a clear prompt and a few examples, scored on a labelled set of 200 notes. Fine-tune only if that eval shows a gap prompting cannot close, and keep facts like prices in retrieval.

  6. Choose build, buy or wrap for the note tagger

    Skill: aipm-build-buy

    A two-person team with no GPU operations starts with a hosted model API for tagging. A vendor churn product gets a trial on Lumen labelled data against the baseline. Self-hosting waits until volume, privacy or cost evidence justifies the operations work.

    Options for tagging 5,000 notes a day
    OptionStart-up effortOngoing workMain risk
    Hosted model APIDaysPrompt and eval upkeepPer-token cost, provider data terms
    Vendor churn productWeeks (contract)Vendor managementLock-in, unclear behaviour
    Self-hosted open-weight modelMonthsGPUs, updates, monitoringOperations load on a small team

Skills this scenario uses

Where to study