arXiv:2610.31383cs.DCOct 2026

Manuscript Offprint

arXiv:2610.31383

Pipelining vs. Combining in Aggregation Tasks

Gabriel Marques Domingues, Claire Mathieu, Boaz Patt-Shamir

Abstract

We study the aggregation task (convergecast) in networks in the case that the values to be aggregated do not fit in a single message. We assume that every node starts with an input value, and there is an aggregation operator that is commutative, associative, and length-preserving, i.e., the result of aggregating two values has the same length as each of the input values. Since values do not fit in a message, they are transferred in a “train” of pipelined messages, which must be terminated whenever we want to aggregate values. The goal is to minimize the makespan time of aggregating all values. We present general lower bounds on the problem and optimal algorithms for several prevalent parallel computing architectures, including the hypercube and complete bipartite graphs, under both the splittable and unsplittable flows models. We also present an O(log⁡n)O(\log n) approximation for general graphs in the unsplittable flows model.

2012 ACM Subject Classification Theory of computation → Parallel algorithms; Theory of computation → Parallel computing models

Keywords and phrases Convergecast, Aggregation, Pipelining, Hamming codes, Hypercube, Complete graph, Lower bounds, Parallel algorithms

Digital Object Identifier 10.4230/LIPIcs...

Funding Gabriel Marques Domingues: Work supported by Israel Science Foundation grant 1948/21. Boaz Patt-Shamir: Work supported in part by Israel Science Foundation grant 1948/21 and Fondation des Sciences Mathématiques de Paris (FSMP).

© Author: Please provide a copyright holder; licensed under Creative Commons License CC-BY 4.0 Leibniz International Proceedings in Informatics Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

XX:2 Pipelining vs. Combining in Aggregation Tasks

1 Introduction

Many multistage tasks, such as moving a packet over a path, are inherently sequential: the packet must cross the first hop, then the second, etc. However, if many instances of the task are present, (e.g., many packets are required to cross the same path) and different processors are dedicated to different stages (e.g., different links), a special kind of parallelization called pipelining is possible. In pipelining, each task undergoes all required stages one by one as usual, but, in addition, when a task progresses from stage i to stage i+1i+1, say, the next task can progress from stage i-1 to stage i, keeping the ith-stage processor busy. This simple idea is exploited in a myriad of scenarios in real life, computer applications notwithstanding. In computer architecture, the idea of pipelining is one of the central means to increased throughput in many situations, such as logic circuits [24], instruction-level parallelism and superscalar processors [41], wormhole routing [12], and others.

A pipeline is beneficial when everything progresses in order: A given sequence of k jobs, each required to be processed in d consecutive stages of one time unit each, can be completed in k+d−1k + d - 1 time units by employing pipelining, as opposed to the naïve k⋅dk \cdot d time units solution, in which a job starts processing only after its predecessor is completed.

However, in many scenarios the pipeline gets broken occasionally. For example, in computer architecture, this is the case whenever the predicted instruction stream is wrong due to a conditional branching with an expected outcome. Typically, when such an obstruction occurs, a performance penalty must be paid.

In this paper, we explore such a situation in networks, in which we are forced to break pipelining, and the question is when and where. Specifically, we consider the aggregation task. In this task, we are given a distributed network, and each node holds an input value. The task is to output, at some specified root node, an aggregate value of all these inputs. The nature of the aggregation is, of course, crucial. For example, if the required aggregate value is the concatenation of all inputs, then aggregation reduces to standard many-to-one routing. However, in many other cases (for example, when computing the sum of the input values), partial aggregation is possible en route (continuing the example, if two values arrive at node, that node can add them up and transmit only one value—the sum—instead of two), thus saving on communication cost.

In this paper, we study an abstract model in which the aggregation function is represented by a binary operator denoted “⊗” that is associative and commutative. Moreover, we assume that the length (in bits) of a⊗ba \otimes b is the same as the length of aa and bb, i.e., the length of the value resulting from applying the operator is exactly the length of each of its operands.

Now, the standard way to aggregate values is to collect the values along a spanning tree of the network, and aggregate values in every node along the way (for more details, see [34]). This approach is effective when a value fits in a single message. In this paper we ask what happens if values are larger than a single message. This case is interesting because it raises the following serialization-parallelization dilemma: on one hand, transferring a long value quickly is naturally done by pipelining, i.e., breaking the value into a sequence of messages and sending them one after the other along the path from the source to the destination; on the other hand, applying aggregation at a node requires, in general, two complete values to be present, which means that the pipeline of the incoming values is stopped, and a new pipeline of the result value starts. 1^{1}

1^{1} We note that in some cases, aggregation can be applied to partial values, e.g., if the combining operator is the bitwise XOR of equal-length strings, there is no need to wait for two complete values to start

XX:3

Figure

Figure 1 LnL_{n} : Line network of n+1n+1 nodes. All nodes have s bit inputs, and all links have bandwidth 1.

To demonstrate this dilemma, consider the following simple example (see Figure 1). We are given a chain of processors p0,p1,…,pnp_0, p_1, \ldots, p_n connected by links that can transfer 1 unit of information in a time unit. Each processor holds a value of size ss information units, for some s>1s > 1. The task is to output the aggregate of all values at p0p_0. Using pipelining, the value from each process pip_i can reach p0p_0 in s+i−1s + i - 1 time units, but if we send all values to p0p_0 without aggregation along the way, the makespan would be n⋅sn \cdot s, because nn values need to cross the link p1→p0p_1 \to p_0. Another extreme solution is to combine at every step: that is, let process pip_i, for 0≤i<n0 \leq i < n, wait until it receives a value from pi+1p_{i+1}, combine it with the local value, and send the result to pi−1p_{i-1} (where p−1p_{-1} represents the output). This strategy also has time complexity of n⋅sn \cdot s, because transferring a value across a single hop takes ss time units, and only after the value is combined, the next value can be sent out, i.e., there is no pipelining at all. We note that as we show in Corollary 38 below, by applying aggregation and pipelining judiciously, the task can be completed in about n+s⋅log⁡3nn + s \cdot \log_3 n time units.

References (32)