arXiv:2611.35011v1 cs.LG

One Model, Many Depths: Straightening Latent Trajectories for Post-Hoc Depth Reduction

Siddharth Rout, Nguyen Thi Hong Linh, Peter Yichen Chen, Eldad Haber

제출 2026-11-30

원문 초록

Stacked layers in a transformer can be read as steps of a discretized ODE acting on a latent state. In standard models, this latent trajectory is strongly curved, and pruning layers after training sharply degrades performance. We propose a trajectory-straightening regularizer that penalizes each layer's update for deviating from the average update, which pushes successive layers to move the hidden state in a shared direction. At inference, an extrapolation rule replaces dropped layers by repeating the last computed update. We test the idea on vision transformers (for classification of MNIST, CIFAR100, satellite cloud images) and on diffusion transformers (for MNIST super-resolution, Moving MNIST video prediction, 2m temperature nowcasting). The regularizer lowers a directional-misalignment measure by one to several orders of magnitude and, at moderate strengths, largely preserves full-depth quality on most tasks. Models trained with it degrade far more gracefully than unconstrained models when layers are removed, and more gracefully than LayerDrop under aggressive reductions, although LayerDrop is as good or better for mild reductions. The costs are real: lower full-depth quality at large $\lambda$, steep accuracy loss under aggressive depth reduction on harder tasks, and slower optimization. We compare against LayerDrop, a structured-dropout baseline, on every task. Our evidence is that shaping the geometry of latent trajectories is a promising route to depth-flexible models, not that it already beats existing alternatives. Code is available at https://github.com/Siddharth-Rout/straightenedTransformer.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2611.35011v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.