Vector Quantization in the Brain: Grid-like Codes in World Models
Xiangyuan Peng, Xingsi Dong, Si Wu
TL;DR
GCQ addresses the challenge of building efficient world models by compressing observation–action sequences into discrete, grid-like codewords produced by continuous attractor neural networks. The method introduces an action-conditioned codebook and sequence template matching to jointly compress space and time, forming a cognitive map that enables long-horizon prediction, goal-directed planning, and inverse modeling. The paper highlights both practical performance gains over traditional two-stage models and theoretical implications for how grid-like codes could emerge in neural systems via fixed CANN-based codebooks mapped to experience. It offers a computational tool for sequence modeling and a neuroscience-inspired perspective on representation learning.
Abstract
We propose Grid-like Code Quantization (GCQ), a brain-inspired method for compressing observation-action sequences into discrete representations using grid-like patterns in attractor dynamics. Unlike conventional vector quantization approaches that operate on static inputs, GCQ performs spatiotemporal compression through an action-conditioned codebook, where codewords are derived from continuous attractor neural networks and dynamically selected based on actions. This enables GCQ to jointly compress space and time, serving as a unified world model. The resulting representation supports long-horizon prediction, goal-directed planning, and inverse modeling. Experiments across diverse tasks demonstrate GCQ's effectiveness in compact encoding and downstream performance. Our work offers both a computational tool for efficient sequence modeling and a theoretical perspective on the formation of grid-like codes in neural systems.
