HomeCognitive ScienceThe A-not-B Error: Object Permanence and Infant Working Memory

The A-not-B Error: Object Permanence and Infant Working Memory

Interactive model of Piaget's A-not-B error: watch a simulated infant's working-memory trace for a hidden object's new location decay against a learned reaching habit, and see how age, delay and training trials change the search outcome.

Cognitive Science3DModerate60 FPS
developmental-psychology-psychology ↗ Open standalone

Between roughly 8 and 12 months, infants pass through one of the most famous demonstrations in developmental psychology: shown a toy hidden repeatedly at location A, then watched it hidden at a new location B, they often still reach back to A. This simulator models that classic Piagetian "A-not-B error" as a competition between an exponentially decaying working-memory trace for the object's new hiding place and a learned reaching habit toward the old one, following the working-memory-plus-habit account developed by Adele Diamond and later formalised by Yuko Munakata's connectionist models. Adjust the simulated infant's age, the delay before it is allowed to search, and how many times it previously found the toy at A, then run trials and watch the live memory and habit gauges race to decide — correctly at B, or perseveratively at A — exactly as real infants do in the lab.

⚙ Under the hood

Model Piaget's classic A-not-B error as a race between a decaying working-memory trace for an object's new hiding place and a learned reaching habit, and watch how age, delay and training trials change whether the simulated infant searches correctly or perseverates.

developmental psychologyobject permanenceworking memoryPiagetcognitive scienceinfant cognition

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

What did you find?

Add reproduction steps (optional)