Abstract
We propose an approach for sequence modeling based on autoregressive normalizing flows. Each autoregressive transform, acting across time, serves as a moving reference frame for modeling higher-level dynamics. This technique provides a simple, general-purpose method for improving sequence modeling, with connections to existing and classical techniques. We demonstrate the proposed approach both with standalone models, as well as a part of larger sequential latent variable models. Results are presented on three benchmark video datasets, where flow-based dynamics improve log-likelihood performance over baseline models.
Introduction
Modeling high-dimensional sequences, such as video or audio, presents a significant challenge due to complex temporal dependencies. Traditional architectures like LSTMs and GRUs attempt to capture these dynamics within a relatively unstructured framework. We argue that instead of merely increasing computational capacity, performance can be improved by transforming the data representation. Specifically, we propose a "change-based" perspective, analogous to using derivatives in classical physics, implemented through autoregressive normalizing flows.
Methodology
The core of our approach is the application of Autoregressive Normalizing Flows across time steps to create a "moving reference frame."
Affine Autoregressive Transforms
We utilize a transform where the current observation $\mathbf{x}_t$ is modeled as a function of past observations $\mathbf{x}_{<t}$ and a random noise variable $\mathbf{y}_t$: $$\mathbf{x}_t = \mu_\theta(\mathbf{x}_{<t}) + \sigma_\theta(\mathbf{x}_{<t}) \odot \mathbf{y}_t$$ Here, $\mu$ and $\sigma$ represent the predicted mean and scale based on historical data. This effectively shifts the coordinate system to follow the predicted dynamics of the signal.
Temporal Decorrelation and Invertibility
Because these flows are invertible, we can map raw data $\mathbf{x}$ to a "noise" space $\mathbf{y}$. A successful flow results in a temporally decorrelated $\mathbf{y}$ sequence, where $\mathbf{y}_t$ contains minimal information about $\mathbf{y}_{t+1}$. This "whitened" representation is significantly easier to model using higher-level latent variables.
Integration with Latent Variable Models
The proposed flows can be integrated into Sequential Latent Variable Models (SLVMs). In this architecture, the flow handles deterministic, low-level tracking (e.g., static backgrounds or constant motion), while stochastic latent variables $\mathbf{z}_t$ model the higher-level, unpredictable dynamics in the simplified $\mathbf{y}$-space.
Experiments and Results
We evaluated the approach on three video benchmarks: Moving MNIST, BAIR Robot Pushing, and KTH Actions.
Quantitative Performance
In all datasets, incorporating a flow-based conditional likelihood (SLVM w/ 1-AF) significantly improved test log-likelihood. On the BAIR dataset, the lower bound on log-likelihood improved from $\geq -3.57$ for a standard SLVM to $\geq -2.35$ with the addition of a single-layer autoregressive flow.
Qualitative Analysis
Visualizations of the flow components reveal that the shift parameters ($\mu$) successfully capture predictable elements like static backgrounds. The resulting noise variables ($\mathbf{y}$) appear as nearly random, whitened images, stripped of structural information.
Correlation Reduction
Empirical measurements confirm the effectiveness of temporal whitening. In the KTH dataset, the raw data correlation of 0.96 was reduced to just 0.31 in the transformed $\mathbf{y}$ space, demonstrating a substantial simplification of temporal dynamics.
Conclusion
By treating autoregressive flows as moving reference frames, we provide a principled generalization of temporal derivatives. This inductive bias allows models to achieve superior performance with fewer parameters by focusing on the unpredictable "innovations" in a sequence rather than reconstructing the entire signal at each step. Future work will explore non-affine flows and applications in other domains like audio synthesis.
Summary updated