Schema der Model Selection: Ein Datensatz wird in Trainings-, Validierungs- und Testteil aufgeteilt. Mehrere Modellkandidaten lernen auf dem Trainingsteil, werden auf dem Validierungsteil verglichen, und nur der ausgewählte Kandidat wird am Ende auf dem bis dahin unberührten Testteil geprüft.

Model Selection

Model Selection is the decision of which of several possible computational procedures to actually use for a task. The candidates are compared using data not used during learning, and the one that performs best on new cases is chosen.

Anyone who has a computer program learn from examples almost never has just one option. For the same task there are many different computational procedures, and each of these can also be configured in different ways. Model Selection is the orderly comparison of these candidates and the decision for one of them. What matters here is not who can best parrot back the old examples. What matters is who performs best on new, previously unseen cases. The English term has also become established in German, where it simply means Modellauswahl (model selection).

Why the best test score isn’t the best candidate

The most common mistake in this area is called overfitting, or in German Überanpassung. In this case, a procedure memorizes the training examples almost by heart instead of grasping the underlying rule. On the known data, this looks fantastic. On new data, it falls apart. Without clean Model Selection, you only notice this once the system is already in use.

There is also a practical side to this. A somewhat more accurate procedure can cost ten times as much computing time as a simple one. For a weather app with millions of calls per day, this is a real cost factor. Traceability also plays a role. A bank must be able to explain to a rejected customer why the loan was denied. A simple, transparent procedure therefore sometimes wins out against a more accurate one.

Model Selection is therefore rarely a pure question of accuracy. It is a trade-off between precision, cost, speed, and explainability. Which criterion weighs more heavily depends on the intended use.

Splitting, comparing, checking only at the very end

The standard approach splits the available data into three parts. All candidates learn using the training portion. The validation portion is used to compare them with one another. The test portion remains locked away until the very end and serves only as a final check. As soon as the test portion is used for selection, it loses its value as an independent judgment.

With limited data, cross-validation is used. Here, the dataset is split, for example, into five blocks. Four blocks are used for learning, one for checking, and this is repeated five times with the roles rotating. The average of the five results is significantly more reliable than a single measurement. The price for this is five times the computational effort.

A comparison helps with understanding: the training portion is like the practice exercises from the textbook. The validation portion is the mock exam, used to adjust one’s learning strategy. The test portion is the actual final exam. Anyone who knows the exam questions beforehand no longer has a meaningful result. Model Selection is to be distinguished from hyperparameter tuning, i.e., the fine-tuning of the adjustment screws of a single procedure. In practice, both steps usually run together.

From the Kaggle leaderboard to the model router in the chatbot

Anyone who analyzes data performs Model Selection constantly, often without using the term. Tools like scikit-learn come with ready-made functions for this, such as an automatic grid search across all combinations of settings. On the competition platform Kaggle, the leaderboard is essentially a public Model Selection across thousands of participants.

In the world of language models, the term appears in a new form. Providers offer several variants, from fast and cheap to slow and powerful. A so-called router then decides, per request, which variant responds. A simple question goes to the small model, a complicated one to the large one. When news reports state that a provider has automated model selection, this is exactly what is meant.

Companies also make this decision at a higher level. They examine whether to use a purchased model or operate their own. Criteria then include cost per request, data protection, and dependence on the provider. The core remains the same as on the small scale: multiple options, a fair comparison, a well-founded choice.

Subscribe free. Unsubscribe the second it sucks.

High-signal news across AI, business, UX, and tech. Every morning.