OpT-DeUS: Optimal Transport Depth Up-Scaling
- The paper introduces OT-based insertion to construct new Transformer layers by aligning neurons between adjacent blocks, overcoming permutation mismatch.
- It employs blockwise OT alignment via Sinkhorn-Knopp and Transport Matrix Flow to fuse weights and preserve function while freezing original layers.
- Empirical results show that OpT-DeUS outperforms naive methods with improved zero-shot and fine-tuning scores, alongside faster model creation.
Optimal Transport Depth Up-Scaling (OpT-DeUS) is a progressive depth expansion method for Transformers and LLMs in which new layers are created by aligning adjacent pretrained Transformer blocks with optimal transport before fusing them. The method addresses the setting in which a pretrained model with Transformer layers is expanded to layers, after which only the newly inserted layers are trained during the expansion stage. Its central premise is that conventional copying or coordinate-wise averaging neglects neuron permutation mismatch between adjacent layers, whereas OT-based alignment can construct inserted layers from matched rather than merely index-aligned neurons (Cao et al., 11 Aug 2025).
1. Problem setting and conceptual basis
The immediate target of OpT-DeUS is depth up-scaling for pretrained Transformer stacks rather than geometric depth estimation. The paper studies the regime in which a base model with layers is expanded into a deeper model with layers by inserting new blocks between existing adjacent layers. The inserted layer is built from the neighboring base layers and , and the expansion is followed by continual pre-training or supervised fine-tuning. In the progressive variant emphasized by the paper, only the inserted layers are trainable during the depth up-scaling stage, while the original pretrained layers remain frozen (Cao et al., 11 Aug 2025).
The motivating failure mode is neuron permutation mismatch. The paper states that Transformer blocks can implement similar computations using different internal neuron orderings, so two neighboring layers can be similar up to permutation. Under that view, naive copying and naive averaging are limited because they combine weights coordinate-wise without first aligning functionally corresponding neurons. The initialization family is presented explicitly as
At a formal level, OpT-DeUS instantiates the standard discrete OT template on a neuron set rather than on pixels or points. In the broader OT literature, a transport matrix 0 minimizes a linear cost under marginal constraints on discrete supports (Solomon, 2018). OpT-DeUS adopts that structure block-wise: neurons or channels in one layer serve as source support points, neurons or channels in the next layer serve as target support points, and the resulting transport plan is used to align one block to the other before averaging (Cao et al., 11 Aug 2025).
2. OT-based alignment and inserted-layer construction
For each corresponding block pair 1 and 2, the method first defines two discrete measures with uniform marginals, denoted 3 and 4. The paper states that neurons are treated equally, so the marginals are initialized uniformly. A support function 5 represents a neuron by its weights, using the weight-based representation from Singh and Jaggi. The block-level cost matrix is then
6
where 7 and 8 are the 9-th and 0-th neurons of the two block matrices (Cao et al., 11 Aug 2025).
The OT problem solved by OpT-DeUS is written as
1
subject to
2
The resulting transport matrix is used in two distinct alignment steps. First, a within-layer alignment applies a transport inherited from preceding blocks: 3 Second, an across-layer alignment applies the OT solution itself: 4 After alignment, the inserted block is initialized by simple averaging: 5 This averaging is therefore not raw interpolation but interpolation after neuron matching (Cao et al., 11 Aug 2025).
The paper states that the OT problem is solved with the Sinkhorn-Knopp algorithm and that the regularization parameter is set to 6, following prior work. It does not print the entropically regularized objective or the Sinkhorn iteration equations, but that solver choice is consistent with the established role of Sinkhorn as a standard large-scale regularized OT workhorse in the numerical OT literature (Cao et al., 11 Aug 2025, Tupitsa et al., 2022).
A final function-preserving step zero-initializes two difficult blocks: 7 These are the attention output projection 8 and the MLP down projection 9. The stated reason is that their inputs are influenced by multiple blocks and residual paths, making clean alignment harder; zero-initialization avoids misalignment while preserving function (Cao et al., 11 Aug 2025).
3. Transport Matrix Flow and blockwise propagation of alignment
A distinctive engineering component of OpT-DeUS is Transport Matrix Flow (TMF), which propagates alignment information through the internal structure of a Transformer block. The need for TMF arises because once one block is aligned or permuted, the basis expected by later blocks in the same layer changes. The paper therefore distinguishes two transport matrices: 0, which aligns a block to the previous block within the same layer, and 1, which aligns a block across adjacent layers (Cao et al., 11 Aug 2025).
The rules reported for TMF are structurally specific. At the layer entrance of the inserted block, 2. For the pre-attention RMSNorm block, 3 and this identity alignment propagates to the query, key, and value projections. For the post-attention or pre-MLP RMSNorm block, 4 is set by averaging the 5 matrices from both residual paths. For the attention output projection 6, the paper sets 7 for computational simplicity and subsequently zero-initializes the inserted 8. For the MLP gate projection 9 and up projection 0, 1 is set to 2 from the attention module. For the MLP down projection 3, 4, followed by zero-initialization of 5 (Cao et al., 11 Aug 2025).
This blockwise treatment is one of the main ways OpT-DeUS differs from a monolithic whole-layer fusion rule. The method operates on corresponding Attention and MLP sub-blocks rather than on a single concatenated parameter tensor. The paper explicitly discusses the query, key, value, attention output, MLP gate, MLP up, and MLP down projections, together with the normalization blocks. It does not describe a separate head-level OT matching procedure, and it does not describe embedding alignment or fusion (Cao et al., 11 Aug 2025).
A plausible implication is that TMF treats layer insertion not merely as interpolation between two parameter vectors but as constrained model fusion under local basis changes induced by sequential composition and residual connections. That interpretation is consistent with the paper’s explicit connection to permutation symmetry and OT-based model fusion, even though the paper keeps the implementation at the block level rather than formalizing a global layerwise transport system (Cao et al., 11 Aug 2025).
4. Expansion regime, insertion positions, and implementation setting
OpT-DeUS inserts new layers in the top half of the base model by default. For a base stack of 6 layers, Algorithm 1 loops over
7
The paper also evaluates four insertion strategies: 8 corresponding respectively to insertion in the bottom half, middle portion, top half, and top-and-bottom quarters. The paper later argues experimentally that top insertion is preferable both for performance and for training efficiency because it yields shorter back-propagation time when only inserted layers are trainable (Cao et al., 11 Aug 2025).
The evaluated base models are Llama-3.1-8B with 9 layers and Llama-3.2-1B with 0 layers. The expanded models are 1B with 2 layers and 3B with 4 layers, corresponding to adding 5 and 6 layers respectively, or 7 more layers. Continual pre-training uses 8B tokens sampled from the CC-MAIN-2024-51 subset of FineWeb-Edu. Supervised fine-tuning uses Alpaca GPT4, and the paper notes that unlike progressive CPT, the SFT stage updates the whole model following LESA (Cao et al., 11 Aug 2025).
The reported optimization settings are batch size 9 and sequence length 0. The CPT maximum learning rate is 1 for 2B expanded models and 3 for 4B expanded models. The SFT maximum learning rate is 5 for 6B and 7 for 8B. Hardware is also stated explicitly: 9B expanded models are trained on 0 NVIDIA GH200 1 GPUs, 2B expanded models on 3 NVIDIA A100 4, and model creation on an AMD EPYC 7413 CPU with 5 NVIDIA A100 6 (Cao et al., 11 Aug 2025).
The method applies OT once at model creation time. After the inserted layers are constructed, training proceeds in the progressive expansion regime or in the downstream SFT regime. The paper does not provide asymptotic time or memory complexity formulas for OT alignment; empirical creation-time measurements are used instead (Cao et al., 11 Aug 2025).
5. Empirical behavior, initialization stability, and efficiency
The central empirical claim is that OT-based alignment improves over both existing depth up-scaling baselines and plain adjacent-layer averaging. On continual pre-training for the 7B model, the average zero-shot score is 8 for OpT-DeUS, compared with 9 for LESA, 0 for LLaMA PRO, 1 for Avg-DeUS, 2 for SOLAR, and 3 for the Base-8B model. On supervised fine-tuning for the same scale, the average is 4 for OpT-DeUS, compared with 5 for LESA and 6 for Avg-DeUS. At the 7B scale, OpT-DeUS reaches 8 on CPT and 9 on SFT, compared with 0 and 1 for LESA and 2 and 3 for Avg-DeUS. The cleanest OT-specific ablation is the comparison against Avg-DeUS: the gain is 4 average points at 5B and 6 average points at 7B, which the paper presents as direct evidence that neuron alignment improves over unaligned interpolation (Cao et al., 11 Aug 2025).
The position study reinforces the top-half insertion rule. On 8B CPT, the reported average scores are 9 for OpT-DeUS-Btm, 00 for OpT-DeUS-Mid, 01 for OpT-DeUS-Top, and 02 for OpT-DeUS-T{data}B. The training-time comparison shows the same ordering in efficiency: OpT-DeUS-Btm takes 03, OpT-DeUS-Mid 04, OpT-DeUS-Top 05, and OpT-DeUS-T{data}B 06. The paper attributes the efficiency advantage of higher insertion to shorter back-propagation time (Cao et al., 11 Aug 2025).
Creation time is another practical result. For the 07B expanded model, LESA requires 08 for creation, whereas OpT-DeUS requires 09. For the 10B expanded model, LESA requires 11 and OpT-DeUS 12. When creation and training are combined for the 13B model, LESA totals 14, whereas OpT-DeUS totals 15. The paper therefore presents OpT-DeUS as substantially faster to create than LESA while remaining slightly stronger on downstream averages (Cao et al., 11 Aug 2025).
The initialization-only perplexity results are used to argue strong function preservation. Immediately after 16 layer expansion and before training, OpT-DeUS matches the base or LLaMA PRO perplexity on all reported models: for Llama-3.2-1B, Base 17, LLaMA PRO 18, OpT-DeUS 19; for Llama-3.1-8B, Base 20, LLaMA PRO 21, OpT-DeUS 22; for Mistral-24B, Base 23, LLaMA PRO 24, OpT-DeUS 25; for Qwen-2.5-32B, Base 26, LLaMA PRO 27, OpT-DeUS 28; and for Llama-3-70B, Base 29, LLaMA PRO 30, OpT-DeUS 31. By contrast, LESA reaches 32 on Llama-3.2-1B in this initialization-only test. The paper interprets that instability as evidence that smaller models may provide too little layer data for LESA’s auxiliary predictor, while OpT-DeUS does not show that pathology (Cao et al., 11 Aug 2025).
6. Relation to the broader OT literature and terminological distinctions
Within OT methodology, OpT-DeUS is a discrete, blockwise, regularized matching procedure rather than a new transport solver. Its transport matrix is a standard discrete coupling under marginal constraints, and its use of Sinkhorn-Knopp places it within the now-standard entropic OT toolkit developed for large-scale discrete problems (Solomon, 2018, Tupitsa et al., 2022). In that sense, its novelty lies in the modeling target—neuron alignment between adjacent Transformer layers—rather than in a new OT objective class (Cao et al., 11 Aug 2025).
The title can be misunderstood because “depth” appears in several unrelated OT-adjacent literatures. In "Provable optimal transport with transformers: The essence of depth and prompt engineering" (Daneshmand, 2024), depth means the number of Transformer layers used to simulate more steps of adaptive gradient descent on the dual of entropically regularized Wasserstein-33. That paper shows a different relation between OT and Transformer depth: deeper transformers solve a fixed OT problem more accurately because each layer corresponds to one optimization step. OpT-DeUS instead uses OT to create additional layers in a pretrained model (Cao et al., 11 Aug 2025, Daneshmand, 2024).
A second possible confusion comes from geometric depth estimation. OT has also been used for uncertainty-guided local depth-distribution supervision in sparse-view 3D Gaussian Splatting, where patch-wise entropic OT complements pointwise depth losses under uncertainty (Sun et al., 2024). That setting concerns geometric depth priors and local depth distributions, not Transformer depth expansion. OpT-DeUS is therefore not a depth super-resolution or monocular-depth method. It is a model growth method for LLMs that borrows OT as a neuron-matching mechanism (Cao et al., 11 Aug 2025, Sun et al., 2024).
This suggests that OpT-DeUS belongs most naturally to the intersection of three themes: permutation symmetry in neural networks, OT-based model fusion, and progressive layer expansion. The paper explicitly situates itself against copying, averaging, predictor-based insertion, and function-preserving zero-initialization methods, while borrowing the discrete alignment machinery of OT to resolve mismatch between adjacent learned bases (Cao et al., 11 Aug 2025).
7. Scope, assumptions, and limitations
The paper states or implies several restrictions on the scope of OpT-DeUS. First, it assumes adjacent layers are functionally similar enough that interpolation or fusion is meaningful. Second, it relies on block-wise weight similarity as the OT cost through the Euclidean weight-space metric
34
and does not use an activation-based cost. Third, it simplifies difficult submodules by setting 35 for 36 and 37, then zero-initializing those inserted blocks. Fourth, it does not describe a separate attention-head-level alignment, embedding fusion, or a full asymptotic analysis of OT creation cost (Cao et al., 11 Aug 2025).
Several specific technical details are absent from the paper. It does not print the explicit entropically regularized OT objective in formula form. It does not provide the Sinkhorn iteration equations. It does not give asymptotic time or memory complexity formulas for the OT alignment. It does not provide a fully explicit formula for how the two residual-path transport matrices are averaged at post-attention RMSNorm. These omissions do not prevent understanding the method at the architectural level, but they constrain exact reconstruction of the transport subroutine from the paper alone (Cao et al., 11 Aug 2025).
A broader methodological limitation is that the empirical evidence establishes gains over Avg-DeUS, LESA, LLaMA PRO, and SOLAR in the reported settings, but the margin over LESA is modest at the larger scale. The paper nevertheless treats the Avg-DeUS comparison as the decisive ablation because it isolates the effect of OT alignment itself. This suggests that the method’s core claim is not that interpolation is ineffective, but that unaligned interpolation leaves measurable performance on the table when neuron permutation mismatch is present (Cao et al., 11 Aug 2025).
Overall, OpT-DeUS is best understood as a progressive Transformer expansion method that recasts inserted-layer construction as a blockwise OT alignment-and-fusion problem. Its contribution is to make depth up-scaling in LLMs sensitive to permutation symmetry: adjacent layers are not merely copied or averaged, but first matched by a transport plan, propagated through the block structure by TMF, and then fused in a way that preserves initialization stability while improving downstream continual pre-training and fine-tuning results (Cao et al., 11 Aug 2025).