Table of Contents
Fetching ...

Inference-time Stochastic Refinement of GRU-Normalizing Flow for Real-time Video Motion Transfer

Tasmiah Haque, Srinjoy Das

TL;DR

The paper tackles the need for diverse and temporally coherent forecasts in real-time keypoint-based video motion transfer, where deterministic GRU-NF can underrepresent multimodal futures. It introduces GRU-SNF, an inference-time refinement that inserts a small number of MCMC steps between normalizing-flow layers of a pretrained GRU-NF, guided by an energy that blends a Gaussian prior with GRU-driven predictions, without retraining. Across VoxCeleb and BAIR, GRU-SNF yields improved diversity (lower energy distance on keypoints and higher APD) while maintaining fidelity, with gains that grow at longer horizons and only modest latency. This approach demonstrates the practical viability of lightweight stochastic refinement for bandwidth-efficient, multimodal time-series forecasting in real-time systems and suggests broader applicability to flow-based sequence models.

Abstract

Real-time video motion transfer applications such as immersive gaming and vision-based anomaly detection require accurate yet diverse future predictions to support realistic synthesis and robust downstream decision making under uncertainty. To improve the diversity of such sequential forecasts we propose a novel inference-time refinement technique that combines Gated Recurrent Unit-Normalizing Flows (GRU-NF) with stochastic sampling methods. While GRU-NF can capture multimodal distributions through its integration of normalizing flows within a temporal forecasting framework, its deterministic transformation structure can limit expressivity. To address this, inspired by Stochastic Normalizing Flows (SNF), we introduce Markov Chain Monte Carlo (MCMC) steps during GRU-NF inference, enabling the model to explore a richer output space and better approximate the true data distribution without retraining. We validate our approach in a keypoint-based video motion transfer pipeline, where capturing temporally coherent and perceptually diverse future trajectories is essential for realistic samples and low bandwidth communication. Experiments show that our inference framework, Gated Recurrent Unit- Stochastic Normalizing Flows (GRU-SNF) outperforms GRU-NF in generating diverse outputs without sacrificing accuracy, even under longer prediction horizons. By injecting stochasticity during inference, our approach captures multimodal behavior more effectively. These results highlight the potential of integrating stochastic dynamics with flow-based sequence models for generative time series forecasting.

Inference-time Stochastic Refinement of GRU-Normalizing Flow for Real-time Video Motion Transfer

TL;DR

The paper tackles the need for diverse and temporally coherent forecasts in real-time keypoint-based video motion transfer, where deterministic GRU-NF can underrepresent multimodal futures. It introduces GRU-SNF, an inference-time refinement that inserts a small number of MCMC steps between normalizing-flow layers of a pretrained GRU-NF, guided by an energy that blends a Gaussian prior with GRU-driven predictions, without retraining. Across VoxCeleb and BAIR, GRU-SNF yields improved diversity (lower energy distance on keypoints and higher APD) while maintaining fidelity, with gains that grow at longer horizons and only modest latency. This approach demonstrates the practical viability of lightweight stochastic refinement for bandwidth-efficient, multimodal time-series forecasting in real-time systems and suggests broader applicability to flow-based sequence models.

Abstract

Real-time video motion transfer applications such as immersive gaming and vision-based anomaly detection require accurate yet diverse future predictions to support realistic synthesis and robust downstream decision making under uncertainty. To improve the diversity of such sequential forecasts we propose a novel inference-time refinement technique that combines Gated Recurrent Unit-Normalizing Flows (GRU-NF) with stochastic sampling methods. While GRU-NF can capture multimodal distributions through its integration of normalizing flows within a temporal forecasting framework, its deterministic transformation structure can limit expressivity. To address this, inspired by Stochastic Normalizing Flows (SNF), we introduce Markov Chain Monte Carlo (MCMC) steps during GRU-NF inference, enabling the model to explore a richer output space and better approximate the true data distribution without retraining. We validate our approach in a keypoint-based video motion transfer pipeline, where capturing temporally coherent and perceptually diverse future trajectories is essential for realistic samples and low bandwidth communication. Experiments show that our inference framework, Gated Recurrent Unit- Stochastic Normalizing Flows (GRU-SNF) outperforms GRU-NF in generating diverse outputs without sacrificing accuracy, even under longer prediction horizons. By injecting stochasticity during inference, our approach captures multimodal behavior more effectively. These results highlight the potential of integrating stochastic dynamics with flow-based sequence models for generative time series forecasting.

Paper Structure

This paper contains 7 sections, 8 equations, 6 figures, 4 tables.

Figures (6)

  • Figure 1: Diverse sample prediction in real-time virtual reality (VR) gaming
  • Figure 2: The proposed pipeline for real-time video motion transfer for bandwidth reduction.
  • Figure 3: Processing steps in the proposed GRU-SNF framework showing the dependencies between the variables during inference. Red arrows show the GRU hidden state update, green arrows show the conditional sample generation with NF inverse transformation, and the blue arrow shows the MCMC refinement of NF output.
  • Figure 4: Comparison of APD to MAE ratio distributions for VoxCeleb dataset in 8--16 prediction horizon
  • Figure 5: Comparison of APD to MAE ratio distributions for BAIR dataset in 6--9 prediction horizon
  • ...and 1 more figures