LinMorph: Learning to Morph Weights for Efficient Video DiT Linearization
Organizations: Shanghai Jiao Tong University · VUI Labs Research
Abstract
Post-hoc linearization is an attractive way to accelerate pretrained Video Diffusion Transformers (Video DiTs), yet existing methods largely treat the quality loss induced by attention replacement as a recovery problem. We show that a more fundamental bottleneck lies upstream: initialization. Random initialization discards pretrained knowledge, whereas manual weight reuse transfers it through rigid and incomplete source--target correspondences. We introduce LinMorph, which recasts Video DiT linearization as a learnable softmax-to-linear weight transformation problem. Instead of copying predefined counterparts, LinMorph learns a cross-parameter morphism that lets each target Gated DeltaNet (GDN) parameter draw jointly from pretrained query, key, value, and output projections, including for parameters with no direct softmax counterpart. A single morphism is shared across layers and learned through local teacher alignment, while producing layer-specific initializations from their respective pretrained weights. The resulting weights are then materialized as independent GDN modules for progressive distillation and joint recovery.Since the morphism operates in weight space rather than token space, it can be learned on short, low-resolution clips and directly reused at larger video scales. Across pretrained Video DiTs, LinMorph enables markedly faster recovery and better final generation quality than random initialization and heuristic weight reuse. Results show that efficient linearization depends not only on how a converted model is recovered, but critically on how pretrained knowledge is transferred before recovery. Project page: https://lonelyling.github.io/LinMorph.
Figures & tables
| Initialization | Block NMSE | Block Cos. |
|---|---|---|
| Random | 0.09483 | 0.96211 |
| Manual copying | 0.09446 | 0.96209 |
| Base | 0.01360 | 0.99321 |
| Base + residual | 0.01239 | 0.99381 |
| Init. | Upd. | Block NMSE | Block Cos. | Output NMSE | Output Cos. |
|---|---|---|---|---|---|
| Random | 1,500 | 0.1522 | 0.9315 | 0.0250 | 0.9873 |
| Manual | 1,500 | 0.1359 | 0.9379 | 0.0230 | 0.9884 |
| Random | 3,000 | 0.1168 | 0.9449 | 0.0168 | 0.9915 |
| Manual | 3,000 | 0.0905 | 0.9565 | 0.0137 | 0.9931 |
| LinMorph | 1,500 | 0.0525 | 0.9738 | 0.0101 | 0.9949 |
| Model | VB1 | VB2 | Model | VB1 | VB2 |
| General video-generation models | |||||
| Wan2.1-1.3B a | 82.49 | 56.02 | CogVideoX-1.5-5B c | 82.01 | 53.40 |
| MoAlign-2B b | 81.30 | 55.90 | CogVideoX-2B b | 80.60 | 54.90 |
| VideoREPA-2B b | 80.50 | 55.00 | VideoCrafter2 d | 80.44 | – |
| Efficient video-generation models | |||||
| Wan-DMD (2 steps) a | 83.28 | 56.67 | PyramidalWan-DMD-PT ⋆,a | 82.72 | 51.75 |
| Dimension | LinVideo | LinMorph (21 GDN) | |
|---|---|---|---|
| Imaging quality | 66.07 | 69.04 | |
| Aesthetic quality | 59.41 | 63.90 | |
| Motion smoothness | 98.19 | 98.58 | |
| Dynamic degree | 59.67 | 60.56 | |
| Background consistency | 96.72 | 97.16 | |
| Subject consistency | 95.12 | 95.48 |
| Schedule | Total updates | Block NMSE | Block Cos. |
|---|---|---|---|
| One-shot | 4,500 | 0.18406 | 0.90358 |
| Progressive | 4,500 | 0.17931 | 0.90728 |
| Transformation | Block NMSE | Block Cos. | Output NMSE | Output Cos. |
|---|---|---|---|---|
| Manual | 0.1002 / – | 0.9614 / – | 4.1482 / – | 0.2395 / – |
| FullMix | 0.0177 / 0.0161 | 0.9912 / 0.9920 | 0.7810 / 0.6390 | 0.6456 / 0.7051 |
| PreHeadMix | 0.0221 / 0.0207 | 0.9890 / 0.9897 | 1.5084 / 1.2746 | 0.5176 / 0.5745 |
| PostHeadMix | 0.0175 / 0.0162 | 0.9913 / 0.9919 | 0.7376 / 0.6166 | 0.6625 / 0.7135 |
| PreChannelMix | 0.0183 / 0.0166 | 0.9908 / 0.9917 | 0.9758 / 0.6926 | 0.6071 / 0.6893 |
| PostChannelMix | 0.0207 / 0.0181 | 0.9897 / 0.9910 | 1.4928 / 0.8154 | 0.4759 / 0.6536 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| Transformer block index. | |
| Source index, source set , and its size . | |
| Target-parameter index, mixing-group index, and channel index. | |
| Diffusion scheduler timestep, corresponding noise level, and text condition. | |
| Teacher width, head count, and head width, with . | |
| GDN hidden width, recurrent head count, and per-head key/value widths. |
| Target | Native shape | Source reduction | Fixed base |
|---|---|---|---|
| Decay projection | Zero | ||
| Update projection | Zero | ||
| , bias | Native initialization | ||
| Short-conv weights | Identity kernel | ||
| Output-norm scale | Ones |
| Parameter set | Parameters (M) |
|---|---|
| Shared base mapper | 84.93 |
| Shared residual refinement (base frozen) | 151.07 |
| Single native GDN (reference) | 151.24 |
| Single GDN with bridges (reference) | 160.68 |
| 7 GDN modules with bridges | 1,124.75 |
| 14 GDN modules with bridges | 2,249.50 |
| Setting | Wan2.1 | Wan2.2 |
|---|---|---|
| Source backbone | T2V-1.3B | TI2V-5B, T2V mode |
| Replacement blocks | ||
| Recovery data | HQ videos | OpenVid |
| Training clip shape | ||
| Training devices | 8 GPUs | 8 GPUs |
| Per-device batch | 1 | 1 |
| Schedule | Block NMSE | Block Cos. | Output NMSE | Output Cos. |
|---|---|---|---|---|
| One-shot | 0.18406 | 0.90358 | 0.03415 | 0.98260 |
| Progressive | 0.17931 | 0.90728 | 0.03868 | 0.98026 |
| Backbone | Initialization | Updates | Attn. NMSE | Attn. Cos. | Norm ratio |
|---|---|---|---|---|---|
| Wan2.1 | LinMorph | 1500 | 0.43849 | 0.75766 | 0.86764 |
| Wan2.1 | Manual | 1500 | 1.02142 | 0.26047 | 0.36950 |
| Wan2.1 | Random | 1500 | 1.10699 | 0.08895 | 0.26422 |
| Wan2.1 | Random | 3000 | 1.09900 | 0.15997 | 0.39579 |
| Wan2.2 | LinMorph | 1250 | 0.96955 | 0.48265 | 0.92147 |
| Wan2.2 | LinMorph | 1500 | 1.00650 | 0.47709 | 0.94721 |
| Evaluation size | Mapper | Attention NMSE | Attention Cos. | Block NMSE | Block Cos. |
|---|---|---|---|---|---|
| Base | 0.29951 | 0.83543 | 0.01242 | 0.99379 | |
| Base + residual | 0.27237 | 0.85161 | 0.01121 | 0.99439 | |
| Base | 0.34784 | 0.80592 | 0.01549 | 0.99231 | |
| Base + residual | 0.32078 | 0.82269 | 0.01418 | 0.99296 |
| Layers sharing a mapper | Block NMSE | Block Cos. |
|---|---|---|
| 1 layer (independent mappers) | 0.20388 | 0.94327 |
| 6 layers (group-shared mappers) | 0.20734 | 0.94558 |
| 30 layers (one shared mapper) | 0.01560 | 0.99221 |
| Frames | Wan (s) | 21 GDN (s) | Speedup | Wan (GiB) | 21 GDN (GiB) |
|---|---|---|---|---|---|
| 81 | 166.9 | 213.2 | 0.78 | 15.50 | 28.40 |
| 241 | 959.0 | 753.7 | 1.27 | 18.42 | 44.61 |
| 321 | 1604.7 | 1094.0 | 1.47 | 19.87 | 52.72 |
Diffusion Model Inference Acceleration
Diffusion model inference acceleration reduces the time and compute needed to generate or reconstruct outputs while preserving quality.
See all 509 papers