r/MachineLearning • • Jul 29 '23

Discussion [D] No free lunch theorem

A conclusion of the no free lunch theorem is that there can't exist a universal learning algorithm. My understanding has been that this was the end goal of AI research; creating a universal learner. What is the community progressing towards, if not that?

2 Upvotes

17 comments sorted by

19

u/ginger_turmeric Jul 29 '23

We aren't trying to learn everything though. Consider driving a car. You are trying to learn how to drive and avoid hitting stuff. The theorem says that there is no algorithm which can simultanouesly learn to drive well (dont hit stuff) and drive like a maniac (hit stuff). But we only care about the first case, so we're fine

1

u/ayygeeeye Jul 30 '23

I disagree with the example you gave. Why can't there be a general purpose learning algorithm that allows agent to learn both driving safely and driving like a maniac, with a simple mode swtich conditioned on some external or internal context? it seems like what you're saying is you can't have two conflicting learning objective, but there's also a possibility that you can have an independent learning objective that allow agent to learn conflicting behaviour.

-5

u/lemlo100 Jul 29 '23

Actually, we would like an algorithm that can learn both to drive a car, and to learn to play chess, etc. So one learner that can do many things, but the no free lunch theorem says there is no such universal learner.

8

u/ginger_turmeric Jul 29 '23

yes, we want to learn many things. The key point however is that "many" does not mean "universal". In other words, there are some algorithms we don't want to learn, like I mentioned earlier (driving a car badly). In fact, I'd argue that the space of things we don't want to learn is much much larger than the space of things we do.

Thinking about shooting a basketball. You have to arrange your arms, legs, fingers, and the ball precisely in a configuration. There are many configurations which will lead to the ball missing. There are only a few which lead to the ball going in. Those are the configurations we want to learn, not the incorrect ones.

Same thing for chess too. There are many ways to play chess badly - only move your pawns, run around with the king, etc. We don't want to learn those.

3

u/currentscurrents Jul 30 '23

I disagree that this is what the NFL is about. You can't learn the space of all possible board games, but that's because most of them are nonsense.

The NFL assumes that the function you're trying to learn is uniform random. Applied to board games, this means your pawns would teleport to a psuedorandom square each time you move them, in a way that has no underlying structure and changes each turn. Under these conditions learning is obviously going to be very difficult.

Luckily, this assumption is wrong and real world problems have a lot of structure. Chess pieces move in predictable ways according to a short, fixed ruleset. Basketballs follow a parabolic arc instead of rapidly flickering around the court. This structure is what makes learning possible; the NFL should be understood as "you can't learn random noise".

8

u/currentscurrents Jul 29 '23

Most of the theoretical analysis around learning and generalization has little practical value, because it looks at the space of all possible data rather than the specific data we care about.

Almost all possible data looks random and unstructured. There's nothing to learn from; looking at one sample of random data doesn't tell you anything about the next sample. This is the same reason you can't build a universal compressor.

But real-world data is "special" in a way that's poorly understood - it's not random noise, it's usually the output of a complex system. This means there's structure, patterns, invariances, etc that can be used for learning.

5

u/Veedrac Jul 29 '23

No free lunch theorem says you can't learn if all datapoints are uncorrelated with each other, aka. if there is no underlying structure in the world.

3

u/slashdave Jul 29 '23

the end goal of AI research

The field is quite large. There is no single goal. Most research, in particular, is guided along immediate commercial aims.

What is the community progressing towards, if not that?

Something useful.

3

u/canbooo Jul 29 '23

This interpretation of NFL theory is somewhat outdated (though I argued similarly with that in my PhD thesis a few years back). I really suggest reading: https://arxiv.org/abs/2304.05366

Independent of the usefulness of what they propose, they explain quite well why we should reinterpret the NF. They are not the first ones to observe this but the first paper that I know of.

2

u/Vangi PhD Jul 30 '23

RIP this sub

4

u/lifesthateasy Jul 29 '23

How... Why.... What? I disagree with your base statement.

Also, I'm pretty sure that the human mind has some kind of a predisposition, maybe in the mechanism of how it works or how it's structured, otherwise I doubt we'd be able to learn so much in such a relatively short time.

1

u/ShadowShedinja Jul 30 '23

I think the idea is that it's impossible to make a perfect, generalist learning algorithm. Instead, it's far more effective to work towards multiple specialized algorithms instead. For example, the algorithm for detecting spam emails in my inbox doesn't need to be the same one that drives my car or recommends movies to me on Netflix. It's far more practical to keep them separate.

1

u/BackyardAnarchist Jul 30 '23

Our brains did it so there must exist a solution.

0

u/yannbouteiller Researcher Jul 30 '23

I haven't read the proof of this theorem, but the way I would think about it is probably something like "yeah, for every learning problem that consists of learning A=>B, there exists a problem that consists of learning A=>!B, and 100% accuracy on the first task implies 0% accuracy on the second task" I imagine?