Grolmusz's protocol for the generalized inner product #
The Babai–Nisan–Szegedy bound (NOF.Protocol.two_mul_le_four_pow_mul_of_ecomplexityFun_gip_le)
says that k players need Ω(n / 4 ^ k) bits to compute the generalized inner product of n-bit
strings. Grolmusz [Gro94] showed that the exponential decay in k is real: there is a
deterministic number-on-forehead protocol with O(k n / 2 ^ k) bits. We formalize such a
protocol for the players Fin (k + 1), writing x i r for the r-th bit of player i.
One block of columns. Think of the input as a (k + 1) × n matrix with columns x · r, and
suppose fewer than 2 ^ k columns. Player 0 sees rows 1, …, k, so it can name a pattern
z ∈ {0, 1} ^ k that no column shows on these rows. Let w t be the pattern that is 1 on rows
1, …, t and agrees with z on the others (NOF.Grolmusz.chain), so w 0 = z and w k is all
ones. For t < k, player t + 1 (who sees every row but row t + 1) writes the parity of the
number of columns that are 1 on row 0 and agree with w t on all rows but t + 1, or 0 if
z already has a 1 on row t + 1. A column with x 0 r = 1 is counted by player t + 1
exactly when it agrees with exactly one of w t and w (t + 1), so the k bits add up to
[column = (1, z)] + [column = all ones] for each column (NOF.Grolmusz.sum_chainTerm). No column
equals (1, z), so the bits add up to the generalized inner product.
Many blocks. Split the columns into B blocks of fewer than 2 ^ k columns. Player 0 names
a pattern for every block, k B bits, and then each player t + 1 writes a single bit, the sum
over all blocks of its bits above. This is k (B + 1) bits
(NOF.Grolmusz.ecomplexityFun_gip_le_of_block), and with n ≤ B (2 ^ k - 1) blocks of
consecutive columns, k (n / (2 ^ k - 1) + 2) bits (NOF.Grolmusz.ecomplexityFun_gip_le). This is
O(k n / 2 ^ k + k), against the lower bound 2 n ≤ 4 ^ (k + 1) c.
We could not consult the original paper, so we do not claim that its protocol or constant is
exactly the one formalized here. What we prove is the bound stated above, which has the
O(k n / 2 ^ k) form that Grolmusz's result is cited for.
Main definitions #
Cslib.Communication.NOF.Protocol.grolmusz: the protocol, for an assignment of the columns to blocks.
Main results #
Cslib.Communication.NOF.Grolmusz.run_grolmusz: the protocol computes the generalized inner product when every block has fewer than2 ^ kcolumns.Cslib.Communication.NOF.Grolmusz.ecomplexityFun_gip_le_of_block,Cslib.Communication.NOF.Grolmusz.ecomplexityFun_gip_le_of_le_mul,Cslib.Communication.NOF.Grolmusz.ecomplexityFun_gip_le: the upper boundsk (B + 1)andk (n / (2 ^ k - 1) + 2).
References #
One column #
Player 0's patterns #
The protocol #
Player t + 1's bit, seeing v, when player 0 named the patterns pat: the sum over the
columns r of chainTerm (pat (blk r)) (x 0 r) (x · r) t, where player t + 1 reads x 0 r and
x (l + 1) r for l ≠ t from v, and the row x (t + 1) it does not see does not matter.
Grolmusz's protocol for the generalized inner product, for an assignment blk of the
columns to B blocks. Player 0 writes, for every block, a pattern (Grolmusz.missing) that no
column of the block shows on rows 1, …, k, in k B bits. Then each player t + 1 writes the
bit Grolmusz.chainBit, and the output is the sum of these k bits.
Grolmusz's protocol writes k B bits for the patterns and k bits for the chain.
Grolmusz's upper bound, block form [Gro94]: if the n columns are split into B
blocks of fewer than 2 ^ k columns each, then k + 1 players compute the generalized inner
product of n-bit strings with k (B + 1) bits.
Grolmusz's upper bound [Gro94]: if n ≤ B (2 ^ k - 1), then k + 1 players
compute the generalized inner product of n-bit strings with k (B + 1) bits. The blocks are
runs of 2 ^ k - 1 consecutive columns.
Grolmusz's upper bound, explicit form [Gro94]: for k ≥ 1, k + 1 players
compute the generalized inner product of n-bit strings with k (n / (2 ^ k - 1) + 2) bits,
O(k n / 2 ^ k + k).