---
title: 'OpT-DeUS: Optimal Transport Depth Up-Scaling'
url: https://www.emergentmind.com/topics/optimal-transport-depth-up-scaling-opt-deus
type: topic
---

# OpT-DeUS: Optimal Transport Depth Up-Scaling

Optimal Transport Depth Up-Scaling (OpT-DeUS) is a progressive depth expansion method for Transformers and large language models 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 \(n\) Transformer layers is expanded to \(n+k\) 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 [2508.08011].

## 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 \(\mathcal M\) with layers \(f_1,\dots,f_n\) is expanded into a deeper model \(\mathcal M'\) with \(m=n+k\) layers by inserting new blocks between existing adjacent layers. The inserted layer \(f'_i\) is built from the neighboring base layers \(f_i\) and \(f_{i+1}\), 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 [2508.08011].

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
\[
f'_i \leftarrow 
\begin{cases}
f_i, & \text{if copying} \\
\mathrm{Avg}(f_i,f_{i+1}), & \text{if averaging} \\
\mathrm{NN}(f_i,f_{i+1}), & \text{if predicting} \\
\mathrm{OpT\text{-}DeUS}(f_i,f_{i+1}), & \text{if using OT}.
\end{cases}
\]

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 \(T\) minimizes a linear cost under marginal constraints on discrete supports [1801.07745]. 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 [2508.08011].

## 2. OT-based alignment and inserted-layer construction

For each corresponding block pair \(W_b^{(i)}\) and \(W_b^{(i+1)}\), the method first defines two discrete measures with uniform marginals, denoted \(\alpha\) and \(\beta\). The paper states that neurons are treated equally, so the marginals are initialized uniformly. A support function \(\delta\) represents a neuron by its weights, using the weight-based representation from Singh and Jaggi. The block-level cost matrix is then
\[
c_{kj}=\|\delta(x^{(k)})-\delta(y^{(j)})\|_2,
\]
where \(x^{(k)}\) and \(y^{(j)}\) are the \(k\)-th and \(j\)-th neurons of the two block matrices [2508.08011].

The OT problem solved by OpT-DeUS is written as
\[
T \in \mathbb{R}_+^{n\times m},
\qquad
\min \sum_{k,j} T_{kj} c_{kj}
\]
subject to
\[
T\mathbf 1_m=\alpha,
\qquad
T^T\mathbf 1_n=\beta.
\]
The resulting transport matrix is used in two distinct alignment steps. First, a within-layer alignment applies a transport inherited from preceding blocks:
\[
W_b^{(i)} \leftarrow W_b^{(i)} \cdot T_{\mathrm{in}}.
\]
Second, an across-layer alignment applies the OT solution itself:
\[
W_b^{(i)} \leftarrow T_{\mathrm{out}}^T \cdot W_b^{(i)}.
\]
After alignment, the inserted block is initialized by simple averaging:
\[
{W'}_{b}^{(i)} \gets \frac{1}{2}\left(W_{b}^{(i)} + W_{b}^{(i+1)}\right).
\]
This averaging is therefore not raw interpolation but interpolation after neuron matching [2508.08011].

The paper states that the OT problem is solved with the Sinkhorn-Knopp algorithm and that the regularization parameter is set to \(0.06\), 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 [2508.08011; 2210.11368].

A final function-preserving step zero-initializes two difficult blocks:
\[
{W'}_{O}^{(i)}, {W'}_{Down}^{(i)} \gets 0.
\]
These are the attention output projection \(W_O\) and the MLP down projection \(W_{down}\). 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 [2508.08011].

## 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: \(T_{\mathrm{in}}\), which aligns a block to the previous block within the same layer, and \(T_{\mathrm{out}}\), which aligns a block across adjacent layers [2508.08011].

The rules reported for TMF are structurally specific. At the layer entrance of the inserted block, \(T_{\mathrm{in}}=I\). For the pre-attention RMSNorm block, \(T_{\mathrm{in}}=I\) and this identity alignment propagates to the query, key, and value projections. For the post-attention or pre-MLP RMSNorm block, \(T_{\mathrm{in}}\) is set by averaging the \(T_{\mathrm{out}}\) matrices from both residual paths. For the attention output projection \(W_O\), the paper sets \(T_{\mathrm{in}}=I\) for computational simplicity and subsequently zero-initializes the inserted \(W'_O\). For the MLP gate projection \(W_{gate}\) and up projection \(W_{up}\), \(T_{\mathrm{in}}\) is set to \(T_O\) from the attention module. For the MLP down projection \(W_{down}\), \(T_{\mathrm{in}}=I\), followed by zero-initialization of \(W'_{down}\) [2508.08011].

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 [2508.08011].

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 [2508.08011].

## 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 \(n\) layers, Algorithm 1 loops over
\[
\frac{n}{2} \le i < n.
\]
The paper also evaluates four insertion strategies:
\[
\text{Btm},\quad \text{Mid},\quad \text{Top},\quad \text{T\{data\}B},
\]
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 [2508.08011].

The evaluated base models are Llama-3.1-8B with \(32\) layers and Llama-3.2-1B with \(16\) layers. The expanded models are \(11.5\)B with \(48\) layers and \(1.72\)B with \(24\) layers, corresponding to adding \(16\) and \(8\) layers respectively, or \(50\%\) more layers. Continual pre-training uses \(1.5\)B 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 [2508.08011].

The reported optimization settings are batch size \(64\) and sequence length \(2048\). The CPT maximum learning rate is \(1\times 10^{-4}\) for \(1.72\)B expanded models and \(5\times 10^{-5}\) for \(11.5\)B expanded models. The SFT maximum learning rate is \(1\times 10^{-5}\) for \(1.72\)B and \(5\times 10^{-6}\) for \(11.5\)B. Hardware is also stated explicitly: \(11.5\)B expanded models are trained on \(4\) NVIDIA GH200 \((96\text{GB})\) GPUs, \(1.72\)B expanded models on \(1\) NVIDIA A100 \((80\text{GB})\), and model creation on an AMD EPYC 7413 CPU with \(1\) NVIDIA A100 \((80\text{GB})\) [2508.08011].

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 [2508.08011].

## 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 \(11.5\)B model, the average zero-shot score is \(68.87\) for OpT-DeUS, compared with \(68.77\) for LESA, \(68.56\) for LLaMA PRO, \(68.39\) for Avg-DeUS, \(64.20\) for SOLAR, and \(66.20\) for the Base-8B model. On supervised fine-tuning for the same scale, the average is \(69.67\) for OpT-DeUS, compared with \(69.47\) for LESA and \(69.34\) for Avg-DeUS. At the \(1.72\)B scale, OpT-DeUS reaches \(52.02\) on CPT and \(52.80\) on SFT, compared with \(51.51\) and \(52.51\) for LESA and \(50.88\) and \(52.02\) for Avg-DeUS. The cleanest OT-specific ablation is the comparison against Avg-DeUS: the gain is \(+0.48\) average points at \(11.5\)B and \(+1.14\) average points at \(1.72\)B, which the paper presents as direct evidence that neuron alignment improves over unaligned interpolation [2508.08011].

The position study reinforces the top-half insertion rule. On \(11.5\)B CPT, the reported average scores are \(68.32\) for OpT-DeUS-Btm, \(68.29\) for OpT-DeUS-Mid, \(68.87\) for OpT-DeUS-Top, and \(68.42\) for OpT-DeUS-T\{data\}B. The training-time comparison shows the same ordering in efficiency: OpT-DeUS-Btm takes \(14{:}56{:}00\), OpT-DeUS-Mid \(13{:}53{:}14\), OpT-DeUS-Top \(12{:}52{:}04\), and OpT-DeUS-T\{data\}B \(14{:}45{:}38\). The paper attributes the efficiency advantage of higher insertion to shorter back-propagation time [2508.08011].

Creation time is another practical result. For the \(1.72\)B expanded model, LESA requires \(00{:}26{:}15\) for creation, whereas OpT-DeUS requires \(00{:}02{:}34\). For the \(11.5\)B expanded model, LESA requires \(04{:}52{:}13\) and OpT-DeUS \(00{:}37{:}16\). When creation and training are combined for the \(11.5\)B model, LESA totals \(04{:}52{:}13 + 12{:}54{:}07\), whereas OpT-DeUS totals \(00{:}37{:}16 + 12{:}52{:}04\). The paper therefore presents OpT-DeUS as substantially faster to create than LESA while remaining slightly stronger on downstream averages [2508.08011].

The initialization-only perplexity results are used to argue strong function preservation. Immediately after \(1.5\times\) layer expansion and before training, OpT-DeUS matches the base or LLaMA PRO perplexity on all reported models: for Llama-3.2-1B, Base \(11.57\), LLaMA PRO \(11.57\), OpT-DeUS \(11.57\); for Llama-3.1-8B, Base \(7.33\), LLaMA PRO \(7.33\), OpT-DeUS \(7.33\); for Mistral-24B, Base \(4.43\), LLaMA PRO \(4.43\), OpT-DeUS \(4.43\); for Qwen-2.5-32B, Base \(3.78\), LLaMA PRO \(3.78\), OpT-DeUS \(3.78\); and for Llama-3-70B, Base \(1.98\), LLaMA PRO \(1.98\), OpT-DeUS \(1.98\). By contrast, LESA reaches \(871.50\) 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 [2508.08011].

## 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 [1801.07745; 2210.11368]. In that sense, its novelty lies in the modeling target—neuron alignment between adjacent Transformer layers—rather than in a new OT objective class [2508.08011].

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" [2410.19931], depth means the number of Transformer layers used to simulate more steps of adaptive gradient descent on the dual of entropically regularized Wasserstein-\(2\). 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 [2508.08011; 2410.19931].

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 [2405.19657]. 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 [2508.08011; 2405.19657].

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 [2508.08011].

## 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
\[
c_{kj}=\|\delta(x^{(k)})-\delta(y^{(j)})\|_2,
\]
and does not use an activation-based cost. Third, it simplifies difficult submodules by setting \(T_{\mathrm{in}}=I\) for \(W_O\) and \(W_{down}\), 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 [2508.08011].

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 [2508.08011].

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 [2508.08011].

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 [2508.08011].

Source: https://www.emergentmind.com/topics/optimal-transport-depth-up-scaling-opt-deus