r/MachineLearning • u/neutrino_boy • 4d ago
Discussion WTF is a World Model? [D]
Edit: Just to clear up some confusion, I know “what a world model is”; I suppose I’m more interested in the specific questions I asked. I kind of just wrote this on a whim, had some typos, and my asking “WTF is a world model” was a bit tongue-in-cheek. I wasn’t so much looking for simple descriptions, but hoping for a more nuanced discussion about the differences between so-called “world models”, traditional simulators, digital twins, etc and what really counts.
I'm trying to understand what a world model is. I understand it has its roots in cognitive science and reinforcement learning. I understand, at least at the moment, what most people are building, which they call world models, are fancy video generation models. But what actually counts? Does a simulator count as a world model? Some "world models" are described as simulators, or rather, a simulator is described as one type of world model. But is a simulator, like, let's say a physics engine, a world model? There are some video game world models, or computer use world models. Would a hardware/video game emulator count as a world model? And can a digital twin also be a world model with some additional features?
I've seen a definition that says a world model should "operate on learned representations, not exclusively hand-crafted physics, i.e. a physical referent is optional." Which is fair enough, but then would a physics accelerator that uses an ML count as a world model? Like some ML fluid simulator is that a fluid world model?
Are world models just a rebrand of simulation, or is there really a fundamental difference? Should the definition be limited to models that aim to generally model all of the real world? So that would exclude video game world models and also models of specific interactions.
30
u/OctopusGrime 3d ago
Not sure what all these comments are about, It comes directly from RL.
A world model is a learned transition model P(s_t+1 | s_t, a_t) and comes from neuroscience e.g. babies spend the first year of their life learning to predict the motion of objects, expected sensations.
Having a world model enables model based RL i.e. planning via search.
6
u/LordVoldemort-_- 3d ago
How is this different from RL at all? This seems very similar to a MDP, why the rebranding and hype?
5
u/brainExploded99 3d ago
It has higher sample efficiency and it's more practical for partially observable MDP.
2
2
u/dsmirza 2d ago edited 2d ago
This "world" is not different from RL. Many RL approaches do not build these world models and are hence called "model-free". Others are model based and they explicitly learn these transition probabilities.
Consider REINFORCE/PPO/SAC. They only try to learn the policy not the transition dynamics. The transition dynamics (P(s{t+1} | s{t}, a_{t}) ) are part of the MDP, yes, but not learnt.
I would not say they are 'ignored' as the policy is learnt from rollouts in the world so the world information becomes implicitly part of the policy. (e.g. don't do this action because this on average leads to low return). But you can say 'ignored' if you understand what you mean by 'ignored'.
3
u/OctopusGrime 3d ago
I’m saying it’s literally taken from RL. Only with recent investment they can justify collecting enough data and training big enough models
22
u/Lumpy_Ad2192 4d ago
I would argue that the original definition of a world model is still the most accurate, but not one that I think any lab has actually achieved in a meaningful way.
Originally early AI, scientist and engineers, realize that the limitation of language models is it even with reasoning they don’t really understand “the world“. That means they don’t really understand how things interact or how things relate in a physical sense.
To be fair humans also struggle with some aspects of this. We have a kinesthetic sense which has evolved with a specific understanding of how objects work in a gravity field, but unlike birds and insects, humans have no real innate understanding of certain quantum principles.
The gap therefore is that we both want models which can contain an understanding of the world that matches ours, and therefore is much more useful to fields where simulation at various levels is critical, but we also want to lead the crown work to build models with superhuman understanding of the universe, such as a native understanding of how quantum and physical realities, interact, and a framework where they could theoretically build into understandings of human network information and other kinds of relationships that require more processing power than humans have.
You could make an argument that models which have trained in various simulators are a good first step, which I think is what most of the world model labs are doing right now. Certainly the labs that are working with robotics that have feedback loops with reality are seeing better results, but most of the successful ones are starting with neural networks and abandoning Transformers entirely.
All of this is to say that I think that “world models“ are almost a philosophical stake in the ground. We will know that an AI has a good world model if it shows an understanding of physics that is equal or greater to humans without additional fine-tuning, and ideally having self trained in some kind of simulated physical environment.
But from a scientific standpoint, that doesn’t give us a meaningful hypothesis that we can test against. Also, it’s not clear that any of our current approaches have the capacity to scale up there, even if they’re doing pretty good with some of the simulations.
So generally, I agree with you that a lot of what’s being talked about is largely marketing to try to get dollars for various approaches which, while some show meaningful progress, none are clearly the correct one that with additional funding and processing power will actually achieve something that meets that very high bar.
4
u/BelialSirchade 4d ago
I mean, doesn't it mean that physics engine is a world model? I don't know, I have tried to do some search into it but, it never made sense to me why it would be "smarter" than LLM in non-physical domains, it still is necessary for robotics but, why would a world model reason better in high level fields like math or physics for example?
of course I think it's the next big thing, as robotics is the next big thing, but for reasoning and abstract thinking, I think an LLM approach will still work better I guess, I don't know what Yann is seeing that I'm not.
5
u/nonotan 4d ago
why would a world model reason better in high level fields like math or physics for example?
The idea is that current LLMs are pretty much an extreme manifestation of a "Chinese room", with nothing but superficial statistical inferences between high-level concepts that are not grounded on actually understanding what these concepts are fundamentally describing.
With a notion of what the world under such high-level concepts actually looks like, you've got a whole additional layer to check ideas against, and with which to fine-tune your weights without depending on astounding amounts of human-made data (with us acting as, effectively, the intermediary that does understand the world and crystalizes it into those high-level concepts) that we've pretty much already maxed out today.
It's like saying, "why would modeling temporal coherence improve the quality of video generation beyond reducing some minor artifacts?" -- well, real video doesn't generally have non-physical discontinuities, so to the extent that it does anything, it points at an underlying inaccuracy in the generator.
Of course, whether the things people are introducing under the label of "world model" actually achieve any of these aims in practice, whether the whole concept will work out in practice and outperform existing approaches (plenty of logical-sounding ideas end up not really working out for one reason or another), etc. are separate questions. I'm just explaining why it makes some sense a priori that they would help.
4
u/QuantumPhantun 3d ago
Which quantun principles do insects and birds have an innate understanding of?
8
6
u/evanthebouncy 4d ago
I think a pithy description maybe
"A simulator of the environment where you can ask what-if questions"
1
u/neutrino_boy 3d ago
Learned representations important to you or not? Implicit / explicit simulator?
2
u/evanthebouncy 3d ago
in my lab we work with programmatic world models, so symbolic + explicit simulation. but that's a preference, learned representaiton is also great, just not what we do aha
1
u/neutrino_boy 3d ago
Okay interesting. Would I be able to look at some of your work or do you not want to doxx yourself?
2
u/evanthebouncy 3d ago
oh i can doxx myself as I work in the public domain. the problem is we don't really have any concrete output yet as we've only recently have gotten into it.
I'll just refer you to this work: https://arxiv.org/abs/2402.12275
4
u/Every-Cat-2611 4d ago
The way I understand it is a persistent state. If you turn the lights off in your home, you can likely still navigate without bumping into every wall. You’re not “remembering” where everything is, you have a model of your house in your mind. If you stand in a place you’re familiar with, you “know”, not “remember” what’s behind you.
That said it’s now just become a term that companies throw around to get you to buy their product. And the actual definition has gotten a little wishy washy, I doubt anyone actually considers what I said to be the “official” definition.
9
u/shifty_lifty_doodah 4d ago
Predicts what will happen given observed state and possible actions.
8
u/Disastrous_Room_927 4d ago
So it’s an MDP?
6
u/alexbaas3 4d ago edited 4d ago
Most ‘worlds’ aka environments can be formalised into MDP or POMDPs, a gridworld MDP is of course way easier to understand as environment, but let’s say you try to model the real world as the environment, good luck with formalising that, even as POMDP.
I would say the world model definition according to the comment doesn’t include the reward transition function R at all given the MDP tuple <S,A,T,R>. It just states it will be able to predict future state s’ given the current state s and some possible action a -> in this case the world model thus represents the transition function T in a MDP. Also, world models often represent states S as some latent state distribution z which you can sample from, it’s generative and stochastic, whereas MDPs are deterministic in that case, pretty sure you could model the latent z in as a POMDP but anyways.
There are many examples of world model papers that do include some reward function R, not sure if they formalise it into a PODMP though. AND in robotics learning I think the comment’s definition is closer to the truth. In generative modelling/RL it might be closer to a representation model formalised into a POMDP, often mimicking some complex environment (like the real world, minecraft, etc.)
There are many definitions flying around now, and everyone just inserts world model into their papers because marketing, it’s the new buzz word for ML researchers.
5
u/shifty_lifty_doodah 4d ago
Well, maybe.
To me, a model is a predictor.
And a world model predicts what happens in a world.
We can get into different mathematical details in the definition, but this is really the core of what it is, by definition.
6
u/relevantmeemayhere 4d ago
this includes basically every state space model....ever
i guess cs rediscovered financial statistics in the 90s
3
4
11
u/Howling_deer 4d ago
Investing hogwash. No one knows lol
3
1
u/NeighborhoodFatCat 1d ago
This. Similar question can be said about "digital twin", "precision medicine", "smart sensing", and "federated learning"
2
1
u/jdude_ 3d ago edited 3d ago
A world models is an abstract state that represent the world, given actions and time it evolves, usually by using a neural network. The theory behind the main use cases is that when we (humans) make long term plans we use our own version of a world model. It should allow abstractions that will be very useful in RL, abstract resentations and predictive models.
I don't think it needs to operate nesscerly on abstract representations, it's just nesscary for our use cases. Physics simulations and game engines sort of answer the definition, maybe the only issue is that they are very constrained abstracted proxy of a world, and not as useful as what neural networks allow.
1
u/gannu1991 3d ago
Depends what you need the model to do, that's the cleanest way to cut through the definitional mess. A video generator that predicts the next frame is not a world model in the useful sense unless it's action conditioned, meaning you can feed it a hypothetical action and it predicts the resulting state. That's the actual dividing line people care about: can you query it with "what if I do X" and get a plausible next state back. A physics engine does this by construction with hand coded rules. A learned world model does it from data. Both count under that test. A pure video generator that just continues a clip without taking an action as input doesn't, no matter how good the pixels look. Digital twins count if they're predictive and queryable, not just a visualization layer.
1
1
u/HelpfulKaleidoscope 3d ago
It comes from a RL, let's say you have an agent in a system with a task. A world model is something that says : if I do this action and given tue state of the system, how the system will end up? You predict the world.
1
u/neutrino_boy 2d ago
Okay I realised here confusion is coming from. In my post I meant to say it has its roots in Cog Science and RL. I already know this but the typo I guess has confused people. I was wondering why people kept saying this but I did not proof read the post.
1
u/Hyperhelium 2d ago
I wished engineers stopped naming things after terms they don't really understand. That only creates more confusion.
2
u/progenitor414 13h ago
I would use a functional definition: a world model is an internal predictive model an agent can roll forward under candidate actions. A physics engine can serve as one if it sits inside the planning loop, while a video generator may not if it cannot preserve state or answer action-conditioned counterfactuals. Learned versus hand-coded describes construction, not function.
1
u/catsRfriends 4d ago
It's not cognitive science or reinforcement learning or w/e. Those are implementation details. Reinforcement learning is the way for the model to learn something based on the reward. In this framework the model makes guesses and then you assess the state of the world. If the state is scored highly then the model learns what it did was good so it tends to perform more in that fashion. Otherwise, less.
The idea is that there is a world with latent factors to be learned. It just so happens that the ones that are interesting are also hard to model correctly/well with point data samples. If nothing else, the combinatorial explosion means the volume of such data required makes the problem into a computationally intractable one.
0
u/neutrino_boy 4d ago
I understand this. What I was saying was that I understand before generative AI the definition / idea of a world model had its roots in RL / Cognitive Science.
1
u/catsRfriends 3d ago
It doesn't appear so, otherwise what is it you're asking? One of the premises of machine learning is that you let the algorithm figure it out when the problem is messy and hard to describe neatly but data and labels are plentiful. So in the sense of machine learning no, the simulator isn't a world model if humans had to code it in detail. Whereas a model that infers 2D platformer physics like in the Google Genie paper is closer to a world model.
0
u/neutrino_boy 3d ago
There are lots of sentences in my post that end in question marks. Those are the things that I am asking. The second sentence did not have question mark concluding it. Not sure what's confusing about that.
1
u/yannbouteiller Researcher 4d ago
It is because model-based RL has been learning world models forever. In a general sense these are simulators, either learnt or not, either explicit or latent, that predict a next state from a current state and an action.
2
u/relevantmeemayhere 4d ago
the problem is that, if you choose this definition, then there are a bunch of old penalized likelihood models that are now world models.
RL is penalized regression. We use words like 'learning' and 'encoding'; but this terminology makes it sound more sophisticated than it is in many, many cases. This is why people dunk on ml and ai researchers a lot of the time
1
u/samas69420 4d ago
a world model predicts how the environment's state will change when something happens, in some cases you can also use a simulator to do that but the difference is that a simulator is built while a world model is learned directly from data
5
u/relevantmeemayhere 4d ago
this definition then includes almost every statistical learning model, ever.
2
u/samas69420 3d ago
indeed they are statistical learning models, whatever you use to learn and predict how the environment will respond for example to a action and what state it will transition to can be considered a world model to my understanding
2
u/neutrino_boy 3d ago
If a model tries to build a simulator. So it reconstructs objects and puts them in their own 3d world and learned rules overtime for how these objects respond to forces basically building its own simulator, could be with explicitly defined forces or neural nets or a hybrid, would that count as a world model to you? For example maybe its graph neural networks on the meshes.
I guess what I am trying to get at. Does it matter if the geometry is explicitly defined or is it just the laws of motion and interactions.
1
u/Random-Number-1144 4d ago edited 4d ago
Exactly. WTF is a world model.
It's absolutely rebranding of old ideas.
World model is basically computationalists' (wrong) ideas of how the brain controls and functions. It chnages over time. But the implicit assumption has always been cartesian dualism.
Check out my blog on why it won't achieve anything groundbreaking.
0
u/Flyward_Aerospace 3d ago
The taxonomy arguments never land for me because they sort by what the model is built out of instead of by what actually breaks. The test I would use is whether anything closes the loop on it. If a human is watching the output, per frame realism is basically the entire spec. If the model's own prediction becomes the input for the next step and something acts on it, per frame realism stops mattering almost completely and the only thing you care about is what the error does over a few hundred steps. Video models that look incredible for five seconds fall apart on exactly that, which is why sim people care so much about whether the thing conserves anything, since a conserved quantity is what puts a bound on drift. Open loop vs closed loop splits the field a lot more cleanly than arguing about whether a renderer counts imo.
-2
u/sweetjale 4d ago
Dreamer, Dreamer 2, and Dreamerv3 are the simplest versions of a world model
1
u/brainExploded99 4d ago
Why not v4? v4 cuts down on moving parts from v3. Trying reproduce it currently, but the paper lacks details and no code.
I'm also convinced some parts of the paper were either implemented somewhat differently from what was said or are straight up incorrect.
3
u/sweetjale 4d ago
i see. haven't read v4 yet.
2
u/brainExploded99 4d ago
You should check it out, maybe I missed something.
Example of paper seeming to be incorrect: It seems like RMSNorm of the dynamics losses was just a bad idea, multiple independent reproductions attempts turned it off because converging with it enabled seems to be difficult.
83
u/Salt-Bodybuilder-518 4d ago
There are several types of world models. Fei fei li developed a taxonomy tag might be helpful here:
https://drfeifei.substack.com/p/a-functional-taxonomy-of-world-models