Transformers self-organize like newborn visual systems when trained in prenatal worlds
Lalit Pandey, Samantha M. W. Wood, Justin N. Wood
TL;DR
The paper addresses how brains acquire their characteristic visual structure and whether transformers can develop a similar organization when exposed to biologically plausible prenatal input. It trains a Vision Transformer with Contrastive Learning Through Time (ViT-CoT) on sequences generated by a retinal-wave simulator, using a space-time fitting objective over a $300$ ms window across three frames. The results show that, after training, the models spontaneously exhibit edge sensitivity in early layers, shape sensitivity in later layers, and progressively larger receptive fields, mirroring newborn visual systems; these effects vanish under temporally scrambled inputs or with insufficient data. This work supports a common fitting principle between brains and transformers, suggesting prenatal experience alone can shape large-scale visual organization in artificial systems and offering a framework to study brain-like development with transformer models.
Abstract
Do transformers learn like brains? A key challenge in addressing this question is that transformers and brains are trained on fundamentally different data. Brains are initially "trained" on prenatal sensory experiences (e.g., retinal waves), whereas transformers are typically trained on large datasets that are not biologically plausible. We reasoned that if transformers learn like brains, then they should develop the same structure as newborn brains when exposed to the same prenatal data. To test this prediction, we simulated prenatal visual input using a retinal wave generator. Then, using self-supervised temporal learning, we trained transformers to adapt to those retinal waves. During training, the transformers spontaneously developed the same structure as newborn visual systems: (1) early layers became sensitive to edges, (2) later layers became sensitive to shapes, and (3) the models developed larger receptive fields across layers. The organization of newborn visual systems emerges spontaneously when transformers adapt to a prenatal visual world. This developmental convergence suggests that brains and transformers learn in common ways and follow the same general fitting principles.
