← Mingquan Liu / PD-SWM
PD-SWMSNN world models · long-term memory

Spiking World Models with Persistent Dendritic Neurons

Mingquan Liu1,2Shuai Wang1Simo Wu2Wenjie Wei3Peng Zhou2Malu Zhang1Yang Yang1
1University of Electronic Science and Technology of China2LuxiTech3National University of Singapore
integrator branch
resonant branch
click the tree to send a burst of input
In one line

SNN world models struggle to recall cues from the distant past. PD-SWM keeps its memory in dendrites that persist across steps and reads it out as spikes at every step, so firing leaves the memory intact.

One minute with PD-SWM: naming a card from 32 cards ago, tracking an object after it leaves the view, imagining 45 frames from actions alone, and the dendritic channels that hold a cue for 101 steps. All panels are drawn from the evaluation data of the paper. 0:00 / 0:59
00Summary

What PD-SWM can do

101steps of memory

On BSuite memory length, PD-SWM succeeds at every length from 8 to 101 steps, the only model to do so. DreamerV3 stops at 51 steps under the same training budget.

72%correct, chance is 25%

On POPGym RepeatPrevious Medium, 72% of PD-SWM's answers name the card from 32 steps earlier. All other models, including the ANN world models DreamerV3 and R2I, stay close to chance.

45frames imagined

Predicting walker walk 45 frames ahead from the actions alone, PD-SWM has the lowest mean pixel error of all models, while its control returns stay close to those of DreamerV3.

9.0object error in Memory Maze

In a first-person 3D maze, PD-SWM locates objects that have left the view more accurately than the spiking baselines and DreamerV3.

Read the abstract

Spiking neural network (SNN) world models approach the control performance of artificial neural network (ANN) world models, but they struggle to recall cues from the distant past. Our analysis traces this to two core problems of existing spiking neurons. In the evolution of the state over time, distant inputs leave traces that are too weak, and the times at which inputs occurred are hard to tell apart. In the spike readout, resetting the state at firing overwrites the stored memory.

Inspired by the internal neural dynamics of biological dendrites, we propose PD-SWM, an SNN world model based on Persistent Dendritic Neurons (PDNs). Persistent Dendritic Memory (PDM) stores information in damped oscillating channels with diverse retention times and frequencies, and their phases mark when inputs occurred. A Normalized Write Gain (NWG) keeps distant traces strong enough to drive the readout. Stateless Somatic Readout (SSR) integrates the dendritic memory with the current input at every step and fires spikes without resetting the dendrites.

On BSuite, Memory Maze and other partially observable benchmarks, PD-SWM surpasses other SNN world models in long-term memory and ANN world models in decisions that depend on long histories, while keeping its control performance. These results show that suitable internal dynamics of spiking neurons give SNN world models long-term memory.

01Problem

Why SNN world models forget distant cues

A recurrent world model carries everything it knows from one step to the next through its sequence model. In an SNN world model the neurons of that sequence model pass only binary spikes to each other, so a cue survives only inside their internal state. Two properties of existing spiking neurons limit how long it survives.

Problem 1 · the state over time

Distant traces are weak and carry no time

To keep a cue for steps, a leaky neuron needs a time constant , which makes its write gain small. For any , the trace left after steps stays below . A real trace also has only a magnitude, so an early strong input and a recent weak input can leave the same trace.

Problem 2 · the spike readout

Firing overwrites the memory

The world model reads its state at every step, so the neurons that hold the cue must fire. A hard reset clears the stored trace at the first spike. A soft reset subtracts the threshold at every spike, so the membrane potential becomes the trace of the inputs minus the trace of the spikes, and the memory changes with every readout.

How much of a cue is left after steps?

interactive
Figure 1. The trace that a unit input leaves in a channel with retention . With a leaky write gain , a channel that remembers long is written weakly, and no choice of lifts the trace above . The normalized write gain of PD-SWM, , keeps about when .
02Method

Persistent Dendritic Neurons

In cortical pyramidal neurons, the apical dendrites persistently encode task rules inferred from past feedback, and the soma encodes the current sensory input. A PDN follows this division of labor: its dendrites store the memory, and its soma fires the spikes. PD-SWM keeps the recurrent world model of DreamerV3, builds all its networks from spiking neurons, and forms its sequence model from PDNs.

Diagram of a layer of persistent dendritic neurons over three steps, and the PD-SWM world model unrolled over three steps.
Figure 2. (a) A layer of Persistent Dendritic Neurons and its update over three environment steps. Every neuron receives the input spikes and its own spikes from the previous step. Integrator channels (blue) and resonant channels (vermilion) carry the dendritic state forward, and the soma reads it out as spikes. (b) PD-SWM unrolled over three steps. The state carries over to the next step, and the actor and critic also read an ON/OFF spike encoding of the dendritic state.
PDM

Persistent Dendritic Memory

Each dendritic channel is a damped oscillator. An input from steps back leaves the trace : its magnitude sets how long it is kept, and its phase marks how long ago it occurred. Channels at different frequencies together separate intervals that one frequency cannot. Firing never resets the dendrites.

NWG

Normalized Write Gain

Plateau potentials in dendrites last long and stay strong enough to make the soma fire. NWG gives every channel unit energy however long its retention, so a channel with keeps times the limit of a leaky write after steps. At inference the gain is a constant.

SSR

Stateless Somatic Readout

At every step the soma integrates the dendrites with the current input into and fires against rising thresholds. The soma has no state to reset, so the cue stays in the dendrites however often the neuron fires.

Write one cue into a neuron

interactive

Eight dendritic channels receive a single cue at step 0. Each row draws the real part of one channel, the clock shows the phase of the four resonant channels, and the bottom row shows the spikes of the soma. Switch a design off to see what it does.

Figure 3. A toy neuron with hand-picked retention times and periods. Without resonance, every channel decays the same way and the pattern no longer tells when the cue arrived. Without NWG, the channels that remember longest are written so weakly that their traces vanish. With a reset at firing, the first spike after the cue clears the dendrites.
Dendritic state left by a unit input k steps earlier for PDN, PDN without NWG, PDN without resonance and multiple time constants.
Figure 4. Inputs at different times leave independent traces in the dendrites of the trained agent. Column of each panel is the dendritic state left by a unit input steps earlier, with the learned and of the agent for BSuite memory length 101. For inputs 1 to 101 steps back, the effective rank is 71.0 with PDM, 38.3 without NWG and 3.4 without resonance.
03Results

Memory in decisions, prediction and control

The spiking models share one world model of the size of DreamerV3-S and differ only in the sequence model. DreamerV3 uses the same architecture with a GRU core and no spikes, and R2I is an ANN world model designed for memory tasks. Within a benchmark, all models use the same hyperparameters, training budget and evaluation.

How far back can each model recall a cue?

Figure 5. Final return on BSuite memory length, where the agent is rewarded only if it recalls a cue seen steps earlier. A return of 1 means always correct, and 0 is chance. Lines give the median of three seeds, and dots the single seeds; hover a dot or a name. Budgets are 150k to 500k environment steps for = 8 to 64, and = 51, 71 and 101 follow R2I with 1M steps.

Benchmark results

BSuite memory lengthRepeatPrevious ↑Memory Maze 9×9Walker walk ↑
Method816326451†71†101†EasyMediumObject MSE ↓Walls % ↑Proprio.Pixels

On BSuite, ✓ means that the evaluation return reaches 0.9 within the budget in at least two of three seeds (for R2I, in the median of its 10 runs), and – means not reported. † uses the lengths and budget of R2I. RepeatPrevious reports the mean return of the final agent over 512 episodes, and chance is −0.5. On Memory Maze, a constant predictor reaches an object MSE of 24.0 and a wall accuracy of 80.8%. Bold marks the best value per column.

Imagination without observations

observed frame 1 of 5
Each world model sees 5 frames, then predicts 45 frames from the actions alone.
Figure 6. Open-loop prediction on DMC walker walk from pixels. The frames show one segment of an evaluation episode, and the curves give the pixel MSE averaged over 8 segments. PD-SWM has the lowest mean error of all models, including the ANN world models DreamerV3 and R2I.

Spatial memory in first-person vision

Memory Maze first-person views, predicted object positions on the map, and squared error against steps since the object was last in view.
Figure 7. Memory Maze 9×9. Once a target object leaves the view, the world model has to locate it from the history it keeps. (a) First-person views. (b) The position of the ring that each model's state probe predicts 3, 10 and 15 steps after it was last seen. (c) Squared error against the steps since the object was last in view, over 100 evaluation trajectories. After an object leaves the view, the error of the spiking baselines rises within a few steps, and PD-SWM keeps the position longer than the spiking baselines and DreamerV3.

World model probes

Cue recallRepeatPrevious
MethodL=8163264k=43264*

AUC of reward predictions that depend on the past, for world models trained on data from a random policy; 0.5 means no memory. *Held out as a test. Only PD-SWM learns to repeat the card from exactly 32 and 64 steps earlier.

Ablations

Design keptCue recallRep.
PDM across stepsResonantNWGSSRL=3264k=32

Clearing the dendrites at every step removes all history. Without resonance the time of an input is lost, and without NWG or SSR the 64-step cue fails.

Where the cue is kept

Difference between two episodes that differ only in the cue, for spikes and dendrites, and per-channel differences of long-retention channels.
Figure 8. The world models of the BSuite memory length 101 agents read two episodes that differ only in the cue. (a) Difference in spikes and dendritic states between the two episodes, relative to their mean magnitude. The spikes of multicompartment neurons stop telling the episodes apart after about 10 steps, while the dendrites of PD-SWM keep the difference until step 101 and pass it on to the spikes of the soma. (b) Difference in each dendritic channel with a retention time above 100 steps: integrator channels hold the cue with a fixed sign, and the phase of resonant channels turns with the elapsed time.
04Cite

BibTeX

@misc{liu2026pdswm,
  title  = {Spiking World Models with Persistent Dendritic Neurons},
  author = {Liu, Mingquan and Wang, Shuai and Wu, Simo and Wei, Wenjie and
            Zhou, Peng and Zhang, Malu and Yang, Yang},
  year   = {2026},
  url    = {https://wxqnl.github.io/pdswm/}
}