Coding Motion as a Smooth Curve: Spline-Parameterized Motion for Flicker-Free Learned Video Compression

Learned video codecs, which are neural networks trained end to end to turn video into as few bits as possible while keeping reconstructions faithful, describe motion one frame pair at a time. For every new frame they estimate and transmit a fresh optical-flow field, a per-pixel map of where content moved since the previous frame, and nothing stops consecutive fields from disagreeing. The authors of Deep Contextual Video Compression (DCVC) say plainly that training only for rate and distortion does not prevent flicker between frames. Robotics solved a structurally similar problem long ago. A planner that emits a jagged sequence of waypoints produces infinite accelerations, and the standard fix is to represent the path as a B-spline, a smooth curve defined by a few "control points" that it approximates rather than passes through. Smoothness is then built into the representation instead of being added as a penalty.

We propose to transmit motion the same way. Each frame, the encoder emits one new coarse control-point field, and the motion used for that frame is a fixed cubic B-spline blend of the last four control points. The useful property is that, under the obvious entropy model, the bits spent on motion equal the cost of coding the curve's third derivative, its "jerk." Rate minimization and temporal smoothness therefore stop competing and become the same objective. Abrupt motion that the spline cannot follow goes into a separate, masked correction channel. Ideas from multi-objective trajectory optimization enter as the evaluation method: we compare codecs by the full three-way tradeoff surface of rate, distortion, and temporal stability, not by a single rate-distortion curve.

Core Claim

Represent the inter-frame motion field of a learned codec as a uniform cubic B-spline in time. Let $c_t$ be a low-resolution feature-domain control field emitted at frame $t$. The motion applied to frame $t$ is

$$ m_t = \tfrac{1}{6}\left(c_{t-2} + 4c_{t-1} + c_t\right), $$

which is the standard uniform cubic B-spline evaluated at the end of the segment governed by $c_{t-3},\dots,c_t$. This scheme is causal and adds no frames of delay. Following the treatment of uniform B-splines in Real-time trajectory replanning for MAVs, once earlier control points are committed, continuity at the boundary is automatic. Choosing $c_t$ becomes an unconstrained problem, and the resulting curve is $C^2$ (continuous through its second derivative) by construction. The entropy model predicts $c_t$ by quadratic extrapolation, $\hat c_t = 3c_{t-1} - 3c_{t-2} + c_{t-3}$. The quantized symbol actually coded is then

$$ \delta_t = c_t - 3c_{t-1} + 3c_{t-2} - c_{t-3}, $$

the third finite difference of the control points. For a cubic B-spline this is exactly the piecewise-constant third derivative. The motion rate term is therefore a learned jerk penalty, and lowering motion bitrate makes motion smoother.

Real video contains cuts, collisions, and disocclusions, places where previously hidden content appears, and no smooth curve should follow those. A second, sparse correction flow $r_t$ is coded only where a learned validity mask fires. The mask is trained with a forward-backward cycle-consistency signal adapted from the alignment module in Progressive Temporal Feature Alignment Network for Video Inpainting. That work warps features between video frames and discards flow vectors that fail a round-trip check. Here the same check decides where smoothness is allowed to break, and it carries a bit cost. The claim is that this split, structural smoothness for the bulk of the motion plus paid-for exceptions, yields lower temporal flicker at equal rate and distortion than adding smoothness losses to a pairwise codec.

Relation to Prior Work

Three learned codecs set the motion model we replace. DVC jointly learns flow estimation, flow compression, and residual coding. Scale-Space Flow adds a per-pixel blur coordinate to the flow so the warp can soften uncertain regions. DCVC warps features instead of pixels and conditions coding on that context. All three code each frame's motion as an independent pairwise field. We keep DCVC's conditional feature-domain coding as the backbone and change only how motion is represented and entropy-coded. Scale-Space Flow constrains us in a useful way: it shows that handling motion uncertainty inside the training loop, not afterwards, is what saves bits. Our validity mask follows the same principle. AlphaVC fights a different temporal failure, error drift, by periodically resetting pixel references with conditional I-frames. That approach is complementary, and we treat its drift reset as orthogonal.

Two lines show that splines curb video jitter but neither compresses. VideoSPatS fits cubic Hermite splines to pixel trajectories in a per-video neural representation for editing. It reports a 4.66 dB warping-consistency margin over CoDeF on DAVIS, and it reports that smoothness losses alone left coordinate networks jittery. This motivates our claim that structural smoothness beats penalized smoothness. However, VideoSPatS is fit offline per video, has no quantization or rate model, and sees the whole clip. Our spline must be causal and pay for itself in bits. The robotics works STORM, which parameterizes sampled control sequences with B-splines inside a 125 Hz model-predictive controller, and Usenko et al. supply the method itself: receding-horizon B-splines whose newest control point is optimized while committed ones stay fixed. They operate on joint angles and flight paths, never on image motion.

Two compression works address inter-frame inconsistency with heavier machinery. GNVC-VD refines decoded latents with a 2.3B-parameter video diffusion transformer and lowers warp error relative to frame-wise generative codecs, but it decodes at about 1.5 s per frame on an A800. MTTF factorizes motion into compact trajectories, but only for articulated humans. Our proposal targets the low-delay, non-generative regime that DCVC occupies. It is general-purpose and adds negligible decoder cost. MotionCraft shows that pixel flow maps predictably into latent displacements, which supports warping features with spline-coded motion. It also documents cumulative color drift from repeated latent warping, a failure we will measure over long groups of pictures.

Research Program

We first build the codec. DCVC's motion branch is replaced by a control-field encoder that sees the current frame, the previous reconstruction, and the committed control points, and outputs $\delta_t$ at reduced spatial resolution. Its entropy model is conditioned on the extrapolated $\hat c_t$. The correction channel is a small motion codec that is gated by the validity mask, and its rate is counted in the total. At a scene cut or a mask firing over most of the frame, the spline restarts with fresh control points, analogous to knot reinsertion.

Next we vary the knot spacing. The motion at frame $t$ depends on $c_t$ only with weight $1/6$, so the spline limits how fast motion can change. That limit is the source of both the smoothness and the risk. We will train variants with control points every frame and every two frames. We will also train a quintic variant, mirroring Usenko et al.'s choice, to see where the smoothness and expressiveness tradeoff sits on fast-panning content.

Finally, following the multi-objective view in Direction 3, we make the tradeoff explicit. Every system, ours and all baselines, is trained as a single network conditioned on two weights: $\lambda$ for distortion and $\mu$ for a warp-error term. This lets us trace a two-dimensional front in (bits per pixel, PSNR, warp error) space. We report the hypervolume dominated by each front, which avoids the fragile hand-picked weighting that Direction 3 identifies as a central weakness of scalarized objectives.

Baselines

The naive reference point is unmodified DCVC trained with plain rate plus distortion on the same Vimeo-90k data. It anchors how much flicker an RD-only codec produces. On UVG it reports a 26.0% bitrate saving over x265 (veryslow) at 857 ms per 1080p frame on a P40, and we will reproduce these figures before trusting our own runs. The file reports no numeric warp-error value for DCVC on any benchmark; no reported result found on Lacuna for DCVC temporal warp error, so we will measure it ourselves.

The strongest competitor on this specific question is DCVC with an added photometric warp loss and a flow-smoothness penalty, conditioned on the same $(\lambda,\mu)$ weights. It has the same data, architecture capacity within 5% of parameters, training steps, and hyperparameter search budget as our model. It is the cheapest way to buy temporal stability without changing the representation, so it is the competitor the proposal most needs to beat. We beat it if our rate-distortion-warp front strictly dominates on at least a substantial fraction of operating points, or if our hypervolume is clearly higher on UVG and MCL-JCV, with no more than about 2% BD-rate loss at $\mu=0$.

For absolute compression strength we cite AlphaVC, which reports a 28.2% BD-rate saving (PSNR) and 52.2% (MS-SSIM) against VTM-IPP across UVG, MCL-JCV, and HEVC test sequences. We will not claim to beat that number. Our claim is about stability at matched rate. We report where we land relative to it, and we test our motion module on an AlphaVC-style backbone if code permits.

A learned motion predictor isolates the key ingredient. It uses the same extrapolation-conditioned entropy model and the same correction channel, but the motion at frame $t$ is the freely decoded field $c_t$ itself, with no spline blending. Any gain over this ablation comes from the structural $C^2$ constraint, not from better motion prediction. A second ablation removes the validity mask and correction channel to measure what smoothness costs on abrupt motion.

Why not just…?

Why not just add a warp or smoothness loss to DCVC? This is the real threat, and it is the strongest baseline above. The file's evidence against it is indirect. VideoSPatS found that smoothness losses on coordinate networks left residual jitter that explicit splines removed. TOFlow shows that flow forced toward smoothness can hurt task performance, which suggests a penalized codec will trade bits for stability rather than get stability free. Neither result is from compression. If the penalized baseline's front matches ours, the structural argument fails, and we will report it as such.

Why not just low-pass filter the decoded flow over time, or deflicker the output afterwards? Causal temporal filtering of the decoded motion is close to our method, but it has a key difference: the encoder is never told about it. The encoder will then pay for detail the filter throws away and leave residuals for misaligned warps. That is the bitrate inflation Scale-Space Flow avoided by putting uncertainty handling inside training. Post-hoc temporal aggregation also produces ghosting under inaccurate flow, as TSAM observes. We include a decoder-side exponential filter on DCVC's flow and a decoder-side temporal smoothing pass as extra points on the front. The test is whether they reach our warp error without a rate or PSNR penalty.

Why not use frame interpolation or a video diffusion prior? Interpolation-based B-frames as in IBVC need future frames. That breaks the low-delay setting we target, and IBVC still needed a full artifact-correction codec at about 832 ms per frame. GNVC-VD is stable but orders of magnitude slower at decode. We position against both by regime and report latency rather than claim parity on perceptual metrics at ultra-low rates.

Proposed Experiments

We train on Vimeo-90k and evaluate low-delay coding on UVG, MCL-JCV, and the HEVC test sequences. We report BD-rate in PSNR and MS-SSIM, the motion share of total bits, decode time, and two temporal measures. The first is the warp error $E_{warp}$ used by GNVC-VD. The second is a flow-jerk error: the third temporal difference of optical flow estimated on the reconstruction, minus that estimated on the source. Measuring the difference avoids rewarding codecs that smooth away real motion. To separate motion flicker from texture flicker, we also compute $E_{warp}$ with ground-truth-source flow. If our gains vanish there, the residual coder, not the motion, is the remaining flicker source.

The decisive check is the hypervolume comparison against the penalized DCVC baseline at matched compute. Two secondary checks follow. The first is a stratified analysis by motion type on DAVIS clips, covering smooth pans versus abrupt object motion; it tests whether the validity mask actually restores fidelity where the spline fails. The second codes 300-frame sequences without refresh and checks for the cumulative color drift MotionCraft reports under repeated latent warping.

A final, exploratory check addresses the robotics motivation. We run an off-the-shelf optical-flow tracker on decoded video and measure the jerk of the recovered point trajectories at matched bitrate. This asks whether a downstream motion planner would receive physically plausible motion from our codec but not from pairwise codecs.