Choosing Among Plausible Super-Resolved Videos with Dynamic Programming Under Drifting Degradation

When a low-resolution video is upscaled, every frame has many equally plausible high-resolution versions. A generative upscaler, such as a diffusion model (a generator that turns random noise into an image by denoising it step by step), picks one version per frame at random. This causes two problems. Consecutive frames commit to different textures, so the output flickers. Nothing checks whether the chosen texture is consistent with what the camera actually recorded, so the model can hallucinate detail. We propose to stop treating each frame as a separate random draw. For each image tile, we generate a small set of candidate outputs per frame. We then run dynamic programming, which here means exact best-path search over a frame-by-frame chain of choices, to select the one sequence that best explains the observed low-resolution frames while staying temporally coherent.

The camera's degradation, meaning the blur, noise and compression that produced the low-resolution input, changes over time in real streams. A "consistent with the input" score computed under a stale degradation model ranks the candidates wrongly. We therefore couple the path search to an online drift detector. The detector watches the search's own residuals, and when it fires we re-estimate the degradation and cut the chain. The work is equally an empirical claim. The case that path search beats a single sample, a greedy choice and adaptive fine-tuning has to be measured on streams with known ground truth and controlled drift. It cannot be argued from optimality arguments alone.

Core Claim

Selecting among a fixed set of per-frame hypotheses by exact dynamic programming, with a lookahead window and drift-triggered segment resets, should reduce both flicker and hallucination relative to the frame-by-frame upscaler that produced the candidates. It should do so at a cost of $K^2$ comparisons per tile per frame, which is far below the cost of test-time fine-tuning. For one tile, with candidate $x_t^{k}$ at frame $t$ (the $k$-th of $K$ samples), observed low-resolution tile $y_t$, current degradation estimate $D_t$, and motion-compensated warp $W_t$ from frame $t-1$ to $t$, we choose indices $k_1,\dots,k_T$ to minimize

$$ \sum_{t=1}^{T} \lVert D_t(x_t^{k_t}) - y_t \rVert^2 \;+\; \lambda \sum_{t=2}^{T} \lVert x_t^{k_t} - W_t\, x_{t-1}^{k_{t-1}} \rVert^2 , $$

where $\lambda$ trades input consistency against temporal smoothness. This is a chain-structured problem, so the standard Viterbi recursion solves it exactly in $O(TK^2)$ time.

The formulation is deliberately non-parameterized. The Landscape of Deterministic and Stochastic Optimal Control Problems shows that dynamic programming and one-shot optimization agree on local minima only when policies are not parameterized by neural networks, and that the equivalence breaks once they are. That result constrains the design. We keep the neural network as a fixed candidate generator and apply dynamic programming only to the discrete selection, which is the regime where its guarantees hold. The lattice structure itself follows the layered best-path search over phrase lattices in A Polynomial-Order Algorithm for Optimal Phrase Sequence Selection From a Phrase Lattice, which supplies the method. We replace phrases with image hypotheses and replace language-model scores with physical consistency.

Research Program

Candidate generation. The candidate generator is a one-step diffusion video upscaler in the style of InfVSR. InfVSR uses causal autoregressive one-step diffusion with a rolling memory of past features and low-resolution frames as anchors, but it outputs one sample with fixed weights and does not respond to degradation drift. We draw $K$ samples (8 to 16) per frame by varying the noise. Selection is done per overlapping tile, and seams are blended. We will measure whether independent per-tile paths create visible seams. If they do, we will add a spatial pairwise term solved approximately by alternating passes.

Drift handling. The best unary cost at each frame, $\min_k \lVert D_t(x_t^k) - y_t\rVert^2$, is a one-dimensional statistic that is cheap to monitor. We feed it to the incremental Kolmogorov–Smirnov test of Fast Unsupervised Online Drift Detection. That test maintains a two-sample KS test (a check for whether two samples come from the same distribution) in $O(\log N)$ per update, but it is restricted to univariate streams, a limitation our statistic sidesteps.

As a stronger detector on feature embeddings, we compare the sequential classifier two-sample test of Sequential Covariate Shift Detection Using Classifier Two-Sample Tests, which reports reaching 80% detection after 190 shifted samples on ImageNet multi-shift at a 1% false-positive rate. We will check whether its warm-up window of $w \ge 201$ samples is too slow for abrupt video drift.

When the detector fires, three things happen. The current window's path is committed. $D_t$ is re-estimated, either from the SRTTA degradation classifier of Efficient Test-Time Adaptation for Super-Resolution or by a small kernel fit. The chain then restarts.

Latency. For streaming, we use fixed-lag decoding: frame $t$ is emitted after seeing frames up to $t+L$. Sweeping $L$ quantifies what lookahead buys over a myopic choice.

Baselines

Frozen single sample (naive reference). The naive reference is the frozen candidate generator emitting one sample per frame. It defines the flicker and hallucination levels any method must beat, at identical generator weights.

InfVSR as published (strongest existing method). The strongest existing method is InfVSR used exactly as published. It is the strongest competitor because it already attacks temporal consistency through its rolling memory and cross-chunk distillation. It reports a 58× speed-up over MGLD-VSR and a 5.48× speed-up over SeedVR2 on MovieLQ, plus the highest MUSIQ and CLIP-IQA scores, but no reported numeric quality score was found on Lacuna for InfVSR on MovieLQ. We will therefore rerun it ourselves on every stream. Beating it means three things together: lower warping error and higher PSNR against ground truth on drifting streams, no loss in MUSIQ or CLIP-IQA, and at most a 2× wall-clock increase on the same GPU.

SRTTA (adaptation competitor). The adaptation competitor is SRTTA from Efficient Test-Time Adaptation for Super-Resolution. It fine-tunes a single-image upscaler at test time using a second-order degradation pair and Fisher-weighted parameter freezing. It reports a 0.84 dB PSNR gain over ZSSR on DIV2K-C at about 5.38 seconds per image. We run it on every frame, and also on detector-triggered frames only, with the same per-stream GPU time budget as our method. If our selection matches or exceeds its PSNR at a fraction of the time, that counts as a win.

Ablations isolating the key ingredients. Three ablations isolate the two ingredients, path search and drift-aware scoring:

  • Per-frame best-of-$K$ by input consistency alone ($\lambda=0$).
  • Greedy selection, which picks the candidate nearest the previous choice ($L=0$).
  • A stale-operator version that never resets $D_t$, run alongside an oracle that is given the true $D_t$.

All methods share candidates, tuning budget for $\lambda$ and thresholds (tuned on held-out streams), and hardware.

Why not just…?

Why not just average the $K$ samples? Averaging is temporally stable, but it reproduces the conditional-mean blur that pixel losses produce on one-to-many problems, as Recovering Realistic Texture in Image Super-Resolution by Deep Spatial Feature Transform documents. Our perceptual metrics will show whether averaging loses sharpness. Its PSNR will likely be higher, so we report it as the distortion end of the trade-off rather than as a strawman.

Why not just choose greedily, frame by frame? This is the real threat. Greedy selection costs $O(K)$ per frame and may capture most of the gain. Its expected failure is lock-in: once it commits to a texture, it keeps following it even after the evidence turns against it, especially right after drift. The $L$ sweep settles this. If $L=0$ matches $L>0$ on post-drift segments, we will report that the cheap version suffices, and the contribution reduces to drift-aware consistency scoring.

Why not just fine-tune the upscaler when drift is detected? Continual adaptation is prone to error accumulation and collapse, as reported by Continual Test-Time Domain Adaptation and Towards Stable Test-time Adaptation in Dynamic Wild World. Per-image fine-tuning also costs seconds per frame: 5.38 s for SRTTA and roughly 13 s for Activated-SR. The two approaches are complementary, so we also test triggered SRTTA feeding our selector.

Proposed Experiments

Drifting streams. REDS and UDM10 have high-resolution ground truth. We degrade them with time-varying corruptions drawn from the DIV2K-C and DIV2K-MC families used by SRTTA. These include abrupt switches (for example, Gaussian blur to JPEG compression to noise), gradual ramps, and recurring cycles modeled on the repeated-domain protocol of CoTTA. Because ground truth is known, hallucination is measurable directly. Real-world checks use MovieLQ and VideoLQ, scored with MUSIQ, CLIP-IQA and warping error, since ground truth is absent there.

Metrics. We measure PSNR and SSIM against ground truth, input consistency error, flow-warping error, the perceptual scores above, detection delay, and wall-clock time.

Decisive checks. Three results decide the outcome:

  1. Selection must reduce warping error and raise PSNR over the frozen generator and InfVSR at equal perceptual scores.
  2. The stale-operator ablation must degrade sharply after drift while the reset version tracks the oracle. If it does not, the drift component is unnecessary.
  3. Fixed-lag decoding with $L>0$ must beat greedy selection specifically in the frames following a drift event.

A negative outcome on the third check is itself a useful empirical finding. It would show that dynamic-programming lookahead adds nothing over myopic selection here, which is exactly the kind of evidence such multi-stage formulations, including Multistage knapsack, have so far lacked.