DeepLLM Quiz
Machine Learning

Inductive bias and the no free lunch theorem

10 questions on inverse problems, prior knowledge, smoothness, translation invariance, implicit and explicit bias and the no free lunch theorem.

  • 10 questions
  • Stopwatch
  • Instant feedback

Shown publicly with your score. Don’t use your full real name.

Sample questions

Play now ↑

Answers stay hidden. Start the quiz to play them.

  1. Sample 1

    A noisy process has produced ten observed points. How many different underlying distributions could in principle have generated them?

    • Exactly one, which the data identify uniquely
    • Exactly ten, one for each point
    • Infinitely many, since any distribution with non-zero density at the observed values is a candidate
  2. Sample 2

    Method A beats method B on every benchmark a lab has tried. Why does the theorem still not make the choice of algorithm pointless?

    • Because benchmarks are always chosen at random
    • Because the theorem says the better algorithm is always A
    • Because the theorem covers all conceivable problems, while real problems share structure such as smoothness that some methods exploit

How it works

  • One question per screen. An answer is final once sent.
  • You see right away whether you were right, with a short explanation.
  • The stopwatch runs: on equal scores, the faster player ranks first.
  • Only your best attempt counts, so replaying is never risky.

About this quiz

Give a student seven dots on a sheet of paper and ask for the curve that produced them. A straight line, a wavy line, a curve that loops through every dot and goes wild between them: all of these are consistent with the data. Which one is right? Nothing in the dots themselves can say. The student has to bring a preference, such as "curves are usually smooth" or "the process is probably simple". Machine learning faces exactly this situation every time it learns from a finite sample, and the preference it brings is called inductive bias.

This quiz is about why that preference is not optional. You will see how learning from examples is an inverse problem: sampling data from a known distribution is easy, but inferring the distribution from a few samples is ill-posed, because endless candidates would fit. You will meet familiar sources of bias, from the assumption that small input changes cause small output changes to the assumption that an object's identity does not depend on where it sits in a picture, and you will see how a wrong assumption turns a good algorithm into a poor one.

The second half of the quiz looks at a famous theoretical result, the no free lunch theorem. It says that, averaged over every conceivable problem, no learning method beats any other. The quiz asks what that does and does not imply. Does it mean that algorithm choice is pointless? Why do practical methods work at all? And what about flexible models such as deep networks, which can look like universal solvers but carry biases of their own, some explicit and some hidden in their structure?

Several tempting beliefs deserve to be tested. One is that a sufficiently flexible model needs no assumptions. Another is that a method that wins on a collection of benchmarks must be better in general. A third is that bias is always a defect, when in fact a well-chosen bias is what makes learning from limited data possible. Understanding this gives you a principled way to think about model design, instead of treating architectures as lucky guesses. The topic also explains much of the day-to-day craft of the field. Choosing a convolutional network for photographs, an attention-based model for text or a simple linear model for a small table are all decisions about inductive bias, whether or not they are described that way. Practitioners who can name the assumption behind a choice are better placed to notice when it fails, for example when a model trained on one kind of data is quietly applied to another whose structure is different.

The quiz suits students and practitioners who want a conceptual foundation for model choice, and it needs no mathematics. There are 10 questions, each with an explanation, and it takes about four minutes.

Questions and answers

›How long does the quiz take?

About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. Each answer is followed by an explanation, so the quiz works as a short lesson on the topic.

›Is inductive bias the same as the bias in bias-variance?

Not exactly, although they are related. In the bias-variance trade-off, bias is the systematic error of a model that is too simple. Inductive bias is the broader notion of any built-in preference that lets a learner choose among solutions. A good inductive bias keeps variance down without adding harmful bias of the first kind.

›What is an inverse problem in machine learning?

A forward problem asks for data given a known process. An inverse problem asks for the process given a finite amount of data. Learning from examples is of the second kind, and it is ill-posed because many different processes could have produced the same observations. Something beyond the data has to be added in order to select one of them.

›What does inductive bias mean?

It is whatever makes a learner prefer certain solutions to others when the data alone cannot decide. It can come from the type of model, from a penalty added to the training error, from the way the data is prepared or from knowledge built into the architecture. It is also called prior knowledge, because it reflects what is assumed before seeing the data.

›What is the no free lunch theorem?

It states that when performance is averaged over all possible problems, every learning algorithm is as good as every other. An algorithm that does better than average on one kind of problem must therefore do worse than average on another kind. The theorem is named after the saying that nothing comes for nothing.

›Does the theorem mean we should not bother choosing algorithms?

No. The theorem concerns the set of all conceivable problems, which includes many that have no resemblance to anything met in practice. Real problems tend to share structure, so a method that exploits that structure does well on them. The theorem's real message is that every success rests on an assumption, so the assumptions should be chosen deliberately.

›Can deep neural networks escape the need for inductive bias?

No. Although they are very flexible, they contain biases. A finite number of parameters restricts which functions they can express, and architectural choices add more. Convolutional networks, for instance, are built with a preference for patterns that do not depend on position, which is just right for images and not necessarily for other data.

›What is model-based machine learning?

It is a viewpoint that advocates stating every assumption of a model explicitly, so that the choices of inductive bias can be examined and changed on purpose. It contrasts with relying on implicit assumptions that nobody has written down.

More quizzes