LLM, classic ML, a custom model, or a hybrid: how to choose
· 7 minute read · Pivot-al
A team needs to predict which accounts will churn. It has an LLM integration already, so the first prototype sends account summaries to a model and asks for a risk score. Another team has ten thousand contracts to pull clauses from and starts labeling data to train a classifier from scratch. Both have picked the tool before looking at the problem.
The choice between an LLM, classic ML, a custom model and a hybrid is mostly determined by three things: the shape of the input, the nature of the output, and the operating constraints. This article goes through each case.
Start from the problem
Four questions settle most decisions:
- What is the input? Rows of numbers and categories about an entity, or unstructured language, images or audio.
- What is the output? A probability or a number that feeds a decision, or text, extracted fields or an action.
- Is there a label? Historical outcomes you can train and test against, or only a description of what good looks like.
- What are the constraints? Latency, volume, cost per prediction, where the data is allowed to go, and how much you must explain.
Tabular prediction with thin positives: calibrated gradient boosting
This covers churn, fraud, default, conversion and equipment failure. The input is a table of features per entity at a point in time, the output is a probability, and positives are a small fraction of rows.
Gradient-boosted trees are the default here and are hard to beat on small and medium tabular datasets. They handle mixed types, missing values and non-linear interactions with little preprocessing. They train quickly, score fast enough for almost any request path, and their behavior can be inspected feature by feature.
The model is rarely the hard part. The work is in three places:
- The label. "Churned" needs a precise definition: which event, measured when, over what window, with what exclusions. See defining the label.
- Leakage-free features. Every feature must be computed only from data that existed at prediction time. See point-in-time features.
- Calibration. A raw boosted score is a ranking, not a probability. If the output drives a decision with a cost, such as "call every account above 30% risk", calibrate on a held-out set that is later in time than the training data. With few positives, prefer a sigmoid (Platt) fit over isotonic regression, which overfits when the calibration set is small.
Evaluate with a time-based split, and with metrics that reflect the imbalance: precision and recall at the operating threshold, or precision in the top k accounts you can actually act on. ROC AUC alone can look healthy when the model is useless at the threshold that matters.
In a representative, anonymized teardown we ran of a Series B B2B SaaS company, a churn prototype scored 0.94 AUC offline and near-random in production. The cause was temporal leakage: the features carried information that was not available at prediction time. The recommendation was a calibrated gradient-boosted model on point-in-time features, not an LLM and not a deep network. The mechanics of that failure are covered in why offline AUC collapses in production.
An LLM is a poor fit for this problem. It has no access to the statistical relationship between your features and your outcomes unless you train on it, its numeric outputs are not calibrated probabilities, and it costs far more per prediction than a tree model.
Language over documents: LLM with retrieval
This covers answering questions from a knowledge base, summarizing tickets, drafting replies, extracting fields from contracts, and classifying free text into categories you can describe but have not labeled.
Here an LLM is the right default. The task needs general language understanding, which the model already has, plus your specific facts, which it does not. Retrieval supplies the facts at request time. You get a working system without a labeled training set, and it stays current when documents change.
To be production-grade, this approach needs the following, none of which is a better model:
- An evaluation harness, so that changes can be shown to be safe.
- Retrieval that respects access boundaries. See tenant isolation in RAG.
- If tools are attached, authorization at the tool boundary.
When answers are poor, look at retrieval before the model. Many "the model hallucinated" reports turn out to be "the right passage was never retrieved".
When fine-tuning is warranted
Fine-tuning changes how a model behaves, and it is a poor way to change what a model knows.
It is warranted when:
- The task is narrow and stable, you have enough high-quality examples (typically hundreds or more), and prompting with examples has reached a ceiling you have measured.
- You need a consistent output style or format that prompting achieves unreliably.
- You want to move a proven task from a large model to a smaller one to cut latency or cost, using the large model's verified outputs as training data.
- The task is classification or extraction at high volume, where a small tuned model is cheaper and faster than a general one.
It is not warranted when:
- The goal is to teach the model facts that change. Use retrieval. A fine-tuned model cannot cite its source, cannot be updated by editing a document, and cannot enforce who may see what.
- There is no evaluation. Without a golden set you cannot tell whether the tuned model is better, and you now own a model that must be re-tuned whenever the base model is retired.
- The actual problem is retrieval, prompt design or missing context. Fine-tuning on top of a retrieval bug gives you a model that is confidently wrong in your house style.
In the teardown mentioned above, the assistant's problems were cross-tenant retrieval, missing authorization and no evals. The recommendation was no fine-tuning, because none of those problems are in the weights.
When a custom model is justified
Training your own model, whether a deep network or a specialized architecture, has a real ongoing cost: data pipelines, training infrastructure, monitoring, retraining, and people who can debug it. It is justified when one of these holds:
- Latency. The prediction sits inside a request path with a budget of a few milliseconds, or runs on a device. A hosted general model cannot meet that.
- Cost at volume. At millions of predictions a day, per-call pricing for a general model can exceed the cost of training and serving a small dedicated one. The crossover depends on your volume, token counts and what an error costs you. See cost per task.
- Domain signal an API model does not have. Sensor streams, transaction sequences, proprietary imagery, molecular or log data. General models were not trained on your modality or your distribution, and no prompt adds that signal.
- Data constraints. The data cannot leave your environment and the task does not need general language ability.
If none of these apply, a custom model is usually a way to spend months reproducing what a boosted tree or a prompted LLM would have done.
Hybrids
Many good production systems use two model families, each doing what it is good at.
LLM extraction feeding a classic model
Much of the predictive signal in a business sits in text: support tickets, call notes, emails. An LLM turns that text into structured features, such as complaint category, mention of a competitor, or a stated cancellation intent. Those features join the tabular ones in a boosted model.
# Illustrative. Extraction runs once per ticket, at ingestion.
extracted = llm_extract(
text=ticket.body,
schema={"category": CATEGORIES, "mentions_competitor": bool,
"cancellation_intent": ["none", "implied", "explicit"]},
extractor_version="v3",
)
store_feature_row(
entity_id=ticket.account_id,
event_time=ticket.created_at, # when the signal became known
features=extracted,
extractor_version="v3",
)
Two rules apply:
- Point-in-time applies to extracted features too. A feature derived from a ticket only exists from the ticket's timestamp. Notes written after the customer canceled are leakage.
- Version the extractor. Changing the prompt or the model changes the feature distribution, and the downstream model was trained on the old one. Either backfill history with the new extractor and retrain, or do not change it.
Other useful combinations
- A cheap classifier as a router. A small model decides which requests need the LLM, which get a template answer, and which go to a human.
- Embeddings as features. Text embeddings fed into a classic classifier are a strong, inexpensive baseline for text classification once you have a few hundred labels.
- A classic model for the decision, an LLM for the explanation. The boosted model produces the score, and the LLM turns the top contributing factors into a readable note for the account manager.
What generalists typically get wrong
Strong software teams without ML specialists tend to make the same mistakes:
- Treating model choice as the hard part. On prediction problems, the label and leakage-free features decide the outcome. Model family is a second-order choice.
- Reaching for an LLM or a deep network on tabular data. It is slower, costlier, harder to calibrate and usually no more accurate than boosted trees on this kind of data.
- Random train/test splits on time-dependent data. The offline score is then an estimate of something that will never happen in production.
- Trusting an offline metric that is too good. A very high AUC on a hard business problem is a reason to look for leakage before anything else.
- Fine-tuning to fix a retrieval or evaluation problem.
- Skipping the baseline. A logistic regression or a simple rule, measured properly, shows what the complex option adds.
Before a larger build, check that the data can support the model at all; see data readiness for machine learning.
Next steps
If you have a training table and want a quick sanity check, the leakage check is free and runs in the browser. For a decision on approach before committing to a build, the Data & Model Feasibility Teardown is our fixed-scope assessment of the data, the label and the model choice. The teardown clinic is a free 30-minute session with a senior engineer if you want to talk it through first.
