World
A realistic ReplicaCAD apartment is rendered in Habitat-Sim. The agent receives egocentric observations and travels between collision-free inspection viewpoints on the navigation mesh.
Embodied AI · Active inference · World models
An embodied agent searches a realistic home by maintaining beliefs about where a mug is likely to be, choosing informative places to inspect, and revising its plan when the evidence contradicts its expectations.
The demonstration
The agent begins with a semantic prior, searches the most useful locations, treats absence as evidence, and moves continuously through the apartment until the cup is found.
The scientific idea
The central object is not a fixed action policy. It is a structured belief about hidden states of the world, together with a model of what each possible action is expected to reveal.
A realistic ReplicaCAD apartment is rendered in Habitat-Sim. The agent receives egocentric observations and travels between collision-free inspection viewpoints on the navigation mesh.
The hidden state is the mug location. The agent maintains a categorical posterior over four semantic sites and updates it whenever a location is inspected.
Each candidate inspection is scored by travel distance, current probability of success and expected information gain. The lowest-scoring policy is selected.
Mugs are usually more likely in kitchens and dining areas.
Which inspection is useful, informative and reachable?
The agent moves to a viewpoint and gathers visual evidence.
Negative evidence changes the posterior and the next action.
Accessible maths
The implementation uses deliberately transparent equations. Each term has a visible role in the behaviour shown in the video.
\(L_j\) is a possible mug location. When an inspected site is empty, its likelihood is reduced to 0.05 while the alternatives retain likelihood 1. The probability mass therefore moves elsewhere rather than simply disappearing.
Entropy \(H[q]=-\sum_j q(L_j)\log q(L_j)\) measures uncertainty. An inspection is informative when it is expected to make the posterior sharper, whether the mug is found or ruled out.
\(d_i\) is the navigation distance to inspection site \(i\). The second term favours locations where the mug is currently likely. The third favours actions that reduce uncertainty. Lower \(G_i\) is preferred.
In the broader active inference formulation, policies are evaluated using expected free energy:
The house-search demo uses a compact, interpretable approximation at the semantic planning level. This keeps every component visible in the readout rather than hiding the decision inside a learned policy network.
Why it matters
Many systems can act when the target is visible. A more demanding problem is deciding what to look for, where to look next, and how to recover when the first explanation is wrong.
Beliefs, uncertainty and candidate actions remain visible throughout.
The policy changes online as evidence changes the posterior.
Knowledge about rooms, objects and likely locations guides efficient search.
Actions take time and must respect spatial constraints in a physical scene.
Current scope
This demonstration is designed to make the inference loop legible. It does not claim general household autonomy.
The initial probabilities encode ordinary knowledge about where mugs tend to be found.
A semantic simulator channel confirms whether the cup is visible from the chosen viewpoint.
Active inference selects semantic destinations while Habitat handles local navigation.
Replace the idealised detector with a vision model that returns graded, fallible evidence.
Test transfer across layouts, object categories and learned semantic relationships.
Extend the hierarchy from search decisions to grasping, locomotion and continuous control.
Read the paper
The preprint develops the wider argument for world models grounded in active inference, linking embodied control, semantic priors, adaptive decision-making and general-purpose intelligence.
Shaw, A. D. & Berndt, L. C. S. (2026). Active Inference World Models: From Embodied Control to General-Purpose Adaptive Intelligence. Zenodo.