arXiv:2610.28771cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28771

Motion Equivariant Convolutional LSTM: When Motion Becomes a Gauge Symmetry

Vahid Hosseinzadeh, T. Anderson Keller, Michael Puthawala

Abstract

Objects move, cameras pan, and weather drifts with the wind: much of what changes in sequential data is motion. Motion changes where things are, not what they are, and is therefore a symmetry of the data. Yet standard recurrent networks are not equivariant to it: their memory stays put while the input moves on. Flow equivariant recurrent networks first brought this symmetry into sequence models, for motions of constant velocity, or flows, by enumerating a bank of velocities. We extend this idea in three directions: from simple recurrent networks to convolutional LSTMs, from flows to motions whose velocity changes in time, and from enumerating velocities to estimating them. Treating a sequence as a field over time, we show that motion becomes a gauge symmetry: a global symmetry made local in time. Built on this view, our motion equivariant convolutional LSTM (MELSTM) uses its velocity model as the gauge field and is provably equivariant to every motion. Across future-frame prediction, classification of digits visible only through their motion, and action recognition under camera shake, MELSTM outperforms a convolutional LSTM and its flow equivariant counterpart with the same number of parameters: it is more accurate, generalizes to longer horizons and to unseen motions, and carries a fraction of the flow equivariant model's state.

1 Introduction

Symmetry is one of the most effective inductive biases in machine learning. A model is equivariant if transforming its input transforms its output in the same way, so that its response to every transformed input follows from its response to the original. Equivariance is usually built in by constraining the weights. A linear map between fields is equivariant to translations exactly when it is a convolution, whose weights are shared across positions (LeCun et al., 1989; Kondor & Trivedi, 2018), and equivariant to G=Rn×HG = \mathbb{R}^n \times H when its kernel also satisfies a steerability constraint (Cohen & Welling, 2017; Weiler & Cesa, 2019; Cohen et al., 2019a). The same principle yields group convolutions (Cohen & Welling, 2016), convolutions on general Lie groups (Finzi et al., 2020), and gauge equivariant convolutions on manifolds (Cohen et al., 2019b; Weiler et al., 2026); Bronstein et al. (2021) give a unified account. When the data have the symmetry, equivariance provably improves generalization and sample efficiency (Elesedy & Zaidi, 2021; Bietti et al., 2021). In almost all of this work, however, the symmetry is static: when the input is a sequence, every frame is transformed in the same way.

Flow (v constant)

Motion ( vtv_{t} time-dependent)

Figure

Figure 1: Hidden-state transport under RNN, Flow Equivariant RNN (FERNN), and Motion Equivariant RNN (MERNN) models. The first row shows the transformed input, ϕ▹Xt\phi \triangleright \mathcal{X}_t in the flow column and ψ▹Xt\psi \triangleright \mathcal{X}_t in the motion column. Here an MNIST digit undergoes two simultaneous changes: a geometric transformation along the group orbit (the motion, which differs across columns) and an intrinsic appearance change transverse to the group action (identical across columns). The second row shows the hidden state of an untrained leaky accumulator, ht+1=λht+Xth_{t+1} = \lambda h_t + \mathcal{X}_t ( λ=0.92\lambda = 0.92), which can be viewed as a convolutional RNN, ht+1=W⋆ht+U⋆Xth_{t+1} = W \star h_t + U \star \mathcal{X}_t, with kernels W(x)=λδ(x)W(x) = \lambda \delta(x) and U(x)=δ(x)U(x) = \delta(x). The third row shows FERNN's hidden state, which is lifted to velocity copies g∈{−3,…,3}2g \in \{-3, \ldots, 3\}^2 and evolves as ht+1g=λg⋅htg+Xth_{t+1}^g = \lambda g \cdot h_t^g + \mathcal{X}_t; we show the copy of maximum energy, i.e., the copy with the largest ∥htg∥22\|h_t^g\|_2^2. The fourth row shows MERNN's hidden state, ht+1=λTvtht+Xth_{t+1} = \lambda T_{v_t} h_t + \mathcal{X}_t, where TvtT_{v_t} is the transport operator and vtv_t is the digit's velocity at time tt. Matched transport stacks evidence into a sharp digit at the true location, whereas mismatched transport leaves a decaying ghost trail along the residual motion.

Sequential data transform in time: objects move and turn, cameras pan and shake, and weather systems drift with the wind. The transformation that relates a sequence to its transformed copy is then not one group element but a path t↦γtt \mapsto \gamma_t in GG. These paths form the group G=GR\mathcal{G} = G^{\mathbb{R}} of dynamical symmetries (Section 2), which contains the static, or global, symmetries as constant paths, the flows as paths of constant velocity, and the motions as continuous paths whose velocity may change in time. A recurrent model with GG-equivariant layers, such as the convolutional LSTM (LSTM; Shi et al., 2015) with steerable kernels, is equivariant to the constant paths but not, in general, to the others: it updates its memory in place rather than transporting it, so a moving input leaves a decaying trail in the hidden state (Figure 1, second row). One may ask whether flow or motion equivariance can also be obtained by constraining the weights. On space-time, flows of translations are Galilean boosts (x,t)↦(x+νt,t)(x, t) \mapsto (x + \nu t, t), whose orbits are entire time slices, so the steerability constraint forces a space-time kernel to be constant in space at every nonzero time lag; Lorentz boosts, in contrast, have hyperbolic orbits, and Lorentz invariant kernels can vary in space (Remark 1). For the LSTM, flow equivariance restricts the kernels to a set of measure zero (Proposition 1). The weights alone cannot provide this symmetry: the memory itself has to move with the input.

Keller (2025) took the first step beyond static symmetries with flow equivariant RNNs (FERNNs). FERNN lifts the hidden state to a bank of copies, one for each velocity of a fixed lattice and each moving with it, so an input moving with velocity ν\nu is static in copy ν\nu and accumulates there as if it did not move. Flows are, however, a narrow class. They form a group only when G is abelian (Lemma 1); when the velocity changes, the content of one copy is handed over to another and the history accumulated in the first is lost (Figure 1, third row); and the bank must enumerate every velocity the data may contain, which multiplies the size of the state and leaves velocities outside the lattice unrepresented.

We take a different route: rather than enumerating velocities, we estimate them. A velocity model, trainable or parameter-free, reads the sequence and returns at every step a Lie algebra element ut∈gu_t \in \mathfrak{g}, which generates a transporter Tt∈GT_t \in G that carries the hidden and cell states from one step to the next (Figure 1, fourth row). The resulting motion equivariant LSTM (MELSTM) is equivariant to all motions, provided the velocity model transforms as ut↦ψtutψt−1+ψ˙tψt−1u_t \mapsto \psi_t u_t \psi_t^{-1} + \dot{\psi}_t \psi_t^{-1} when its input is transformed by a motion ψ\psi (Theorem 2). This is the transformation law of a gauge connection. In physics, making a global symmetry local, so that the transformation may vary from point to point, requires a connection and the parallel transport it defines (Yang & Mills, 1954; Nakahara, 2003). Time-dependent transformations are the global symmetries made local in time: a sequence is a section of a bundle over the time axis, motions act on it as gauge transformations, the velocity model is a connection, and the transporter is its parallel transport (Appendix A.8). Gauge equivariant networks apply the same principle in space, to the choice of frame on a manifold (Cohen et al., 2019b; Weiler et al., 2026); here the gauge freedom is the choice of frame at each instant.

So far, a single motion acts on the whole frame. Scenes, however, usually consist of many independent motions: objects move on their own, against a background that moves with the camera. The symmetry is then a local motion, which moves each component by its own motion, and a motion equivariant model that respects superposition is also equivariant to local motions (Section 3). MELSTM represents such scenes with a few slots, each transported by its own velocity. With slot tracking, each slot estimates this velocity by matching its own hidden state against the incoming frame, so the scene is segmented within the state and no correspondence between frames has to be solved (Appendix B.1.4). Our contributions are:

• Weight constraints are not enough. With steerable kernels, the LSTM is globally G-equivariant, yet it is flow equivariant only for a measure-zero set of local kernels. For space-time convolutions, Galilean steerability forces the kernel to be constant in space at every nonzero time lag (Proposition 1, Remark 1, Appendices A.2–A.3).

• Flow equivariance by lifting. Flows form a group only when G is abelian (Lemma 1). We characterize the equivariant linear maps between transport fields and, for an abelian subgroup V≤GV \leq G, build from them FELSTM, a flow equivariant LSTM; the proof of its equivariance isolates the single step that requires constant velocity (Theorem 1, Appendices A.4–A.5).

• Motion equivariance by transport. A transporter is motion equivariant if and only if its velocity transforms as a gauge connection, and MELSTM, which transports its states with such a transporter, is equivariant to all motions, which act on the data as gauge transformations over the time axis (Theorem 2, Appendices A.6–A.8).

• Local motions. A motion equivariant model that respects superposition is also equivariant to local motions, which move the components of a scene independently (Section 3). MELSTM represents such scenes with a few transported slots, each estimating the velocity of its own content, which removes the correspondence problem of frame-to-frame motion estimation (Appendix B.1.4).

• Experiments. We compare LSTM, FELSTM and MELSTM at equal parameter counts on three tasks with time-dependent motion: future-frame prediction on Moving MNIST (Srivastava et al., 2015), classification of Motion-Only MNIST digits, which no single frame reveals because only the common fate of their pixels defines them (Upadhyay et al., 2026), and action recognition on KTH (Schuldt et al., 2004) under a shaking camera. Since FELSTM is flow but not motion equivariant, the comparison isolates what a changing velocity costs a flow equivariant model. MELSTM is the most accurate model on all three tasks and the only one whose performance does not degrade when the motion statistics change; on Moving MNIST, it trains about six times faster per epoch than FELSTM and extrapolates to 8.5 times the trained horizon with 37 times lower error (Section 5). Code is available at https://github.com/VahidHosseinzadeh/MELSTM.

Section 6 discusses related work and future directions.

References (28)