PipeDream is a pipeline-parallel method that splits the sequence of a model's layers into stages placed on GPUs and keeps the pipeline flowing without stopping by having each GPU alternate one forward pass and one backward pass (1F1B). To use the same weights in the forward and backward passes, it combines this with "weight stashing," which keeps older versions of the weights.
In data parallelism, the All-Reduce communication of gradients for all weights becomes heavier as the number of GPUs grows. In the paper's measurements with 32 GPUs, up to 90% of the time was spent waiting on communication, depending on the model. With pipeline parallelism, each GPU only needs to send the activations and gradients at the stage boundary to one neighboring GPU.
However, deep learning training is a round trip, "a forward pass followed by a backward pass that traverses the same layers in reverse," so it does not work like an ordinary assembly line. If the pipeline is drained before each update after a fixed number of inputs, as in GPipe, GPUs sit idle (a bubble) every time.
In their 2019 paper (SOSP), Narayanan et al. proposed a schedule in which the pipeline is never drained and each GPU repeatedly alternates forward and backward passes, together with weight stashing to still obtain correct gradients. They report that time to reach target accuracy was up to 5.3x shorter than with data parallelism.
An analogy is the kitchen of a conveyor-belt sushi restaurant. The person shaping sushi and the person plating it finish earlier orders while taking new ones, so nobody's hands are idle and the flow continues.

