potentialpaper

RoboPipe: Optimized Forward-Backward Rematerialization for Memory-Efficient Pipeline Parallel Training

Adrien Aguila-Multner, Olivier Beaumont, Lionel Eyraud-Dubois, Julia Gusak

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Forward & Backward per-microbatch ILP-optimized rematerialization for pipeline parallelism memory reduction

Abstract. Pipeline parallelism is a key technique for scaling deep network training across multiple devices. Recent works have significantly reduced pipeline idle time by improving scheduling efficiency. Decoupling the computation of gradients with respect to weights and activations led to the development of schedules with almost no idle time. However, these methods still require substantial memory, limiting their applicability on resource-constrained hardware. Our first contribution is to introduce recomputation to the backward pass, extending rematerialization beyond the forward pass. This enables executing schedules with decoupled gradient computations under much tighter memory constraints. Our second contribution is to consider more flexible rematerialization strategies, with individual per-microbatch decisions. We provide a unified optimization approach that, given a model and hardware memory constraints, formulates and solves an Integer Linear Programming (ILP) problem to determine the optimal per-microbatch, per-GPU rematerialization strategy for a given schedule, applicable to both one-wave and multi-wave pipeline schedules. With these tools, we show that when using rematerialization, the best scheduling algorithm varies according to the device memory constraints. Experiments demonstrate the effectiveness of all three contributions, showing that our approach enables efficient training of larger models under tight memory budgets, adapts optimally to varying memory capacities, and reduces recomputation overhead compared to existing recomputation solutions. Code is available at https://github.com/topal-team/elf.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper studies a memory bottleneck in decoupled-backward pipeline schedules, introduces backward-phase rematerialization, and provides a clean schedule-aware ILP with broad real-H100 evaluation and good reproducibility. The work appears technically sound. The remaining issue is whether the paper clearly demonstrates what is pipeline-specific and when backward rematerialization provides value beyond merely making an otherwise infeasible configuration fit.

State the pipeline-specific novelty precisely relative to Checkmate, Rotor, MONeT, and related rematerialization ILPs. Identify the cross-rank dependency, per-stage liveness, or microbatch coupling that is absent from single-device formulations, and distinguish that contribution from the new B-to-W recomputation option enabled by gradient decoupling.

At matched memory budgets, compare the proposed decoupled schedule plus backward rematerialization with the simplest applicable alternative, especially 1F1B plus forward-only rematerialization. Clarify the motivating Figure 1 and quantify across the experimental sweep how often backward rematerialization improves measured throughput beyond run variation versus only expanding the feasible memory range.

Clarify the optimization granularity and solver scope, such as why a whole stage per microbatch is the recomputation unit, whether warm-up/cool-down and all microbatches are optimized, how solve time scales with microbatch count, and why AdaPipe cannot be applied to the evaluated Zero-Bubble schedules. Also explain how the reimplemented baselines were validated.

Discuss robustness to profile mismatch, allocator fragmentation, temporary workspaces, and variable or packed sequence lengths. A small perturbation analysis using the existing profiler is sufficient. A production-framework port or a full dynamic-shape integration is not required for rebuttal.

Final justification

The rebuttal and additional experiments adequately addressed the main concerns regarding pipeline-specific novelty, backward rematerialization benefits, partitioning, robustness, and ILP scaling. Although the methodological novelty is moderate and scalability remains a limitation, the work is technically sound, broadly evaluated, reproducible, and practically useful.

Area Chair 2apA · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper studies a memory bottleneck in decoupled-backward pipeline schedules, introduces backward-phase rematerialization, and provides a clean schedule-aware ILP with broad real-H100 evaluation and good reproducibility. The work appears technically sound. The remaining issue is whether the paper clearly demonstrates what is pipeline-specific and when backward rematerialization provides value beyond merely making an otherwise infeasible configuration fit.

State the pipeline-specific novelty precisely relative to Checkmate, Rotor, MONeT, and related rematerialization ILPs. Identify the cross-rank dependency, per-stage liveness, or microbatch coupling that is absent from single-device formulations, and distinguish that contribution from the new B-to-W recomputation option enabled by gradient decoupling.

At matched memory budgets, compare the proposed decoupled schedule plus backward rematerialization with the simplest applicable alternative, especially 1F1B plus forward-only rematerialization. Clarify the motivating Figure 1 and quantify across the experimental sweep how often backward rematerialization improves measured throughput beyond run variation versus only expanding the feasible memory range.

Clarify the optimization granularity and solver scope, such as why a whole stage per microbatch is the recomputation unit, whether warm-up/cool-down and all microbatches are optimized, how solve time scales with microbatch count, and why AdaPipe cannot be applied to the evaluated Zero-Bubble schedules. Also explain how the reimplemented baselines were validated.

Discuss robustness to profile mismatch, allocator fragmentation, temporary workspaces, and variable or packed sequence lengths. A small perturbation analysis using the existing profiler is sufficient. A production-framework port or a full dynamic-shape integration is not required for rebuttal.

Final justification

The rebuttal and additional experiments adequately addressed the main concerns regarding pipeline-specific novelty, backward rematerialization benefits, partitioning, robustness, and ILP scaling. Although the methodological novelty is moderate and scalability remains a limitation, the work is technically sound, broadly evaluated, reproducible, and practically useful.

Reviewer myDBOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies memory-efficient pipeline-parallel training under modern schedules with decoupled backward computation. The key idea is to extend rematerialization beyond the standard forward-activation checkpointing setting and allow recomputation of intermediate states between the activation-gradient and weight-gradient backward phases. The paper further formulates a schedule-aware ILP to select per-stage and per-microbatch rematerialization decisions under a given memory budget.

Strengths and weaknesses

Strengths

The paper targets a relevant problem: memory pressure remains a major bottleneck in pipeline-parallel LLM training, and decoupled backward schedules can further increase the lifetime of some intermediate states. The paper makes a useful observation that backward rematerialization can relax these constraints, particularly for Zero-Bubble-style schedules.

The proposed formulation is schedule-aware and supports non-uniform per-microbatch decisions, which is more flexible than common uniform checkpointing strategies.

The experiments include multiple pipeline schedules and rematerialization baselines, and the ablation studies provide evidence that both per-microbatch decisions and backward rematerialization contribute to the final performance under constrained memory budgets.

Weaknesses

  1. The main weakness is the limited algorithmic novelty. The proposed method relies on a classical static ILP formulation for memory-constrained scheduling and rematerialization. While applying this formulation to decoupled pipeline schedules is useful, the optimization technique itself is not new. As a result, the contribution appears to be mainly an engineering adaptation of existing optimization ideas to backward rematerialization, rather than a fundamentally new algorithmic advance.

  2. A second concern is the reliance on static profiling assumptions. The ILP assumes that operation time, stored tensor size, and peak memory footprint are known before training and remain stable during execution. However, these quantities may vary in realistic LLM training due to variable sequence lengths, padding or packing, CUDA allocator behavior, kernel workspace allocation, and communication overlap. The paper does not evaluate how robust the generated plan is to profiling errors or runtime memory fluctuations, which is important because small memory mismatches may cause OOM or make the chosen plan suboptimal.

  3. The experimental setting leaves some questions about practical transferability. The baselines appear to be reimplemented within the authors’ ELF runtime rather than evaluated using their original open-source implementations. This provides a controlled comparison, but it also raises concerns about baseline fidelity. Moreover, the paper does not demonstrate integration with widely used training systems such as Megatron-LM, DeepSpeed, or PyTorch/TorchTitan, making it unclear how easily the proposed strategy would transfer to production-scale training environments.

Questions
  1. The ILP formulation relies on profiled operation times, stored tensor sizes, and peak memory footprints. How sensitive is the resulting plan to profiling mismatch? A small experiment that perturbs the profiled memory/time values by, e.g., 5%, 10%, and 20%, and reports whether the plan remains feasible and efficient, would be very helpful.

  2. Does the approach support variable-length sequences, packed batches, or dynamic padding patterns? If the method currently assumes fixed sequence length and static tensor shapes, please clarify this assumption and discuss how much safety margin is needed to avoid OOM in practical training. A lightweight experiment with mixed sequence lengths would help determine whether the static ILP plan can generalize beyond fixed-shape workloads.

  3. The baselines appear to be implemented within the authors’ ELF runtime. Could the authors clarify how the implementations of AdaPipe, Greedy rematerialization, and Zero-Bubble-style schedules were validated?

  4. Can the proposed rematerialization strategy be integrated into a mainstream training framework such as Megatron-LM, DeepSpeed, or PyTorch/TorchTitan pipeline parallelism? Even a small-scale proof-of-concept integration, or a detailed discussion of the required engineering changes, would strengthen the practical impact of the work.

  5. The paper shows that backward rematerialization can improve feasibility under tight memory budgets, but its throughput benefit appears less uniform. Could the authors more clearly separate when backward rematerialization improves throughput versus when it mainly expands the feasible memory range?

Limitations

The authors partially address the limitations by acknowledging that the method assumes a fixed static schedule, does not currently optimize pipeline partitioning, and is evaluated only on textual Transformer models. However, I think the limitations section should be expanded in several important directions.

  1. The method depends on static profiling of memory and time costs, but the paper does not discuss robustness to profiling errors, CUDA allocator fragmentation, temporary kernel workspaces, communication overlap, or other runtime sources of variability. This is important because the ILP plan may become infeasible if the estimated peak memory is too optimistic.

  2. The paper should more explicitly discuss whether the approach applies to variable-length or packed-sequence training, which is common in LLM training. If fixed sequence length is required, this should be stated clearly.

  3. Since the evaluation is conducted in the authors’ ELF runtime, the paper should discuss transferability to widely used training systems and whether any assumptions made by ELF are necessary for the proposed method.

  4. The limitations section could mention the additional compute and energy cost introduced by recomputation. Although rematerialization is intended to trade compute for memory, a brief discussion of this tradeoff would help readers understand when the method is practically worthwhile.

Final justification

While the rebuttal clarifies the positioning of the contribution, my overall assessment remains unchanged. The main limitation of this work is that the methodological novelty is relatively limited.

The paper's primary contribution is a carefully designed ILP formulation for pipeline-parallel rematerialization. I agree that this is more than a direct application of existing single-device checkpointing formulations: pipeline execution introduces additional dependencies and makes the optimization problem more complex. However, the core approach still follows a classical paradigm of formulating a static optimization problem and solving it with an exact solver. The main novelty comes from selecting optimization variables and constraints for a particular system setting, rather than introducing a new optimization algorithm, approximation strategy, or fundamentally new understanding of memory-efficient training.

Moreover, the formulation intentionally conditions on existing pipeline schedules and layer partitioning decisions. This design choice is reasonable from a tractability perspective, but it also limits the scope of the contribution. The paper optimizes rematerialization given a schedule, rather than jointly discovering better training strategies or uncovering new scheduling principles. As a result, the work is best viewed as a strong systems optimization of an existing design space, rather than a broadly novel method for pipeline-parallel training.

The additional rebuttal experiments and clarifications strengthen the empirical support and improve my confidence in the correctness of the approach. However, they do not fundamentally change the above assessment of the contribution. Given the current level of methodological novelty, I remain concerned that the paper does not provide sufficiently substantial new ideas for acceptance at NeurIPS.

Formatting concerns

No

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their insightful comments. We acknowledge their concerns about algorithmic novelty and would like to address it below.

We agree that integer linear programming itself is a classical optimization technique, and we do not claim the use of ILP as a novelty. Our algorithmic contribution lies instead in the design of the optimization formulation: identifying which decisions must be optimized jointly and at fine granularity to capture pipeline-parallel rematerialization, while keeping the resulting problem tractable at practically relevant scales.

This distinction is important because expressing rematerialization as an ILP does not by itself yield a practically useful solution. Even in the simpler single-device setting, general ILP formulations such as Checkmate quickly become too expensive expensive to solve as model size increases. Pipeline parallelism substantially enlarges this optimization problem: in addition to rematerialization decisions, one could jointly optimize the ordering of operations across concurrent microbatches and the partitioning of layers across pipeline stages. Optimizing all of these dimensions simultaneously would produce a much larger combinatorial problem.

Our formulation therefore deliberately separates these decisions. We condition on the pipeline schedule and layer partition, while exactly optimizing the rematerialization policy. Importantly, we retain fine-grained decisions where they have the largest impact: the ILP independently chooses rematerialization for every (microbatch, pipeline stage) pair, rather than enforcing a policy shared across microbatches or stages. This creates a substantially richer optimization space than the uniform rematerialization policies commonly used by pipeline-parallel training systems, while remaining solvable at useful scales. We also evaluated including layer partitioning in the optimization on small instances; as discussed elsewhere in the rebuttal, this substantially increased solving complexity while providing only marginal improvements, supporting our choice to condition on partitioning.

Moreover, applying rematerialization to pipeline parallelism is not simply a replication of a single-device formulation with additional indices. Pipeline execution changes the optimization structure itself. A recomputation on one stage may execute concurrently with useful work on another stage or overlap with communication, and can therefore fill a pipeline bubble without increasing the overall makespan. Conversely, through inter-stage dependencies, a local recomputation may delay operations on other ranks and propagate stalls through the pipeline. Our formulation captures these cross-rank dependencies and optimizes the global pipeline makespan across all pp GPUs, rather than simply minimizing the local cost of recomputed operations.

We will revise the paper to clarify this positioning. Our claim is not that we introduce a new generic optimization technique, but that we design a tractable exact optimization formulation for pipeline-parallel rematerialization. The main algorithmic contribution is the balance between expressiveness and tractability: preserving fine-grained rematerialization decisions and pipeline-specific interactions while conditioning on scheduling and partitioning decisions whose joint optimization would make the problem impractical.

Questions

The ILP formulation relies on profiled operation times, stored tensor sizes, and peak memory footprints. How sensitive is the resulting plan to profiling mismatch?

  1. In our earlier studies, we studied a similar question by following this process:

    1. Add random Gaussian noise to each operation’s profiled time.
    2. Use the noisy timings as the input and solve the ILP.
    3. Re‑measure that solution’s makespan using the original, unbiased timing data.
    4. Compare the obtained makespan to the optimal makespan that we get when the ILP is solved on the true data to find an overhead. We report the mean and standard deviation of the overhead found using this methodology for different noise levels, on the ZB-V schedule:
4 ranks 8 ranks 16 ranks
5% 0.04 +- 0.23% 0.12 +- 0.32% 0.06 +- 0.40%
10% 0.43 +- 0.77% 0.34 +- 0.72% 0.86 +- 0.90%
20% 1.38 +- 1.59% 1.53 +- 1.20% 2.49 +- 1.26%

From these results we concluded that the impact of profiling noise on the solution quality was reasonably low. From what we observed, the memory usage for computations in PyTorch is stable and not subject to profiling noise.

Does the approach support variable-length sequences, packed batches, or dynamic padding patterns?

  1. Our tool in its current state does not support the dynamic patterns mentioned. It is however easy for the ILP formulation to use different profiling values for each micro-batch, which would make it usable with variable-length sequences. In contrast, all other approaches in pipeline parallelism with static schedules cannot adapt to variable-length micro-batches. Our work has focused on the homogeneous case but we do not expect any particular issue with different workloads. There is a slight variability in memory usage depending on different factors, some of which the review mentioned. However a majority of the memory is used by the activations tracked by the ILP, which are very predictable. In practice we set the ILP budget to 90% of the GPU memory to account for fragmentation, CUDA contexts, working memory buffers, etc. This was sufficient in our experiments to avoid any OOM.

The baselines appear to be implemented within the authors’ ELF runtime. Could the authors clarify how the implementations of AdaPipe, Greedy rematerialization, and Zero-Bubble-style schedules were validated?

  1. Zero-Bubble schedules, as well as others, were validated visually, and by comparing their performance in terms of throughput and memory usage with each other. We found that our implementation matched with the expectations. Similarly, the greedy algorithm and AdaPipe do behave as theoretical estimations in terms of peak memory and throughput. We did also compare the performance of ELF with PyTorch's pipeline implementation, and found it to be on par.

Can the proposed rematerialization strategy be integrated into a mainstream training framework such as Megatron-LM, DeepSpeed, or PyTorch/TorchTitan pipeline parallelism?

  1. Integrating our work into one of those frameworks would require adding support for (1) microbatch-dependant rematerialization decisions, and (2) backward rematerialization. The latter can be difficult to support efficiently, depending on how gradient computation decoupling is implemented.

Could the authors more clearly separate when backward rematerialization improves throughput versus when it mainly expands the feasible memory range?

  1. We re‑ran the experiments shown in Figures 7–9 (Appendix A.3) using a restricted ILP that did not allow backward rematerialization for decoupled schedules. From this data, we can provide some additional insights on the usefulness of backward rematerialization. In all decoupled schedules cases (ZB-V & ZB-H2), 43% were not feasible without backward rematerialization due to high memory pressure. Among the ones that were feasible with forward-only rematerialization, 15% achieved a significant performance gain when using the same schedule with backward rematerialization enabled. These results indicate that backward rematerialization is mostly useful for feasibility, but can also improve performance in some cases. However it is important to understand that feasibility is performance in a way: making a performant schedule such as ZB-H2 feasible can achieve a better result than falling back to 1F1B. In 36% of all configurations, a decoupled schedule with backward rematerialization was found more performant than all schedules with only forward rematerialization.
Reviewer AAgdOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The authors build a system to generate efficient rematerialization plans for pipeline parallel training that is particularly useful in extremely memory-constrained scenarios. Given any pipelining schedule, the system solves an ILP problem to make three decisions on a per-microbatch basis - should the forward activations for the stage be saved or recomputed on backward pass for activations, and should the gradients and activations be save after backward pass of activations for the backward pass on parameters. By modeling the peak memory for each of these operations, the system is able to constrain the peak memory use at any time, while optimizing for the makespan of the micro-batches.

Unlike prior systems like AdaPipe that make rematerialization decisions at a per-layer granularity, this system uses the complete stage of a micro-batch as a recomputation unit. For 1F1B schedules, this system performs similar to AdaPipe at all memory budgets. For other schedules, it shows better throughput for very low memory budgets, while performing similar to other systems at other memory budgets.

Strengths and weaknesses

Training in a memory-constrained scenario is an important problem to solve and this work is very timely.

Strengths:

  • The system generalizes to different pipeline scheduling techniques
  • The ILP formulation is well-designed, and by considering the whole stage as one recomputation unit, the complexity of the ILP scales with number of GPUs and not number of layers, making the formulation more efficient.
  • Strong baselines in evaluations: different schedules + greedy algorithm + AdaPipe for 1F1B
  • Clearly mention their limitations that they do not jointly optimize selection of a pipeline schedule with rematerialization

Weakness:

  • Many details about the system don't come through in the writing. For example, I had to read the paper many times to understand what the granularity of recomputation was. Similarly, it was hard to understand what the ZB-H2 schedule was, and the ZB-V schedule has not been described in the paper. Another missing information is the number of layers in the models that are evaluated.
  • The stage-level recomputation granularity makes it hard to say whether the recomputation plan obtained is indeed the most optimal.
  • It is unclear whether the ILP is solved for the warmup case of the pipeline or if it optimizes the steady state case. If it optimizes the makespan for all the micro-batches in the system, I wonder how it will scale with the number of micro-batches.
  • The authors claim novelty (Line 38, 83) for decoupled backward pass with rematerialization without additional context of existing works:
    • Checkmate's formulation enables rematerialization on the entire DAG of computation, regardless of whether it is a forward or backward pass.
    • MONeT [1], another rematerialization optimization work that uses ILP formulations, talks about splitting the convolution backward operator into two- a parameter-gradient operator followed by an input-gradient operator, in order to aggressively free memory (Section D)

[1] Aashaka Shah, Chao-Yuan Wu, Jayashree Mohan, Vijay Chidambaram, Philipp Krähenbühl: Memory Optimization for Deep Networks. ICLR 2021

Questions

Here are more questions apart from the ones discussed above, in order of importance for the rebuttal:

  • Why can AdaPipe not be applied to ZB-H2 or ZB-V? Is there a fundamental limitation?
  • Is the ILP solved for the steady-state in the pipelining or for the warmup? How does it scale with the number of micro-batches? Why is the granularity of a stage used as the unit for recomputation?
  • What is the reason for the performance drop of ILP in figure 7(a) in 1F1B schedule for the 16k sequence length?
  • According to my understanding, operation W is the backward pass for calculating the gradients of the parameters for the complete stage. To do this, the full activations and gradients of that stage must be present in-memory. Can you please explain why the expectation is that P_F > P_B > P_W?
  • Similarly, why is Mf expected to be more than Mb?
Limitations

yes

Final justification

The rebuttal clarified most of my concerns and provided additional micro-batch scaling experiments. I am confident that the authors will address the writing changes that were suggested. I am concerned about the scalability of the ILP - the authors mentioned that their ILP could not get a feasible solution for rank x microbatch size =16 x 256 or 64 x 64 or 32 x 128, within one hour. I understand that being able to solve for 32 x 64 also means solving for a cluster that is thousands of GPUs large due to DP and other parallelisms, so this concern is not enough to make me reduce my score.

Formatting concerns

none

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank the reviewer for their constructive and positive review.

We apologize if the paper was not clear enough. To answer about the issues you mention, we use the same number of layers as the models in Pipeline Parallelism with Controllable Memory [1], that is 30, 46 and 62 layers from smallest to largest models. ZB-H2 and ZB-V are makespan-optimal schedules taking advantage of gradient computation decoupling, proposed in Zero-Bubble [2]. ZB-V specifically uses multiple waves with a V-like stage assignment to reduce the memory usage. It is unfortunately not described in the version published at ICLR, only on the arXiv version. We will explicit this information in the final version of the paper, as well as the recomputation granularity.

[1] Qi Penghui, Wan Xinyi, Amar Nyamdavaa, Lin Min. Pipeline Parallelism with Controllable Memory. 2024a [2] Qi Penghui, Wan Xinyi, Huang Guangxing, Lin Min. Zero bubble (almost) pipeline parallelism // The Twelfth International Conference on Learning Representations. 2024b.

From our preliminary experiments, using more fine-grained rematerialization options did not significantly increase performance while making the ILP more complex to solve. We decided to stick to binary options, but this remains an interesting direction for improvement.

The reviewer is correct that two previous solutions (Checkmate and MONeT) used backward rematerialization in the context of single-device optimization, for the case of Checkmate it is implicit. We will definitely add reference to these works in our text. However our novelty claim was made in the context of Pipeline Parallelism, where to the best of our knowledge backward rematerialization has not been used to improve memory usage of Zero-Bubble like schedules.

Here are our answers to the questions, in order:

Why can AdaPipe not be applied to ZB-H2 or ZB-V?

  1. The AdaPipe algorithm is specifically designed for the single-wave 1F1B schedule. Indeed, the authors use specific features of the 1F1B schedule to obtain a recursive expression for its execution time, depending on the duration of each stage. Adapting this approach to either a multi-wave setting or to ZB-V or ZB-H2 is non-trivial and outside of the scope of this work.

Is the ILP solved for the steady-state in the pipelining or for the warmup? How does it scale with the number of micro-batches? Why is the granularity of a stage used as the unit for recomputation?

  1. The formulation of the ILP contains all micro-batches, including warmup, steady-state and cooldown. We did not perform experiments to specifically test the scaling on the number of micro-batches. However in the experiments of Figure 4, the number of micro-batches is always equal to twice the number of ranks. The solving time remains reasonable up to 32 ranks and 64 micro-batches. Additionally, for a fixed number of ranks, the number of variables and constraints in the ILP grows linearly with the number of micro-batches. We use the granularity of a stage as the unit for recomputation because from our preliminary experiments, using a finer granularity does not provide significant improvement on the schedule throughput, but increases the solving time of the ILP by a large margin.

What is the reason for the performance drop of ILP in figure 7(a) in 1F1B schedule for the 16k sequence length?

  1. This particular data point is an error in the data. After verification the real value is around 0.92 sequences/s. It will be fixed in the final version.

According to my understanding, operation W is the backward pass for calculating the gradients of the parameters for the complete stage. To do this, the full activations and gradients of that stage must be present in-memory. Can you please explain why the expectation is that P_F > P_B > P_W?

  1. In our formulation, we define the peak memory of an operation as the maximum memory used during that computation compared to what was already present before it. For FF, without recomputations, that is at least the full set of activations. For BB, some activations can be freed during the computation while the gradients are created. Therefore the peak is close to 0. Similarly WW can free a lot of tensors during its computation. This is also what we observe experimentally when measuring memory in our implementation.

Similarly, why is Mf expected to be more than Mb?

  1. This expectation is based on the type of models used. For those models the sum of gradients and parameters kept for the weight gradient computation is slightly smaller than the sum of activations kept after FF, even when using FlashAttention. This is mentioned in Zero-Bubble [1] Section 2.3 which uses the memory analysis of Transformers from RARLTM [2]. This was verified experimentally when profiling the memory usage of our implementation.

[1] Qi Penghui, Wan Xinyi, Huang Guangxing, Lin Min. Zero bubble (almost) pipeline parallelism // The Twelfth International Conference on Learning Representations. 2024b. [2] Korthikanti Vijay Anand, Casper Jared, Lym Sangkug, McAfee Lawrence, Andersch Michael, Shoeybi Mohammad, Catanzaro Bryan. Reducing activation recomputation in large transformer models // Proceedings of Machine Learning and Systems. 2023. 5. 341–353

Authors · CommentOpenReview ↗

Additional experiments on ILP solving time with more micro-batches

After running the same experiment shown in Figure 4, this time varying the number of micro-batches while fixing the number of ranks to 16, we observe similar results. For 16, 32 and 64 micro-batches a solution below 1% gap is found in under 10 seconds. For 128 micro-batches it takes ~100 seconds. For 256 no solution is found before the 1h time limit. These results suggest that the solving time scales with the product of ranks and micro-batches, p×mp \times m; for example the time for (pp=16,mm=128) is comparable to that for (pp=32,mm=64).

We believe that these solving times allow for a wide range of practical uses, since as discussed at the start of Section 3.1, one pipeline rank can represent several GPUs using Tensor/Sequence Parallelism, and Data Parallelism can also be used by replicating our solutions on several Data Parallel groups. This means that the number of pipeline ranks, and thus the number of micro-batches necessary for efficiency, remains low even with high GPU count.

Reviewer ZKZdOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies the memory–performance trade-off of pipeline-parallel (PP) training under decoupled-backward schedules (Zero-Bubble family), where the backward pass is split into a gradient-w.r.t.-activations step (BB) and a gradient-w.r.t.-weights step (WW). The authors make three claims: (1) rematerialization is extended into the decoupled backward pass, so that intermediates kept between BB and WW can be recomputed before WW rather than stored, lowering the b(t) MBb(t)\,M_B term in peak memory; (2) rematerialization decisions are made per-microbatch and per-stage rather than uniformly; and (3) the planning problem is cast as an Integer Linear Program (ILP) that, given a fixed schedule, a memory budget, and profiling data, minimizes the makespan overhead from recomputation subject to a per-stage memory constraint, applicable to both single-wave and multi-wave schedules. The ILP is solved offline with CPLEX. Experiments on decoder-only Transformers (9.6B/21B/38.5B) on H100 GPUs, across five base schedules (1F1B, 1F1B-2W, ZB-H2, ZB-V, ZB-V-2W) and varying sequence lengths, show that per-microbatch ILP planning reduces iteration time relative to uniform and greedy recomputation, enables fitting larger sequences under tight memory, and reveals that the throughput-optimal schedule depends on the memory budget.

Strengths and weaknesses

Strengths

  • Important and well-scoped problem. Memory is the binding constraint for decoupled-backward schedules, since intermediates needed for WW must be retained between BB and WW, inflating peak memory exactly where these schedules are otherwise attractive. Targeting that term is a sensible objective.
  • A natural new recomputation axis. Extending rematerialization to the B→WB \rightarrow W interval (with the two levels "activations only" and "activations and gradients" in Table 2) is a reasonable extension of forward-only checkpointing, and it is the mechanism that lets ZB-style schedules run under budgets where they would otherwise OOM.
  • Clean and general formulation. The ILP is schedule-agnostic: a schedule is encoded as an ordered list of (i,j,c)(i,j,c) operations per rank, and the same memory/time constraints apply to one-wave and multi-wave schedules. The notation in Section 3.1 and Tables 1–2 is clear, and the full formulation in Appendix A.2 (objective and constraints in equations (10)–(16)) is complete enough to follow.
  • Broad evaluation. Five base schedules, three model sizes, multiple sequence lengths, real H100 runs with medians over 10 repetitions and interquartile ranges (Figure 3, Appendix A.3 Figures 7–9). The practitioner-facing observation that the throughput-optimal schedule shifts from ZB-H2 toward ZB-V as memory tightens (Section 4.1–4.2) is a genuinely useful takeaway.
  • Reproducibility. The ELF runtime and experiment code are provided; environment and hyperparameters are specified. The greedy baseline and the schedule encoding are spelled out in Appendix A.4 (Algorithm 1), and AdaPipe is implemented within the same runtime for a fair comparison (Figure 3, Figures 7–9). The solving-time behavior is characterized up to 32 ranks (Section 4.3, Figure 4), the per-microbatch decision is isolated against a uniform-only variant (Figure 5), the forward-versus-backward contribution is separated (Figure 6), and per-GPU/per-stage recomputation patterns are reported (Appendix A.6, Figures 10–13).

Weaknesses

1. The core contribution is integration rather than a new abstraction, and the pipeline-specific difficulty is not surfaced (Quality / Significance / Originality).

The method is, at its core, a rematerialization-as-ILP formulation in the lineage of single-device checkpoint-selection work (Checkmate, Rotor and follow-ups), transported to the PP setting and augmented with one additional recomputation option (B→WB \rightarrow W) made possible by Zero-Bubble's gradient decoupling. The ILP is clean but relatively direct: schedules are taken as fixed inputs, stage partitioning is not co-optimized (acknowledged as a limitation in Section 5), and no new scheduling primitive is proposed. The paper does not articulate what is structurally hard about rematerialization in pipeline parallelism that does not already arise in the single-device formulation, beyond the bookkeeping of which microbatch's intermediates are live at each schedule step. In other words, the genuinely new element is the B→WB \rightarrow W recomputation option, and that is conceptually a straightforward replication of forward checkpointing into the second decoupled phase. The ablation in Figure 6 is consistent with this reading: enabling backward rematerialization gives only a "slight" throughput improvement for ZB-H2, and its main role is feasibility (finding any solution under very tight budgets) rather than a new performance regime. Taken together, the work reads as solid, careful engineering and a thorough empirical study, but the conceptual and algorithmic originality is limited. This is the dominant reason for my scores on Significance and Originality.

2. Figure 1 does not establish that the depicted strategy beats the obvious simpler baseline.

The motivating example (Figure 1, ZB-H1 on 4 ranks) is intended to argue that the optimal recomputation strategy is non-trivial. However, it shows only the ILP solution for ZB-H1 and provides no head-to-head against "1F1B + forward-only rematerialization" at the same memory budget. For precisely this kind of configuration, it is plausible that 1F1B with default forward recomputation achieves both lower peak memory and lower iteration time, which would make the chosen example evidence against the decoupled-plus-backward-remat strategy rather than for it. The figure does not rule this out: visually, Rank 2 is the longest (bottleneck) row while Rank 0 finishes early and Ranks 1/3 contain idle gaps, which is consistent with such a slowdown. Establishing that "default 1F1B exceeds the memory limit here" would address only peak memory, not the iteration-time comparison. As it stands, the figure cannot serve as the motivating example, because the very claim it is meant to support (that the non-trivial strategy is worthwhile here) is not demonstrated for the case shown.

Overall, the paper provides a broad and carefully executed empirical study, but two issues weigh against it: the limited originality of the formulation, and the absence of a concrete case where the decoupled-plus-backward-rematerialization solution is shown to dominate the simplest applicable baseline.

Questions
  1. Pipeline-specific novelty. Beyond adding the B→WB \rightarrow W recomputation option enabled by gradient decoupling, what does the formulation exploit that is specific to pipeline parallelism and absent from single-device checkpoint-selection ILPs (Checkmate / Rotor and follow-ups)? A precise statement, e.g., a constraint or coupling that exists only because of cross-rank dependencies and per-stage liveness, would help me re-evaluate Originality. Clarifying this is the single change most likely to move my score.

  2. When does backward rematerialization help beyond feasibility? Figure 6 suggests the standalone benefit of F+BF+B over FF-only is small for ZB-H2 except under extreme memory pressure, where its role is to make any solution feasible. Across the full sweep (all schedules, model sizes, rank counts), in what fraction of configurations does F+BF+B improve measured throughput by more than the interquartile range, versus only changing feasibility? This would clarify how much of the contribution is performance versus reach.

  3. Partitioning co-optimization. Section 5 notes that adapting the partition (as in AdaPipe) can balance recomputation overhead, and that the present ILP does not do this. Even a small ablation on one model and rank count, comparing the fixed-partition ILP against a partition-aware variant, would help quantify how much performance is left on the table.

Limitations

yes.

Final justification

Final Justification

I raise my score from 3 to 4 (Borderline accept). The rebuttal was substantive and, importantly, candid about the scope of the work.

Resolved.

  • Value of backward rematerialization beyond feasibility. The authors re-ran the Appendix A.3 sweep with a backward-remat-restricted ILP and reported concrete numbers.
  • Partitioning co-optimization. The authors went beyond what I asked and ran a local-search partition experiment across three schedules and three rank counts. I appreciate that the authors also noted that ZB-H2's 1.26$\times$ gain at 4 ranks still leaves it below ZB-V.

Remaining.

  • The overall scope of the contribution stays moderate. As the authors themselves put it, the contribution is a formulation that jointly captures pipeline-specific parallelism, cross-rank coupling, and fine-grained decisions.
Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We are grateful for the reviewer's detailed feedback and questions.

We would first like to address the question of the novelty of our work by stating that our contribution is to express a formulation that simultaneously (1) accurately captures the optimization problem, (2) preserves the most important optimization decisions, and (3) remains solvable at a practically useful scale. We discuss these questions further in our answer to Reviewer 3 and invite the reviewer to read it as well for more details. For questions regarding the originality of the ILP formulation with respect to pipeline parallelism, we refer the reviewer explicitly to our response to the first question below.

We would also like to clarify that Figure 1 is not meant to support the claim that a non-trivial strategy is worthwhile, but rather as an illustrative example of all the possibilities for rematerialization that are considered in our ILP formulation. The reviewer is correct that this particular case a 1F1B schedule could be more efficient, although not trivially. Our claims for efficiency of the solutions provided by the ILP are supported by the experimental plots on Figure 3 and Figures 6 to 9 in the appendix, which show that in many cases, the ZB-V and ZB-H2 schedules with our ILP formulation outperform all 1F1B-based solutions. We do have depictions of ZBV schedules that improve over the corresponding 1F1B+remat schedule for the same memory budget (corresponding to budget 52GB on Figure 2 (a)), but they do not convey as well the different possibilities of the ILP.

Figure 3 with sequence length 8192 shows a case where backward rematerialization gives a better result than both simple baselines such as full remat, and more complex ones such as AdaPipe. The fact that it uses backward remat has not been explicitly highlighted, but it is indeed used to achieve these results.

Now we will answer the questions asked by the reviewer:

Pipeline-specific novelty. Beyond adding the recomputation option enabled by gradient decoupling, what does the formulation exploit that is specific to pipeline parallelism and absent from single-device checkpoint-selection ILPs (Checkmate / Rotor and follow-ups)?

  1. We thank the reviewer for pointing this out. We agree that the pipeline-specific structure exploited by our formulation was not sufficiently surfaced in the paper. Beyond the additional recomputation option enabled by gradient decoupling, there are two fundamental differences between rematerialization in pipeline parallelism and single-device checkpoint selection that our ILP explicitly captures. First, pipeline parallelism introduces parallel execution opportunities that fundamentally change both the constraints and the cost of rematerialization: In a single-device formulation such as Checkmate, a recomputed operation is necessarily serialized with the other computations on the device. In pipeline parallelism, recomputation on one stage can instead execute concurrently with useful computation on another stage and can overlap with inter-stage communication. For example, during the backward phase of microbatch (k), our formulation may schedule a forward recomputation on GPU (i-1) concurrently with the backward computation on GPU (i). The subsequent backward operation on GPU (i-1) is constrained to start only after both (i) its local forward recomputation and (ii) the backward computation on GPU (i), followed by the required communication, have completed. Thus, these two predecessors and the communication can progress in parallel before synchronizing at the dependent backward operation. This type of constraint has no counterpart in a single-device checkpoint-selection formulation, where recomputation and backward execution share the same device and are necessarily serialized. This parallelism also changes the optimization objective: unlike in single-device formulations, the cost of a recomputation cannot be assessed locally, since it may either extend the critical path or be hidden within a pipeline bubble. Our objective (Eq. (10)) therefore considers the joint execution across all pp GPUs to minimize the actual makespan. Second, rematerialization decisions are coupled across ranks. Through inter-stage dependencies, a recomputation on one rank can delay operations on neighboring ranks, while the resulting idle time may create opportunities for additional rematerialization elsewhere. The ranks therefore cannot be optimized independently; this coupling is captured by Eqs. (12)–(13) in Appendix A.2.4, which relate the completion times of dependent operations of the same microbatch across GPUs. We will revise the paper to make these distinctions explicit. The algorithmic contribution is therefore not the use of ILP itself, nor simply the addition of backward rematerialization, but an optimization formulation that jointly captures pipeline-specific parallel execution, cross-rank dependencies, and fine-grained rematerialization decisions across microbatches and stages.

When does backward rematerialization help beyond feasibility?

  1. We re‑ran the experiments shown in Figures 7–9 (Appendix A.3) using a restricted ILP that did not allow backward rematerialization for decoupled schedules. From this data, we can provide some additional insights on the usefulness of backward rematerialization. In all decoupled schedules cases (ZB-V & ZB-H2), 43% were not feasible without backward rematerialization due to high memory pressure. Among the ones that were feasible with forward-only rematerialization, 15% achieved a significant performance gain when using the same schedule with backward rematerialization enabled. These results indicate that backward rematerialization is mostly useful for feasibility, but can also improve performance in some cases. However it is important to understand that feasibility is performance in a way: making a performant schedule such as ZB-H2 feasible can achieve a better result than falling back to 1F1B. In 36% of all configurations, a decoupled schedule with backward rematerialization was found more performant than all schedules with only forward rematerialization.

Partitioning co-optimization

  1. The models considered in our experiments are largely homogeneous, except for their first and last layers. For single-wave schedules, this leaves relatively few meaningful alternatives to the balanced partition, essentially assigning slightly more or fewer layers to the first/last stages. We evaluated these alternatives and observed only marginal performance differences, suggesting that little performance is left on the table in this setting. For multi-wave schedules, the space is substantially larger, as each GPU may receive multiple intervals of heterogeneous lengths while maintaining overall load balance between GPUs. Jointly exploring this combinatorial space within our ILP would significantly increase its complexity, and our preliminary experiments did not reveal clear benefits. We nevertheless agree that developing an efficient partition-aware optimization for this larger space is an interesting direction for future work. We decided to keep a fixed partition for the current work and leave this potential improvement for future work.
Authors · CommentOpenReview ↗

Additional experiments about partitioning co-optimization

We found the partitioning question interesting and, as requested, carried out a small experiment on partitioning co-optimization. The procedure we followed is as follows:

  1. Solve the ILP with the "balanced" partition (the one used throughout the paper)
  2. Find the rank that performs the most recomputations, and the one that requires the fewest
  3. Transfer one Transformer block from the former to the latter in the partition
  4. Solve the ILP with this new partition
  5. Repeat steps 2-4 until an already evaluated partition is encountered again

This local search algorithm is not optimal, but it explores the large search space very quickly. Below we present the speedup and raw throughput improvements (seq/s) obtained by the best partition found relative to the balanced partition. We used model 21B with sequence length 40964096 and 50GiB of GPU memory.

4 ranks 8 ranks 16 ranks
1F1B 1.07 (3.35 → 3.59) 1.00 (7.74 → 7.74) 1.00 (15.14 → 15.14)
ZB-H2 1.26 (2.64 → 3.33) 1.02 (7.15 → 7.31) 1.00 (15.20 → 15.20)
ZB-V 1.13 (3.90 → 4.39) 1.02 (9.13 → 9.30) 1.00 (17.22 → 17.22)

Note that although the speedup for ZB-H2 on 4 ranks is high, its best throughput remains below ZB-V's. Across all schedules, the throughput improvement is limited to 1.13x for 4 ranks. It is interesting to observe that with more ranks the benefit drops to almost zero. This is most likely due to the granularity of the partition choices: with more stages (and thus fewer blocks per stage), moving a block from one stage to another has a very high impact on both computation and memory. These observations show that there is indeed still a performance gain to achieve by optimizing the partitioning, but only for large number of blocks per stage, and provide a quantitative evaluation of the possible impact of this improvement.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…