Home▸Cognitive Science▸Predictive Coding: A Free-Energy Model of an Adaptive Mind

Predictive Coding: A Free-Energy Model of an Adaptive Mind

A three-layer predictive-coding network, a well-known computational model of perception as inference. Higher layers predict, lower layers send prediction errors, and beliefs roll down a free-energy landscape until the errors are explained away. Make the world suddenly change and watch surprise spike and fade; trade sensory precision against prior precision with noise in the data. A model of perceptual inference, not a claim that anything is conscious. Blender-built layer plates, belief orbs and error gems, with independent numerical checks.

Cognitive Science3DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Predictive Coding: A Free-Energy Model of an Adaptive Mind ↗ Open standalone

Theories of machine and biological "consciousness-like" behaviour keep returning to the same mechanism: a system that builds an internal model of itself and its world, then continuously revises that model to minimise surprise. This simulator renders that mechanism directly — a real three-layer hierarchical predictive-coding network performing gradient descent on variational free energy, exactly as formalised by Rao & Ballard's predictive-coding theory of cortex and Karl Friston's free-energy principle. A sensory layer receives a noisy, drifting world signal; a hidden layer and a top belief layer try to predict it top-down, and the mismatch — prediction error — drives their states to update until the surprise is explained away. Adjust the precision (attentional weighting) of each level, inject a sudden surprising input, and watch free energy spike and settle in real time.

⚙ Under the hood

A three-layer predictive-coding network, a well-known computational model of perception as inference. Higher layers predict, lower layers send prediction errors, and beliefs roll down a free-energy landscape until the errors are explained away. Make the world suddenly change and watch surprise spike and fade; trade sensory precision against prior precision with noise in the data. A model of perceptual inference, not a claim that anything is conscious. Blender-built layer plates, belief orbs and error gems, with independent numerical checks.

predictive codingfree energy principleneural networkconsciousnesscognitive sciencemachine learningPredictive CodingFree EnergyPerceptionBayesian BrainPrediction ErrorCognitive Science

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)