Elamur Research

Phased LSTM: Accelerating Recurrent Network Training for Long or Event-based Sequences

Paper · 2016 · Daniel Neil, Michael Pfeiffer and Shih‐Chii Liu

Summary

A recurrent network processes a sequence by carrying information from earlier inputs into later decisions. But the number of inputs is not always a useful measure of elapsed time. A camera, an audio stream, and an event sensor can produce observations at different rates, with uneven gaps between them. Updating the entire network whenever anything arrives can waste computation and repeatedly disturb information that should remain in memory. Phased LSTM addresses this problem by adding a gate that depends explicitly on time. Each memory unit follows its own repeating schedule, accepting substantial changes during a short open interval and retaining its previous state through the rest of the cycle.

The proposal extends long short-term memory, or LSTM, instead of replacing its existing memory mechanism. An LSTM already uses learned gates to control incoming information, retention, and output. Phased LSTM adds a separate timing decision: when should those ordinary updates take effect? Its time gate has a period, an open fraction, and a phase offset. These parameters determine how frequently a unit opens, how long it remains open, and where its opening falls relative to other units. The gate is evaluated from the observation’s timestamp, so observations can arrive irregularly without first being forced onto an evenly spaced sequence.

The experiments examine both timing and memory. Synthetic frequency-discrimination tasks test whether a network can recognize temporal patterns when observations become more frequent or arrive asynchronously. An addition task tests whether it can preserve selected values across a long stream without relying on periodic input. N-MNIST supplies real event-camera recordings, while an audiovisual task combines video and audio with different sampling intervals. Across these settings, the authors report quicker convergence than ordinary LSTM and batch-normalized LSTM, frequently alongside better accuracy. The results therefore connect efficient sequence processing with an explicit representation of time, rather than treating sparse updates solely as a way to save computation.

The computational result is clearest in the N-MNIST experiment. The reported average is 159 updates per Phased LSTM neuron, compared with 3153 for its batch-normalized counterpart. These are counts of recurrent updates, so they support a claim about computational work instead of establishing a universal speedup on every implementation. The sensor-fusion experiment also shows that timing gates can be aligned manually with the arrival of each input stream, allowing the network to avoid treating absent observations as zeros or interpolated measurements. On the most challenging evaluation condition, which uses video alone, the reported peak accuracy is 81.15%.

The central lesson is that receiving another observation need not require rewriting every memory. A time-dependent schedule can protect stored information, shorten the sequence of changes through which training signals must pass, and let different units operate over different temporal ranges. The evidence supports that combination on the tasks studied. It does not establish that rhythmic schedules are always appropriate, that every event can safely be ignored by a particular unit, or that fewer updates automatically deliver the same reduction in elapsed runtime. Phased LSTM is best understood as a concrete architecture for making recurrent computation selective in time, with experiments that expose both its timing advantages and its longer-memory behavior.

Interesting ideas

Separate arrival from revision. An observation’s arrival and a memory’s revision are different decisions. Phased LSTM makes that separation explicit: a timestamp determines whether a proposed change should substantially affect a unit. This is useful wherever input streams are more frequent than the meaningful changes an application needs to remember. An engineer can borrow the distinction even without adopting the entire architecture, asking which internal states must react immediately and which can remain stable until a later update opportunity. The benefit comes from avoiding unnecessary intervention in already useful information.

Represent time through behavior. The comparison networks receive timestamps as ordinary input features, while Phased LSTM uses timestamps to control its operation. That difference matters because a numerical time value does not itself enforce any particular treatment of elapsed time. A gate provides such a mechanism directly. The transferable idea is to let timing influence when computation happens, rather than asking a network to infer every timing rule from an additional feature. This can guide designs for irregular measurements, sensor fusion, or other streams where event order and elapsed time convey different information.

Preserve state while skipping work. The closed gate carries the previous memory and hidden output forward. Its purpose is therefore broader than suppressing a calculation: it protects a representation from repeated modification. This suggests a useful criterion for selective computation elsewhere. A skipped operation should have a clear semantic effect, such as retaining a valid state, rather than merely omitting an arbitrary part of a pipeline. In a stateful system, defining what survives an inactive interval is as important as defining what gets computed during an active one.

Vary temporal scales across units. Phased LSTM gives different units different periods and phase offsets. The addition experiment further varies the range from which periods are initialized, showing that their temporal arrangement affects learning even when overall update sparsity stays approximately similar. A reusable design principle follows: distributing work across time is not equivalent to reducing its total amount. Systems that maintain both short-lived and persistent information may benefit from assigning different update schedules to different components, provided the schedules are tested against the information those components must retain.

Use a small training leak. The proposed gate includes a weak closed-phase contribution during training, allowing gradients to influence timing parameters when a unit is mostly inactive. Testing typically removes that contribution. The broader idea is to distinguish a mechanism that helps optimization from the sharper behavior desired during operation. Such a distinction can make a selective architecture easier to train, but it also creates an evaluation obligation: the system should be assessed under the actual inference rule, not only under the more permissive training rule.

Perturb the observation process. The experiments change sampling density and regularity, instead of testing only on a fixed representation of each signal. This reveals whether a network has learned a temporal relationship or has become dependent on a particular observation schedule. The same experimental habit applies wherever data collection can vary: keep the underlying task recognizable while changing how often evidence arrives. The resulting comparison can expose dependencies hidden by a conventional test split, especially when the training representation quietly couples elapsed time to sequence length.

Align schedules when the source is known. In the audiovisual experiment, the input-layer timing parameters are fixed to match the corresponding sensors, while the merged layers learn their schedules. This combines an engineering constraint with learned temporal processing. The idea is useful when some timing structure is trustworthy before training begins. There is little reason to make a system rediscover an established acquisition schedule if that schedule can be represented directly; learning can instead focus on how information from those sources should be combined.

Deep dive: Phased LSTM: Accelerating Recurrent Network Training for Long or Event-based Sequences

Phased LSTM uses a learned time gate to handle irregular events, preserve long memories, and reduce recurrent updates during sequence processing. · about 34 minutes to read

How Mova uses it

For Mova, the small transparent language system implemented in Rust, the application of Phased LSTM is a design proposal rather than an established feature. The paper does not examine Mova or test a language-system implementation of its gate. Its most relevant contribution is a way to separate persistent state from the schedule on which that state is reconsidered. That separation could be useful to a transparent system because both the stored information and the conditions for revising it can be made explicit.

A direct experimental implementation could represent each temporal component with a period, an open fraction, and a phase offset. Given an incoming timestamp, it would calculate the component’s phase and gate value before deciding how strongly to apply a proposed update. The previous state would remain available when the component was inactive. This would reproduce the paper’s central distinction between proposing a change and committing that change. It would not, by itself, reproduce the reported learning behavior, which also depends on the surrounding recurrent architecture and training procedure.

Transparency would require exposing the timing decision alongside the resulting state. A useful inspection record could show the observation time, the component’s schedule, whether its gate was open, and whether the state changed. Such records would make a skipped update explainable: the component retained its earlier value because its timing rule limited revision at that moment. This is a possible engineering use of the mechanism, not an interpretability result demonstrated by the authors. A visible gate explains the scheduling decision; it does not automatically explain the meaning or correctness of the stored representation.

The strongest fit would be a Mova extension that receives timestamped information from several sources. For example, an experimental interface could combine language input with another stream whose observations arrive on a different schedule. The paper’s audiovisual design suggests processing each source according to its own acquisition timing, then passing their states to a shared integration stage. The specific lesson is to distinguish an unavailable observation from a measured value. Carrying forward a source’s existing state can be more faithful to its acquisition process than presenting an artificial replacement as though it were fresh evidence.

Ordinary text introduces a different issue. A position in a sequence of words is not automatically a physical timestamp, and the paper does not establish a preferred temporal interpretation for language processing. Assigning a schedule over text positions would therefore be a separate hypothesis. It might be investigated as a way to preserve some information across many intervening items, but the frequency-discrimination and sensor experiments cannot establish that it would improve linguistic analysis. Mova would need a task-specific reason for selective updates and an evaluation that checks what information those updates overlook.

A cautious experiment could begin with a small, inspectable state mechanism instead of a claim about a complete language architecture. Its evaluation could compare ordinary revision at every input with scheduled revision, then examine whether important state changes are delayed or missed. The addition task offers a relevant warning: useful evidence can occur anywhere, including outside a particular unit’s open interval. Any Mova application would need to establish how the system as a whole preserves such evidence, rather than assuming that a sparse schedule is harmless.

The paper also suggests a reporting discipline for such work. Mova could count committed updates separately from total processing time and memory use. A reduction in state changes would be meaningful evidence about the mechanism, but it would remain distinct from a measured improvement in runtime. This distinction is especially valuable for a small transparent system, where a proposed efficiency benefit should be traceable to operations actually avoided. Until such an implementation and evaluation exist, Phased LSTM supplies an architectural option and a set of useful tests, rather than a verified improvement to Mova.

The problem and its context

Observation order does not fully describe time

A recurrent network maintains a state that changes as it consumes a sequence. This gives it a way to use earlier observations when interpreting later ones. The paper situates this capability in applications including speech processing, natural language processing, and structured prediction with attention. Its starting point is that successful recurrent systems commonly operate as discrete-time processes: each step brings an input and an associated state update.

That arrangement is convenient when the observation schedule is regular. Advancing by a sequence position then corresponds to advancing through a consistent interval in the source. But the correspondence breaks when measurements arrive at different rates or with unequal gaps. Several closely spaced observations and several widely separated observations may produce the same number of recurrent transitions, even though their temporal implications differ.

The authors are concerned with both precision and efficiency. Precision matters when the timing of a change helps identify what happened. Efficiency matters when a common processing interval forces components to operate more frequently than their information requires. The problem is therefore not simply that a network lacks a timestamp input. It is that the network’s own update schedule may impose an unsuitable representation of the observation process.

Consider the multisensor setting described in the paper. A robot or autonomous vehicle can receive visual measurements, sound, distance information, and gyroscope readings. These sources need not share a sampling rate. Choosing a small common interval accommodates a fast source, but it can also require repeated processing of sources whose observations have not changed. The network’s computational rhythm then follows the most demanding source instead of the information needs of every component.

An alternative based only on updating whenever any event occurs has a related difficulty. It avoids a rigid grid, but it can still make every memory react to every event. A busy source may generate many opportunities to alter state, including state that should retain information over a much longer interval. Phased LSTM adds selectivity within the recurrent system itself.

Why event sensors sharpen the problem

Event-based vision is a particularly clear example because its observations are generated by changes. The sensor in the N-MNIST experiment emits an event when a pixel’s local contrast change crosses a threshold. Its output is consequently a stream of timestamped events, instead of a sequence of conventional image frames.

The paper describes these sensors as offering short delays and precise temporal information. Forcing their output into a time-stepped pipeline can require a high update frequency to preserve those properties. That processing choice can undermine the computational advantage expected from a sparse event stream. Alternatively, accumulating events into frames simplifies processing but changes the representation by combining observations over an interval.

The authors connect this issue to earlier event-processing work that sometimes used event rates to construct images. In that representation, a pixel’s value summarizes activity during a chosen period. The temporal order within the period is no longer available in the same form. Phased LSTM instead takes the event stream directly, retaining timestamps as part of the processing mechanism.

This does not make frame accumulation universally inappropriate. The paper’s point is that it introduces a consequential choice before learning begins. If the task depends on the shape of activity through time, collapsing that activity can remove a useful distinction. The experiments ask whether a recurrent architecture can work more naturally with the original observation schedule.

What earlier recurrent architectures supplied

LSTM already addresses a major difficulty in recurrent learning: maintaining useful information while processing intervening inputs. Its input, forget, and output gates regulate different aspects of state. The paper also identifies gated recurrent units as part of the development that made recurrent training more manageable.

Phased LSTM retains the LSTM gates. It does not argue that timing should replace decisions about content. Instead, it gives the memory another form of protection. The ordinary gates decide what an update would do; the added time gate determines how much of that update is permitted at the current timestamp.

The authors acknowledge earlier continuous-time recurrent approaches, citing work on learning trajectories, approximating dynamical systems, and analog recurrent computation. They therefore do not present irregular time as an entirely unrecognized problem. Their claim is that most contemporary implementations still rely on fixed steps, leaving a practical gap between the timing of real observations and the timing of recurrent computation.

Clockwork RNN is also mentioned as an earlier sparse recurrent approach. The distinction emphasized here is that Phased LSTM can evaluate its schedule at irregular observation times. The paper does not supply a detailed experimental comparison with Clockwork RNN, so its mention establishes architectural context rather than an empirical ranking.

Timing as a memory issue

The timing problem also appears in sequences without physical sensors. A memory can be weakened by repeated updates even when those updates contain little relevant information. If a forget gate retains almost all of the previous state but falls slightly short of complete retention, applying that operation repeatedly compounds the loss.

Phased LSTM reduces the opportunities for that change. During an exactly closed interval, the prior state is carried forward unchanged. This creates a connection between sparse computation and long-memory learning: skipping a state revision also removes an updating transition from the route through which earlier information must survive.

The addition task is important because it tests this connection without a rhythmic target signal. A periodic architecture might seem naturally suited to recognizing frequencies, but that would not establish a general memory advantage. Asking it to retain marked values in a long, irregularly informative sequence probes whether scheduled inactivity helps beyond matching periodic input.

The broader context includes inspiration from biological rhythms. The authors refer to work connecting rhythms with synchronization and plasticity, and they describe brains loosely as large recurrent systems communicating through spikes. They explicitly stop short of calling Phased LSTM biologically plausible. The biological connection motivates a scheduling idea; the experimental case rests on artificial sequence-learning tasks.

The method, step by step

The architecture can be understood as an ordinary LSTM update followed by a time-dependent decision about how strongly to apply it. Every observation supplies content and a timestamp. The content contributes to candidate memory and output values. The timestamp determines a gate value for each unit. That value then blends the candidates with the states retained from the previous observation.

From a timestamped observation to retained state

The steps in order.

From a timestamped observation to retained stateStep 1: Receive an observation and its timestamp1. Receive an observation and its timestampStep 2: Locate each unit within its cycle2. Locate each unit within its cycleStep 3: Calculate the time gate3. Calculate the time gateStep 4: Form candidate memory and output4. Form candidate memory and outputStep 5: Blend candidates with previous states5. Blend candidates with previous statesStep 6: Pass retained outputs to later computation6. Pass retained outputs to later computation

Start with the ordinary memory gates

Let the input at time t be xₜ, the hidden output be hₜ, and the internal memory be cₜ. The hidden output is the representation exposed to subsequent computation; the cell state is the memory that the gating mechanism maintains internally. The subscript t identifies a time in the initial presentation of the equations.

The input gate is calculated as follows:

iₜ = σᵢ(xₜ Wₓᵢ + hₜ₋₁ Wₕᵢ + w꜀ᵢ ⊙ cₜ₋₁ + bᵢ)

Here iₜ is the input-gate vector. The function σᵢ is a sigmoid, which produces gate values controlling the admission of new information. Wₓᵢ transforms the current input xₜ, while Wₕᵢ transforms the preceding hidden output hₜ₋₁. The vector w꜀ᵢ weights a connection from the previous cell state cₜ₋₁, and bᵢ is a bias. The symbol ⊙ means elementwise multiplication.

The forget gate uses a parallel calculation:

fₜ = σ_f(xₜ Wₓf + hₜ₋₁ Wₕf + w꜀f ⊙ cₜ₋₁ + b_f)

The vector fₜ determines how much of each previous memory component remains. The sigmoid σ_f, input weights Wₓf, recurrent weights Wₕf, cell-state weights w꜀f, and bias b_f belong to this gate. The current input, previous hidden output, and previous memory therefore influence retention as well as admission.

The ordinary cell-state update combines retained information with proposed new content:

cₜ = fₜ ⊙ cₜ₋₁ + iₜ ⊙ σ_c(xₜ Wₓc + hₜ₋₁ Wₕc + b_c)

The first term keeps the portion of cₜ₋₁ selected by fₜ. The second term contributes new content, scaled by iₜ. The function σ_c is a hyperbolic tangent, Wₓc and Wₕc are the input and recurrent transformations used to form that content, and b_c is its bias. Both terms are vectors, so different memory components can retain or accept different amounts.

The output gate determines how the updated memory contributes to the visible hidden representation:

oₜ = σₒ(xₜ Wₓₒ + hₜ₋₁ Wₕₒ + w꜀ₒ ⊙ cₜ + bₒ)

The vector oₜ is the output gate, and σₒ is its sigmoid. Wₓₒ and Wₕₒ transform input and previous output, w꜀ₒ weights the current cell state, and bₒ is the gate bias. Unlike the corresponding terms in the earlier gates, this cell-state contribution uses cₜ after its update.

The hidden output then follows:

hₜ = oₜ ⊙ σₕ(cₜ)

The function σₕ is another hyperbolic tangent. Applying it to cₜ produces a transformed memory representation, which oₜ scales element by element to obtain hₜ.

The cell-state connections represented by w꜀ᵢ, w꜀f, and w꜀ₒ are optional peephole connections. They allow gate decisions to depend directly on memory values. Their presence is part of the LSTM formulation the authors use to introduce the extension; the new contribution is the additional timing gate.

Give each unit its own repeating schedule

A Phased LSTM unit has a period τ, an open fraction r_on, and a phase offset s. The period is measured in the time coordinate supplied with the observations. The open fraction specifies how much of each period permits substantial updating. The offset moves that interval relative to the timestamp origin.

The position within the cycle is:

φₜ = ((t − s) mod τ) / τ

The variable φₜ is the normalized phase at timestamp t. Subtracting s shifts the schedule. Taking the remainder modulo τ locates the timestamp inside the repeating period. Dividing by τ expresses that position relative to the period’s full length.

This calculation depends on the timestamp itself, rather than on how many observations preceded it. If the next observation arrives after an unusual gap, the phase can still be evaluated directly. There is no requirement to advance through every intervening point on a fixed grid merely to discover where the unit’s schedule now lies.

Different units can have different τ and s values. They can therefore open at different frequencies and different positions within their cycles. In a multilayer network, the timestamp is supplied throughout the architecture, so each layer evaluates its own units at the same observation time.

Turn cycle position into openness

The proposed time gate is a piecewise-linear function:

kₜ = {
  2φₜ / r_on,          if φₜ < r_on / 2
  2 − 2φₜ / r_on,      if r_on / 2 < φₜ < r_on
  αφₜ,                 otherwise
}

The value kₜ controls the strength of the permitted update. During the initial open portion, it rises towards full openness. During the remaining open portion, it falls again. The parameter r_on sets the extent of those portions within the normalized cycle. The parameter α sets a small leak outside them.

This triangular shape makes openness gradual. An observation near the middle of the open interval has a stronger effect than one near its edges. The paper favors linear slopes because they allow useful error gradients to reach the timing parameters. It compares the training leak with the role of a leaky rectifier: an otherwise inactive region still supplies a route for learning.

The word “closed” needs a qualification during training. With a non-zero α, the gate can admit a weak contribution outside the main open interval. Exact state retention applies when kₜ is actually zero. The default testing procedure sets α to zero, making the distinction between an open interval and an inactive interval sharper than during training.

Distinguish observation indices from timestamps

Irregularly sampled data require notation that separates an observation’s position in the stream from its physical time. The paper uses tⱼ for the timestamp of observation j. It then writes cⱼ for the memory at that timestamp, with cⱼ₋₁ denoting the memory retained from the previous observation.

This distinction prevents a misleading interpretation of the recurrence. Moving from j−1 to j means receiving the next observation; it does not imply that a fixed duration has passed. The gate kⱼ is evaluated using tⱼ, so the timing information survives even when neighboring observations have unequal gaps.

The ordinary LSTM machinery first produces a candidate memory:

c̃ⱼ = fⱼ ⊙ cⱼ₋₁ + iⱼ ⊙ σ_c(xⱼ Wₓc + hⱼ₋₁ Wₕc + b_c)

The tilde identifies a proposed value rather than the memory that is necessarily committed. The input xⱼ belongs to observation j, while hⱼ₋₁ and cⱼ₋₁ come from the preceding observation. The gates fⱼ and iⱼ regulate retention and new content as before.

The time gate then determines the stored memory:

cⱼ = kⱼ ⊙ c̃ⱼ + (1 − kⱼ) ⊙ cⱼ₋₁

Here cⱼ is the committed memory, c̃ⱼ is the candidate, and kⱼ is the time-gate vector. A larger gate value favors the candidate; a smaller value favors the previous memory. When the gate is zero, the expression carries cⱼ₋₁ forward unchanged.

The candidate hidden output is calculated from the candidate memory:

h̃ⱼ = oⱼ ⊙ σₕ(c̃ⱼ)

The vector h̃ⱼ is the proposed hidden output, oⱼ is the ordinary output gate, and σₕ transforms the proposed cell state. Keeping the tilde is important: this value has not yet passed through the timing decision.

The visible hidden state receives its own blend:

hⱼ = kⱼ ⊙ h̃ⱼ + (1 − kⱼ) ⊙ hⱼ₋₁

The vector hⱼ is the hidden output retained at observation j. The same time gate mixes the candidate h̃ⱼ with the earlier output hⱼ₋₁. Thus inactivity protects both the internal cell state and the representation passed onward.

This second blend is a substantial part of the design. Freezing only the cell state would not express the same rule for the unit’s exposed output. Phased LSTM makes the unit’s temporal behavior consistent across both forms of state.

Understand the memory argument

The paper illustrates retention with a simplified case. No new content is admitted, and the forget gate remains slightly below complete retention. Repeated application gives:

cₙ = (1 − ε)ⁿ ⊙ c₀

The initial memory is c₀, the memory after n updates is cₙ, and ε is the shortfall of the forget gate from complete retention. The exponent n expresses repeated multiplication across updates. The argument concerns accumulated change: a small loss at each revision can become consequential across a long sequence.

A perfectly inactive interval behaves differently:

cⱼ = cⱼ₋Δ  when kₜ = 0 throughout tⱼ₋Δ ≤ t ≤ tⱼ

The symbol Δ denotes the span back to an earlier observation index. If the gate remains zero over the corresponding time interval, the current memory equals the earlier memory. The equality describes exact preservation under that condition; it does not imply that all closed-phase training behavior is exact when a leak is present.

The duration of the main open interval is:

open duration = r_on · τ

Here r_on is the open fraction and τ is the full cycle duration. Their product specifies how much continuous time is allocated to substantial updating within a cycle. The actual observations falling inside that interval still depend on the sampling process.

The resulting learning argument is that a protected interval also gives the backward training signal fewer updating transitions to traverse. The authors describe this as a route across earlier timesteps. The idea is not that elapsed time disappears, but that the state remains unchanged across part of it. Both memory and its associated gradient avoid some repeated transformations.

Train timing parameters with the recurrent network

All experiments use Adam with its default learning-rate settings, implemented through Theano and Lasagne. The general training setup uses α=0.001 during learning and α=0 during testing, unless a task specifies otherwise. This is the operational distinction between allowing a weak training signal through inactive regions and obtaining exact inactivity at evaluation.

Each unit’s phase offset s is initialized uniformly over [0, τ]. The period τ and offset s are then learned. The open fraction is typically fixed at 0.05. The initial frequency-discrimination task is the exception: it allows the open fraction to be learned as well, demonstrating that the full timing parameterization can be optimized.

Period initialization depends on the experiment. The synthetic frequency task samples periods in exponential space, giving the network a range of candidate temporal scales. The addition task deliberately changes those ranges to study their effect on learning. The audiovisual experiment instead fixes the input-stream schedules to known acquisition times and learns the schedules of the merged layers.

These are different uses of the same mechanism. A learned schedule asks optimization to discover useful update timing. A manually aligned schedule expresses known source timing directly. The paper demonstrates both, so Phased LSTM should not be reduced to the claim that every temporal parameter must always be learned.

Experiments and results

The evaluation combines controlled synthetic tasks with sensor recordings. This matters because the proposed gate has several possible benefits: recognizing temporal patterns, tolerating irregular observations, retaining information, and avoiding updates. No single experiment establishes all of those properties. The paper instead varies the setting so that each benefit faces a different kind of test.

The main recurrent comparisons are ordinary LSTM and batch-normalized LSTM, abbreviated BN-LSTM. Where the architecture uses timestamps, the comparison networks receive them as an additional input feature. Phased LSTM uses them to calculate its gates. This makes the central comparison about the role of timing in the architecture, rather than simply about whether timing information is available.

Frequency discrimination under changing sampling

The initial synthetic task separates sine waves according to their periods. Positive examples draw a period from the uniform interval (5,6). Negative examples draw from the union of (1,5) and (6,100). A uniform distribution gives values throughout its stated interval without favoring a particular position.

Each observation pairs waveform amplitude with its timestamp. Random phase shifts prevent the network from solving the task through a fixed alignment of the wave. Sample counts and durations vary according to the specified uniform range (15, 125), and the start time is drawn from (0, 125 − duration). The classes are approximately balanced, with a reported chance accuracy of 50%.

The standard observation schedule samples every 1 ms. A high-resolution condition samples every 0.1 ms. An asynchronous condition uses irregular intervals described in the figure caption as ranging from 0.02 ms to 10 ms. The asynchronous and standard conditions contain equal numbers of observations, which helps separate irregular timing from sequence length.

The recurrent layer contains 110 units. The ordinary and batch-normalized architectures are written as 2-110-2 because amplitude and timestamp both enter as features. The Phased LSTM architecture is 1-110-2 because amplitude is the content input and time controls the gate separately. The period initialization follows exp(𝒰(0, 3)). Each configuration is repeated with 5 random seeds.

Under standard sampling, all the networks perform well. Under the denser schedule, ordinary LSTM and BN-LSTM fall close to chance within the training budget used, whereas Phased LSTM benefits from the additional waveform observations. The authors suggest that further training could allow the comparison networks to recover. Their result therefore establishes a difference in convergence under the tested schedule, instead of a permanent inability to solve densely sampled signals.

Irregular sampling also causes difficulty for the comparison networks, despite controlling the number of observations. Phased LSTM maintains its performance. This is the most direct evidence that evaluating a gate from real timestamps can help beyond merely reducing the number of sequence elements.

The paper further tests superimposed sine waves. The target combines periods from (5,6) and (13,15), with independent phase shifts. The contrasting class uses the corresponding outside ranges: (1,5) or (6,100) for one component, and (1,13) or (15,100) for the other. Using the same recurrent configurations, Phased LSTM converges more quickly and exhibits less variation across runs.

The frequency results are presented through accuracy curves and graphical comparisons. They support the reported ordering and convergence behavior, but the prose does not specify exact final accuracy values for these conditions. The scientifically useful conclusion is consequently qualitative at that level: the gate improves robustness to the tested observation schedules and learns the more complex frequency distinction faster.

Addition across a long sequence

The addition task removes the helpful possibility that a periodic gate merely matches a periodic target. Inputs are random values from (−0.5, 0.5), presented in sequences whose lengths range from 490 to 510. An accompanying indicator identifies which values contribute to the required sum.

The task marks a value from the first 10% of the sequence and another from its last half. All other values are distractors. The network must preserve relevant information while consuming a long stream containing mostly irrelevant content, then produce the sum at the end.

The experiment retains the earlier recurrent architecture and compares period initializations from exp(𝒰(0, 2)), exp(𝒰(2, 4)), exp(𝒰(4, 6)), and exp(𝒰(6, 8)). The reported metric is mean-squared error. The illustrated training comparison uses an input length of 500.

Longer periods improve convergence. The authors emphasize that the total number of updates remains approximately similar because the open fraction controls overall sparsity. The difference concerns how those updates are arranged in time. Longer inactive spans allow the memory and its training signal to cross more intervening observations without revision.

This experiment supports a memory interpretation of the architecture. It also provides a useful constraint on that interpretation: any position can contain marked information, so the task is not designed to place relevant values neatly inside a particular unit’s opening. The empirical success belongs to the trained network as a whole; it is not proof that every unit observes every important input.

Event-camera digit recognition

N-MNIST contains recordings made while an event-based vision sensor moves in saccades relative to a static digit. Each event includes a pixel location, a polarity indicating the direction of contrast change, and a timestamp. The recordings retain the temporal structure generated by the sensor’s motion.

The recurrent networks process these events directly. A learned embedding converts the pixel address into a 40-dimensional representation, which is combined with polarity. This yields an input architecture of 41-110-10 for Phased LSTM. BN-LSTM uses 42-110-10 because it receives the timestamp as another ordinary feature.

A convolutional network provides a frame-based comparison. It processes accumulated event representations through convolution and pooling, followed by a fully connected stage and the digit outputs. Ordinary LSTM is omitted from the reported N-MNIST comparison because the authors found its performance worse than the alternatives.

Phased LSTM learns faster and reaches stronger accuracy with less variation early in training, including within the initial epoch. The paper also reports a slight performance advantage over BN-LSTM under the main event-sampling condition. Its claim of a new best accuracy for N-MNIST belongs to the comparisons available in that study; it should not be read as a statement about an unspecified later benchmark landscape.

The event-retention probability is denoted by ρ. Training uses ρ=0.75. Evaluation additionally uses ρ=0.4 and ρ=1.0 without retraining, testing whether the systems tolerate fewer or more events than in the training representation.

Both recurrent approaches remain effective under these changes and substantially outperform the frame-based convolutional comparison. The authors attribute the latter’s difficulty to the changed accumulated event statistics. They interpret the recurrent behavior as evidence that the networks learned a relatively stable temporal-spatial structure, instead of depending tightly on a particular event count.

The computational comparison has explicit reported values:

N-MNIST recurrent updates per neuron

Phased LSTM requires fewer recurrent updates than BN-LSTM.

N-MNIST recurrent updates per neuronBN-LSTM: 3153BN-LSTM3153Phased LSTM (this paper): 159Phased LSTM (this paper)159
The numbers
System or settingupdates per neuron
BN-LSTM3153
Phased LSTM (this paper)159

These update counts support the paper’s approximate twenty-fold computational claim for this experiment. They do not include a direct measurement of every operation in the complete system. Embedding lookup, output processing, scheduling, and the efficiency with which inactive work is skipped remain relevant to an implementation’s elapsed runtime.

Combining audio and video

The final experiment uses GRID, an audiovisual corpus with 30 speakers, each producing 1000 sentences. The sentences follow a constrained grammar and use a vocabulary of 51 words. The authors randomly divide the data into a 90%/10% training-test split.

Face detection is performed with OpenCV. Each extracted face image is first converted to grayscale, then resized so that it measures 48×48 pixels. Audio is represented by 39-dimensional features comprising 13 mel-frequency cepstral coefficients and their temporal derivatives.

The visual path applies convolution and sub-sampling before a recurrent layer with 110 units. The audio path uses 150 recurrent units. Their outputs enter a merged recurrent layer with 250 units, followed by another merged layer with 250 units and a final vocabulary classifier.

Audio alone can exceed 99% accuracy in this setup. To prevent training from relying exclusively on that strong source, the authors randomly mask input modalities to zero. The resulting network is intended to remain useful with audio, video, or both.

In the Phased LSTM version, the input-layer gates are manually aligned with their respective acquisition schedules, and their period and phase parameters are fixed. The merged layers learn timing parameters. Their period initializations use (10, 1000) for the earlier merged layer and (500, 3000) for the later one.

The video rate is 25 fps. A lower-resolution condition matches audio features to the video interval, using 40ms. A higher-resolution condition supplies audio features at 100 Hz, corresponding to 10ms. The higher audio rate does not improve accuracy, but it supports the shorter stated latency.

All networks exceed 98% accuracy when evaluated with audio alone or with the combined inputs. Video-only evaluation is more difficult, and the training-loss comparisons focus on that condition. Phased LSTM converges substantially faster than ordinary LSTM and BN-LSTM, with a reported peak video-only accuracy of 81.15%.

The authors compare this result favorably with a lipreading-focused approach cited in the paper, while emphasizing that their visual pipeline avoids manually designed features. The task nonetheless remains tied to GRID’s constrained sentences and vocabulary. Its strongest architectural lesson is the practical combination of fixed source-aligned timing and learned timing after fusion.

What the ablations show

The paper offers controlled comparisons of sampling, period initialization, and event retention, rather than a comprehensive removal study of every architectural component. These analyses are informative because they distinguish several reasons the gate might help, but they do not isolate all of them completely.

Sampling density tests sensitivity to unnecessary transitions

The standard and oversampled sine-wave conditions describe the same kind of underlying signal through different numbers of observations. Denser sampling supplies additional evidence, but it also creates a longer sequence of recurrent transitions.

The comparison networks lose substantial accuracy within the tested training budget, while Phased LSTM benefits. This supports the interpretation that its state does not need to be rewritten at every observation to exploit the signal. It also connects the result to optimization: the ordinary networks may eventually learn the denser version, so the observed advantage concerns how efficiently they reach a useful solution.

This is not a pure test of computation alone. Changing the observation rate changes both available information and the number of possible updates. The result is valuable precisely because those changes coexist in real acquisition systems, but it cannot assign every part of the benefit to one isolated cause.

Irregular timing tests more than sequence length

The asynchronous frequency condition holds the number of observations equal to the standard condition. Its difficulty therefore cannot be explained solely by a longer input sequence. The temporal spacing itself changes.

The comparison is especially useful because timestamps are available to all recurrent alternatives. Ordinary LSTM and BN-LSTM must learn how to use them through content-dependent transformations. Phased LSTM has a direct operation that evaluates its schedule from time.

The observed robustness supports that architectural choice. It does not establish that every possible way of incorporating timestamps would perform worse. The experiment compares the specific recurrent configurations trained under the paper’s procedure.

Period ranges test the arrangement of inactivity

The addition experiment changes period initialization while retaining approximately similar overall update sparsity. This separates the amount of inactivity from its temporal organization more clearly than a comparison between dense and sparse networks would.

Longer periods create longer spans over which a unit can retain state without an updating transition. Their faster convergence is consistent with the authors’ argument about carrying gradients across the past. It also shows that a periodic schedule can help on a task whose relevant input is not itself periodic.

However, the analysis does not prove that longer periods should always be preferred. A task needing immediate reactions to closely spaced changes could impose a different requirement. The supported conclusion is that period length is consequential and that, in this long-memory task, the tested longer-period settings aid learning.

Event retention tests robustness to acquisition changes

Changing ρ after N-MNIST training examines how the learned decision responds to a different density of events. Both recurrent approaches handle that shift well, whereas the frame-based comparison is more sensitive.

This result supports direct temporal processing, but it should not all be credited to the new gate. BN-LSTM also shows robustness. The controlled change therefore provides evidence about the event-stream representation and recurrent treatment shared by the alternatives, alongside the separate convergence and computational benefits reported for Phased LSTM.

Several mechanisms remain entangled

The authors say that investigating gate biases did not remove the frequency-task discrepancies. This addresses a plausible explanation based on an unfavorable ordinary-LSTM initialization, but it is not an exhaustive search over every training configuration.

The study does not report a full comparison of triangular and square-wave gates, leak values, fixed and learned periods across every task, or independently freezing memory and output. As a result, its discussion of frequency selectivity, state-preserving dropout, and gradient shortcuts should be read as supported interpretations of the combined architecture.

The evidence is strongest when an analysis directly changes the property under discussion. Sampling experiments directly address observation schedules; period-range experiments directly address temporal scale. Broader accounts of why all the benefits occur remain less completely separated.

Limitations

The authors distinguish tested behavior from proposed extensions

The discussion offers several interpretations of the gate. It can resemble a learned frequency-selective mechanism, a form of persistent dropout that retains state, or a shortcut across earlier observations for back-propagation. The authors regard the results as consistent with these views. They do not establish a mathematical equivalence between the architecture and every one of those descriptions.

The frequency-selective interpretation is easiest to understand from the sine-wave tasks. Different periods let different units respond according to different rhythms. But calling the mechanism Fourier-like does not mean that the network explicitly computes a conventional spectral decomposition. Its gates operate inside a trained recurrent system whose transformations also depend on content and previous state.

The dropout interpretation is similarly suggestive. Units undergo periods of inactivity, yet their memory is preserved rather than discarded. The paper does not provide a controlled decomposition showing how much of the improvement arises from regularization, temporal selectivity, or easier gradient propagation.

The authors also propose extending the mechanism to gated recurrent units and suggest that a square-wave-like schedule might work well. Those are future directions in the discussion. They are not evaluated replacements in the experiments reported here.

Finally, the biological motivation has an explicit boundary. Rhythms and spike-based communication inspire the architecture, but Phased LSTM is not presented as a biologically faithful account of neural computation. Its engineering results do not verify claims about learning in biological recurrent networks.

Sparse updates are not a complete runtime measurement

A careful reader should distinguish an architectural opportunity from its realized implementation cost. The gate makes many recurrent updates unnecessary when it is exactly closed. The N-MNIST counts demonstrate that this opportunity is substantial in the tested setting.

Actual runtime depends on whether those inactive updates are skipped efficiently. A procedure that calculates a complete candidate update and only then multiplies it by a closed gate would not realize all the savings implied by the architecture. The paper’s computational argument therefore concerns avoidable recurrent work, not an implementation-independent guarantee.

The open fraction also describes a portion of continuous time. It does not force every possible event stream to place the same fraction of its observations in open intervals. Event timing and learned phase offsets can affect how many observations reach a unit while it is active. The reported N-MNIST average is direct evidence for that experiment; the general setting remains dependent on the data and schedule.

Training introduces another distinction. The default leak allows some closed-phase influence, whereas testing removes it. This supports optimization but means that exact inactivity during evaluation is not a complete description of the training dynamics.

Scheduled inactivity can miss information locally

The memory-preservation argument establishes what happens when a state is protected. It does not establish that preserving the state is always the correct action. An important observation can arrive outside a particular unit’s open interval.

Different periods and phases give the network multiple opportunities to respond, and the addition results show that the tested architecture can learn despite this issue. Even so, the paper does not prove that every relevant event is captured or that every scheduling arrangement is safe. An application requiring immediate response to a rare event would need to examine that requirement directly.

Long periods also have competing implications. They provide longer protected spans, but they reduce how often a given unit offers a substantial revision opportunity. The addition experiment demonstrates a favorable balance on its task, not a universal choice of period for all temporal problems.

Convergence claims depend on the training comparison

The frequency experiments compare networks over the training budget used by the authors. Ordinary LSTM and BN-LSTM perform poorly under oversampling within that budget, but the authors explicitly allow that more training might restore their performance.

This matters for the practical conclusion. Phased LSTM reaches useful behavior more readily under those conditions. The result should not be strengthened into a claim that conventional recurrent networks cannot represent the required distinction.

The baselines share parameters where applicable, and the authors investigate gate biasing. Nonetheless, the study does not exhaust every possible architecture, initialization, optimizer setting, or method for representing time. Its comparisons establish an advantage over the selected alternatives, not over all conceivable temporal systems.

The real-data tasks have particular boundaries

N-MNIST supplies genuine event-sensor recordings, but its digits originate as static images observed during sensor movement. That is a meaningful test of asynchronous visual processing. It does not cover every kind of dynamic scene, motion pattern, or event-camera task.

The event-density experiment changes how many recorded events are retained. This is a useful acquisition perturbation, but it is not equivalent to every sensor failure or environmental change. The paper does not establish the same robustness under arbitrary timing corruption, missing regions, or changed visual conditions.

The audiovisual task uses a constrained grammar and vocabulary. Its random training-test division is the split the authors report; the description does not establish a separate evaluation on previously unseen speakers. The video-only result therefore belongs to that stated protocol.

Audio is especially strong in this task, which motivates random modality masking. The experiment shows that Phased LSTM can participate in a network trained for missing modalities, but it does not isolate the gate as the sole source of that robustness. Masking is an additional training choice with its own role.

The evidence does not establish a language-processing result

The introduction names language processing among successful recurrent applications, but the experiments do not evaluate a language-understanding or text-generation task. The paper therefore provides a temporal architecture with possible relevance to language systems, rather than direct evidence of improved linguistic performance.

For a system such as Mova, the transfer would need a clear account of what time means, which states should persist, and what errors selective revision could introduce. Physical timestamps have an obvious interpretation for sensors. A schedule over linguistic units would require a separate justification.

The same boundary applies to transparency. The gate’s parameters are explicit and inspectable, but the paper does not measure whether people can understand the resulting internal representations or diagnose decisions more reliably. Inspectable timing is a useful property of the mechanism, not a demonstrated general solution to interpretability.

What came after

The paper closes by identifying possible continuations: applying time gates to gated recurrent units, simplifying the oscillation into a square-wave-like form, and exploring connections with learning in spike-based recurrent systems. These are proposals made by the authors. They should remain distinct from established follow-up results.

No later-work account is available here that supports attributing a specific extension, benchmark improvement, or broader adoption to subsequent research. The historical claim can therefore go no further than the directions the paper itself sets out.

Those directions follow naturally from its main contribution. Once a recurrent unit separates its memory update from its timing schedule, several parts can be varied independently: the underlying memory mechanism, the shape of the gate, the way periods are selected, and the relationship between source acquisition and learned integration. Phased LSTM demonstrates that this separation can be useful across the tested timing, memory, and sensor tasks. Whether a later design preserves those benefits while simplifying computation is a question for its own experiments.

Cite

Cite as Daniel Neil, Michael Pfeiffer and Shih‐Chii Liu. 2016. Phased LSTM: Accelerating Recurrent Network Training for Long or Event-based Sequences. Zurich Open Repository and Archive (University of Zurich).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1610.09513 · arXiv 1610.09513

@inproceedings{neil2016phased,
  title = {{Phased LSTM: Accelerating Recurrent Network Training for Long or Event-based Sequences}},
  author = {Daniel Neil, Michael Pfeiffer and Shih‐Chii Liu},
  booktitle = {Zurich Open Repository and Archive (University of Zurich)},
  year = {2016},
  doi = {10.48550/arxiv.1610.09513},
  eprint = {1610.09513},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1610.09513}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/neil-2016-phased-lstm-accelerating-recurrent-network/

References

29 references, from the paper's own bibliography.

  1. D. Bahdanau, K. Cho, and Y. Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. our card
  2. J. Bergstra, O. Breuleux, F. Bastien, P. Lamblin, R. Pascanu, G. Desjardins, J. Turian, D. Warde-Farley, and Y. Bengio. Theano: a CPU and GPU math expression compiler. In Proceedings of the Python for scientific computing conference (SciPy), volume 4, page 3, 2010. OpenAlex ↗ · Scholar ↗
  3. G. Buzsaki. Rhythms of the Brain. Oxford University Press, 2006. OpenAlex ↗ · Scholar ↗
  4. G. Cauwenberghs. An analog VLSI recurrent neural network learning a continuous-time trajectory. IEEE Transactions on Neural Networks, 7(2):346–361, 1996. OpenAlex ↗ · Scholar ↗
  5. K. Cho, A. Courville, and Y. Bengio. Describing multimedia content using attention-based encoder-decoder networks. IEEE Transactions on Multimedia, 17(11):1875–1886, 2015. OpenAlex ↗ · Scholar ↗
  6. K. Cho, B. van Merrienboer, C. Gulcehre, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014. our card
  7. G. K. Cohen, G. Orchard, S. H. Ieng, J. Tapson, R. B. Benosman, and A. van Schaik. Skimming digits: Neuromorphic classification of spike-encoded images. Frontiers in Neuroscience, 10(184), 2016. OpenAlex ↗ · Scholar ↗
  8. M. Cooke, J. Barker, S. Cunningham, and X. Shao. An audio-visual corpus for speech perception and automatic speech recognition. The Journal of the Acoustical Society of America, 120(5):2421–2424, 2006. OpenAlex ↗ · Scholar ↗
  9. S. Dieleman et al. Lasagne: First release., Aug. 2015. OpenAlex ↗ · Scholar ↗
  10. K.-I. Funahashi and Y. Nakamura. Approximation of dynamical systems by continuous time recurrent neural networks. Neural Networks, 6(6):801–806, 1993. OpenAlex ↗ · Scholar ↗
  11. F. A. Gers and J. Schmidhuber. Recurrent nets that time and count. In Neural Networks, 2000. IJCNN 2000, Proceedings of the IEEE-INNS-ENNS International Joint Conference on, volume 3, pages 189–194. IEEE, 2000. OpenAlex ↗ · Scholar ↗
  12. A. Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. our card
  13. A. Graves, A.-R. Mohamed, and G. Hinton. Speech recognition with deep recurrent neural networks. In 2013 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6645–6649, 2013. our card
  14. A. Hannun, C. Case, J. Casper, B. Catanzaro, G. Diamos, E. Elsen, R. Prenger, S. Satheesh, S. Sengupta, A. Coates, et al. Deep speech: Scaling up end-to-end speech recognition. arXiv preprint arXiv:1412.5567, 2014. our card
  15. K. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In The IEEE International Conference on Computer Vision (ICCV), 2015. OpenAlex ↗ · Scholar ↗
  16. S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735–1780, 1997. OpenAlex ↗ · Scholar ↗
  17. Itseez. Open source computer vision library. https://github.com/itseez/opencv, 2015. OpenAlex ↗ · Scholar ↗
  18. D. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. our card
  19. J. Koutnik, K. Greff, F. Gomez, and J. Schmidhuber. A clockwork rnn. arXiv preprint arXiv:1402.3511, 2014. OpenAlex ↗ · Scholar ↗
  20. T. Mikolov, M. Karafiát, L. Burget, J. Cernockỳ, and S. Khudanpur. Recurrent neural network based language model. Interspeech, 2:3, 2010. OpenAlex ↗ · Scholar ↗
  21. D. Neil and S.-C. Liu. Effective sensor fusion with event-based sensors and deep network architectures. In IEEE Int. Symposium on Circuits and Systems (ISCAS), 2016. OpenAlex ↗ · Scholar ↗
  22. B. Nessler, M. Pfeiffer, L. Buesing, and W. Maass. Bayesian computation emerges in generic cortical microcircuits through spike-timing-dependent plasticity. PLoS Comput Biol, 9(4):e1003037, 2013. OpenAlex ↗ · Scholar ↗
  23. P. O'Connor, D. Neil, S.-C. Liu, T. Delbruck, and M. Pfeiffer. Real-time classification and sensor fusion with a spiking Deep Belief Network. Frontiers in Neuroscience, 7, 2013. OpenAlex ↗ · Scholar ↗
  24. G. Orchard, A. Jayawant, G. Cohen, and N. Thakor. Converting static image datasets to spiking neuromorphic datasets using saccades. arXiv: 1507.07629, 2015. OpenAlex ↗ · Scholar ↗
  25. B. A. Pearlmutter. Learning state space trajectories in recurrent neural networks. Neural Computation, 1(2):263–269, 1989. OpenAlex ↗ · Scholar ↗
  26. C. Posch, T. Serrano-Gotarredona, B. Linares-Barranco, and T. Delbruck. Retinomorphic event-based vision sensors: bioinspired cameras with spiking outputs. Proceedings of the IEEE, 102(10):1470–1484, 2014. OpenAlex ↗ · Scholar ↗
  27. S. Semeniuta, A. Severyn, and E. Barth. Recurrent dropout without memory loss. arXiv, arXiv:1603.05118, 2016. OpenAlex ↗ · Scholar ↗
  28. M. Wand, J. Koutník, and J. Schmidhuber. Lipreading with long short-term memory. arXiv preprint arXiv:1601.08188, 2016. OpenAlex ↗ · Scholar ↗
  29. K. Xu, J. Ba, R. Kiros, K. Cho, A. Courville, R. Salakhutdinov, R. Zemel, and Y. Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, 2015. our card