Papers
Topics
Authors
Recent
Search
2000 character limit reached

OpT-DeUS: Optimal Transport Depth Up-Scaling

Updated 8 July 2026
  • 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 nn Transformer layers is expanded to n+kn+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 (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 M\mathcal M with layers f1,,fnf_1,\dots,f_n is expanded into a deeper model M\mathcal M' with m=n+km=n+k layers by inserting new blocks between existing adjacent layers. The inserted layer fif'_i is built from the neighboring base layers fif_i and fi+1f_{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 (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

fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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 n+kn+k0 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 n+kn+k1 and n+kn+k2, the method first defines two discrete measures with uniform marginals, denoted n+kn+k3 and n+kn+k4. The paper states that neurons are treated equally, so the marginals are initialized uniformly. A support function n+kn+k5 represents a neuron by its weights, using the weight-based representation from Singh and Jaggi. The block-level cost matrix is then

n+kn+k6

where n+kn+k7 and n+kn+k8 are the n+kn+k9-th and M\mathcal M0-th neurons of the two block matrices (Cao et al., 11 Aug 2025).

The OT problem solved by OpT-DeUS is written as

M\mathcal M1

subject to

M\mathcal M2

The resulting transport matrix is used in two distinct alignment steps. First, a within-layer alignment applies a transport inherited from preceding blocks: M\mathcal M3 Second, an across-layer alignment applies the OT solution itself: M\mathcal M4 After alignment, the inserted block is initialized by simple averaging: M\mathcal M5 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 M\mathcal M6, 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: M\mathcal M7 These are the attention output projection M\mathcal M8 and the MLP down projection M\mathcal M9. 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: f1,,fnf_1,\dots,f_n0, which aligns a block to the previous block within the same layer, and f1,,fnf_1,\dots,f_n1, 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, f1,,fnf_1,\dots,f_n2. For the pre-attention RMSNorm block, f1,,fnf_1,\dots,f_n3 and this identity alignment propagates to the query, key, and value projections. For the post-attention or pre-MLP RMSNorm block, f1,,fnf_1,\dots,f_n4 is set by averaging the f1,,fnf_1,\dots,f_n5 matrices from both residual paths. For the attention output projection f1,,fnf_1,\dots,f_n6, the paper sets f1,,fnf_1,\dots,f_n7 for computational simplicity and subsequently zero-initializes the inserted f1,,fnf_1,\dots,f_n8. For the MLP gate projection f1,,fnf_1,\dots,f_n9 and up projection M\mathcal M'0, M\mathcal M'1 is set to M\mathcal M'2 from the attention module. For the MLP down projection M\mathcal M'3, M\mathcal M'4, followed by zero-initialization of M\mathcal M'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 M\mathcal M'6 layers, Algorithm 1 loops over

M\mathcal M'7

The paper also evaluates four insertion strategies: M\mathcal M'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 M\mathcal M'9 layers and Llama-3.2-1B with m=n+km=n+k0 layers. The expanded models are m=n+km=n+k1B with m=n+km=n+k2 layers and m=n+km=n+k3B with m=n+km=n+k4 layers, corresponding to adding m=n+km=n+k5 and m=n+km=n+k6 layers respectively, or m=n+km=n+k7 more layers. Continual pre-training uses m=n+km=n+k8B 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 m=n+km=n+k9 and sequence length fif'_i0. The CPT maximum learning rate is fif'_i1 for fif'_i2B expanded models and fif'_i3 for fif'_i4B expanded models. The SFT maximum learning rate is fif'_i5 for fif'_i6B and fif'_i7 for fif'_i8B. Hardware is also stated explicitly: fif'_i9B expanded models are trained on fif_i0 NVIDIA GH200 fif_i1 GPUs, fif_i2B expanded models on fif_i3 NVIDIA A100 fif_i4, and model creation on an AMD EPYC 7413 CPU with fif_i5 NVIDIA A100 fif_i6 (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 fif_i7B model, the average zero-shot score is fif_i8 for OpT-DeUS, compared with fif_i9 for LESA, fi+1f_{i+1}0 for LLaMA PRO, fi+1f_{i+1}1 for Avg-DeUS, fi+1f_{i+1}2 for SOLAR, and fi+1f_{i+1}3 for the Base-8B model. On supervised fine-tuning for the same scale, the average is fi+1f_{i+1}4 for OpT-DeUS, compared with fi+1f_{i+1}5 for LESA and fi+1f_{i+1}6 for Avg-DeUS. At the fi+1f_{i+1}7B scale, OpT-DeUS reaches fi+1f_{i+1}8 on CPT and fi+1f_{i+1}9 on SFT, compared with fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}0 and fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}1 for LESA and fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}2 and fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}3 for Avg-DeUS. The cleanest OT-specific ablation is the comparison against Avg-DeUS: the gain is fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}4 average points at fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}5B and fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}6 average points at fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}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 fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}8B CPT, the reported average scores are fi{fi,if copying Avg(fi,fi+1),if averaging NN(fi,fi+1),if predicting OpT-DeUS(fi,fi+1),if using OT.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}9 for OpT-DeUS-Btm, n+kn+k00 for OpT-DeUS-Mid, n+kn+k01 for OpT-DeUS-Top, and n+kn+k02 for OpT-DeUS-T{data}B. The training-time comparison shows the same ordering in efficiency: OpT-DeUS-Btm takes n+kn+k03, OpT-DeUS-Mid n+kn+k04, OpT-DeUS-Top n+kn+k05, and OpT-DeUS-T{data}B n+kn+k06. 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 n+kn+k07B expanded model, LESA requires n+kn+k08 for creation, whereas OpT-DeUS requires n+kn+k09. For the n+kn+k10B expanded model, LESA requires n+kn+k11 and OpT-DeUS n+kn+k12. When creation and training are combined for the n+kn+k13B model, LESA totals n+kn+k14, whereas OpT-DeUS totals n+kn+k15. 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 n+kn+k16 layer expansion and before training, OpT-DeUS matches the base or LLaMA PRO perplexity on all reported models: for Llama-3.2-1B, Base n+kn+k17, LLaMA PRO n+kn+k18, OpT-DeUS n+kn+k19; for Llama-3.1-8B, Base n+kn+k20, LLaMA PRO n+kn+k21, OpT-DeUS n+kn+k22; for Mistral-24B, Base n+kn+k23, LLaMA PRO n+kn+k24, OpT-DeUS n+kn+k25; for Qwen-2.5-32B, Base n+kn+k26, LLaMA PRO n+kn+k27, OpT-DeUS n+kn+k28; and for Llama-3-70B, Base n+kn+k29, LLaMA PRO n+kn+k30, OpT-DeUS n+kn+k31. By contrast, LESA reaches n+kn+k32 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-n+kn+k33. 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

n+kn+k34

and does not use an activation-based cost. Third, it simplifies difficult submodules by setting n+kn+k35 for n+kn+k36 and n+kn+k37, 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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Optimal Transport Depth Up-Scaling (OpT-DeUS).