When a large language model is trained across many GPUs with pipeline parallelism, the model's layers are split into consecutive chunks, one chunk per GPU, and small slices of each batch flow through them. The first GPUs run out of memory first. They must hold the intermediate results of every in-flight slice until its backward pass returns from the end of the pipeline, while the last GPUs hold almost nothing. Continual pretraining has the mirror-image habit. When a trained model is taught a new domain such as mathematics, recent work protects general knowledge by barely touching the early layers and adds new capacity by duplicating the later layers. This note proposes that these two asymmetries should be designed together.
The proposal has two parts. If the early layers are truly frozen, the backward pass can stop before it reaches them. The first pipeline GPUs then no longer store activations at all, and the worst memory peak goes away. The memory this frees on the later GPUs is roughly the amount needed to host duplicated, fully trained late layers. The research question is whether this "freeze early, grow late" layout matches probe-guided expansion in quality while giving clearly better hardware use. A second question is whether the expansion budget can be read directly from the pipeline's spare memory instead of being set by hand.
Core Claim
ADEPT uses probes to find that general competence lives mostly in early layers. It duplicates later layers with function-preserving initialization and trains them with asymmetric learning rates: low rates on general units and high rates on new ones. It reports up to 5.58% target-domain and 5.76% general-benchmark gains over full fine-tuning while tuning only 15% of parameters. ADEPT says nothing about distributed execution. The research file notes that duplicating only late layers breaks pipeline symmetry, because late stages gain parameters, optimizer state and compute.
Our claim is that, in a pipeline, this asymmetry is nearly free rather than harmful, provided two conditions hold. First, the low-rate early units are replaced by a strictly frozen prefix. Second, stage boundaries are recut so that early GPUs take many forward-only layers and late GPUs take fewer, expanded, trainable layers.
The memory side follows from the activation-lifespan analysis in Pipeline Parallelism with Controllable Memory and BPipe. Under the standard schedule that alternates one forward and one backward pass (1F1B), stage $i$ of $p$ holds activations for about $p-i+1$ micro-batches. Stage $p$ therefore has headroom of about $(i-1)\,a$ relative to stage $i$, where $a$ is the activation memory of one micro-batch on one stage.
A frozen prefix of $s$ stages changes this in two ways. It needs no stored activations. It also shortens the backward chain for every later stage, so their lifespans shrink as well. The spare memory on trainable stages can then hold the parameters and optimizer state of duplicated layers.
The compute side is a hypothesis to be measured, not assumed. Adaptive Blockwise Task-interleaved Pipeline Parallelism splits the backward pass into an input-gradient pass $B$ and a weight-gradient pass $W$. Frozen layers skip both $B$ and $W$, so a forward-only stage can carry several times more layers than a trainable one in the same time. We expect stage times to equalize when the frozen stages hold more layers and the expanded stages hold fewer.
Research Program
We will build a planner. Its inputs are a base model, a probe-derived importance profile in the style of ADEPT, a GPU count, and per-device memory. It chooses three things jointly: the frozen prefix depth, the number of duplicated late layers, and the stage boundaries. The objective is to maximize expansion size and micro-batch count subject to every device fitting in memory and stage times staying within a small tolerance.
The cost model is profiled, not analytic. We will measure $F$, $B$ and $W$ times and memory for frozen, ordinary and duplicated layers on the target hardware. This follows the simulator-guided approach of AdaPtis, which reports a 2.12% prediction error for its performance model on heterogeneous architectures. We reuse its idea of profiling and search. We differ in one respect: AdaPtis takes the architecture as fixed, while our planner also chooses the architecture, that is, how much to grow and what to freeze.
On the learning side, the central uncertainty is whether strict freezing costs accuracy relative to ADEPT's small-but-nonzero early learning rates. We will run ADEPT's decoupled tuning on the expanded late block and compare three treatments of the prefix: strictly frozen, ADEPT's low-rate prefix, and a frozen prefix that keeps only normalization parameters trainable.
The system will be implemented on a Megatron-style 1F1B pipeline. Frozen stages run forward-only and pass activations downstream without retaining them.
The setting is sequential continual pretraining of Qwen3 and Llama3 models at the 1.7B–8B scale ADEPT used. Domains arrive one after another, starting with mathematics and extending to a sequence of three to five domains. The longer sequence matters for two reasons. The low-rank orthogonality bound in BiLoRA, at most $\lfloor d/r \rfloor$ tasks, predicts that cheap adapter methods saturate over long sequences. The intransigence result of Towards guarantees for parameter isolation warns that fully isolated, frozen parameters cannot absorb new knowledge. That second result constrains us directly: a frozen prefix trades plasticity in the early layers for stability. We must show that late-layer growth supplies enough plasticity across several domains.
Baselines
The naive reference applies ADEPT unchanged and partitions the expanded model uniformly by layer count on a 1F1B pipeline. This is what a practitioner gets today. We expect it either to run out of memory on the first device or to require fewer micro-batches, with late-stage bubbles. It uses the same data, token budget and GPU count as every other run.
The strongest systems competitor is ADEPT's model with its low-rate prefix, partitioned by an AdaPtis-style profiled search over boundaries and placement. Memory is balanced either with the V-Half schedule from Pipeline Parallelism with Controllable Memory or with BPipe's activation transfer. In GPT-3 pretraining these methods report 7–55% throughput gains over 1F1B (V-Shape) and an MFU of 52.06% with 1.25×–2.17× speedups over Megatron-LM (BPipe). We found no reported result on Lacuna for any of them in continual pretraining with expanded layers. We will give every systems baseline the same search budget as our planner. Beating this baseline means higher tokens per second at equal per-domain and general accuracy, or equal throughput with a larger expansion and higher domain accuracy.
The strongest learning baseline is ADEPT as published, run on our hardware. LEGO's math numbers on OLMoE-1B-7B serve as a reference, though not a direct comparison because the architecture differs. On GSM8K-Strict, LEGO reports 52.01 versus 15.54 for vanilla continual learning and 40.03 for replay mixing (LEGO).
The key ablation isolates the freeze. It keeps our recut pipeline and expansion and restores ADEPT's low-rate prefix, which forces a full backward pass. This separates the systems gain from removing the activation ramp from any accuracy change caused by strict freezing.
A second ablation fixes the expansion size at ADEPT's choice instead of the planner's. This tests whether reading the budget from spare memory actually helps.
Why not just…?
Why not just run ADEPT and then repartition with AdaPtis? This is the most serious threat. If ADEPT's low-rate prefix already behaves like a frozen one, offline repartitioning might recover most of the gain. Expansion happens once per domain, so offline planning is cheap. The deciding factor is the backward pass. Any nonzero learning rate on early units forces gradients all the way back, so the long-lifespan activations on the first GPUs remain, and AdaPtis can only spread them, not remove them. The planner's choices to freeze and to set expansion size are outside AdaPtis's search space. The isolating ablation and the strongest systems baseline settle this directly. If they tie, we will report that the contribution reduces to the expansion-size choice.
Why not just balance memory with V-Shape schedules or BPipe? These methods balance the activation ramp rather than remove it. The file notes that V-Shape doubles inter-stage communication and that BPipe depends on fast intra-node links. A frozen prefix needs neither. We will run both schedules on top of ADEPT and also on top of our layout. If they add nothing to our layout, that is evidence the ramp they target is gone.
Why not just use adapters such as InfLoRA on late layers and skip expansion? Adapters placed only on late layers get the same short backward pass, so this is a real competitor on the systems side. InfLoRA reports 71.01% on 20-task ImageNet-R. The case against adapters rests on saturation: BiLoRA's bound, and ADEPT's gains over full fine-tuning. We will run late-only orthogonal adapters at matched trainable parameters and compute across the multi-domain sequence. We expect any gap to appear in later domains rather than in the first one.
Proposed Experiments
The first check is accuracy parity. On math continual pretraining of Qwen3 and Llama3 at 1.7B–8B, the frozen-prefix, grow-late model must stay within noise of ADEPT on GSM8K (Flex and Strict) and on general retention measured with MMLU, CMMLU and ARC. General-domain replay data is drawn from FineWeb-Edu.
The second check is systems benefit. At equal GPU count, our layout should show lower peak memory on the most-loaded device, a smaller max-minus-min memory gap across stages, higher tokens per second and higher MFU than the strongest systems baseline. Results will be reported for both NVLink-only and cross-node configurations, since the file identifies interconnect sensitivity as BPipe's weakness.
The third check is whether hardware headroom is a good expansion budget. Converting the measured spare memory into extra duplicated layers should improve domain accuracy at fixed wall-clock time.
The fourth check uses the three-to-five-domain sequence. It tests whether late-only growth keeps learning without the collapse that the intransigence result predicts for frozen parameters, and whether the late-only adapter baseline saturates first.
A clear failure of the first check would mean strict freezing is too costly. The fallback is to keep a small trainable set near the top of the frozen prefix, which preserves most of the shortened backward pass.
References
- ADEPT: Continual Pretraining via Adaptive Expansion and Dynamic Decoupled Tuning
- Pipeline Parallelism with Controllable Memory
- BPipe: Memory-Balanced Pipeline Parallelism for Training Large Language Models
- Adaptive Blockwise Task-interleaved Pipeline Parallelism
- AdaPtis: Reducing Pipeline Bubbles with Adaptive Pipeline Parallelism on Heterogeneous Models
- BiLoRA: Almost-Orthogonal Parameter Spaces for Continual Learning
- Towards guarantees for parameter isolation in continual learning
- LEGO: Expert Expansion for Continual Learning of Mixture-of-Experts Language Models
- InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learning
- The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale