In theoretical computer science, communication complexity studies the amount of communication required to solve a problem when the input to the problem is distributed among two or more parties. The study of communication complexity was first introduced by Andrew Yao in 1979, while studying the problem of computation distributed among several machines.
The problem is usually stated as follows: two parties (traditionally called Alice and Bob) each receive a (potentially different) <math>n</math>-bit string <math>x</math> and <math>y</math>. The goal is for Alice to compute the value of a certain function, <math>f(x, y)</math>, that depends on both <math>x</math> and <math>y</math>, with the least amount of communication between them.
While Alice and Bob can always succeed by having Bob send his whole <math>n</math>-bit string to Alice (who then computes the function <math>f</math>), the idea here is to find clever ways of calculating <math>f</math> with fewer than <math>n</math> bits of communication. Note that, unlike in computational complexity theory, communication complexity is not concerned with the amount of computation performed by Alice or Bob, or the size of the memory used, as we generally assume nothing about the computational power of either Alice or Bob.
This abstract problem with two parties (called two-party communication complexity), and its general form with more than two parties, is relevant in many contexts. In VLSI circuit design, for example, one seeks to minimize energy used by decreasing the amount of electric signals passed between the different components during a distributed computation. The problem is also relevant in the study of data structures and in the optimization of computer networks. For surveys of the field, see the textbooks by and .
Formal definition
Let <math>f: X \times Y \rightarrow Z</math> where we assume in the typical case that <math> X=Y=\{0,1\}^n </math> and <math> Z=\{0,1\}</math>. Alice holds an <math>n</math>-bit string <math>x \in X</math> while Bob holds an <math>n</math>-bit string <math>y \in Y</math>. By communicating to each other one bit at a time (adopting some communication protocol that is agreed upon in advance), Alice and Bob wish to compute the value of <math>f(x,y)</math> such that at least one party knows the value at the end of the communication. At this point the answer can be communicated back so that at the cost of one extra bit, both parties will know the answer. The worst case communication complexity of this communication problem of computing <math>f</math>, denoted as <math> D(f) </math>, is then defined to be
:<math> D(f) = </math> minimum number of bits exchanged between Alice and Bob in the worst case.
As observed above, for any function <math>f: \{0, 1\}^n \times \{0, 1\}^n \rightarrow \{0, 1\}</math>, we have <math>D(f) \leq n</math>.
Using the above definition, it is useful to think of the function <math>f</math> as a matrix <math>A</math> (called the input matrix or communication matrix) where the rows are indexed by <math>x \in X</math> and columns by <math>y \in Y</math>. The entries of the matrix are <math>A_{x,y}=f(x,y)</math>. Initially both Alice and Bob have a copy of the entire matrix <math>A</math> (assuming the function <math>f</math> is known to both parties). Then the problem of computing the function value can be rephrased as "zeroing-in" on the corresponding matrix entry. This problem can be solved if either Alice or Bob knows both <math>x</math> and <math>y</math>. At the start of communication, the number of choices for the matrix position corresponding to the inputs is the size of matrix, i.e. <math>2^{2n}</math>. Then, as and when each party communicates a bit to the other, the number of choices for the position reduces, as this eliminates a set of rows/columns, resulting in a submatrix of <math>A</math>.
More formally, a set <math>R \subseteq X \times Y</math> is called a (combinatorial) rectangle if whenever <math>(x_1,y_1) \in R</math> and <math>(x_2,y_2) \in R</math> then <math>(x_1,y_2) \in R</math>. Equivalently, <math>R</math> is a combinatorial rectangle if it can be expressed as <math>R = M \times N</math> for some <math>M \subseteq X</math> and <math>N \subseteq Y</math>. Consider the case when <math>k</math> bits are already exchanged between the parties. Now, for a particular <math>h \in \{0,1\}^k</math>, let us define a matrix
:<math>T_{h} = \{ (x, y) : \text{ the }k\text{-bits exchanged on input } (x , y) \text{ is }h\}</math>
Then <math>T_{h} \subseteq X \times Y</math>, and it is not hard to show that <math>T_{h}</math> is a combinatorial rectangle in <math>A</math>.
Example: EQ
We consider the case where Alice and Bob try to determine whether or not their input strings are equal. Formally, define the Equality function, denoted <math>EQ : \{0, 1\}^n \times \{0, 1\}^n \rightarrow \{0, 1\}</math>, by <math>EQ(x, y) = 1</math> if <math>x = y</math>. As we demonstrate below, any deterministic communication protocol solving <math>EQ</math> requires <math>n</math> bits of communication in the worst case. As a warm-up example, consider the simple case of <math>x, y \in \{0, 1\}^3</math>. The equality function in this case can be represented by the matrix below. The rows represent all the possibilities of <math>x</math>, the columns those of <math>y</math>.
{| class="wikitable" style="font-family: monospace; text-align: right; margin-left: auto; margin-right: auto; border: none;"
! EQ
! 000
! 001
! 010
! 011
! 100
! 101
! 110
! 111
|-
! 000
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|-
! 001
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|-
! 010
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|-
! 011
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|-
! 100
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|-
! 101
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|-
! 110
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|-
! 111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|-
|}
In this table, the function only evaluates to 1 when <math>x</math> equals <math>y</math> (i.e., on the diagonal). It is also fairly easy to see how communicating a single bit divides someone's possibilities in half. When the first bit of <math>y</math> is 1, consider only half of the columns (where <math>y</math> can equal 100, 101, 110, or 111).
Theorem: D(EQ) = n
Proof. Assume that <math>D(EQ) \leq n-1</math>. This means that there exists <math>x \neq x'</math> such that <math>(x, x)</math> and <math>(x', x')</math> have the same communication transcript <math>h</math>. Since this transcript defines a rectangle, <math>f(x, x')</math> must also be 1. By definition <math>x \neq x'</math> and we know that equality is only true for <math>(a, b)</math> when <math>a = b</math>. This yields a contradiction.
This technique of proving deterministic communication lower bounds is called the fooling set technique.
Randomized communication complexity
In the above definition, we are concerned with the number of bits that must be deterministically transmitted between two parties. If both the parties are given access to a random number generator, can they determine the value of <math>f</math> with much less information exchanged? Yao, in his seminal paper or more generally almost-quantum correlations, whereas on the contrary some other resources are shown to collapse randomized communication complexity, such as the PR-box, or some noisy PR-boxes satisfying some conditions.
Distributional complexity
One approach to studying randomized communication complexity is through distributional complexity.
Given a joint distribution <math>\mu</math> on the inputs of both players, the corresponding distributional complexity of a function <math>f</math> is the minimum cost of a deterministic protocol <math>R</math> such that <math>\Pr[f(x,y) = R(x,y)] \ge 2/3</math>, where the inputs are sampled according to <math>\mu</math>.
Yao's minimax principle (a special case of von Neumann's minimax theorem) states that the randomized communication complexity of a function equals its maximum distributional complexity, where the maximum is taken over all joint distributions of the inputs (not necessarily product distributions!).
Yao's principle can be used to prove lower bounds on the randomized communication complexity of a function: design the appropriate joint distribution, and prove a lower bound on the distributional complexity. Since distributional complexity concerns deterministic protocols, this could be easier than proving a lower bound on randomized protocols directly.
As an example, let us consider the disjointness function DISJ: each of the inputs is interpreted as a subset of <math>\{1,\dots,n\}</math>, and DISJ(,)=1 if the two sets are disjoint. Razborov proved an <math>\Omega(n)</math> lower bound on the randomized communication complexity by considering the following distribution: with probability 3/4, sample two random disjoint sets of size <math>n/4</math>, and with probability 1/4, sample two random sets of size <math>n/4</math> with a unique intersection.
Information complexity
A powerful approach to the study of distributional complexity is information complexity. Initiated by Bar-Yossef, Jayram, Kumar and Sivakumar, the approach was codified in work of Barak, Braverman, Chen and Rao and by Braverman and Rao.
The (internal) information complexity of a (possibly randomized) protocol with respect to a distribution is defined as follows. Let <math>(X,Y) \sim \mu</math> be random inputs sampled according to , and let be the transcript of when run on the inputs <math>X,Y</math>. The information complexity of the protocol is
:<math>
\operatorname{IC}_\mu(R) = I(\Pi;Y|X) + I(\Pi;X|Y),
</math>
where denotes conditional mutual information.
The first summand measures the amount of information that Alice learns about Bob's input from the transcript, and the second measures the amount of information that Bob learns about Alice's input.
The -error information complexity of a function with respect to a distribution is the infimal information complexity of a protocol for whose error (with respect to ) is at most .
Braverman and Rao proved that information equals amortized communication. This means that the cost for solving independent copies of is roughly times the information complexity of . This is analogous to the well-known interpretation of Shannon entropy as the amortized bit-length required to transmit data from a given information source. Braverman and Rao's proof uses a technique known as "protocol compression", in which an information-efficient protocol is "compressed" into a communication-efficient protocol.
The techniques of information complexity enable the computation of the exact (up to first order) communication complexity of set disjointness to be <math>1.4923\ldots n</math>.
Information complexity techniques have also been used to analyze extended formulations, proving an essentially optimal lower bound on the complexity of algorithms based on linear programming that approximately solve the maximum clique problem.
Omri Weinstein's 2015 survey surveys the subject.
Quantum communication complexity
Quantum communication complexity tries to quantify the communication reduction possible by using quantum effects during a distributed computation.
At least three quantum generalizations of communication complexity have been proposed; for a survey see the suggested text by G. Brassard.
The first one is the qubit-communication model, where the parties can use quantum communication instead of classical communication, for example by exchanging photons through an optical fiber.
In a second model the communication is still performed with classical bits, but the parties are allowed to manipulate an unlimited supply of quantum entangled states as part of their protocols. By doing measurements on their entangled states, the parties can save on classical communication during a distributed computation (see an application in Collapse of Randomized Communication Complexity).
The third model involves access to previously shared entanglement in addition to qubit communication, and is the least explored of the three quantum models.
Nondeterministic communication complexity
In nondeterministic communication complexity, Alice and Bob have access to an oracle. After receiving the oracle's word, the parties communicate to deduce <math>f(x,y)</math>. The nondeterministic communication complexity is then the maximum over all pairs <math>(x,y)</math> over the sum of number of bits exchanged and the coding length of the oracle word.
Viewed differently, this amounts to covering all 1-entries of the 0/1-matrix by combinatorial 1-rectangles (i.e., non-contiguous, non-convex submatrices, whose entries are all one (see Kushilevitz and Nisan or Dietzfelbinger et al.)). The nondeterministic communication complexity is the binary logarithm of the rectangle covering number of the matrix: the minimum number of combinatorial 1-rectangles required to cover all 1-entries of the matrix, without covering any 0-entries.
Nondeterministic communication complexity occurs as a means to obtaining lower bounds for deterministic communication complexity (see Dietzfelbinger et al.), but also in the theory of nonnegative matrices, where it gives a lower bound on the nonnegative rank of a nonnegative matrix.
Unbounded-error communication complexity
In the unbounded-error setting, Alice and Bob have access to a private coin and their own inputs <math>(x, y)</math>. In this setting, Alice succeeds if she responds with the correct value of <math>f(x, y)</math> with probability strictly greater than 1/2. In other words, if Alice's responses have any non-zero correlation to the true value of <math>f(x, y)</math>, then the protocol is considered valid.
Note that the requirement that the coin is private is essential. In particular, if the number of public bits shared between Alice and Bob are not counted against the communication complexity, it is easy to argue that computing any function has <math>O(1)</math> communication complexity. On the other hand, both models are equivalent if the number of public bits used by Alice and Bob is counted against the protocol's total communication.
Though subtle, lower bounds on this model are extremely strong. More specifically, it is clear that any bound on problems of this class immediately imply equivalent bounds on problems in the deterministic model and the private and public coin models, but such bounds also hold immediately for nondeterministic communication models and quantum communication models.
Forster was the first to prove explicit lower bounds for this class, showing that computing the inner product <math>\langle x, y \rangle</math> requires at least <math>\Omega(n)</math> bits of communication, though an earlier result of Alon, Frankl, and Rödl proved that the communication complexity for almost all Boolean functions <math>f: \{0, 1\}^n \times \{0, 1\}^n \to \{0, 1\}</math> is <math>\Omega(n)</math>.
Lifting
Lifting is a general technique in complexity theory in which a lower bound on a simple measure of complexity is "lifted" to a lower bound on a more difficult measure.
This technique was pioneered in the context of communication complexity by Raz and McKenzie, who proved the first query-to-communication lifting theorem, and used the result to separate the monotone NC hierarchy.
Given a function <math>f\colon \{0,1\}^n \to \{0,1\}</math> and a gadget <math>g\colon \{0,1\}^a \times \{0,1\}^b \to \{0,1\}</math>, their composition <math>f \circ g\colon \{0,1\}^{na} \times \{0,1\}^{nb} \to \{0,1\}</math> is defined as follows:
:<math>
(f \circ g)(x,y) = f(g(x_{1,1} \cdots x_{1,a}, y_{1,1} \cdots y_{1,b}), \dots, g(x_{n,1} \cdots x_{n,a}, y_{n,1} \cdots y_{n,b})).
</math>
In words, <math>x</math> is partitioned into <math>n</math> blocks of length <math>a</math>, and <math>y</math> is partitioned into <math>n</math> blocks of length <math>b</math>. The gadget is applied <math>n</math> times on the blocks, and the outputs are fed into <math>f</math>. Diagrammatically:
center
In this diagram, each of the inputs <math>\mathbf{x}_1,\dots,\mathbf{x}_n</math> is bits long, and each of the inputs <math>\mathbf{y}_1,\dots,\mathbf{y}_n</math> is bits long.
A decision tree of depth <math>\Delta</math> for <math>f</math> can be translated to a communication protocol whose cost is <math>\Delta \cdot D(g)</math>: each time the tree queries a bit, the corresponding value of <math>g</math> is computed using an optimal protocol for <math>g</math>. Raz and McKenzie showed that this is optimal up to a constant factor when <math>g</math> is the so-called "indexing gadget", in which <math>x</math> has length <math>c \log n</math> (for a large enough constant ), <math>y</math> has length <math>n^c</math>, and <math>g(x,y)</math> is the <math>x</math>-th bit of <math>y</math>.
The proof of the Raz–McKenzie lifting theorem uses the method of simulation, in which a protocol for the composed function <math>f \circ g</math> is used to generate a decision tree for <math>f</math>. Göös, Pitassi and Watson gave an exposition of the original proof. Since then, several works have proved similar theorems with different gadgets, such as inner product. The smallest gadget that can be handled is the indexing gadget with <math>c=1+\epsilon</math>.
Göös, Pitassi and Watson extended the Raz–McKenzie technique to randomized protocols.
A simple modification of the Raz–McKenzie lifting theorem gives a lower bound of <math>\Delta \cdot D(g)</math> on the logarithm of the size of a protocol tree for computing <math>f \circ g</math>, where <math>\Delta</math> is the depth of the optimal decision tree for <math>f</math>. Garg, Göös, Kamath and Sokolov extended this to the DAG-like setting, and used their result to obtain monotone circuit lower bounds. The same technique has also yielded applications to proof complexity.
A different type of lifting is exemplified by Sherstov's pattern matrix method, which gives a lower bound on the quantum communication complexity of <math>f \circ g</math>, where is a modified indexing gadget, in terms of the approximate degree of . The approximate degree of a Boolean function is the minimal degree of a polynomial that approximates the function on all Boolean points up to an additive error of 1/3.
In contrast to the Raz–McKenzie proof, which uses the method of simulation, Sherstov's proof takes a dual witness to the approximate degree of and gives a lower bound on the quantum query complexity of <math>f \circ g</math> using the generalized discrepancy method. The dual witness for the approximate degree of is a lower bound witness for the approximate degree obtained via LP duality. This dual witness is massaged into other objects constituting data for the generalized discrepancy method.
Another example of this approach is the work of Pitassi and Robere, in which an algebraic gap is lifted to a lower bound on Razborov's rank measure. The result is a strongly exponential lower bound on the monotone circuit complexity of an explicit function, obtained via the Karchmer–Wigderson characterization of monotone circuit size in terms of communication complexity.
Open problems
Considering a 0 or 1 input matrix <math>M_f=[f(x,y)]_{x,y\in \{0,1\}^n}</math>, the minimum number of bits exchanged to compute <math>f</math> deterministically in the worst case, <math>D(f)</math>, is known to be bounded from below by the logarithm of the rank of the matrix <math>M_f</math>.
The log rank conjecture proposes that the communication complexity, <math>D(f)</math>, is bounded from above by a constant power of the logarithm of the rank of <math>M_f</math>. Since D(f) is bounded from above and below by polynomials of log rank<math>(M_f)</math>, we can say D(f) is polynomially related to log rank<math>(M_f)</math>. Since the rank of a matrix is polynomial time computable in the size of the matrix, such an upper bound would allow the matrix's communication complexity to be approximated in polynomial time. Note, however, that the size of the matrix itself is exponential in the size of the input.
For a randomized protocol, the number of bits exchanged in the worst case, R(f), was conjectured to be polynomially related to the following formula:
: <math>\log \min(\textrm{rank}(M'_f): M'_f\in \mathbb{R}^{2^n\times 2^n}, (M_f - M'_f)_\infty\leq 1/3).</math>
Such log rank conjectures are valuable because they reduce the question of a matrix's communication complexity to a question of linearly independent rows (columns) of the matrix. This particular version, called the Log-Approximate-Rank Conjecture, was recently refuted by Chattopadhyay, Mande and Sherif (2019) using a surprisingly simple counter-example. This reveals that the essence of the communication complexity problem, for example in the EQ case above, is figuring out where in the matrix the inputs are, in order to find out if they're equivalent.
Applications
Lower bounds in communication complexity can be used to prove lower bounds in decision tree complexity, VLSI circuits, data structures, streaming algorithms, space–time tradeoffs for Turing machines and more. studied the communication complexity of some common voting rules, which are essential in political and non political organizations. Compilation complexity is a closely related notion, which can be seen as a single-round communication complexity.
Nayebi has studied the communication complexity of unbounded and bounded Bayesians, establishing no-free-lunch theorems (lower bounds) on AI alignment.
See also
- Gap-Hamming problem
Notes
References
- Brassard, G. Quantum communication complexity: a survey. https://arxiv.org/abs/quant-ph/0101005
- Dietzfelbinger, M., J. Hromkovic, J., and G. Schnitger, "A comparison of two lower-bound methods for communication complexity", Theoret. Comput. Sci. 168, 1996. 39–51.
- Raz, Ran. "Circuit and Communication Complexity." In Computational Complexity Theory. Steven Rudich and Avi Wigderson, eds. American Mathematical Society Institute for Advanced Study, 2004. 129–137.
- A. C. Yao, "Some Complexity Questions Related to Distributed Computing", Proc. of 11th STOC, pp. 209–213, 1979. 14
- I. Newman, Private vs. Common Random Bits in Communication Complexity, Information Processing Letters 39, 1991, pp. 67–71.
