Matching Motion Energy Inside Disocclusion Holes

When a video is converted to stereo or re-rendered from a slightly moved camera, some background that the original view hid behind foreground objects comes into view. The pixels for these regions do not exist and must be invented. These regions are called disocclusions. Current inpainters fill the holes well frame by frame, but the invented content tends to shimmer from one frame to the next. Standard fixes make it worse in a particular way: they either smooth the hole until it freezes or blurs, or they rely on optical flow, which is undefined in exactly these regions and fails on water, smoke and fire. We propose an alternative. We do not ask the hole to be still. We ask it to move the way its surroundings move, and we measure "the way things move" with spatiotemporal energy filtering.

Spatiotemporal energy filtering treats a video as a 3D block of space and time. In that block, a moving pattern traces a slanted streak, and the slant encodes velocity. Banks of 3D filters tuned to different slants respond in proportion to how much of each motion is present, and they need no pixel-to-pixel correspondence. The core proposal is a training loss, with zero inference-time cost, for disocclusion inpainters. Inside each hole, the loss requires the distribution of oriented energy across filters to match the distribution measured on the visible background next to it. Flicker scatters energy across orientations. Freezing piles it onto the zero-velocity orientation. Correct motion, whether rigid or turbulent, reproduces the surround's signature. The loss can therefore tell all three cases apart, which neither a temporal-smoothness loss nor a flow-warping loss can do.

Core Claim

Disocclusion holes have a property that makes this matching well posed. When a camera shifts, a revealed region always belongs to the farther surface at that boundary, so the correct reference for its motion is the visible background on the far side of the hole. The foreground does not belong in the reference. The Geometric Reciprocity work of Lu and Han proves that, under nearest-neighbour depth-image-based rendering, the target-view hole mask equals the mask of pixels lost when warping back. This lets any monocular video supply exact synthetic holes for self-supervised training. We reuse that construction as the method's scaffold. Its mask, together with depth, tells us which side of each hole is background.

That knowledge addresses the main known weakness of energy filters at occlusion boundaries: the filter window straddles two surfaces and blends their orientations. Mask-normalized filtering, which computes responses only from background-labelled voxels and renormalizes by the covered support, yields a clean reference signature.

Write $E_k(p)$ for the phase-invariant energy of the $k$-th oriented 3D filter at space-time location $p$, computed as the squared quadrature-pair response in the style of Heeger and marginalized as in MSOE (Hadji and Wildes). Let $h_W$ be the vector of $E_k$ summed over a space-time window $W$ and normalized to sum to one. For each hole window $W_h$ and its paired background reference band $W_r$, the loss is

$$ \mathcal{L}_{\text{SOE}} = \sum_{(W_h, W_r)} D_{\text{JS}}\big(h_{W_h}(\hat{I}) \,\|\, h_{W_r}(I)\big), $$

where $\hat{I}$ is the inpainted video, $I$ is the observed video restricted to background voxels, and $D_{\text{JS}}$ is the Jensen–Shannon divergence. The normalization makes the loss insensitive to contrast differences between hallucinated and real texture, so it constrains dynamics and not appearance. Appearance remains the job of the existing reconstruction losses. We expect this term to cut in-hole flicker without the freezing or blurring that temporal-derivative and flow-warping penalties cause. We expect the advantage to be largest on dynamic textures, where flow is least reliable.

Research Program

The base model is a video disocclusion inpainter trained with the Geometric Reciprocity recipe on Kinetics-GRT. That recipe uses a 2D spatial decoder extended with temporal attention and contains no explicit space-time motion representation. We add $\mathcal{L}_{\text{SOE}}$ on top of its losses. The filter bank is fixed and analytic: 3D Gaussian-derivative or Gabor filters over a small set of spatial scales and roughly ten space-time orientations, including one pure-flicker band (high temporal frequency, low spatial frequency). It is implemented as fixed 3D convolutions that run only on hole windows during training, so inference latency is unchanged.

The supplied work motivates the program in three ways. Tangemann et al. report a motion energy model segmenting appearance-free random-dot motion at 0.600 IoU, while RAFT and FlowFormer++ fall below 0.15. Hadji and Wildes report learning-free SOE-Net at 86.8% on DTDB dynamics classes, against 72.6% for an optical-flow stream. Together these suggest energy is the more reliable motion measurement precisely where flow fails. The same papers also constrain the design. Tangemann et al. find motion energy trails flow on clean textured video (75.9% versus about 90% IoU), and Total Directional Variation for Video Denoising shows that structure-tensor smoothing blurs across depth edges and staircases. We therefore do not use energy to generate pixels or to warp features. It is used only as a distributional constraint on dynamics, inside regions where no correspondence exists to be precise about.

The work has three pieces. First, we build the mask-normalized reference extraction, which pairs each hole window with a far-side background band chosen using the depth ordering implied by the reciprocity mask. Second, we train the model, with an ablation on reference choice. Third, we build a new test set, DTDB-GRT. It is made by applying the reciprocity hole construction, with monocular depth, to Dynamic Texture DataBase clips of water, smoke, fire and foliage. Every existing disocclusion benchmark in the file is dominated by rigid scenes, and the PDG work of Qi et al. explicitly excludes fluids.

Baselines

The naive reference point is the reciprocity-trained video inpainter with no added temporal term, retrained by us on Kinetics-GRT with the published recipe. All other variants start from the same initialization and data and receive the same number of training steps and hyperparameter search budget. Our reproduction is checked against the reported number: Geometric Reciprocity reports 34.06 PSNR (Ours-Video) and 35.52 PSNR (Ours-Image) on DAVIS-GRT. It also reports training-free diffusion systems such as StereoCrafter and StereoDiffusion at around 28–29 PSNR. This reciprocity-trained model is the strongest existing method on this exact question. For temporal stability metrics on DAVIS-GRT we found no reported result on Lacuna, so all stability comparisons are against our own runs.

The flow-based competitor adds, inside holes, the short- and long-term flow-warping losses of Learning Blind Video Temporal Consistency to the same model. It uses the same flow estimator that our evaluation uses for warping error, which biases the comparison in its favour. The adversarial competitor adds a Temporal-Patch GAN discriminator over hole regions, as in TSAM, which reports 37.43 versus 36.84 PSNR on FVI curve masks. It is the closest learned analogue of matching space-time statistics, so it gets the same tuning budget as our loss. The post-hoc competitors are Lai et al.'s ConvLSTM smoother (418 FPS, 62% user preference in its paper) and Deep Video Prior, which is preferred 53.79% of the time versus 23% for Lai et al. on the Bonneel set at about 2 seconds per frame. Both are applied to the naive model's output.

Three ablations isolate the key ingredient. A plain temporal-derivative penalty in the hole tests whether "be still" suffices. The same energy loss with a reference band drawn from both sides of the hole tests the depth-ordered, mask-normalized reference. The same loss with the flicker-band filters removed tests whether the gain comes from explicit orientation structure.

Beating the strongest baseline means two things on both DAVIS-GRT and DTDB-GRT. In-hole temporal stability must be better than both the reciprocity-only model and the GAN variant. PSNR must stay within 0.3 dB of our reproduced reciprocity number.

Why not just…?

Why not just add a flow-warping temporal loss inside the hole? The hole is where flow has least support, because revealed pixels have no past correspondence. TSAM itself has to mask flow with cycle-consistency checks for this reason. On dynamic textures, flow also underperforms energy by a wide margin in Hadji and Wildes. On rigid DAVIS-GRT scenes it may well be competitive, and we expect that. The decisive comparison is DTDB-GRT, where we predict the flow loss either freezes the texture or transfers wrong motion. Our held-out dynamics check, described below, measures both outcomes.

Why not just post-process with Lai et al. or Deep Video Prior? Lai et al. document the stability-blur trade-off. DVP costs about 2 seconds per frame and averages multimodal flicker unless reweighted training is used. Both act on whole frames without knowing where the hole is, so they also alter correctly warped pixels. Our loss costs nothing at inference. Still, DVP has strong reported user-study numbers, so it is a real threat on perceived quality. We run it on identical outputs and include it in the user study rather than dismiss it.

Why not just use a temporal discriminator? This is the most serious alternative. A Temporal-Patch GAN can in principle learn every statistic our filter bank measures. Our bet rests on two differences. Our target is the local surround's signature, not a global "real video" distribution, so hallucinated water should move like this water. And the analytic filters provide the physical inductive bias that Hadji and Wildes found learned networks lacked. If the GAN variant matches us on DTDB-GRT, the honest conclusion is that the contribution reduces to a cheaper, stable surrogate for adversarial training. We would report it that way. The ablation that gives the GAN access to the same surround patches checks whether locality alone explains any gain.

Why not just penalize temporal change in the hole? It suppresses flicker by construction, but a revealed patch of river would then stand still while the river around it flows. The derivative-penalty ablation should win on naive flicker scores and lose clearly on the dynamics-agreement check.

Proposed Experiments

Training uses Kinetics-GRT. Evaluation uses DAVIS-GRT and the new DTDB-GRT, with qualitative transfer to Inria 3DMovie. Fidelity is measured by PSNR and VFID inside and outside holes.

To avoid circularity, no metric uses our filter bank. Stability is measured by flow warping error restricted to holes on rigid DAVIS-GRT sequences. Dynamics agreement on DTDB-GRT is measured by a learned two-stream dynamics classifier trained on DTDB, which judges whether hole content and its surround fall in the same dynamics class. A user study shows paired videos and asks which hole "looks like part of the scene."

The first decisive check is a crossover on DTDB-GRT. The energy loss must beat the flow-loss and derivative-penalty variants on dynamics agreement while matching them on hole warping error on DAVIS-GRT. If it only wins on rigid scenes, the energy representation is not what is doing the work.

The second decisive check concerns the reference. The two-sided reference ablation should degrade results most at thin hole boundaries, where mixed orientations contaminate the target. If it does not, the depth-ordered reference is unnecessary.

The third check is the head-to-head with the temporal discriminator on DTDB-GRT, which settles whether the analytic local constraint adds anything beyond learned temporal statistics.