Quadratic History Projection for Drift-Resistant Streaming Motion Generation

Real-time human motion generators, the kind that animate a game character or avatar from a stream of text commands, work autoregressively. They produce a short chunk of motion, feed the last few generated frames back in as context, and produce the next chunk. Small errors in those fed-back frames are the seed of drift. Characters slowly slide, float, freeze, or wander away from their targets over long rollouts. This proposal changes what the model is allowed to see of its own past. We do not hand it raw generated frames. We fit a low-order polynomial in time to each joint's recent trajectory, a position, a velocity and an acceleration, which is the constant-acceleration model that video interpolation uses to fix the "objects move in straight lines" assumption. The model conditions on that fitted state. It then generates the next chunk as the quadratic continuation of the state plus a learned correction that is forced to start at zero with zero slope.

The bet is that this projection is a contraction. The fit throws away the jitter-like part of the model's own errors before those errors can be re-amplified. It still keeps enough curvature information that the next chunk continues the motion correctly rather than along a straight chord. Linear (constant-velocity) projection sits at one end of this trade-off and discards too much. Raw history sits at the other and discards nothing. The claim is that second order is the useful middle. We state it in a form we can measure: the per-chunk "drift gain" of the rollout.

Core Claim

Autoregressive drift is governed by how the generator responds to perturbations in its conditioning history. Projecting that history onto a degree-2 polynomial per joint, and generating each new chunk as a boundary-matched quadratic plus residual, lowers the rollout's error amplification below that of raw-history conditioning. It does this without the curvature bias of a degree-1 (linear) projection. It should therefore reduce long-horizon drift in foot sliding, root height and goal error while keeping real-time speed. The new part is neither "use acceleration" nor "penalize jerk". It is the use of a quadratic fit as a learned-through information bottleneck on the generator's own feedback, together with a direct measurement of the drift gain it produces.

How this differs from prior work

Three families of existing work supply the ingredients.

The first supplies the motion model. Quadratic Video Interpolation estimates acceleration from four frames and shows that linear interpolation misplaces curving objects. On GOPRO its reported numbers are ASFP 0.97 against 1.79 for SepConv, and PSNR 31.27 dB against about 29.5 dB. JNMR chains piecewise quadratics over longer intervals. Non-linear Motion Estimation … Space-time Convolutions switches between linear and quadratic models locally. IQ-VFI bends a linear flow into a quadratic one with a learned implicit acceleration. All four operate offline on ground-truth frames, so their inputs are never contaminated by their own outputs. Our setting is exactly the one where inputs are self-generated, and we use the fit as a filter as much as a predictor.

The second supplies the conditioning intuition. Constant Acceleration Flow upgrades rectified flow from constant velocity to constant acceleration. It feeds the predicted initial velocity into the acceleration model to disambiguate crossing trajectories, and reports one-step FID 1.39 on CIFAR-10. We borrow the idea that an explicit low-order kinematic state is a better conditioning signal than the raw configuration. CAF's trajectories run between noise and data, though, not across time chunks, and it says nothing about exposure bias.

The third family motivates the problem. DartControl rolls out short overlapping motion chunks ("primitives") with a latent diffusion model and scheduled training on its own outputs. AMD adds first-order velocity and foot-contact losses. GMMotion predicts continuous latent mixtures and explicitly reports that error accumulation remains unsolved. T2M-GPT corrupts training tokens. None of these changes the form of the history the model conditions on.

One paper constrains the design. Absolute Coordinates Make Motion Generation Easy shows that integrating relative pelvis velocities accumulates drift. A naive "predict acceleration and integrate twice" design would make this worse, because acceleration errors grow quadratically in position. For this reason our quadratic lives only in the conditioning and in a boundary-matched parameterization over a short horizon, and never in an unbounded integration chain. We fit in a heading-canonicalized global frame, as ACMDM advocates, but inside a streaming model.

The last group are non-streaming references. FlowMDM and NeMF avoid drift by generating whole sequences at once. We use them as quality ceilings, not competitors, because they cannot take commands mid-stream.

Mechanism

Let $H$ be the last $k$ generated frames of a joint trajectory, stacked as a vector. Let $P_p$ be the least-squares projection onto polynomials of degree $p$ in time over that window, so $P_p H$ is summarized by $p+1$ coefficients: position, velocity and, for $p=2$, acceleration. The generator $g$ produces the next chunk from $P_p H$ and the text condition. The chunk is $x(t) = x_0 + v t + \tfrac12 a t^2 + r(t)$, where $(x_0, v, a)$ come from the fit and $r$ is a learned residual constrained to $r(0)=0$ and $r'(0)=0$. That constraint makes position and velocity continuous across chunk boundaries by construction.

If $e_n$ is the error in the history at chunk $n$, then to first order

$$e_{n+1} \approx J_g P_p \, e_n + \epsilon_n ,$$

where $J_g$ is the generator's Jacobian with respect to its conditioning and $\epsilon_n$ is fresh per-chunk error. Drift compounds when the spectral norm $\|J_g P_p\|$ approaches or exceeds 1. The projection $P_p$ zeroes every component of the error outside the $(p+1)$-dimensional polynomial subspace. For roughly independent per-frame noise it shrinks the retained variance by about a factor of $(p+1)/k$, the standard least-squares count of parameters over samples. Lower $p$ contracts more, but it biases the state whenever true motion curves, and that bias then shows up in $\epsilon_n$. We expect the total long-horizon error to be minimized near $p=2$ for human motion at typical chunk lengths. This is a falsifiable prediction, not an assumption.

Research Program

We build on the DART architecture and training recipe so that the only change is the history interface and the output parameterization. The work has four parts.

The first part implements the projection with the window length $k$ and the order $p$ as knobs. The second part trains the residual head with the boundary constraint. The third part applies scheduled training exactly as DART does, so the model sees its own projected outputs during training. The fourth part adds a drift-gain probe. The probe injects small random perturbations into the history at inference, measures the induced change in the next chunk, and estimates $\|J_g P_p\|$ by power iteration on finite differences.

A secondary study tests whether the order should adapt per joint, for example quadratic for the root and hands but linear for slow joints. This follows the adaptive switching of Dutta et al., but it runs only if the uniform $p=2$ result holds.

Baselines

The naive reference point is a frame-level autoregressive model with the same backbone, conditioned on raw history, with no scheduled training. It shows how much drift there is to remove.

The strongest existing streaming method is DartControl, retrained from its released recipe on BABEL with the same data, the same number of training steps and the same hyperparameter search budget as our variant. The reported numbers we can anchor to are more than 300 FPS on an RTX 4090, 0.02 s latency, and an in-betweening goal error of 0.59 cm against 4.24 cm for DNO and 7.79 cm for OmniControl. We found no reported result on Lacuna for DART's FID or jerk metrics on BABEL, so we measure those ourselves for both systems. Beating DART means lower foot sliding, root-height deviation and goal error on rollouts well beyond its training horizon. It must also mean no worse FID or text-matching accuracy (R-Precision), and throughput that stays within real-time range.

For long compound prompts we compare against AMD on HumanLong3D, where it reports FID 0.225 against 1.249 for T2M-GPT. FlowMDM serves as a non-streaming smoothness ceiling on transition jerk. Its reported numbers are HumanML3D FID 0.29 and a transition-jerk (area under jerk) reduction of nearly 50% relative to MultiDiffusion.

The key ablations are an order sweep ($p=1$, the linear assumption; $p=2$; $p=3$; and raw history) and $p=2$ with the residual removed (pure quadratic extrapolation). A last ablation keeps the projection but drops the boundary constraint. Each of these isolates one ingredient.

Why not just…?

Why not just add an acceleration or jerk penalty to DART? This is the most direct competitor. FlowMDM already penalizes jerk and AMD penalizes velocity error. A loss shapes what the model outputs on clean inputs. It does not change how the model responds to corrupted inputs, and that response is the $J_g$ term that drives compounding. We include "DART + jerk loss" as a baseline at matched budget. If it matches our drift-gain and long-rollout numbers, the projection adds nothing, and we would report that.

Why not just smooth the history with a Savitzky–Golay filter at inference? This is a real threat, because a Savitzky–Golay filter is itself a local polynomial least-squares fit, so the operation is nearly identical. The difference is whether the generator is trained with the projection in the loop, so it learns to rely only on the retained state, and whether the output is boundary-matched to it. We test inference-only smoothing on a raw-history model directly. If it recovers most of the gain, the honest conclusion is that a free inference-time filter is the contribution. The trained architecture would then be unnecessary.

Why not just switch to absolute coordinates or whole-sequence generation? ACMDM and FlowMDM do reduce drift. They generate full clips, however, and cannot accept commands mid-stream. DART reports roughly 10× lower latency than FlowMDM. We report them as ceilings. The question here is how close a streaming model can get to them.

Why not just use shorter chunks so that linear motion is locally exact? Shorter chunks mean more feedback steps per second. By the recursion above, that raises the number of times $J_g$ is applied. QVI's GOPRO results show linear models misplacing curved motion even at high frame rates. The chunk-length sweep in our $p=1$ ablation tests this directly.

Proposed Experiments

Training and short-horizon evaluation use BABEL, following DART, and HumanML3D, measured by FID, R-Precision, Peak Jerk and area under jerk. Long-horizon evaluation rolls out 60 s, 120 s and 300 s sequences from chained BABEL and HumanLong3D prompts. We report FID in sliding windows as a function of elapsed time, foot-skating ratio, root-height variance, and goal error on DART's goal-reaching and in-betweening tasks.

The decisive check is whether the measured drift gain predicts the ordering of long-horizon errors. The prediction is that $p=2$ has a gain below that of raw history, a lower long-horizon error than $p=1$, and that $p=3$ is no better than $p=2$. The second decisive check is the Savitzky–Golay and jerk-loss comparison, which determines whether the trained projection is necessary. We also report throughput to confirm the fit adds negligible cost, since it is a fixed $k \times 3$ matrix multiply per joint. A clean negative result would also be informative: flat drift gain across orders would show that drift in chunked diffusion models comes from something other than history corruption.