On The Hardness of Approximate and Exact (Bichromatic) Maximum Inner Product
Lijie Chen (Massachusetts Institute of Technology)
Exact (Bichromatic) Maximum Inner Product , - - PowerPoint PPT Presentation
On The Hardness of Approximate and Exact (Bichromatic) Maximum Inner Product , Lijie Chen (Massachusetts Institute of Technology) Max-IP and Z-Max-IP (Boolean) Max-IP : Given sets and
Lijie Chen (Massachusetts Institute of Technology)
with maximum inner product:
max
๐,๐ โ๐ตร๐ถโจ๐, ๐โฉ .
in Hardness for Approximation in P, implies hardness for many other problems.
for finding furthest pair in low dimension Euclidean space.
requires ๐2โ๐(1) time under SETH.
Z-Max-IP: Given sets ๐ต and ๐ถ of Integer vectors (each of size n) find ๐ in ๐ต and ๐ in ๐ถ with maximum inner product:
Lower Bound ๐2โo(1) when ๐ = 2๐ logโ๐ [This work] Lower Bound ๐2โo(1) when ๐ = ๐(log2 log ๐) Implicit in [Wilโ18] Upper Bound ๐2โ๐ when ๐ = ๐(1) [Matโ92]
?
requires ๐2โ๐(1) time.
Z-Max-IP ๐2โo(1) when ๐ = 2๐ logโ๐ [This work] Boolean Max-IP ๐2โ๐ when ๐ = ๐ log ๐. [AW15, ACW16] HARD EASY Z-Max-IP: Given sets ๐ต and ๐ถ of Integer vectors (each of size n) find ๐ in ๐ต and ๐ in ๐ถ with maximum inner product:
require ๐2โ๐(1) time.
2๐ logโ ๐ requires ๐2โ๐(1) time.
โ2-Furthest Pair ๐2โo(1) when ๐ = 2๐ logโ๐ [This work] โ2-Closest Pair 2๐ ๐ โ ๐ ๐๐๐๐ง๐๐๐(๐) [BS76, KM95, DHKP97] โ2-Furthest Pair ๐2โo(1) when ๐ = ๐(log2 log ๐) [Wilโ18] EASY HARD Z-Max-IP: Given sets ๐ต and ๐ถ of Integer vectors (each of size n) find ๐ in ๐ต and ๐ in ๐ถ with maximum inner product.
Max-IP with ๐๐ 1 dimensions, requires ๐2โ๐(1) ๐ข๐๐๐.
smallest ๐ such that Max-IP can be ๐ -approximated in truly sub-quadratic time?
vectors, find ๐๐๐ฆ๐ฝ๐ ๐ต, ๐ถ โ max
๐,๐ โ๐ตร๐ถโจ๐, ๐โฉ .
multiplicative approximation to the answer: ๐๐๐ฆ๐ฝ๐(๐ต, ๐ถ) โค ๐ต๐๐ป(๐ต, ๐ถ) โค ๐๐๐ฆ๐ฝ๐(๐ต, ๐ถ) โ ๐ .
smallest ๐ such that Max-IP can be ๐ -approximated in truly sub-quadratic time?
๐ log ๐ ฮฉ(1)
EASY!
๐ log ๐
HARD!
vectors, find ๐๐๐ฆ๐ฝ๐ ๐ต, ๐ถ โ max
๐,๐ โ๐ตร๐ถโจ๐, ๐โฉ .
multiplicative approximation to the answer: ๐๐๐ฆ๐ฝ๐(๐ต, ๐ถ) โค ๐ต๐๐ป(๐ต, ๐ถ) โค ๐๐๐ฆ๐ฝ๐(๐ต, ๐ถ) โ ๐ .
๐ log ๐ ฮฉ(1)
๐2โ๐ time. EASY!
๐ log ๐
๐2โ๐ 1 time. HARD!
vectors, find ๐๐๐ฆ๐ฝ๐ ๐ต, ๐ถ โ max
๐,๐ โ๐ตร๐ถโจ๐, ๐โฉ .
multiplicative approximation to the answer: ๐๐๐ฆ๐ฝ๐(๐ต, ๐ถ) โค ๐ต๐๐ป(๐ต, ๐ถ) โค ๐๐๐ฆ๐ฝ๐(๐ต, ๐ถ) โ ๐ .
to compute F(x,y).
2 3 .
3 .
Communication ฮฉ( ๐) [Lower Bound] [Klaโ03] O( ๐ log ๐) [Upper Bound] [AWโ09] O( ๐ log ๐ log log ๐) [Upper Bound] [This work]
?
imply some hardness results?
Quantum! {โ๐, ๐}-Max-IP: Given sets ๐ต and ๐ถ of vectors with {โ1,1} entries (each of size ๐) find ๐ in ๐ต and ๐ in ๐ถ with maximum inner product.
Our Goal: A โdimensionalityโ reduction from ๐(log ๐) dimensional OV to 2๐ logโ ๐ dimensional Z-Max-IP
dimensional Z-Max-IP is hard. (same as [Wilโ18])
hardness.
pair between them. ๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Hard Easy Orthogonal Vectors (OV) Problem: Two sets A,B of Boolean vectors, find an
between them. Z-Max-IP: Two sets of ๐ Integer vectors. find a pair between them which maximize their inner product.
value of โ ๐ โ ๐ 2 for ๐, ๐ โ ๐ต ร ๐ถ.
๐
๐๐,๐ = ๐๐ โ ๐๐, เดค ๐๐,๐ = โ๐๐ โ ๐
๐.
๐ โ เดค ๐, Z-Max-IP with ๐2 dim.
Z-OV: Two sets A,B of Integer vectors, find an orthogonal pair between them. Z-Max-IP: Given sets ๐ต and ๐ถ
(each of size n) find ๐ in ๐ต and ๐ in ๐ถ with maximum inner product.
๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Hard Easy
Z-OV: Two sets A,B of Integer vectors, find an orthogonal pair between them. OV: Two sets A,B of Boolean vectors, find an orthogonal pair between them.
1, ๐ 2, โฏ , ๐ ๐ข.
๐ (๐๐๐ ๐๐).
Use a number to represent a vector
๐ฆ ๐
1, ๐ 2, โฏ , ๐ ๐ข
๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Hard Easy
๐๐ ๐ ๐
1, ๐ 2, โฏ , ๐ ๐ข โ
the unique integer 0 โค ๐ฆ < ฯ๐ ๐๐, s.t. ๐ฆ โก ๐ ๐ (๐๐๐ ๐๐). crr: Chinese Remainder Representation
Multiplication between Two integers Multiplication between Two vectors simulate
๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Hard Easy
๐ฆ1,1 ๐ฆ1,2 โฏ ๐ฆ1,๐ โฎ โฑ โฑ โฎ ๐ฆโ,1 ๐ฆโ,2 โฏ ๐ฆโ,๐ โ rows ๐ columns
table.
Chinese Remainder Theorem
๐๐ ๐ (๐ฆ1,1, ๐ฆ1,2, โฏ , ๐ฆ1,๐) โฎ ๐๐ ๐ (๐ฆโ,1, ๐ฆโ,2, โฏ , ๐ฆโ,๐) ๐ฆ โ 0,1 ๐ ๐(๐ฆ) โ ๐โ Want โ to be as small as possible ๐๐ ๐ ๐
1, ๐ 2, โฏ , ๐ ๐ข โ
the unique integer 0 โค ๐ฆ < ฯ๐ ๐๐, s.t. ๐ฆ โก ๐ ๐ (๐๐๐ ๐๐). crr: Chinese Remainder Representation
๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Hard Easy
๐ฆ1,1 ๐ฆ1,2 โฏ ๐ฆ1,๐ โฎ โฑ โฑ โฎ ๐ฆโ,1 ๐ฆโ,2 โฏ ๐ฆโ,๐ โ rows ๐ columns
0,1 d by a โ ร ๐ table.
single number using Chinese Remainder Theorem ๐๐ ๐ (๐ฆ1,1, ๐ฆ1,2, โฏ , ๐ฆ1,๐) โฎ ๐๐ ๐ (๐ฆโ,1, ๐ฆโ,2, โฏ , ๐ฆโ,๐) ๐ฆ โ 0,1 ๐ ๐(๐ฆ) โ ๐โ For ๐ โ [โ] and ๐ โ [๐], ๐ ๐ฆ ๐ โก ๐ฆ๐,๐ (๐๐๐ ๐๐) ๐ ๐ฆ โ ๐ ๐ง ๐๐๐ ๐๐ = เท
๐=1 โ
๐ ๐ฆ ๐ โ ๐ ๐ง ๐ (๐๐๐ ๐๐) = เท
๐=1 โ
๐ฆ๐,๐ โ ๐ง๐,๐ (๐๐๐ ๐๐) The inner product of ๐-th column of ๐ฆ and ๐-th column of ๐ง. Set all ๐๐ > โ. ๐ฆ โ ๐ง = 0 โ ๐ ๐ฆ โ ๐ ๐ง โก 0 (๐๐๐ ๐๐) for all ๐.
๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Hard Easy
๐ ๐ฆ โ ๐ ๐ง ๐๐๐ ๐๐ = เท
๐=1 โ
๐ ๐ฆ ๐ โ ๐ ๐ง ๐ (๐๐๐ ๐๐) = เท
๐=1 โ
๐ฆ๐,๐ โ ๐ง๐,๐ (๐๐๐ ๐๐) The inner product of ๐-th column of ๐ฆ and ๐-th column of ๐ง. Set all ๐๐ > โ. ๐ฆ โ ๐ง = 0 โ ๐ ๐ฆ โ ๐ ๐ง โก 0 (๐๐๐ ๐๐) for all ๐.
2.
๐ ๐ง , ๐ค : ๐ง โ ๐ถ .
๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Hard Easy
โ โ ฯ๐ ๐๐
2.
๐ ๐ง , ๐ค : ๐ง โ ๐ถ .
and ๐ถ โ
instances of โ + 1 -dim. Z-OV
๐ 1 = ๐O(๐).
log ๐ log log ๐ .
๐ log ๐ ๐
= ๐(log log ๐).
๐ log ๐ -dim. OV ๐ log log ๐ -dim. Z-OV ๐ log2 log ๐ -dim. Z-Max-IP
Easy
โฒ๐ก are ๐ distinct primes, most of them โซ ๐,
even if we only need them to be > โ.
inside big primes.
inside small primes, and recurse.
though we donโtโ.
OV requires ๐2โ๐(1) time.
๐๐ 1 .
๐ 1 = ๐O(๐).
log ๐ log log ๐ .
๐
= ๐(log log ๐).
2 โ โ < ๐.
ิฆ ๐ฆ1,1 ิฆ ๐ฆ1,2 โฏ ิฆ ๐ฆ1,๐/๐ฅ โฎ โฑ โฑ โฎ ิฆ ๐ฆโ,1 ิฆ ๐ฆโ,2 โฏ ิฆ ๐ฆโ,๐/๐ฅ โ rows ๐๐ ๐ (๐๐ ๐
๐( ิฆ
๐ฆ1,1), ๐๐ ๐
๐( ิฆ
๐ฆ1,2), โฏ , ๐๐ ๐
๐( ิฆ
๐ฆ1,๐/๐ฅ)) โฎ ๐๐ ๐ (๐๐ ๐
๐( ิฆ
๐ฆโ,1), ๐๐ ๐
๐( ิฆ
๐ฆโ,2), โฏ , ๐๐ ๐
๐( ิฆ
๐ฆโ,๐/๐ฅ)) ๐ฆ โ 0,1 ๐ ๐(๐ฆ) โ ๐โ ๐/๐ฅ columns
entry is a vector in 0,1 ๐ฅ.
inner ๐๐ ๐
๐: CRT w.r.t small primes ๐๐ โฒ๐ก
ิฆ ๐ฆ1,1 ิฆ ๐ฆ1,2 โฏ ิฆ ๐ฆ1,๐/๐ฅ โฎ โฑ โฑ โฎ ิฆ ๐ฆโ,1 ิฆ ๐ฆโ,2 โฏ ิฆ ๐ฆโ,๐/๐ฅ โ rows ๐๐ ๐ (๐๐ ๐
๐( ิฆ
๐ฆ1,1), ๐๐ ๐
๐( ิฆ
๐ฆ1,2), โฏ , ๐๐ ๐
๐( ิฆ
๐ฆ1,๐/๐ฅ)) โฎ ๐๐ ๐ (๐๐ ๐
๐( ิฆ
๐ฆโ,1), ๐๐ ๐
๐( ิฆ
๐ฆโ,2), โฏ , ๐๐ ๐
๐( ิฆ
๐ฆโ,๐/๐ฅ)) ๐ฆ โ 0,1 ๐ ๐(๐ฆ) โ ๐โ ๐/๐ฅ columns inner ๐๐ ๐
๐: CRT w.r.t small primes ๐๐ โฒ๐ก
For ๐ โ [โ] and ๐ โ [๐/๐ฅ], ๐ ๐ฆ ๐ โก ๐๐ ๐
๐( ิฆ
๐ฆ๐,๐) (๐๐๐ ๐๐) ๐ ๐ฆ โ ๐ ๐ง ๐๐๐ ๐๐ = เท
๐=1 โ
๐ ๐ฆ ๐ โ ๐ ๐ง ๐ (๐๐๐ ๐๐) = เท
๐=1 โ
๐๐ ๐
๐( ิฆ
๐ฆ๐,๐) โ ๐๐ ๐
๐( ิฆ
๐ง๐,๐) (๐๐๐ ๐๐) Get to know: เท
๐=1 โ
๐๐ ๐
๐( ิฆ
๐ฆ๐,๐) โ ๐๐ ๐
๐( ิฆ
๐ง๐,๐) and whether for all ๐, ิฆ ๐ฆ๐,๐ โ ิฆ ๐ง๐,๐ = 0. ฯ๐ ๐๐
2 โ โ < ๐ โ ฯ๐=1 โ
๐๐ ๐
๐( ิฆ
๐ฆ๐,๐) โ ๐๐ ๐
๐( ิฆ
๐ง๐,๐) < ๐๐.
๐ ๐ฆ โ ๐ ๐ง ๐๐๐ ๐๐ = เท
๐=1 โ
๐ ๐ฆ ๐ โ ๐ ๐ง ๐ (๐๐๐ ๐๐) = เท
๐=1 โ
๐๐ ๐
๐( ิฆ
๐ฆ๐,๐) โ ๐๐ ๐
๐( ิฆ
๐ง๐,๐) (๐๐๐ ๐๐) Get to know: เท
๐=1 โ
๐๐ ๐
๐( ิฆ
๐ฆ๐,๐) โ ๐๐ ๐
๐( ิฆ
๐ง๐,๐) and whether for all ๐, ิฆ ๐ฆ๐,๐ โ ิฆ ๐ง๐,๐ = 0.
2 โ โ = ๐ฅ๐(๐ฅ) = ๐
โ w = ฮ(log ๐ / log log ๐).
๐ 1 = ๐O(๐/๐ฅ) = log ๐ ๐(๐).
๐
= ๐(log log log ๐).
to the final 2๐(logโ ๐) dim. hardness.
ฯ๐ ๐๐
2 โ โ < ๐ โ ฯ๐=1 โ
๐๐ ๐
๐( ิฆ
๐ฆ๐,๐) โ ๐๐ ๐
๐( ิฆ
๐ง๐,๐) < ๐๐.
under some plausible hypothesis.
communication NPโ UPP protocol for Set-Disjointness.