One Model, Many Depths: Straightening Latent Trajectories for Post-Hoc Depth Reduction
The authors view transformer layers as steps of a discretized latent ODE and note that post-hoc layer pruning degrades predictions because the latent trajectory is curved. They add a trajectory-straightening regularizer that penalizes layer-update deviation from the mean update, and at inference they replace dropped layers by repeating the last computed update. On multiple ViT/DiT tasks, step-consistency improves by orders of magnitude and depth reduction degrades more gracefully than without regularization.
