Skip to main content

Intelai

Pick the Model After You Know the Cost of Being Wrong

Algorithm choice is the last decision in a model project. The label supply, the cost of a false positive and the retraining path decide most of it first.

Contents
  1. Start with the label
  2. The cost of the error decides the class
  3. What the data supports
  4. A short table, with the caveat attached
  5. The retraining question
  6. What the choice is actually about

The model selection conversation usually starts with a list: classification, regression, forecasting, anomaly detection, language, vision. Pick the row, pick the algorithm, ship it.

That ordering is backwards, and it produces the same failure repeatedly. A team picks gradient boosting because it wins on a benchmark, deploys it, and then discovers that nobody can explain a denial to a customer, or that the labels they trained on were a proxy for something they did not intend to predict.

The algorithm is the last decision. The first three are the label, the cost of the error, and the retraining path.

Start with the label

Every supervised model is a claim about a label. Before choosing an algorithm, answer where the labels came from.

If a human assigned them, you have a definition problem as well as a data problem. Two reviewers labeling fraud will disagree, and the model will learn the average of their disagreement. That is not a flaw in the model. It is a measurement of your process.

If the labels are outcomes, you have a timing problem. A churn label is only known after the customer leaves, so the features you train on have to be the ones available before that moment. Teams that skip this step build a model with excellent offline accuracy and no operational value, because it is predicting the past.

If the labels are synthetic or borrowed from a public dataset, you have a distribution problem. Public benchmarks describe public problems. The system you care about is the one nobody published.

The label question is also a governance question. A model trained on a proxy for a protected characteristic will reproduce the proxy, and the accuracy metric will not tell you.

The cost of the error decides the class

Two models with the same accuracy can have completely different operational value, because the errors are not symmetric.

In fraud detection, a false positive is a declined transaction and an angry customer. A false negative is a loss. In a maintenance model, a false positive is an unnecessary inspection. A false negative is a failed pump. In a screening model, the asymmetry can be severe enough that the threshold, not the algorithm, is the whole design.

That asymmetry sets the metric, and the metric sets the model. If the cost of a miss is high, you tune for recall and accept the queue of false positives, which means you need a process for the queue. If the cost of a false alarm is high, you tune for precision and accept that you will miss some, which means you need a story about what happens to the ones you miss.

A team that cannot state the asymmetry in a sentence is not ready to select a model. They are ready to run an experiment that will produce a number nobody can act on.

What the data supports

The data decides more than the algorithm comparison does.

Structured data with a modest number of rows and a clear target is a tree-based problem, and a gradient boosting library will usually beat a neural network on the first pass. That is not a permanent law. It is a strong prior, and it holds because trees handle mixed types, missing values, and interactions without much ceremony.

Unstructured data, meaning text, images, and audio, is where representation learning earns its cost. A pretrained language or vision model gives you a representation that was trained on more data than you will ever have. Fine-tuning it is often cheaper than feature engineering from scratch.

Small data changes the answer again. With a few hundred labeled examples, the honest options are a simple model with strong regularization, a pretrained model used as a feature extractor, or a decision to collect more labels. A deep model trained from scratch on a few hundred examples is a demonstration, not a system.

A short table, with the caveat attached

ProblemFirst model to tryWhat decides against it
Binary classification, structured dataGradient boostingCannot explain a decision to a regulator
Binary classification, textFine-tuned transformerLatency or cost per call exceeds the budget
Multi-class, structuredGradient boosting, then a linear baselineClass imbalance makes the metric meaningless
RegressionLinear model, then gradient boostingResiduals show structure the features cannot express
ForecastingSeasonal baseline, then a gradient model with lag featuresThe series has regime changes the model cannot see
Anomaly detectionIsolation forestThe "normal" class is not stable over time
ImagesPretrained CNN or vision transformerLabeled images are too few for fine-tuning

Read the middle column as a starting point, not a recommendation. The right column is the part that matters, because it names the condition under which the default is wrong. A model choice that cannot state its own failure condition is a preference.

The retraining question

The question that outranks the algorithm comparison is whether you can retrain.

A model is a snapshot of a relationship that changes. Fraud patterns move, prices move, language moves. A model with no retraining path decays quietly, and the decay shows up first in a business metric rather than a model metric.

Three things have to exist before deployment: a pipeline that can rebuild the training set, a way to evaluate a candidate against the current model on the same data, and a decision about who approves a promotion. Without those, the model you shipped is the model you have until someone funds a project.

The same infrastructure answers the explainability question. If you can rebuild a prediction from stored inputs and a pinned model version, you can answer a challenge. If you cannot, the explanation is a story told after the fact by whoever remembers.

What the choice is actually about

Model selection is usually framed as a technical comparison, and the comparison is the least consequential part. The families are well understood, the libraries are good, and the difference between two reasonable choices is smaller than the difference between a good label and a bad one.

What separates a model that survives from one that gets retired is the definition of the label, the stated cost of the error, and the ability to rebuild the thing next quarter.

Choose the model last. By then, most of the decisions have already been made by people who thought they were doing data work.