Manuscript Offprint

arXiv:2608.25088

The Von-Neumann State-Space Transformer for neural decoding

Morteza Sarafyazd

Abstract

Cortical computation is strikingly low-dimensional: a handful of latent variables, carried in a neural population's activity, steer the higher-dimensional responses of individual neurons. Our aim is sample efficiency—models that decode well from limited data and at small parameter budgets. In a standard Transformer layer, the feed-forward block applies the same operator to every token. We suggest a von-Neumann inspired hypothesis of efficient computation as an alternative for neural decoding: a controller decodes an instruction and then executes a token-specific operator; the usual realization—a soft mixture of experts—only blends their outputs, not operators. We introduce a Von-Neumann State–Space Transformer (VN–SST), a memory-augmented Transformer whose feed-forward block is a low-rank instruction bank: a shared base operator plus a small set of learned low-rank instructions, from which a per-token code synthesizes the weight matrix actually used at that token. The code is read from a low-dimensional projection of a carried state-space memory, so a slow latent trajectory acts as an instruction pointer—mirroring how low-dimensional dynamics may route cortical computation. On three motor-cortex neural-decoding benchmarks, VN–SST is far more data-efficient than a modern Transformer, each jointly predicting spikes and decoding behavior. This model wins by a wide margin on the scarcest benchmark, leads on the other two, and turns longer context into rising rather than falling accuracy. We evaluated that the network compresses a large instruction bank to a few bits per token, so program capacity acts as a control channel, not an accuracy lever. The same model is also more parameter-efficient on two small text benchmarks used for language modeling (LLMs), suggesting a generic mechanism.

1 Introduction

Cortical computation is strikingly low-dimensional: population activity spanning thousands of neurons is organized by a handful of latent variables, whose slow trajectories steer the faster, higher-dimensional responses of individual cells. Our focus is neural decoding that is sample-efficient—accurate behavioral read-out from limited data and small models. To pursue it we adopt

∗^{*}Affiliation: BrainCo, Somerville, US.

a von–Neumann–inspired hypothesis of efficient computation and build it into a Transformer backbone. A von–Neumann (stored–program) machine has the same structure: a small, slow controller fetches and decodes an instruction, and an execution unit then runs the operator that instruction names, so a compact program steers a large, input–specific computation. In a standard Transformer, by contrast, the feed–forward network (FFN) applies the same fixed weights to every token; we instead give the FFN a controller—a slowly varying state–space memory whose read–out selects, token by token, the operator the FFN executes.

A natural first attempt is a soft mixture of experts (soft–MoE), in which a controller blends the outputs of several fixed FFN experts [1]. This is a useful capacity knob, but in the von–Neumann sense it does not execute a program: it mixes the results of fixed operators rather than constructing a token–specific one. We instead let the controller synthesize the FFN’s weights themselves, per token, from a small shared bank of low–rank “instructions” added to a shared base operator (Eq. 7, Section 2.2). Each token’s code selects a point on a low–dimensional manifold of operators, so the executed map is genuinely token–specific while each added instruction costs little—exposing the size of the instruction bank as a scaling axis of its own, alongside parameters and data, and turning the program into a concrete control signal we can measure.

The program is generated rather than looked up. We do not read the instruction off the raw token; instead we condition it on a low-dimensional read-out of a slowly varying selective-state-space (SSM) memory carried across the sequence. The slow latent trajectory then acts as an instruction pointer—low-dimensional dynamics that fetch which operator to run—turning the neuroscience intuition into a mechanism: a small, slow latent drives the higher-complexity, token-specific computation.

We realize this in VN–SST, a Von–Neumann State–Space Transformer: a drop-in, memory–augmented Transformer—local attention, a selective SSM, and a fast–weight memory, coordinated by a controller—whose feed–forward operator is synthesized per token from the low–rank instruction bank driven by the carried low–dimensional state (Section 2.2). As in a scaling–law study [2], we compare VN–SST against a modern Transformer on three motor–cortex decoding codecs along three axes—parameters, data, and context (Sections 4.1–4.3). The programmable operator is markedly more sample–efficient: under a limited–data budget it beats the Transformer by a wide margin on the scarcest codec (decode R2R^{2} 0.35 vs. 0.21), leads at every data budget on all three, and—uniquely—turns a longer context window into rising rather than falling decode accuracy. A control–bits diagnostic (Section 4.4) then makes the von–Neumann claim measurable: the network compresses a 32–instruction bank to only a few bits per token ( ≈\approx3.4–6.5 effective operators), so program capacity behaves as a control channel, not an accuracy lever—a signal no output–blending mixture can report.