Manuscript Offprint
arXiv:2608.25088The Von-Neumann State-Space Transformer for neural decoding
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 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 ( 3.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.
2.1 Transformer baseline
The baseline is a modern decoder-only Transformer [3, 4]: a stack of identical layers, each combining pre-norm RMSNorm [5], rotary position embeddings (RoPE) [6], causal multi-head self-attention, and a SwiGLU [7] feed-forward block. Every layer applies attention and the feed-forward block as two residual updates,
where the feed-forward block gates one linear projection of its input by another,
The three weight matrices are shared across positions, so the same operator acts on every token.
2.2 VN–SST: memory, state space, and programmable computation
VN–SST keeps the layer skeleton of the baseline but replaces its two blocks: three parallel memory pathways in place of plain attention, and a programmable feed–forward operator in place of the fixed SwiGLU. These choices are a direct reading of the stored–program hypothesis that motivates this work. A von–Neumann machine separates a controller that fetches and decodes an instruction, an execution unit that runs the decoded operator, and a memory that persists state between steps; computation is the loop that reads the next instruction and applies it. VN–SST maps these roles onto a single sequence layer: the persistent selective state–space and fast–weight pathways are the memory, carrying state across tokens; a low–dimensional read–out of the slow state serves as the instruction pointer that selects which operator to run next; the controller decodes that pointer into a per–token instruction code; and the programmable SwiGLU is the execution unit, whose weights that code synthesizes on the fly. The three pathways and the low–rank instruction bank described below are these roles made concrete.
Each layer first normalizes its input, , and a small controller reads off per-token gates—read-mix gates (a simplex weighting over the three pathways) and memory write gates . The three pathways then run in parallel.
Pathway 1 — local sensory buffer. The first pathway is ordinary multi-head self-attention restricted to a causal band of width w,
which costs only and captures short-range structure inside the current window, but carries nothing across windows—that is the job of the two persistent pathways that follow.
Pathway 2 — selective state space (slow dynamics). The second pathway is a diagonal, input-dependent SSM [8, 9] that carries a per-channel state (n latent states per channel) across segments. With input projection , per-token step size softplus( ) (write gate ; learned and bias ), input-dependent selection vectors , and diagonal decay (learned ),
Here is the elementwise (Hadamard) product, the outer product, contracts over the state dimensions, and is a learned per-channel skip. The read-out is a low-dimensional projection of the slow state ; it is exactly the signal we use as the instruction pointer below.
Pathway 3 — fast-weight associative memory (episodic). The third pathway is a delta-rule matrix memory (key and value dimensions ), also carried across segments, with -normalized keys and queries and a value (write gate ). At each step it writes the current prediction error into and reads content back by query through an output projection ,
Writing the error rather than the raw value makes recall content-addressable: a key that resembles a stored one retrieves its associated value.
Fusion. The three read-outs are blended by the controller's read gates and added back to the residual stream through a linear map ,
Because the state persists across segments, a window of only w tokens can carry dependencies far longer than w.
Programmable compute: the low-rank instruction bank. In place of a soft mixture of SwiGLU experts [1], both projections of the SwiGLU are synthesized per token from shared low-rank banks. Writing it for a generic projection W,
where is a shared base operator and are learned rank- “instructions,” selected by the per-token code . For the input map (the concatenated gate/up projection) the bank has and ; for the down map a second bank has and , both gated by the same code . Crucially, no token-specific weight is ever materialized: each programmed projection is a base map plus a low-rank correction,
i.e. project onto the bank, scale block by the code , and read out through . Splitting this -dimensional output into two halves , the hidden activation is then mapped out through the identically programmed . With initialized to zero the layer starts exactly at the shared base SwiGLU. The per-token cost of the programs is , so program capacity scales independently of the base FFN's compute—each added instruction is as expensive as a full MoE expert.
The instruction pointer: a manifold-conditioned code. The code is decoded from the token and a low-dimensional read-out of the carried SSM state (Eq. 4),
so a slow, low-dimensional latent trajectory ( ) selects which operator on the manifold executes at each token—the “fetch-decode-execute” loop, with the SSM state as program counter. The tanh keeps the synthesized operator on a bounded region of the affine manifold.
2.3 Memory carry and training
Sequences are processed as contiguous segments of length L with truncated backpropagation through time: the state is threaded across segments and detached every few segments; the Transformer runs the identical loop but is stateless (full attention within each segment). The selective–SSM and delta–rule memories use exact parallel forms (a log–depth associative scan and a chunkwise WY triangular solve), so a training step vectorizes on GPU without per–timestep loops.
3 Benchmarks and Setup
Joint neural codec (neural sequence generation and behavioral decoding). We use “codec” in the coder–decoder sense: from one shared hidden state the model must both encode/continue the population spike code and decode behavior. Concretely, each of three Neural Latents Benchmark [10] recordings—a standard testbed for latent–dynamics models of motor cortex [11]—is turned into a dual–objective problem: from the same hidden state the model must (a) autoregressively continue the binned population spikes and (b) decode behavior—hand or finger velocity—through a second linear head, minimizing . We use MC_RTT (DANDI 000129, M1, random-target reach; finger velocity, units), MC_Maze (DANDI 000128, M1/PMd, maze reaches; hand velocity, ), and Area2_Bump (DANDI 000127, somatosensory area 2; hand velocity, ). Spikes are binned at 50 ms, smoothed with a Gaussian kernel over 3 bins, and z-scored; the neural continuation is seeded with a 128-bin prefix. We report the behavioral-decoding on validation data, with a memoryless ridge decoder (short causal history) as a reference. Neural next-step RMSE stays close to the unit-variance noise floor ( ) and is matched across architectures throughout—single-trial spikes sit near that floor—so decode is the comparison metric.
Setup. For each codec and architecture we build a ladder at fixed depth (4 layers) and scale only width, targeting the same ~64–270K non-embedding parameter window for both architectures. Because VN–SST’s carried state and instruction bank add a fixed per-width overhead, matching this window puts the Transformer on wider blocks and VN–SST on narrower ones, so the two curves overlap on the parameter axis rather than occupying disjoint ranges; fixing depth additionally removes the shape confound that otherwise injects large non-monotonicities into the Transformer’s curve. The parameter-scaling figure (Section 4.1) is run at a limited-data budget
(~25% of the full training budget; ~2/14/7K bins for MC_RTT/MC_Maze/Area2, i.e. the smallest budget in Section 4.2), where models sit off the accuracy ceiling; the data– and context–scaling sweeps use the largest available training budget. All three neural sweeps report means over 3 seeds; the sequence–length sweep additionally holds the number of optimizer steps fixed across context lengths (epochs scaled with ) so that context length is not confounded with training budget. Both models use AdamW [12] with a cosine schedule [13] and warmup, gradient clipping, identical data budgets and seeds, and 50 training epochs. VN–SST uses window , SSM state size , memory dimensions , a manifold read–out dimension , and a bank of rank– instructions as fixed hyperparameters (default , , ). We do not match parameter counts; the scaling line reveals efficiency directly.
4 Results
We study VN–SST along the three axes a scaling analysis exposes—parameters, data, and training context—always against a modern Transformer under matched budgets. Throughout, the comparison metric is validation behavioral–decoding ; single–trial spike prediction sits near its noise floor for both architectures (Section 3), so it is the behavior read–out that separates the models.
4.1 Parameter scaling under limited data
Table 1 and Figure 1 summarize the parameter sweep at a limited–data budget (25% of the full training budget)—the scenario single–session recordings actually occupy, and the one in which architecture matters most. Two things stand out. First, the parameter ranges are aligned: because VN–SST’s carried state and instruction bank add a large fixed per–width overhead, matching the two architectures on raw parameters requires the Transformer to use wider blocks (widths 40–80) and VN–SST narrower ones (widths 24–48), so both curves cover the same 64–270K span rather than sitting on disjoint ranges. Second, away from the full–data ceiling the curves separate cleanly: replacing the dense FFN with the instruction bank helps most exactly where data is scarce. On MC_RTT peak decode is 0.351 vs. 0.207 (mean of 3 seeds)—VN–SST beats the Transformer by a wide margin while the memoryless linear decoder is not predictive ()—and it keeps a clear edge on the better–sampled Area2_Bump (0.696 vs. 0.632) and MC_Maze (0.716 vs. 0.655) codecs. Because the instruction bank synthesizes both SwiGLU projections per token, the gain is representational—a richer per-token operator (Section 2.2)—rather than a parameter effect, and unlike a dense FFN it comes with the measurable control channel of Section 4.4. Because each point is a 3–seed mean and the width dependence within a ladder is mild, the robust signal here is the separation between architectures rather than the exact curvature of either curve.
Table 1: Joint neural codec, parameter scaling with limited data: peak behavioral–decoding (mean of 3 seeds). “Linear” is a memoryless ridge decoder with short causal history.
| Benchmark | decode | Linear | Transformer | VN–SST |
|---|---|---|---|---|
| MC_RTT | finger vel. | -0.236 | 0.207 | 0.351 |
| MC_Maze | hand vel. | 0.549 | 0.655 | 0.716 |
| Area2_Bump | hand vel. | 0.561 | 0.632 | 0.696 |

(a) MC_RTT (finger vel.)

(b) MC_Maze (hand vel.)

(c) Area2_Bump (hand vel.)
Figure 1: Neural–codec parameter scaling with limited data. (a–c) Behavioral–decoding vs. non-embedding parameters on the MC_RTT, MC_Maze, and Area2_Bump codecs, respectively, for the Transformer (blue) and VN-SST (green, “instruction bank”), with a linear reference. The two ladders are aligned to the same window (Transformer on widths 40–80, VN-SST on 24–48), since VN-SST’s carried state and instruction bank add a fixed per-width overhead. Curves show the mean over 3 seeds. Away from the accuracy ceiling the architectures separate, with VN-SST leading on all three codecs; the margin is largest on the data-scarce MC_RTT codec in (a), where VN-SST reaches against 0.21 for the Transformer and the memoryless linear decoder is not predictive ().
4.2 Data scaling
We fix the model (the fixed-depth decoding model) and vary the amount of training data over four recording-bin budgets per codec.
Table 2: Data scaling at the fixed-depth decoding model (50 epochs, smoothed rates, mean of 3 seeds): decode at the smallest largest training budget (four recording-bin budgets per codec).
| Benchmark | data (n) | Transformer | VN-SST |
|---|---|---|---|
| MC_RTT | 2k → 8k bins | 0.192 → 0.522 | 0.295 → 0.607 |
| MC_Maze | 14k → 58k bins | 0.655 → 0.847 | 0.672 → 0.854 |
| Area2_Bump | 7k → 28k bins | 0.599 → 0.778 | 0.678 → 0.795 |
Across the four data budgets VN-SST is at least as accurate as the Transformer on all three codecs, and its advantage is largest where data is scarcest. At the smallest budget it is ahead on Area2_Bump (decode 0.68 vs. 0.60 at bins) and on MC_RTT (0.30 vs. 0.19 at bins); the gap then narrows as data grows, with the two models close at the full recording (MC_RTT 0.61 vs. 0.52; MC_Maze 0.85 vs. 0.85; Area2 0.79 vs. 0.78). A plausible reading is that the carried low-dimensional state supplies temporal context that partly substitutes for data, so the clearest gains appear under the tightest budgets and diminish as data grows.

(a) MC_RTT codec

(b) MC_Maze codec

(c) Area2_Bump codec
Figure 2: Data scaling at the fixed–depth ~150K decoding model (mean of 3 seeds). (a–c) Decode vs. training bins on the MC_RTT, MC_Maze, and Area2_Bump codecs, respectively, for the Transformer (blue) and VN–SST (green).
4.3 Sequence-length scaling
Holding the model and the full training set fixed, we varied only the truncated–BPTT segment length . Because the number of optimizer steps per epoch scales as T/L, a fixed–epoch sweep would confound context length with training budget: longer segments yield proportionally fewer updates. We therefore equalized the number of optimizer steps across conditions by scaling the epoch count with L, and we report the mean over 3 seeds.
Table 3: Sequence-length scaling at the fixed–depth ~150K decoding model and full data, at a matched training budget (epochs scaled with L so the number of optimizer steps is held constant across context lengths; mean of 3 seeds): best decode over and the L at which it peaks (each cell reads best ). On the scarce MC_RTT codec the two diverge—the Transformer’s decode gently declines as L grows ( ) while VN–SST’s rises ( ), converting longer context into accuracy through its carried state; on the data–rich codecs both plateau (VN–SST slightly higher and flatter, and it alone holds up at L=128).
| Benchmark | seq. len. (L) | Transformer | VN-SST |
|---|---|---|---|
| MC_RTT | 16 → 128 | 0.612 @ 16 | 0.680 @ 128 |
| MC_Maze | 16 → 128 | 0.879 @ 32 | 0.878 @ 16 |
| Area2_Bump | 16 → 128 | 0.766 @ 32 | 0.779 @ 64 |
The context axis mirrors the data axis: longer context matters most where data is the binding constraint, and it is where the two architectures behave most differently. Once the update budget is matched—removing the fixed–epoch confound that would otherwise exaggerate any trend—the scarce MC_RTT codec shows a clean crossover. The Transformer starts ahead at L=16 (0.61) but its decode drifts down as the window grows. This is expected for the task rather than a general context effect: instantaneous velocity is a short–horizon readout of the current population state, so with the update budget already matched a longer window carries little additional predictive signal. What it does add is a wider attention receptive field (more capacity to overfit) and, since a fixed recording yields T/L segments, fewer independent training sequences per epoch—both of which

(a) MC_RTT codec

(b) MC_Maze codec

(c) Area2_Bump codec
Figure 3: Sequence–length scaling at fixed model and full data, at a matched update budget (epochs scaled with L; mean of 3 seeds): decode vs. training context length ( -axis), on the MC_RTT (a), MC_Maze (b), and Area2_Bump (c) codecs. (a) On the scarce MC_RTT codec the two architectures cross over: the Transformer starts higher at but declines as the window grows ( ), whereas VN–SST rises ( ) and overtakes it—threading state across segments, it converts longer context into decoding accuracy while the Transformer’s wider receptive field does not help its short–horizon behavioral read–out. (b,c) On the data–rich MC_Maze and Area2_Bump codecs both are high and largely flat, with VN–SST slightly higher.
slightly hurt generalization for a plain Transformer, unlike language modeling, where the target genuinely depends on long-range context. VN–SST instead rises monotonically and overtakes it by . One reason is likely that its carried low-dimensional state integrates the extra context for the read-out without widening the local window. On the data-rich codecs both stay high and largely flat (MC_Maze , Area2 ; Table 3), but VN–SST is consistently slightly higher.
4.4 The program manifold and control bits
Unlike a dense FFN or an output–blending MoE, the instruction bank has an explicit capacity knob—the program–manifold dimension K. At a fixed model size (so per-token compute barely moves) we sweep and, for every run, both measure decode and collect the per-token codes on validation data to quantify how much of the program space the network actually uses. We report two summaries of the empirical code distribution: the spectral entropy of its covariance (“code bits,” bits of instruction variation) and the participation ratio (the effective number of instructions used). Table 4 and Figure 4 report the result.

(a) decode vs. (MC_RTT)

(b) control bits (MC_RTT)

(c) control bits (Area2)
Figure 4: Program–manifold sweep at fixed model size. (a) Decode is essentially flat and non-monotonic in the program count —capacity is not the bottleneck here. (b,c) The per-token instruction code compresses: given instructions the network uses only bits of code entropy and a participation ratio of , bending progressively below the ceiling—so the network uses only a few instructions, consistently across recordings.
Table 4: Control-bits diagnostic. Given a program bank of size at a fixed model size, we collect the per-token instruction codes on validation data and report the spectral entropy of their covariance (bits of code variation) and the participation ratio (effective number of instructions used), alongside the range of decode over . On every codec the model compresses a 32-instruction bank to bits / effective operators—well below the ceiling—while decode is essentially flat in : program capacity is a control/compression knob, not an accuracy lever.
| Benchmark | K | code bits | particip. ratio | decode (range) | |
|---|---|---|---|---|---|
| MC_RTT | 32 | 2.55 | 5.0 | 3.4 | 0.635–0.664 |
| MC_Maze | 32 | 2.89 | 5.0 | 5.1 | 0.864–0.872 |
| Area2_Bump | 32 | 3.20 | 5.0 | 6.5 | 0.779–0.787 |
In this study, two observations emerge, and they are the point of the architecture. (1) Program capacity is not an accuracy lever here. Decode is essentially flat and non-monotonic across (Fig. 4a): the small motor codes these recordings support are already captured by a handful of operators, so adding instructions neither helps nor hurts. (2) The network compresses to a small instruction set. Given a bank of , the empirical code uses only bits (MC_RTT), 3.20 (Area2), and 2.89 (MC_Maze)—against a ceiling of —with participation ratios of effective instructions (Table 4). The entropy curve bends below the ceiling as grows (Fig. 4b,c): the model does not spread across all available programs but concentrates on a few, and it does so consistently across three brain areas. This is the von-Neumann claim made numeric—the layer runs on bits of program per token—and it is a property only operator synthesis can report. An output-blending MoE has no addressable instruction whose entropy can be measured. It also suggests a design rule and an interpretability handle (which few operators specialize, and how they compose) that we leave to future work.
4.5 Additional modality check: language
Although this paper is about neural decoding, the instruction bank is a generic feed–forward mechanism, so it is worth asking whether it also helps on a very different sequence modality. We therefore additionally tested the same VN–SST (identical bank size K, rank r, and manifold read–out) against the Transformer on two sub–word (byte–level BPE) text corpora, tiny–Shakespeare and WikiText–2, over a fixed–depth, width–scaled ladder (two layers; 0.13–1.7M non–embedding parameters; mean of 3 seeds), matching the fixed–depth protocol used for the neural codecs. To see how the comparison moves with data, we run each corpus at two budgets: a small “1×” budget and a “3×” budget with three times as many training and validation tokens (tiny–Shakespeare 114K→342K, its full corpus; WikiText–2 440K→1.32M).
Table 5 and Figure 5 show that the instruction bank transfers, and that the effect is robust to data scale. At both budgets and on both corpora, VN–SST tracks below the Transformer across the ladder and has the steeper power–law slope, so it is more parameter–efficient throughout. Adding data helps both models—perplexity falls sharply from the to the budget (WikiText–2 top–of–ladder for the Transformer and for VN–SST; tiny–Shakespeare and )—but it does not erase the gap. At the largest budget VN–SST still attains the best perplexity on each corpus, 49.4 vs. 60.6 on tiny–Shakespeare and 45.1 vs. 52.1 on WikiText–2 (a reduction at the top of the ladder), and it reaches the Transformer’s best with roughly fewer parameters. The one nuance is how the lead moves with scale: on tiny–Shakespeare it widens with more data (VN–SST’s slope steepens to -0.33), whereas on WikiText–2 the slopes flatten as both models saturate and the margin narrows, though VN–SST stays ahead. We read this as evidence that per-token operator synthesis is a generic gain—a programmable operator plus the state and fast-weight pathways help wherever long–range structure must be integrated from a small window—rather than a quirk of the neural codecs. We keep the study framed around neural decoding, where the small–data, small–model regime makes the memory and program machinery most decisive, and treat language as a check on generality.
Table 5: Additional modality check—sub-word language modeling. Validation perplexity (best over a non-embedding parameter ladder at fixed two-layer depth with width scaled, mean of 3 seeds, at the largest data budget) and the fitted power-law slope vs. parameters, for the Transformer and VN-SST on byte-level BPE tiny-Shakespeare and WikiText-2. The instruction-bank model, unchanged from the neural experiments, is more parameter-efficient across the ladder on both corpora, attains the best perplexity on both, and has the steeper slope on both.
| Corpus | Transformer | VN-SST | ||
|---|---|---|---|---|
| best PPL | slope | best PPL | slope | |
| tiny-Shakespeare | 61 | -0.23 | 49 | -0.33 |
| WikiText-2 | 52 | -0.20 | 45 | -0.26 |

(a) tiny-Shakespeare, (114K tokens)

(b) WikiText-2, (440K tokens)

(c) tiny-Shakespeare, (342K tokens)

(d) WikiText-2, (1.32M tokens)
Figure 5: Additional modality check: language–model scaling at two data budgets. Validation perplexity vs. non–embedding parameters (log–log, with power–law fits) for the Transformer and VN–SST. Top row (a,b): the small “1×” budget; bottom row (c,d): the “3×” budget with three times as many tokens; tiny–Shakespeare in (a,c) and WikiText–2 in (b,d). The instruction–bank model—unchanged from the neural experiments—tracks below the Transformer across the ladder in every panel, has the steeper slope, and reaches the best perplexity. More data lowers both curves; VN–SST’s lead widens with data on tiny–Shakespeare and narrows on WikiText–2 (where both models saturate), but it stays ahead throughout.
5 Conclusion
We replaced a Transformer’s fixed feed–forward operator with a low–rank instruction bank—a shared base operator plus K rank–r instructions—from which a per-token, manifold-conditioned code synthesizes the operator that the layer actually executes. The code is read from a carried low-dimensional state, so a slow latent trajectory—the signal that organizes cortical population activity—acts as an instruction pointer. This makes the von–Neumann “programmable FFN” concrete: rather than blending the outputs of a few fixed experts, the layer constructs a token-specific operator on a low-dimensional weight manifold.
The mechanism earns its keep exactly where real neural recordings live—small data and small models. On three motor–cortex decoding codecs VN–SST matches or beats a modern Transformer along all three scaling axes: under a limited–data budget it leads by a wide margin on the scarcest codec, it is at least as accurate at every data budget on all three, and—uniquely—it turns a longer context window into rising rather than falling decode accuracy. And because the operator is addressed rather than blended, the control signal itself is measurable: the network compresses a 32–instruction bank to only 2.5–3.2 bits ( 3.4–6.5 effective operators) per token, while decode accuracy stays flat in K. Program capacity is therefore a control channel, not an accuracy lever.
More broadly, these results suggest that when data and models are scarce, the useful inductive bias is not simply more parameters but a programmable operator steered by low-dimensional dynamics—computation that, like the cortex it models, runs on a few well-chosen instructions. Two pieces are reusable beyond neural decoding: a parameter-efficient way to make feed-forward compute token-programmable, and a way to quantify how much program a trained model actually uses.
Code and data availability
Code to reproduce all experiments, figures, and tables—including the model implementations, training loop, and scaling sweeps—is available from the authors upon request, subject to internal review. The neural benchmarks are the public Neural Latents Benchmark [10] recordings on DANDI (dandisets 000127, 000128, and 000129); the text corpora are tiny-Shakespeare and WikiText-2, both publicly available.
Acknowledgments
We are grateful for our institution’s support of this study. We thank the Neural Latents Benchmark and DANDI teams for curating and publicly hosting the datasets used in this work. This work is intended for scholarly purposes.
References
[1] N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, and J. Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. International Conference on Learning Representations (ICLR), 2017. arXiv:1701.06538.
[2] J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei. Scaling laws for neural language models. arXiv:2001.08361, 2020.
[3] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. Advances in Neural Information Processing Systems (NeurIPS), 2017. arXiv:1706.03762.
[4] H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, A. Rodriguez, A. Joulin, E. Grave, and G. Lample. LLaMA: Open and efficient foundation language models. arXiv:2302.13971, 2023.
[5] B. Zhang and R. Sennrich. Root mean square layer normalization. Advances in Neural Information Processing Systems (NeurIPS), 2019. arXiv:1910.07467.
[6] J. Su, Y. Lu, S. Pan, B. Wen, and Y. Liu. RoFormer: Enhanced transformer with rotary position embedding. arXiv:2104.09864, 2021.
[7] N. Shazeer. GLU variants improve transformer. arXiv:2002.05202, 2020.
[8] A. Gu, K. Goel, and C. Ré. Efficiently modeling long sequences with structured state spaces. International Conference on Learning Representations (ICLR), 2022. arXiv:2111.00396.
[9] A. Gu and T. Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv:2312.00752, 2023.
[10] F. Pei, J. Ye, D. Zoltowski, A. Wu, R. H. Chowdhury, H. Sohn, J. E. O'Doherty, K. V. Shenoy, M. T. Kaufman, M. Churchland, M. Jazayeri, L. E. Miller, J. Pillow, I. M. Park, E. L. Dyer, and C. Pandarinath. Neural Latents Benchmark '21: Evaluating latent variable models of neural population activity. Advances in Neural Information Processing Systems (NeurIPS) Datasets and Benchmarks Track, 2021. arXiv:2109.04463.
[11] C. Pandarinath, D. J. O'Shea, J. Collins, R. Jozefowicz, S. D. Stavisky, J. C. Kao, E. M. Trautmann, M. T. Kaufman, S. I. Ryu, L. R. Hochberg, J. M. Henderson, K. V. Shenoy, L. F. Abbott, and D. Sussillo. Inferring single-trial neural population dynamics using sequential auto-encoders. Nature Methods, 15:805–815, 2018. doi:10.1038/s41592-018-0109-9.
[12] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. International Conference on Learning Representations (ICLR), 2019. arXiv:1711.05101.
[13] I. Loshchilov and F. Hutter. SGDR: Stochastic gradient descent with warm restarts. International Conference on Learning Representations (ICLR), 2017. arXiv:1608.03983.