Abstract
Recurrent models are a popular choice for video enhancement tasks such as video denoising or super-resolution. In this work, we focus on their stability as dynamical systems and show that they tend to fail catastrophically at inference time on long video sequences. To address this issue, we (1) introduce a diagnostic tool which produces input sequences optimized to trigger instabilities and that can be interpreted as visualizations of temporal receptive fields, and (2) propose two approaches to enforce the stability of a model during training: constraining the spectral norm or constraining the stable rank of its convolutional layers. We then introduce Stable Rank Normalization for Convolutional layers (SRN-C), a new algorithm that enforces these constraints. Our experimental results suggest that SRN-C successfully enforces stability in recurrent video processing models without a significant performance loss.
Introduction
Recurrent Neural Networks (RNNs) are inherently suited for video processing tasks like denoising and super-resolution. By maintaining an internal state, they can propagate information across frames, effectively leveraging temporal context. However, this recurrent structure transforms the model into a dynamical system, which introduces the risk of instability. While these models are typically trained on short sequences (e.g., 5–10 frames), they are often deployed on much longer videos. In such scenarios, unconstrained recurrent models can exhibit catastrophic failures, where output values diverge, leading to a total loss of signal.
The Challenge of Long-Term Stability
The primary issue identified is that many state-of-the-art recurrent architectures are unstable over long durations. After a few hundred frames, the internal feedback loops can cause pixel values to saturate or explode. Visually, this manifests as expanding blobs of colorful noise that eventually obscure the entire video frame. Quantitatively, this is reflected in a sudden and total drop in Peak Signal-to-Noise Ratio (PSNR).
Diagnosing Instability: Temporal Receptive Fields
To efficiently identify these instabilities without running exhaustive long-form tests, the authors propose a gradient-based diagnostic tool. By optimizing an input sequence to maximize the value of a specific output pixel, one can visualize the Temporal Receptive Field (TRF). In a stable model, the influence of past frames should decay over time. If the influence persists or grows from the distant past, the model is diagnosed as unstable. This visualization acts as a quick diagnostic for stability before deploying models on long sequences.
Preventing Instability with SRN-C
To ensure stability, the authors focus on the Lipschitz constant of the network. A system is guaranteed to be stable if its Lipschitz constant is less than 1. However, standard techniques like Spectral Normalization (SN) can be overly restrictive, significantly degrading image restoration quality.
The proposed solution is Stable Rank Normalization for Convolutional layers (SRN-C). Unlike methods that only consider the 2D kernel, SRN-C operates on the full convolutional operator. It allows for a "Soft Lipschitz Constraint" by controlling both the spectral norm (maximum amplification) and the "stable rank" (the distribution of singular values). This approach maintains the model's expressivity while ensuring long-term stability.
Experimental Results
The effectiveness of SRN-C was evaluated on the Vimeo-90k dataset and extended long-form sequences. Key findings include:
- Guaranteed Stability: Models stabilized with SRN-C remained functional over 200,000+ frames, whereas unconstrained models failed within the first few hundred.
- High Performance: On video denoising tasks, the performance gap between an unstable model and one stabilized with a soft constraint was negligible (approx. 0.15 dB PSNR), demonstrating that stability does not require sacrificing quality.
- Robustness to Scene Changes: Interestingly, abrupt scene changes can act as a "reset" for the model's memory, sometimes masking instabilities that would otherwise appear in static sequences.
- Computational Trade-off: While SRN-C increases training time by approximately 2.2x due to power iterations, it introduces zero overhead during inference.
Conclusion
This work highlights a critical but often overlooked failure mode in recurrent video processing. By introducing diagnostic TRF visualizations and the SRN-C normalization technique, the authors provide a framework for building recurrent models that are both high-performing and robust for real-world, long-form video applications.
Summary updated