A direct product is a function of the form g(x1xk)=(g1(x1)gk(xk)). We show that the direct product property is locally testable with 2 queries, that is, a canonical two-query test distinguishes between direct products and functions that are from direct products with constant probability.
This local testing question comes up naturally in the context of PCPs, where direct products play a prominent role for gap amplification. We consider the natural two query test for a given function f:[N]k[M]k: Choose xy that agree on a random set A of t coordinates and accept if f(x)A=f(y)A.
We provide a comprehensive analysis of this test for all parameters NMktO(k) and success probability 0">0. Our main result is that if a given function f:[N]k[M]k passes the test with probability 1− then there is a direct product function g such that Pr[f(x)=g(x)]1−O(). This is the first result relating success in the (or any) test to the fraction of the domain on which f is equal to a direct product function. This test has been analyzed in previous works for the case tkN, and results show closeness of f to a direct product under a less natural measure of ``approximate agreement''.
In the small soundness ``list-decoding'' regime, we show that if the test above passes with probability exp(−k), then the function agrees with a direct product function on local parts of the domain. This extends the previous range of parameters of exp(−3k) to the entire meaningful range of \exp(-k)">exp(−k).