Thinking Is Search. Knowledge Is What Makes It Small.
Finite data fits countless answers. Inductive bias, the assumptions we bring before seeing data, collapses the search space. Runnable code shows it: 94% with the right bias, 22% with the wrong one.

A blank page holds every possible drawing. A few strokes turn it into one. Problem solving works the same way: the hard part is rarely checking an answer, it’s deciding where to look among the impossibly many answers you could check.
Every problem is a search, and no mind or machine searches everything. What makes a problem solvable is what you rule out before you start looking. In machine learning that ruling-out has a precise name, inductive bias, and once you see it, you see it everywhere: in neural network architectures, in Bayesian statistics, and in how people think.
#What a problem actually is
Strip away the details and every problem has the same three parts: where you are now, where you want to be, and the moves you’re allowed to make. Together they define a search space: the set of every candidate solution. Allen Newell and Herbert Simon made this the foundation of their 1972 book Human Problem Solving, where they described problem solving, by people and programs alike, as search through a “problem space”.
- Route finding: the space is every path through the road network.
- Chess: the space is every sequence of legal moves.
- Machine learning: the space is every function the model could represent, called the hypothesis space. Learning means searching it for a function that explains the data.
These spaces are enormous. Take the smallest learning problem imaginable: a yes/no rule over 3 yes/no inputs. There are 23 = 8 possible inputs, and a rule assigns yes or no to each, so there are 28 = 256 possible rules. With 10 inputs there are 21024 rules, a number with 309 digits. Real problems, with millions of inputs, live in spaces where blind search isn’t slow, it’s meaningless.
#How AI solves problems: three kinds of search
Almost every technique in AI is a way of searching such a space without visiting most of it.
| Approach | What it searches | What keeps the search small |
|---|---|---|
| Classic search (route planners, chess engines) | States and moves | A heuristic: an estimate of how good a state is (distance to the goal for a route planner, who is winning for a chess engine), so the promising ones are explored first |
| Optimisation (gradient descent) | Values of the model’s parameters | The gradient: local information about which direction lowers the error, so each step is chosen, not guessed |
| Learning (fitting a model to data) | Functions in the hypothesis space | The inductive bias: assumptions that decide which functions are considered, and which are preferred |
The first two are about finding an answer efficiently. Learning has an extra, deeper problem: even when you can search the whole space, the data can’t tell you which answer is right.
#Data alone cannot pick an answer
Training data is a small sample of the world. The true function you want to learn isn’t in it, only a few of its outputs are. And for any finite set of examples, many different functions fit them perfectly. The chart at the top of this post shows it: five observations, and dozens of curves that pass exactly through every one of them while disagreeing everywhere else. The data is equally happy with all of them.
So which one should generalise? The data has no opinion. Something else has to decide, and that something is the inductive bias. Tom Mitchell made this precise in 1980, defining bias as
any basis for choosing one generalization over another, other than strict consistency with the observed training instances.
Tom Mitchell, The Need for Biases in Learning Generalizations (1980)
He also showed what happens without one: a learner with no bias can’t classify anything new any better than a lookup table that memorises the training examples. It can repeat what it saw, and nothing more.
A common mix-up is worth clearing here. The sheer size of the hypothesis space is a combinatorial explosion. The curse of dimensionality is a related but different problem: as the number of input dimensions grows, the volume of the input space grows exponentially, so any fixed amount of data becomes vanishingly sparse. Both make blind search hopeless, and both are tamed the same way: with assumptions.
#Inductive bias: collapsing the search space
An inductive bias works in one of two ways:
- Restriction (hard bias): some functions are never considered at all. A linear model can only draw straight boundaries, and a convolutional network can only build features from local patches.
- Preference (soft bias): every function is allowed, but some are favoured. Regularisation that penalises large weights prefers simpler functions, and early stopping prefers functions that training reaches first.
The best way to feel the effect is to count. The program below takes every one of the 256 rules over 3 yes/no inputs, shows a learner only 4 of the 8 possible inputs, and asks how well the rules that fit those 4 do on the 4 it never saw. It tries three learners: one with no assumptions, one that assumes the answer is a straight cut through the inputs (what a single perceptron can represent), and one that assumes the answer depends only on how many inputs are on. Results are averaged over all 70 ways of choosing the 4 observed inputs.
from itertools import combinations, product
import numpy as np
inputs = list(product([0, 1], repeat=3)) # the 8 possible inputs
rules = list(product([0, 1], repeat=8)) # all 2^8 = 256 possible rules
def linear(r):
"""Can one straight cut (w·x + b > 0) produce this rule?"""
for w in product(range(-3, 4), repeat=4): # small weights suffice here
if all((w[0]*a + w[1]*b + w[2]*c + w[3] > 0) == bool(r[i])
for i, (a, b, c) in enumerate(inputs)):
return True
return False
def counts_ones(r):
"""Is the rule a threshold on how many inputs are 1?"""
return any(r == tuple(int(sum(x) >= k) for x in inputs)
for k in range(5))
spaces = {
"no bias": rules,
"linear bias": [r for r in rules if linear(r)],
"count-of-1s bias": [r for r in rules if counts_ones(r)],
}
def evaluate(space, target):
"""Average over every way of observing 4 of the 8 inputs."""
fits, acc = [], []
for seen in combinations(range(8), 4):
unseen = [i for i in range(8) if i not in seen]
ok = [r for r in space if all(r[i] == target[i] for i in seen)]
fits.append(len(ok))
if ok:
hits = [[r[i] == target[i] for i in unseen] for r in ok]
acc.append(np.mean(hits))
return np.mean(fits), np.mean(acc) if acc else np.nan, len(acc)
targets = {"majority": tuple(int(sum(x) >= 2) for x in inputs),
"parity": tuple(sum(x) % 2 for x in inputs)}
for target_name, target in targets.items():
print(f"world = {target_name}")
for name, space in spaces.items():
fits, acc, n = evaluate(space, target)
print(f" {name:16} rules={len(space):3} fit={fits:5.2f} "
f"unseen acc={acc:4.0%} explainable={n}/70")world = majority
no bias rules=256 fit=16.00 unseen acc= 50% explainable=70/70
linear bias rules=104 fit= 8.07 unseen acc= 61% explainable=70/70
count-of-1s bias rules= 5 fit= 1.17 unseen acc= 94% explainable=70/70
world = parity
no bias rules=256 fit=16.00 unseen acc= 50% explainable=70/70
linear bias rules=104 fit= 3.60 unseen acc= 28% explainable=64/70
count-of-1s bias rules= 5 fit= 0.17 unseen acc= 22% explainable=10/70
Three lessons sit in those numbers:
- No bias, no generalisation. With all 256 rules allowed, 16 of them fit any 4 examples, and they split evenly on every unseen input. The learner is guessing: 50%, exactly Mitchell’s lookup table.
- The right bias is a shortcut to the answer. Assuming “only the count of 1s matters” shrinks 256 rules to 5. Usually just one survives the data, and it’s right 94% of the time on inputs it never saw.
- The wrong bias is worse than none. Parity (is the number of 1s odd?) breaks both assumptions. The biased learners do worse than a coin flip, and often no allowed rule fits the data at all. Two-input parity is XOR, the very function that a single-layer perceptron provably cannot learn, which helped push AI into its first winter.
A practical reading for real projects: if a model fails on small data, it’s probably missing a useful assumption. If it stops improving as data grows, one of its assumptions is probably wrong.
#Prior knowledge as belief: updating with Bayes’ rule
Restriction and preference have a single mathematical home: probability. In Bayesian terms, your knowledge before seeing data is a prior, a probability over hypotheses. The data contributes the likelihood: how probable the observations are under each hypothesis. Bayes’ rule combines them into the posterior, your updated belief:
posterior ∝ likelihood × prior
The prior is the reference point you start from, and every observation moves you away from it. Here is the classic example: estimating how often a coin lands heads, from two starting points. One is an open mind that considers every bias equally likely; the other is confident prior knowledge that coins are usually fair.
# How likely is this coin to land heads? A belief is a Beta(a, b)
# distribution: a and b are heads and tails "seen so far", imagined
# ones included.
priors = {
"open mind Beta(1, 1) ": (1, 1), # any bias equally likely
"coins are fair Beta(50, 50)": (50, 50), # strong prior knowledge
}
for flips, heads in [(10, 7), (100, 70), (1000, 700)]:
print(f"after {flips:4} flips ({heads} heads):")
for name, (a, b) in priors.items():
a2, b2 = a + heads, b + (flips - heads) # Bayes' rule, here
n = a2 + b2
mean = a2 / n
sd = (a2 * b2 / (n * n * (n + 1))) ** 0.5
print(f" {name}: P(heads) = {mean:.2f} ± {sd:.2f}")after 10 flips (7 heads):
open mind Beta(1, 1) : P(heads) = 0.67 ± 0.13
coins are fair Beta(50, 50): P(heads) = 0.52 ± 0.05
after 100 flips (70 heads):
open mind Beta(1, 1) : P(heads) = 0.70 ± 0.05
coins are fair Beta(50, 50): P(heads) = 0.60 ± 0.03
after 1000 flips (700 heads):
open mind Beta(1, 1) : P(heads) = 0.70 ± 0.01
coins are fair Beta(50, 50): P(heads) = 0.68 ± 0.01
After 10 flips the two learners disagree sharply: 0.67 against 0.52. The strong prior needs much more evidence before it moves. After 1,000 flips they almost agree, because enough data overwhelms any reasonable prior. Notice also that the beliefs get narrower: the ± shrinks as evidence accumulates. That is what learning looks like from the inside.
This picture connects both kinds of bias. A soft bias is a prior that gives some hypotheses low probability: data can still overrule it. A hard bias is a prior of exactly zero: no amount of data can ever bring that hypothesis back, which is why the wrong restriction is so costly. Even everyday regularisation fits in: penalising large squared weights (L2 regularisation) is equivalent to placing a Gaussian prior on the weights and choosing the most probable model.
#Bias you can see: CNNs versus Vision Transformers
Computer vision makes inductive bias visible in architecture. A convolutional neural network (CNN) builds four assumptions about images directly into its structure:
- Locality: nearby pixels are related, so each unit looks only at a small patch.
- Weight sharing: the same feature detector is reused at every position, so an edge detector learned in one corner works everywhere.
- Translation equivariance: shift the input image and the feature maps shift with it. This follows directly from sharing weights, as the Deep Learning textbook explains.
- Hierarchy: stacked layers combine edges into textures, textures into parts, and parts into objects.
Each assumption removes a vast region of the hypothesis space: functions that treat distant pixels as tightly linked, or that recognise a cat only in the top-left corner, are simply never considered. That is why CNNs learn well from relatively little data.
The Vision Transformer (ViT) takes the opposite approach. It cuts an image into patches and lets attention learn how every patch relates to every other, with almost nothing about images built in. Its authors say so directly:
We note that Vision Transformer has much less image-specific inductive bias than CNNs.
Dosovitskiy et al., An Image is Worth 16×16 Words (2020)
The consequences follow the same pattern as the experiment above. Trained on ImageNet’s 1.3 million images without strong regularisation, ViT landed a few percentage points below comparable ResNets. Pre-trained on 14 million images (ImageNet-21k) or 303 million (JFT-300M), it matched or beat them. In the paper’s words, “large scale training trumps inductive bias”.
| CNN | Vision Transformer | |
|---|---|---|
| Built-in assumptions | Many: locality, weight sharing, translation equivariance, hierarchy | Few: images are made of patches with positions |
| Hypothesis space | Small and image-shaped | Large and general |
| Data needed | Less | Much more |
| Risk | Can’t learn what its assumptions forbid | Needs enough data to learn what a CNN gets for free |
The trade-off in one line: more bias means fewer possibilities, so less data is needed but less can be learned. Less bias means more freedom, at the price of more data. Rich Sutton’s Bitter Lesson argues that, over decades, general methods that scale with computation win. ViT is a good example. But every model still carries some bias; the question is only which assumptions, and how strongly they’re held.
#Thinking is search, too
None of this is unique to machines. A person facing a problem also stands in an enormous space of possible answers, and never searches most of it. Knowledge is what makes the space small: an experienced doctor considers a handful of likely diagnoses, not thousands. An experienced engineer looks at the recent deploy before the hardware. Expertise is, in large part, a well-tuned inductive bias.
The same two failure modes apply. Too few assumptions and you drown in possibilities. Wrong assumptions held as certainties, priors of zero, and you search confidently in the wrong place, unable to see the answer even when the evidence points at it. Good thinking holds strong priors loosely: start from what you know, then let evidence move you.
So the most important question when designing a learning system is rarely “which model should we use?”. It’s: what assumptions about the world are you willing to give your model, and how sure are you that they hold?
#Takeaways
- Every problem is a search through a space of candidate solutions, and real spaces are far too large to search blindly.
- Finite data is consistent with many answers. Inductive bias, the assumptions beyond the data, is what picks one.
- The right bias collapses the space towards the answer; the wrong one excludes it. In the experiment above: 94% versus 22% on unseen inputs.
- A prior is a soft bias that data can overrule; a hard restriction is a prior of zero that it never can.
- CNNs and Vision Transformers sit at opposite ends of the same trade-off: strong assumptions and less data, or weak assumptions and much more data.
#Further reading
- The Need for Biases in Learning Generalizations, Tom Mitchell (1980). Six pages that define the idea.
- An Image is Worth 16×16 Words, Dosovitskiy et al. (2020). The Vision Transformer paper, with the data-size experiments.
- Convolutional Networks, chapter 9 of Deep Learning by Goodfellow, Bengio and Courville. Locality, weight sharing and equivariance, in depth.
- The Bitter Lesson, Rich Sutton (2019). The case for general methods over built-in knowledge.
- The AI Winters Weren’t a Failure. They Were a Training Run. How the XOR problem shaped the history of neural networks.
#Image credits
All charts were made for this post from the code above.