Sign rank versus VC dimension

Noga Alon, Shay Moran, Amir Yehudayoff

Introduction

Boolean matrices (with 0,10,1 entries) and sign matrices (with ±1\pm 1 entries) naturally appear in many areas of research There is a standard transformation of a boolean matrix BB to the sign matrix S=2B−JS=2B-J, where JJ is the all 11 matrix. The matrix SS is called the signed version of BB, and the matrix BB is called the boolean version of SS.. We use them e.g. to represent set systems and graphs in combinatorics, hypothesis classes in learning theory, and boolean functions in communication complexity.

This work further investigates the relation between two useful complexity measures on sign matrices.

For a real matrix MM with no zero entries, let sign(M)\text{sign}(M) denote the sign matrix such that (sign(M))i,j=sign(Mi,j)(\text{sign}(M))_{i,j}=\text{sign}(M_{i,j}) for all i,ji,j. The sign rank of a sign matrix SS is defined as

The VC dimension of a sign matrix SS, denoted VC(S)VC(S), is defined as follows. A subset CC of the columns of SS is called shattered if each of the 2∣C∣2^{|C|} different patterns of ones and minus ones appears in some row in the restriction of SS to the columns in CC. The VC dimension of SS is the maximum size of a shattered subset of columns. It captures the size of the minimum ϵ\epsilon-net for the underlying set system .

The VC dimension and the sign rank appear in various areas of computer science and mathematics. One important example is learning theory, where the VC dimension captures the sample complexity of learning in the PAC model , and the sign rank relates to the generalization guarantees of practical learning algorithms, such as support vector machines, large margin classifiers, and kernel classifiers . Loosely speaking, the VC dimension relates to learnability, while sign rank relates to learnability by linear classifiers. Another example is communication complexity, where the sign rank is equivalent to the unbounded error randomized communication complexity , and the VC dimension relates to one round distributional communication complexity under product distributions ,

The main focus of this work is how large can the sign rank be for a given VC dimension. In learning theory, this question concerns the universality of linear classifiers. In communication complexity, this concerns the difference between randomized communication complexity with unbounded error and between communication complexity under product distribution with bounded error. Previous works have studied these differences from the communication complexity perspective and the learning theory perspective . In this work we provide explicit matrices and stronger separations compared to those of and . See the discussions in Section 1.2 and Section 2.4 for more details.

We start by providing alternative descriptions of the VC dimension and sign rank, which demonstrate that these notions are dual to each other. The sign rank of a sign matrix SS is the maximum number kk such that

The dual sign rank of SS is the maximum number kk such that

It turns out that the dual sign rank is almost equivalent to the VC dimension (the proof is in Section 3.1).

VC(S)≤dual-sign-rank(S)≤2VC(S)+1VC(S)\leq\text{dual-sign-rank}(S)\leq 2VC(S)+1.

As the dual sign rank is at most the sign rank, it follows that the VC dimension is at most the sign rank. This provides further motivation for studying the largest possible gap between sign rank and VC dimension; it is equivalent to the largest possible gap between the sign rank and the dual sign rank.

It is worth noting that there are some interesting classes of matrices for which these quantities are equal. One such example is the 2n×2n2^{n}\times 2^{n} disjointness matrix DISJDISJ, whose rows and columns are indexed by all subsets of [n][n], and DISJx,y=1DISJ_{x,y}=1 if and only if ∣x∩y∣>0|x\cap y|>0. For this matrix both the sign rank and the dual sign rank are exactly n+1n+1.

2 Sign rank versus VC dimension

The VC dimension is at most the sign rank. On the other hand, it is long known that the sign rank is not bounded from above by any function of the VC dimension. Alon, Haussler, and Welzl provided examples of N×NN\times N matrices with VC dimension 22 for which the sign rank tends to infinity with NN. used ideas from together with estimates concerning the Zarankiewicz problem to show that many matrices with constant VC dimension (at least 44) have high sign rank.

We further investigate the problem of determining or estimating the maximum possible sign rank of N×NN\times N matrices with VC dimension dd. Denote this maximum by f(N,d)f(N,d). We are mostly interested in fixed dd and NN tending to infinity.

We observe that there is a dichotomy between the behaviour of f(N,d)f(N,d) when d=1d=1 and when d>1d>1. The value of f(N,1)f(N,1) is 33, but for d>1d>1, the value of f(N,d)f(N,d) tends to infinity with NN. We now discuss the behaviour of f(N,d)f(N,d) in more detail, and describe our results.

We start with the case d=1d=1. The following theorem and claim imply that for all N≥4N\geq 4,

The following theorem which was proved by shows that for d=1d=1, matrices with high sign rank do not exist. For completeness, we provide our simple and constructive proof in Section 3.2.1.

If the VC dimension of a sign matrix MM is one then its sign rank is at most 33.

We also note that the bound 33 is tight (see Section 3.2.1 for a proof).

For N≥4N\geq 4, the N×NN\times N signed identity matrix (i.e. the matrix with 11 on the diagonal and −1-1 off the diagonal) has VC dimension one and sign rank 33.

Next, we consider the case d>1d>1, starting with lower bounds on f(N,d)f(N,d). As mentioned above, two lower bounds were previously known: showed that f(N,2)≥Ω(log⁡N)f(N,2)\geq\Omega(\log N). showed that f(N,d)≥ω(N1−2d−12d/2)f(N,d)\geq\omega(N^{1-\frac{2}{d}-\frac{1}{2^{d/2}}}), for every fixed dd, which provides a nontrivial result only for d≥4d\geq 4. We prove the following stronger lower bound.

The following lower bounds on f(N,d)f(N,d) hold:

which is close to 1/d1/d for large dd. The proofs are described in Section 3.2, where we also discuss the tightness of our arguments.

What about upper bounds on f(N,d)f(N,d)? It is shown in that for every matrix in a certain class of N×NN\times N matrices with constant VC dimension, the sign rank is at most O(N1/2)O(N^{1/2}). The proof uses the connection between sign rank and communication complexity. However, there is no general upper bound for the sign rank of matrices of VC dimension dd in , and the authors explicitly mention the absence of such a result.

Here we prove the following upper bounds, using a concrete embedding of matrices with low VC dimension in real space.

In particular, this determines f(N,2)f(N,2) up to a logarithmic factor:

The above results imply existence of sign matrices with high sign rank. However, their proofs use counting arguments and hence do not provide a method of certifying high sign rank for explicit matrices. In the next section we show how one can derive a lower bound for the sign rank of many explicit matrices.

3 Sign rank and spectral gaps

Spectral properties of boolean matrices are known to be deeply related to their combinatorial structure. Perhaps the best example is Cheeger’s inequality which relates spectral gaps to combinatorial expansion . Here, we describe connections between spectral properties of boolean matrices and the sign rank of their signed versions.

Proving strong lower bounds on the sign rank of sign matrices turned out to be a difficult task. Alon, Frankl, and Rödl were the first to prove that there are sign matrices with high sign rank, but they have not provided explicit examples. Later on, a breakthrough of showed how to prove lower bounds on the sign rank of explicit matrices, proving, specifically, that Hadamard matrices have high sign rank. proved that there is a function that is computed by a small depth three boolean circuit, but with high sign rank. It is worth mentioning that no explicit matrix whose sign rank is significantly larger than N12N^{\frac{1}{2}} is known.

We focus on the case of regular matrices, but a similar discussion can be carried more generally. A boolean matrix is Δ\Delta regular if every row and every column in it has exactly Δ\Delta ones, and a sign matrix is Δ\Delta regular if its boolean version is Δ\Delta regular.

An N×NN\times N real matrix MM has NN singular values σ1≥σ2≥…≥σN≥0\sigma_{1}\geq\sigma_{2}\geq\ldots\geq\sigma_{N}\geq 0. The largest singular value of MM is also called its spectral norm ∥M∥=σ1=max⁡{∥Mx∥:∥x∥≤1},\|M\|=\sigma_{1}=\max\{\|Mx\|:\|x\|\leq 1\}, where ∥x∥2=⟨x,x⟩\|x\|^{2}=\langle x,x\rangle with the standard inner product. If the ratio σ2(M)/∥M∥\sigma_{2}(M)/\|M\| is bounded away from one, or small, we say that MM has a spectral gap.

We prove that if BB has a spectral gap then the sign rank of SS is high.

Let BB be a Δ\Delta regular N×NN\times N boolean matrix with Δ≤N/2\Delta\leq N/2, and let SS be its signed version. Then,

In many cases a spectral gap for BB implies that it has pseudorandom properties. This theorem is another manifestation of this phenomenon since random sign matrices have high sign rank (see ).

Our proof of Theorem 6 and its limitations are discussed in detail in Section 3.3.

Applications

Linear classifiers have been central in the study of machine learning since the introduction of the Perceptron algorithm in the 50’s and Support Vector Machines (SVM) in the 90’s . The rising of kernel methods in the 90’s enabled reducing many learning problems to the framework of halfspaces, making linear classifiers a central algorithmic tool.

These methods use the following two-step approach. First, embed the hypothesis class In this context we use the more common term “hypothesis class” instead of “matrix.” in halfspaces of an Euclidean space (each point corresponds to a vector and for every hypothesis hh, the vectors corresponding to h−1(1)h^{-1}(1) and the vectors corresponding to h−1(−1)h^{-1}(-1) are separated by a hyperplane). Second, apply a learning algorithm for halfspaces.

If the embedding is to a low dimensional space then a good generalization rate is implied. For embeddings to large dimensional spaces, SVM theory offers an alternative parameter, namely the margin The margin of the embedding is the minimum over all hypotheses hh of the distance between the convex hull of the vectors corresponding to h−1(1)h^{-1}(1) and the convex hull of the vectors corresponding to h−1(−1)h^{-1}(-1). Indeed, a large margin also implies a good generalization rate. On the other hand, any embedding with a large margin can be projected to a low dimensional space using standard dimension reduction arguments .

Ben-David, Eiron, and Simon utilized it to argue that “…any universal learning machine, which transforms data to a Euclidean space and then applies linear (or large margin) classification, cannot preserve good generalization bounds in general.” Formally, they showed that: For any fixed d>1d>1, most hypothesis classes C⊆{±1}NC\subseteq\{\pm 1\}^{N} of VC dimension dd have sign-rank of NΩ(1)N^{\Omega(1)}. As discussed in Section 1.2, Theorem 4 quantitatively improves over their results.

Maximum classes with large sign rank

Let C⊆{±1}NC\subseteq\{\pm 1\}^{N} be a class with VC dimension dd. The class CC is called maximum if it meets the Sauer-Shelah’s bound with equality Maximum classes are distinguished from maximal classes: A maximum class has the largest possible size among all classes of VC dimension dd, and a maximal class is such that for every sign vector v∉Cv\notin C, if vv is added to CC then the VC dimension is increased.. That is, ∣C∣=∑i=0d(Ni)|C|=\sum_{i=0}^{d}{N\choose i}. Maximum classes were studied in different contexts such as machine learning, geometry, and combinatorics (e.g. ).

Gärtner and Welzl gave a combinatorial characterization of maximum classes constructed using generic halfspaces. As an application of their characterization they note that hamming ball of radius dd is a maximum class that can not be realized this way. By Lemma 19, however, the hamming ball of radius dd has sign rank at most 2d+12d+1 (it is in fact exactly 2d+12d+1). It is therefore natural to ask whether every maximum class has sign rank which depends only on dd. A similar question was also asked by . Theorem 8 in Section 2.2.1 gives a negative answer to this question, even when d=2d=2 (when d=1d=1, by Theorem 2 the sign rank is at most 33).

2 Explicit examples

The spectral lower bound on sign rank gives many explicit examples of matrices with high sign rank, which come from known constructions of expander graphs and combinatorial designs. A rather simple such family of examples is finite projective geometries.

Let d≥2d\geq 2 and n≥3n\geq 3. Let PP be the set of points in a dd dimensional projective space of order nn, and let HH be the set of hyperplanes in the space. For d=2d=2, this is just a projective plane with points and lines. It is known (see, e.g., ) that

Let A∈{±1}P×HA\in\{\pm 1\}^{P\times H} be the signed point-hyperplane incidence matrix:

The matrix AA is N×NN\times N with N=Nn,dN=N_{n,d}, its VC dimension is dd, and its sign rank is larger than

The theorem follows from known properties of projective spaces (see Section 3.4.1). A slightly weaker (but asymptotically equivalent) lower bound on the sign rank of AA was given by .

The sign rank of AA is at most 2Nn,d−1+1=O(N1−1d)2N_{n,d-1}+1=O(N^{1-\frac{1}{d}}), due to the observation in mentioned above. To see this, note that every point in the projective space is incident to Nn,d−1N_{n,d-1} hyperplanes.

Other explicit examples come from spectral graph theory. Here is a brief description of matrices that are even more restricted than having VC dimension 22 but have high sign rank; no 33 columns in them have more than 66 distinct projections. An (N,Δ,λ)(N,\Delta,\lambda)-graph is a Δ\Delta regular graph on NN vertices so that the absolute value of every eigenvalue of the graph besides the top one is at most λ\lambda. There are several known constructions of (N,Δ,λ)(N,\Delta,\lambda)-graphs for which λ≤O(Δ)\lambda\leq O(\sqrt{\Delta}), that do not contain short cycles. Any such graph with Δ≥NΩ(1)\Delta\geq N^{\Omega(1)} provides an example with sign rank at least NΩ(1)N^{\Omega(1)}, and if there is no cycle of length at most 66 then in the sign matrix we have at most 66 distinct projections on any set of 33 columns.

The class RR of all intervals is a maximum class of VC dimension 22. Moreover, there exists a choice of linear orders for the lines in LL such that the resulting RR has sign rank Ω(N1/2/log⁡N)\Omega(N^{1/2}/\log N).

The proof of Theorem 8 is given in Section 3.4.1. The proof does not follow directly from Theorem 4 since it is not clear that the classes with VC dimension 22 and large sign rank which are guaranteed to exist by Theorem 4 can be extended to a maximum class.

3 Computing the sign rank

Linear Programming (LP) is one of the most famous and useful problems in the class P. As a decision problem, an LP problem concerns determining the satisfiability of a system

Another related work of concerns the problem of computing the approximate rank of a sign matrix, for which they provide an approximation algorithm. They pose the problem of efficiently approximating the sign rank as an open problem.

Using an idea similar to the one in the proof of Theorem 5 we derive an approximation algorithm for the sign rank (see Section 3.4.2).

There exists a polynomial time algorithm that approximates the sign rank of a given NN by NN matrix up to a multiplicative factor of c⋅N/log⁡(N)c\cdot N/\log(N) where c>0c>0 is a universal constant.

4 Communication complexity

We briefly explain the notions from communication complexity we use. For formal definitions, background and more details, see the textbook .

For a function ff and a distribution μ\mu on its inputs, define Dμ(f)D_{\mu}(f) as the minimum communication complexity of a protocol that correctly computes ff with error 1/31/3 over inputs from μ\mu. Define D^{\times}(f)=\max\{D_{\mu}(f):\text{\muis a product distribution}\}. Define the unbounded error communication complexity U(f)U(f) of ff as the minimum communication complexity of a randomized private-coin In the public-coin model, every boolean function has unbounded communication complexity at most two. protocol that correctly computes ff with probability strictly larger than 1/21/2 on every input.

Two works of showed that there are functions with small distributional communication complexity under product distributions, and large unbounded error communication complexity. In the separation is as strong as possible but it is not for an explicit function, and the separation in is not as strong but the underlying function is explicit.

The unbounded error communication complexity of ff is By taking larger values of dd, the constant 14\frac{1}{4} may be increased to 12−12d\frac{1}{2}-\frac{1}{2d}. U(f)≥m4−O(1)U(f)\geq\frac{m}{4}-O(1). The distributional communication complexity of ff under product distributions is D×(f)≤O(1)D^{\times}(f)\leq O(1).

These two seemingly contradicting facts are a corollary of the high sign rank and the low VC dimension of AA, using two known results. The upper bound on D×(f)D^{\times}(f) follows from the fact that VCdim(A)=2\text{VCdim}(A)=2, and the work of which used the PAC learning algorithm to construct an efficient (one round) communication protocol for ff under product distributions. The lower bound on U(f)U(f) follows from that sign-rank(A)≥Ω(N1/4)\text{sign-rank}(A)\geq\Omega(N^{1/4}), and the result of that showed that unbounded error communication complexity is equivalent to the logarithm of the sign rank. See for more details.

5 Counting VC classes

Let c(N,d)c(N,d) denote the number of classes C⊆{±1}NC\subseteq\{\pm 1\}^{N} with VC dimension dd. We give the following estimate of c(N,d)c(N,d) for constant dd and NN large enough. The proof is given in Section 3.4.3.

For every d>0d>0, there is N0=N0(d)N_{0}=N_{0}(d) such that for all N>N0N>N_{0}:

Let m(N,d)m(N,d) denote the number of maximum classes C⊆{±1}NC\subseteq\{\pm 1\}^{N} of VC dimension dd. The problem of estimating m(N,d)m(N,d) was proposed by . We provide the following estimate (see Section 3.4.3).

For every d>1d>1, there is N0=N0(d)N_{0}=N_{0}(d) such that for all N>N0N>N_{0}:

The gap between our upper and lower bound is roughly a multiplicative factor of d+1d+1 in the exponent. In the previous bounds given by the gap was a multiplicative factor of NN in the exponent.

6 Counting graphs

Here we describe an application of our method for proving Theorem 5 to counting graphs with a given forbidden substructure.

Let G=(V,E)G=(V,E) be a graph (not necessarily bipartite). The universal graph U(d)U(d) is defined as the bipartite graph with two color classes AA and B=2AB=2^{A} where ∣A∣=d|A|=d, and the edges are defined as {a,b}\{a,b\} iff a∈ba\in b. The graph GG is called U(d)U(d)-free if for all two disjoint sets of vertices A,B⊂VA,B\subset V so that ∣A∣=d|A|=d and ∣B∣=2d|B|=2^{d}, the bipartite graph consisting of all edges of GG between AA and BB is not isomorphic to U(d)U(d). In Theorem 24 of , which improves Theorem 2 there, it is proved that for d≥2d\geq 2, the number of U(d+1)U(d+1)-free graphs on NN vertices is at most

The proof in is quite involved, consisting of several technical and complicated steps. Our methods give a different, quick proof of an improved estimate, replacing the (log⁡N)d+2(\log N)^{d+2} term by a single log⁡N\log N term.

For every fixed d≥1d\geq 1, the number of U(d+1)U(d+1)-free graphs on NN vertices is at most 2O(N2−1/dlog⁡N)2^{O(N^{2-1/d}\log N)}.

The proof of the theorem is given in Section 3.4.4.

7 Geometry

Roughly speaking, the corollary says that there are no efficient ways to embed finite planes in real space using half spaces.

Proofs

Here we discuss the connection between VC dimension and dual sign rank.

We start with an equivalent definition of dual sign rank, that is based on the following notion. We say that a set of columns CC is antipodally shattered in a sign matrix SS if for each v∈{±1}Cv\in\{\pm 1\}^{C}, either vv or −v-v appear as a row in the restriction of SS to the columns in CC.

The set of columns CC is antipodally shattered in SS if and only if in every matrix MM with sign(M)=S\text{sign}(M)=S the columns in CC are linearly independent.

First, assume CC is such that there exists some MM with sign(M)=S\text{sign}(M)=S in which the columns in CC are linearly dependent. For a column j∈Cj\in C, denote by M(j)M(j) the jj’th column in MM. Let {αj:j∈C}\{\alpha_{j}:j\in C\} be a set of real numbers so that ∑j∈CαjM(j)=0\sum_{j\in C}\alpha_{j}M(j)=0 and not all αj\alpha_{j}’s are zero. Consider the vector v∈{±1}Cv\in\{\pm 1\}^{C} such that vj=1v_{j}=1 if αj≥0\alpha_{j}\geq 0 and vj=−1v_{j}=-1 if αj<0\alpha_{j}<0. The restriction of SS to CC does not contain vv nor −v-v as a row, which certifies that CC is not antipodally shattered by SS.

The dual sign rank of SS is the maximum size of a set of columns that are antipodally shattered in SS.

The left inequality: The VC dimension of SS is at most the maximum size of a set of columns that is antipodally shattered in SS, which by the above claim equals the dual sign rank of SS.

The right inequality: Let CC be a largest set of columns that is antipodally shattered in SS. By the claim above, the dual sign rank of SS is ∣C∣|C|. Let A⊆CA\subseteq C such that ∣A∣=⌊∣C∣/2⌋|A|=\lfloor|C|/2\rfloor. If AA is shattered in SS then we are done. Otherwise, there exists some v∈{±1}Av\in\{\pm 1\}^{A} that does not appear in SS restricted to AA. Since CC is antipodally shattered by SS, this implies that SS contains all patterns in {±1}C\{\pm 1\}^{C} whose restriction to AA is −v-v. In particular, SS shatters C∖AC\setminus A which is of size at least ⌊∣C∣/2⌋\lfloor|C|/2\rfloor.

2 Sign rank versus VC dimension

In this section we study the maximum possible sign rank of N×NN\times N matrices with VC dimension dd, presenting the proofs of Proposition 1 and Theorems 5 and 4. We also show that the arguments supply a new, short proof and an improved estimate for a problem in asymptotic enumeration of graphs studied by .

Our goal in this section is to show that sign matrices with VC dimension one have sign rank at most 33, and that 33 is tight. Before reading this section, it may be a nice exercise to prove that the sign rank of the N×NN\times N signed identity matrix is exactly three (for N≥4N\geq 4).

Our goal in this section is to embed MM with VC dimension one in the plane using half spaces. The embedding is constructive and uses the following known claim (see, e.g., Theorem 11 in ).

Let MM be an R×CR\times C sign matrix with VC dimension one so that no row appears twice in it, and every column cc is shattered (i.e. the two values ±1\pm 1 appear in it). Then, there is a column c0∈[C]c_{0}\in[C] and a row r0∈[R]r_{0}\in[R] so that Mr0,c0≠Mr,c0M_{r_{0},c_{0}}\neq M_{r,c_{0}} for all r≠r0r\neq r_{0} in [R][R].

For every column cc, denote by onesc\text{\it ones}_{c} the number of rows r∈[R]r\in[R] so that Mr,c=1M_{r,c}=1, and let mc=min⁡{onesc,R−onesc}m_{c}=\min\{\text{\it ones}_{c},R-\text{\it ones}_{c}\}. Assume without loss of generality that m1≤mcm_{1}\leq m_{c} for all cc, and that m1=ones1m_{1}=\text{\it ones}_{1}. Since all columns are shattered, m1≥1m_{1}\geq 1. To prove the claim, it suffices to show that m1≤1m_{1}\leq 1.

Assume towards a contradiction that m1≥2m_{1}\geq 2. For b∈{1,−1}b\in\{1,-1\}, denote by M(b)M^{(b)} the submatrix of MM consisting of all rows rr so that Mr,1=bM_{r,1}=b. The matrix M(1)M^{(1)} has at least two rows. Since all rows are different, there is a column c≠1c\neq 1 so that two rows in M(1)M^{(1)} differ in cc. Specifically, column cc is shattered in M(1)M^{(1)}. Since VCdim(M)=1\text{VCdim}(M)=1, it follows that cc is not shattered in M(−1)M^{(-1)}, which means that the value in column cc is the same for all rows of the matrix M(−1)M^{(-1)}. Therefore, mc<m1m_{c}<m_{1}, which is a contradiction. ∎

The lemma immediately implies Threorem 2 due to the connection to sign rank discussed above.

The proof follows by induction on CC. If C=1C=1, the claim trivially holds.

The inductive step: If there is a column that is not shattered, then we can remove it, apply induction, and then add a half space that either contains or does not contain all points, as necessary. So, we can assume all columns are shattered. By Claim 17, we can assume without loss of generality that M1,1=1M_{1,1}=1 but Mr,1=−1M_{r,1}=-1 for all r≠1r\neq 1.

This is the construction. Its correctness follows by induction, by the choice of the last added half space which separates xx from all other points, and since if x0x_{0} exists it belongs to the same cell as xx in the embedding of M′M^{\prime}. ∎

We conclude the section by showing that the bound 33 above cannot be improved.

Finally, the signed identity matrix is not a submatrix of MM. To see this, note that the four rows of the signed identity matrix have pairwise hamming distance two, but there are no such four points (not even three points) on this cycle of length eight.

2.2 The upper bound

In this subsection we prove Theorem 5. The proof is short, but requires several ingredients. The first one has been mentioned already, and appears in . For a sign matrix SS, let SC(S)SC(S) denote the maximum number of sign changes (SC) along a column of SS. Define SC∗(S)=min⁡SC(M)SC^{*}(S)=\min SC(M) where the minimum is taken over all matrices MM obtained from SS by a permutation of the rows.

For any sign matrix SS, sign-rank(S)≤SC∗(S)+1\text{sign-rank}(S)\leq SC^{*}(S)+1.

Of course we can replace here rows by columns, but for our purpose the above version will do. The second result we need is a theorem of (see also ). As observed, for example, in , plugging in its proof a result of improves it by a logarithmic factor, yielding the result we describe next. For a function gg mapping positive integers to positive integers, we say that a sign matrix SS satisfies a primal shatter function gg if for any integer tt and any set II of mm columns of SS, the number of distinct projections of the rows of SS on II is at most g(t)g(t). The result of Welzl (after its optimization following ) can be stated as follows The statement in and the subsequent papers is formulated in terms of somewhat different notions, but it is not difficult to check that it is equivalent to the statement below..

Let SS be a sign matrix with NN rows that satisfies the primal shatter function g(t)=ctdg(t)=ct^{d} for some constants c≥0c\geq 0 and d>1d>1. Then SC∗(S)≤O(N1−1/d)SC^{*}(S)\leq O(N^{1-1/d}).

Let SS be an N×NN\times N sign matrix of VC dimension d>1d>1. By Sauer’s lemma , it satisfies the primal shatter function g(t)=tdg(t)=t^{d}. Hence, by Lemma 20, SC∗(S)≤O(N1−1/d)SC^{*}(S)\leq O(N^{1-1/d}). Therefore, by Lemma 19, sign-rank(S)≤O(N1−1/d)\text{sign-rank}(S)\leq O(N^{1-1/d}). ∎

The proof of Theorem 5 works, with essentially no change, for a larger class of sign matrices than the ones with VC dimension dd. Indeed, the proof shows that the sign rank of any N×NN\times N matrix with primal shatter function at most ctdct^{d} for some fixed cc and d>1d>1 is at most O(N1−1/d).O(N^{1-1/d}). In this statement the estimate is sharp for all integers dd, up to a logarithmic factor. This follows from the construction in , which supplies N×NN\times N boolean matrices so that the number of 11 entries in them is at least Ω(N2−1/d)\Omega(N^{2-1/d}), and they contain no dd by D=(d−1)!+1D=(d-1)!+1 submatrices of 11’s. These matrices satisfy the primal shatter function g(t)=D(td)+∑i=0d−1(ti)g(t)=D{t\choose d}+\sum_{i=0}^{d-1}{t\choose i} (with room to spare). Indeed, if we have more than that many distinct projections on a set of tt columns, we can omit all projections of weight at most d−1d-1. Each additional projection contains 11’s in at least one set of size dd, and the same dd-set cannot be covered more than DD times. Plugging this matrix in the counting argument that gives a lower bound for the sign rank using Lemma 22 proven below supplies an Ω(N1−1/d/log⁡N)\Omega(N^{1-1/d}/\log N) lower bound for the sign rank of many N×NN\times N matrices with primal shatter function O(td)O(t^{d}).

We have seen in Lemma 19 that sign rank is at most of order SC∗SC^{*}. Moreover, for a fixed rr, many of the N×NN\times N sign matrices with sign rank at most rr also have SC∗SC^{*} at most rr: Indeed, a simple counting argument shows that the number of N×NN\times N sign matrices MM with SC(M)<rSC(M)<r is

so, the set of N×NN\times N sign matrices with SC∗(M)<rSC^{*}(M)<r is a subset of size 2Ω(rNlog⁡N)2^{\Omega(rN\log N)} of all N×NN\times N sign matrices with sign rank at most rr.

How many N×NN\times N matrices of sign rank at most rr are there? by Lemma 22 proved in the next section, this number is at most 2O(rNlog⁡N)2^{O(rN\log N)}. So, the set of matrices with SC∗<rSC^{*}<r is a rather large subset of the set of matrices with sign rank at most rr.

Indeed, fix some order on the rows of SS, that is, order the points P={p1,…,pN}P=\{p_{1},\ldots,p_{N}\} with N=∣P∣N=|P|. The key point is that one of the hyperplanes h0∈Hh_{0}\in H is so that the number of i∈[N−1]i\in[N-1] for which Spi,h0≠Spi+1,h0S_{p_{i},h_{0}}\neq S_{p_{i+1},h_{0}} is at least (nd−1)/(d(n−1))(n^{d}-1)/(d(n-1)): For each ii there is at least one hyperplane hh that separates pip_{i} and pi+1p_{i+1}, that is, for which Spi,h≠Spi+1,hS_{p_{i},h}\neq S_{p_{i+1},h}. The number of such pairs of points is nd−1n^{d}-1, and the number of hyperplanes is just d(n−1)d(n-1).

2.3 The lower bound

In this subsection we prove Theorem 4. Our approach follows the one of , which is based on known bounds for the number of sign patterns of real polynomials. A similar approach has been subsequently used by to derive lower bounds for f(N,d)f(N,d) for d≥4d\geq 4, but here we do it in a slightly more sophisticated way and get better bounds.

Although we can use the estimate in for the number of sign matrices with a given sign rank, we prefer to describe the argument by directly applying a result of , described next.

For x∈Vx\in V, the sign pattern of PP at xx is the vector

Let s(P)s(P) be the total number of sign patterns of PP as xx ranges over all of VV. This number is bounded from above by the number of connected components of VV.

An N×NN\times N matrix MM is of rank at most rr iff it can be written as a product M=M1⋅M2M=M_{1}\cdot M_{2} of an N×rN\times r matrix M1M_{1} by an r×Nr\times N matrix M2M_{2}. Therefore, each entry of MM is a quadratic polynomial in the 2Nr2Nr variables describing the entries of M1M_{1} and M2M_{2}. We thus deduce the following from Warren’s Theorem stated above. A similar argument has been used by .

Let r≤N/2r\leq N/2. Then, the number of N×NN\times N sign matrices of sign rank at most rr does not exceed (O(N/r))2Nr≤2O(rNlog⁡N)(O(N/r))^{2Nr}\leq 2^{O(rN\log N)}.

For a fixed rr, this bound for the logarithm of the above quantity is tight up to a constant factor: As argued in Subsection 3.2.2, there are at least some 2Ω(rNlog⁡N)2^{\Omega(rN\log N)} matrices of sign rank rr.

In order to derive the statement of Theorem 4 from the last lemma it suffices to show that the number of N×NN\times N sign matrices of VC dimension dd is sufficiently large. We proceed to do so. It is more convenient to discuss boolean matrices in what follows (instead of their signed versions).

1. The case d=2d=2: Consider the N×NN\times N incidence matrix AA of the projective plane with NN points and NN lines, considered in the previous sections. The number of 11 entries in AA is (1+o(1))N3/2(1+o(1))N^{3/2}, and it does not contain J2×2J_{2\times 2} (the 2×22\times 2 all 11 matrix) as a submatrix, since there is only one line passing through any two given points. Therefore, any matrix obtained from it by replacing ones by zeros has VC dimension at most 22, since every matrix of VC dimension 33 must contain J2×2J_{2\times 2} as a submatrix. This gives us 2(1+o(1))N3/22^{(1+o(1))N^{3/2}} distinct N×NN\times N sign matrices of VC dimension at most 22. Lemma 22 therefore establishes the assertion of Theorem 4, part 1.

2. The case d=3d=3: Call a 5×45\times 4 binary matrix heavy if its rows are the all 11 row and the 44 rows with Hamming weight 33. Call a 5×45\times 4 boolean matrix heavy-dominating if there is a heavy matrix which is smaller or equal to it in every entry.

We claim that there is a boolean N×NN\times N matrix BB so that the number of 11 entries in it is at least Ω(N23/15)\Omega(N^{23/15}), and it does not contain any heavy-dominating 5×45\times 4 submatrix. Given such a matrix BB, any matrix obtained from BB by replacing some of the ones by zeros have VC dimension at most 33. This implies part 2 of Theorem 4, using Lemma 22 as before.

The existence of BB is proved by a probabilistic argument. Let CC be a random binary matrix in which each entry, randomly and independently, is 11 with probability p=12N7/15p=\frac{1}{2N^{7/15}}. Let XX be the random variable counting the number of 11 entries of CC minus twice the number of 5×45\times 4 heavy-dominant submatrices CC contains. By linearity of expectation,

Fix a matrix CC for which the value of XX is at least its expectation. Replace at most two 11 entries by 00 in each heavy-dominant 5×45\times 4 submatrix in CC to get the required matrix BB.

3. The case d=4d=4: The basic idea is as before, but here there is an explicit construction that beats the probabilistic one. Indeed, constructed an N×NN\times N boolean matrix BB so that the number of 11 entries in BB is at least Ω(N5/3)\Omega(N^{5/3}) and it does not contain J3×3J_{3\times 3} as a submatrix (see also for another construction). No set of 55 rows in every matrix obtained from this one by replacing 11’s by 00’s can be shattered, implying the desired result as before.

4. The case d>4d>4: The proof here is similar to the one in part 2. We prove by a probabilistic argument that there is an N×NN\times N binary matrix BB so that the number of 11 entries in it is at least

and it contains no heavy-dominant submatrix. Here, heavy-dominant means a 1+(d+1)+(d+12)1+(d+1)+{{d+1}\choose 2} by d+1d+1 matrix that is bigger or equal in each entry than the matrix whose rows are all the distinct vectors of length d+1d+1 and Hamming weight at least d−1d-1. Any matrix obtained by replacing 11’s by 00’s in BB cannot have VC dimension exceeding dd. The result follows, again, from Lemma 22.

We start as before with a random matrix CC in which each entry, randomly and independently, is chosen to be 11 with probability

3 Sign rank and spectral gaps

The lower bound on the sign rank uses Forster’s argument , who showed how to relate sign rank to spectral norm. He proved that if SS is an N×NN\times N sign matrix then

We would like to apply Forster’s theorem to the matrix SS in our explicit examples. The spectral norm of SS, however, is too large to be useful: If SS is Δ≤N/3\Delta\leq N/3 regular and xx is the all 11 vector then Sx=(2Δ−N)xSx=(2\Delta-N)x and so ∥S∥≥N/3\|S\|\geq N/3. Applying Forster’s theorem to SS yields that its sign rank is Ω(1)\Omega(1), which is not informative.

Our solution is based on the observation that Forster’s argument actually proves a stronger statement. His proof works as long as the entries of the matrix are not too close to zero, as was already noticed in . We therefore use a variant of the spectral norm of a sign matrix SS which we call star norm and denote by The minimizer belongs to a closed subset of the bounded set {M:∥M∥≤∥S∥}\{M:\|M\|\leq\|S\|\}.

Three comments seem in place. (i) We do not think of the star norm as a norm. (ii) It is always at most the spectral norm, ∥S∥∗≤∥S∥\|S\|^{*}\leq\|S\|. (iii) Every MM in the above minimum satisfies sign-rank(M)=sign-rank(S)\text{sign-rank}(M)=\text{sign-rank}(S).

Let SS be an N×NN\times N sign matrix. Then,

For completeness, in Section 3.3.2 we provide a short proof of this theorem (which uses the main lemma from as a black box). To get any improvement using this theorem, we must have ∥S∥∗≪∥S∥\|S\|^{*}\ll\|S\|. It is not a priori obvious that there is a matrix SS for which this holds. The following lemma shows that spectral gaps yield such examples.

Let SS be a Δ\Delta regular N×NN\times N sign matrix with Δ≤N/2\Delta\leq N/2, and BB its boolean version. Then,

In other words, every regular sign matrix whose boolean version has a spectral gap has a small star norm. Theorem 23 and Theorem 24 immediately imply Theorem 6. In Section 2.2, we provided concrete examples of matrices with a spectral gap, that have applications in communication complexity, learning theory and geometry.

Observe that since N≥2ΔN\geq 2\Delta it follows that Mi,jSi,j≥1M_{i,j}S_{i,j}\geq 1 for all i,ji,j. So,

Since BB is regular, the all 11 vector yy is a right singular vector of BB with singular value Δ\Delta. Specifically, My=0My=0. For every xx, write x=x1+x2x=x_{1}+x_{2} where x1x_{1} is the projection of xx on yy and x2x_{2} is orthogonal to yy. Thus,

Note that ∥B∥≤Δ\|B\|\leq\Delta (and hence ∥B∥=Δ\|B\|=\Delta). Indeed, since BB is regular, there are Δ\Delta permutation matrices B(1),…,B(Δ)B^{(1)},\ldots,B^{(\Delta)} so that BB is their sum. The spectral norm of each B(i)B^{(i)} is one. The desired bound follows by the triangle inequality.

Finally, since x2x_{2} is orthogonal to yy,

It is interesting to understand whether the approach above can give a better lower bound on sign rank. There are two parts to the argument: Forster’s argument, and the upper bound on ∥S∥∗\|S\|^{*}. We can try to separately improve each of the two parts.

Any improvement over Forster’s argument would be very interesting, but as mentioned there is no significant improvement over it even without the restriction induced by VC dimension, so we do not discuss it further.

To improve the second part, we would like to find examples with the biggest spectral gap possible. The Alon-Boppana theorem optimally describes limitations on spectral gaps. The second eigenvalue σ\sigma of a Δ\Delta regular graph is not too small,

where the o(1)o(1) term vanishes when NN tends to infinity (a similar statement holds when the diameter is large ). Specifically, the best lower bound on sign rank this approach can yield is roughly Δ/2\sqrt{\Delta}/2, at least when Δ≤No(1)\Delta\leq N^{o(1)}.

But what about general lower bounds on ∥S∥∗\|S\|^{*}? It is well known that any N×NN\times N sign matrix SS satisfies ∥S∥≥N\|S\|\geq\sqrt{N}. We prove a generalization of this statement.

Let SS be an N×NN\times N sign matrix. For i∈[N]i\in[N], let γi\gamma_{i} be the minimum between the number of 11’s and the number of −1-1’s in the i’th row. Let γ=γ(S)=max⁡{γi:i∈[N]}\gamma=\gamma(S)=\max\{\gamma_{i}:i\in[N]\}. Then,

This lemma provides limitations on the bound from Theorem 24. Indeed, γ(S)≤N2\gamma(S)\leq\frac{N}{2} and N−γγ+1\frac{N-\gamma}{\sqrt{\gamma}+1} is a monotone decreasing function of γ\gamma, which implies ∥S∥∗≥Ω(N)\|S\|^{*}\geq\Omega(\sqrt{N}). Interestingly, Lemma 25 and Theorem 24 provide a quantitively weaker but a more general statement than the Alon-Boppana theorem: If BB is a Δ\Delta regular N×NN\times N boolean matrix with Δ≤N/2\Delta\leq N/2, then

This bound is off by roughly a factor of two when the diameter of the graph is large. When the diameter is small, like in the case of the projective plane which we discuss in more detail below, this bound is actually almost tight: The second largest singular value of the boolean point-line incidence matrix of a projective plane of order nn is n\sqrt{n} while this matrix is n+1n+1 regular (c.f., e.g., ).

It is perhaps worth noting that in fact here there is a simple argument that gives a slightly stronger result for boolean regular matrices. The sum of squares of the singular values of BB is the trace of BtBB^{t}B, which is NΔN\Delta. As the spectral norm is Δ\Delta, the sum of squares of the other singular values is NΔ−Δ2=Δ(N−Δ)N\Delta-\Delta^{2}=\Delta(N-\Delta), implying that

which is (slightly) larger than the bound above.

Let MM be a matrix so that ∥M∥=∥S∥∗\|M\|=\|S\|^{*} and Mi,jSi,j≥1M_{i,j}S_{i,j}\geq 1 for all i,ji,j. Assume without loss of generality Multiplying a row by −1-1 does not affect ∥S∥∗\|S\|^{*}. that γi\gamma_{i} is the number of −1-1’s in the ii’th row of SS. If γ=0\gamma=0, then SS has only positive entries which implies ∥M∥≥N\|M\|\geq N as claimed. So, we may assume γ≥1\gamma\geq 1. Let tt be the largest real so that

That is, if γ=1\gamma=1 then t=N−γ2t=\frac{N-\gamma}{2} and if γ>1\gamma>1 then

There are two cases to consider. One is that for all i∈[N]i\in[N] we have ∑jMi,j≥t\sum_{j}M_{i,j}\geq t. In this case, if xx is the all 11 vector then

The second case is that there is i∈[N]i\in[N] so that ∑jMi,j<t\sum_{j}M_{i,j}<t. Assume without loss of generality that i=1i=1. Denote by CC the subset of the columns jj so that M1,j<0M_{1,j}<0. Thus,

Convexity of x↦x2x\mapsto x^{2} implies that

In this case, if xx is the vector with 11 in the first entry and 00 in all other entries then

Since ∥(M)T∥=∥M∥\|(M)^{T}\|=\|M\|, it follows that ∥M∥≥t\|M\|\geq t. ∎

3.2 Forster’s theorem

Here we provide a proof of Forster’s theorem, that is based on the following key lemma, which he proved.

where II is the identity matrix, and Bx⊗BxBx\otimes Bx is the rank one matrix with (i,j)(i,j) entry (Bx)i(Bx)j(Bx)_{i}(Bx)_{j}.

The lemma shows that every XX in general position can be linearly mapped to BXBX that is, in some sense, equidistributed. In a nutshell, the proof of the lemma is by finding B1,B2,…B_{1},B_{2},\ldots so that each BiB_{i} makes Bi−1XB_{i-1}X closer to being equidistributed, and finally using that the underlying object is compact, so that this process reaches its goal.

If necessary replace XX by BXBX and YY by (BT)−1Y(B^{T})^{-1}Y, and then normalize (the assumption required in the lemma that XX is in general position may be obtained by a slight perturbation of its vectors).

The proof continues by bounding D=∑x∈X,y∈YMx,y⟨x,y⟩D=\sum_{x\in X,y\in Y}M_{x,y}\langle x,y\rangle in two different ways.

First, bound DD from above: Observe that for every two vectors u,vu,v, Cauchy-Schwartz inequality implies

Second, bound DD from below: Since ∣Mx,y∣≥1|M_{x,y}|\geq 1 and ∣⟨x,y⟩∣≤1|\langle x,y\rangle|\leq 1 for all x,yx,y, using (2),

4 Applications

It is well known that the VC dimension of AA is dd, but we provide a brief explanation. The VC dimension is at least dd by considering any set of dd independent points (i.e. so that no strict subset of it spans it). The VC dimension is at most dd since every set of d+1d+1 points is dependent in a dd dimensional space.

The lower bound on the sign rank follows immediately from Theorem 6, and the following known bound on the spectral gap of these matrices.

If BB is the boolean version of AA then

The proof is so short that we include it here.

We use the following two known properties (see, e.g., ) of projective spaces. Both the number of distinct hyperplanes through a point and the number of distinct points on a hyperplane are Nn,d−1N_{n,d-1}. The number of hyperplanes through two distinct points is Nn,d−2N_{n,d-2}.

The first property implies that AA is Δ=Nn,d−1\Delta=N_{n,d-1} regular. These properties also imply

where JJ is the all 11 matrix. Therefore, all singular values except the maximum one are nd−12n^{\frac{d-1}{2}}. ∎

Thus, RR is indeed a maximum class of VC dimension 22.

Next we show that there exists a choice of a linear order for each line such that the resulting RR has sign rank Ω(N12/log⁡N)\Omega(N^{\frac{1}{2}}/\log N). By the proof of Theorem 4, case d=2d=2, there is a choice of a subset for each line such that the resulting NN subsets form a class of sign rank Ω(N12/log⁡N)\Omega(N^{\frac{1}{2}}/\log N). We can therefore pick the linear orders in such a way that each of these NN subsets forms an interval, and the resulting maximum class (of all possible intervals with respect to these orders) has sign rank at least as large as Ω(N12/log⁡N)\Omega(N^{\frac{1}{2}}/\log N). ∎

4.2 Computing the sign rank

In this section we describe an efficient algorithm that approximates the sign rank (Theorem 9).

The algorithm uses the following notion. Let VV be a set. A pair v,u∈Vv,u\in V is crossed by a vector c∈{±1}Vc\in\{\pm 1\}^{V} if c(v)≠c(u)c(v)\neq c(u). Let TT be a tree with vertex set V=[N]V=[N] and edge set EE. Let SS be a V×[N]V\times[N] sign matrix. The stabbing number of TT in SS is the largest number of edges in TT that are crossed by the same column of SS. For example, if TT is a path then TT defines a linear order (permutation) on VV and the stabbing number is the largest number of sign changes among all columns with respect to this order.

Welzl gave an efficient algorithm for computing a path TT with a low stabbing number for matrices SS with VC dimension dd. The analysis of the algorithm can be improved by a logarithmic factor using a result of .

There exists a polynomial time algorithm such that given a V×[N]V\times[N] sign matrix SS with ∣V∣=N|V|=N, outputs a path on VV with stabbing number at most 200N1−1/d200N^{1-1/d} where d=VC(S)d=VC(S).

For completeness, and since to the best of our knowledge no explicit proof of this theorem appears in print, we provide a description and analysis of the algorithm. We assume without loss of generality that the rows of SS are pairwise distinct.

We start by handling the case This analysis also provides an alternative proof for Lemma 18. d=1d=1. In this case, we directly output a tree that is a path (i.e., a linear order on VV). If d=1d=1, then Claim 17 implies that there is a column with at most 22 sign changes with respect to any order on VV. The algorithm first finds by recursion a path TT for the matrix obtained from SS by removing this column, and outputs the same path TT for the matrix SS as well. By induction, the resulting path has stabbing number at most 22 (when there is a single column the stabbing number can be made 11).

For d>1d>1, the algorithm constructs a sequence of NN forests F0,F1,…,FN−1F_{0},F_{1},\ldots,F_{N-1} over the same vertex set VV. The forest FiF_{i} has exactly ii edges, and is defined by greedily adding an edge eie_{i} to Fi−1F_{i-1}. As we prove below, the tree FN−1F_{N-1} has a stabbing number at most 100N1−1/d100N^{1-1/d}. The tree FN−1F_{N-1} is transformed to a path TT as follows. Let v1,v2,…,v2N−1v_{1},v_{2},\ldots,v_{2N-1} be an eulerian path in the graph obtained by doubling every edge in FN−1F_{N-1}. This path traverses each edge of FN−1F_{N-1} exactly twice. Let S′S^{\prime} be the matrix with 2N−12N-1 rows and NN columns obtained from SS be putting row viv_{i} in SS as row ii, for i∈[2N−1]i\in[2N-1]. The number of sign changes in each column in S′S^{\prime} is at most 2⋅100N1−1/d2\cdot 100N^{1-1/d}. Finally, let TT be the path obtained from the eulerian path by leaving a single copy of each row of SS. Since deleting rows from S′S^{\prime} cannot increase the number of sign changes, the path TT is as stated.

The edge eie_{i} is chosen as follows. The algorithm maintains a probability distribution pip_{i} on [N][N]. The weight wi(e)w_{i}(e) of the pair e={v,u}e=\{v,u\} is the probability mass of the columns ee crosses, that is, wi(e)=pi({j∈[N]:Su,j≠Sv,j})w_{i}(e)=p_{i}(\{j\in[N]:S_{u,j}\neq S_{v,j}\}). The algorithm chooses eie_{i} as an edge with minimum wiw_{i}-weight among all edges that are not in Fi−1F_{i-1} and do not close a cycle in Fi−1F_{i-1}.

The distributions p1,…,pNp_{1},\ldots,p_{N} are chosen iteratively as follows. The first distribution p1p_{1} is the uniform distribution on [N][N]. The distribution pi+1p_{i+1} is obtained from pip_{i} by doubling the relative mass of each column that is crossed by eie_{i}. That is, let xi=wi(ei)x_{i}=w_{i}(e_{i}), and for every column jj that is crossed by eie_{i} define pi+1(j)=2pi(j)1+xip_{i+1}(j)=\frac{2p_{i}(j)}{1+x_{i}}, and for every other column jj define pi+1(j)=pi(j)1+xip_{i+1}(j)=\frac{p_{i}(j)}{1+x_{i}}.

This algorithm clearly produces a tree on VV, and the running time is indeed polynomial in NN. It remains to prove correctness. We claim that each column is crossed by at most O(N1−1/d)O(N^{1-1/d}) edges in TT. To see this, let jj be a column in SS, and let kk be the number of edges crossing jj. It follows that

To upper bound kk, we use the following claim.

For every ii we have xi≤4e2(N−i)−1/dx_{i}\leq 4e^{2}(N-i)^{-1/d}.

The claim completes the proof of Theorem 28: Since pN(j)≤1p_{N}(j)\leq 1 and d>1d>1,

The claim follows from the following theorem of Haussler.

Let pp be a probability distribution on [N][N], and let ϵ>0\epsilon>0. Let S∈{±1}V×[N]S\in\{\pm 1\}^{V\times[N]} be a sign matrix of VC dimension dd so that the pp-distance between every two distinct rows u,vu,v is large:

Then, the number of distinct rows in SS is at most

Haussler’s theorem states that if the number of distinct rows is MM, then there must be two distinct rows of pip_{i}-distance at most 4e2M−1/d4e^{2}M^{-1/d}. There are N−iN-i connected components in FiF_{i}. Pick N−iN-i rows, one from each component. Therefore, there are two of these rows whose distance is at most 4e2M−1/d=4e2(N−i)−1/d4e^{2}M^{-1/d}=4e^{2}(N-i)^{-1/d}. Now, observe that the wiw_{i}-weight of the pair {u,v}\{u,v\} equals the pip_{i}-distance between u,vu,v. Since eie_{i} is chosen to have minimum weight, xi≤4e2(N−i)−1/dx_{i}\leq 4e^{2}(N-i)^{-1/d} ∎

We now describe the approximation algorithm. Let SS be an N×NN\times N sign matrix of VC dimension dd. Run Welzl’s algorithm on SS, and get a permutation of the rows of SS that yield a low stabbing number. Let ss be the maximum number of sign changes among all columns of SS with respect to this permutation. Output s+1s+1 as the approximation to the sign rank of SS.

We now analyze the approximation ratio. By Lemma 19 the sign rank of SS is at most s+1s+1. Therefore, the approximation factor s+1sign-rank(S)\frac{s+1}{\text{sign-rank}(S)} is at least 11. On the other hand, Proposition 1 implies that d≤sign-rank(S)d\leq\text{sign-rank}(S). Thus, by the guarantee of Welzl’s algorithm,

This factor is maximized for d=Θ(log⁡N)d=\Theta(\log N) and is therefore at most O(N/log⁡N)O(N/\log N).

4.3 Counting VC classes

Here we prove Theorems 11 and 12. It is convenient for both to set

We start with the upper bound. Enumerate the members of each such class CC as follows. Start with the (lexicographically) first member c∈Cc\in C, call it c1c_{1}. Assuming c1,c2,…,cic_{1},c_{2},\ldots,c_{i} have already been chosen, let ci+1c_{i+1} be the member cc among the remaining vectors in CC whose hamming distance from the set {c1,…,ci}\{c_{1},\ldots,c_{i}\} is minimum (in case of equalities we take the first one lexicographically). This gives an enumeration c1,…,cmc_{1},\ldots,c_{m} of the members of CC, and m≤fm\leq f.

We now present a lower bound on the number of (maximum) classes with VC dimension dd. Take a family FF of (Nd)/(d+1){N\choose{d}}/(d+1) subsets of [N][N] of size (d+1)(d+1) so that every subset of size dd is contained in exactly one of them. Such families exist by a recent breakthrough result of Keevash , provided the trivial divisibility conditions hold and N>N0(d)N>N_{0}(d). His proof also gives that there are N(1+o(1))(Nd)/(d+1)N^{(1+o(1)){N\choose d}/(d+1)} such families.

Now, construct a class CC by taking all subsets of cardinality at most d−1d-1, and for each (d+1)(d+1)-subset in the family FF take it and all its subsets of cardinality dd besides one. The VC dimension of CC is indeed dd. The number of possible CCs that can be constructed this way is at least the number of families FF. Therefore, the number of classes of VC dimension dd is at least the number of FFs:

For the upper bound we use the known fact that every maximum class is a connected subgraph of the boolean cube . Thus, to upper bound the number of maximum classes of VC dimension dd it is enough to upper bound the number of connected subgraphs of the NN-dimensional cube of size ff. It is known (see, e.g., Lemma 2.1 in ) that the number of connected subgraphs of size kk in a graph with mm vertices and maximum degree DD is at most m(eD)km(eD)^{k}. In our case, plugging k=fk=f, m=2Nm=2^{N}, D=ND=N yields the desired bound 2N(eN)f=N(1+o(1))f2^{N}(eN)^{f}=N^{(1+o(1))f}.

For the lower bound, note that in the proof of Theorem 11 the constructed classes were of size ff, and therefore maximum classes. Therefore, there are at least N(1+o(1))(Nd)/(d+1)N^{(1+o(1)){N\choose d}/(d+1)} maximum classes of VC dimension dd. ∎

4.4 Counting graphs

The key observation is that whenever we split the vertices of a U(d+1)U(d+1)-free graph into two disjoint sets of equal size, the bipartite graph between them defines a matrix of VC dimension at most dd. Hence, the number of such bipartite graphs is at most

By a known lemma of Shearer , this implies that the total number of U(d+1)U(d+1)-free graphs on NN vertices is less than T(N,d)2=2O(N2−1/dlog⁡N)T(N,d)^{2}=2^{O(N^{2-1/d}\log N)}. For completeness, we include the simple details. The lemma we use is the following.

Let F{\cal F} be a family of vectors in S1×S2⋯×SnS_{1}\times S_{2}\cdots\times S_{n}. Let G={G1,…,Gm}{\cal G}=\{G_{1},\ldots,G_{m}\} be a collection of subsets of [n][n], and suppose that each element i∈[n]i\in[n] belongs to at least kk members of G{\cal G}. For each 1≤i≤m1\leq i\leq m, let Fi{\cal F}_{i} be the set of all projections of the members of F{\cal F} on the coordinates in GiG_{i}. Then

In our application, n=(N2)n={N\choose 2} and S1=…=Sn={0,1}S_{1}=\ldots=S_{n}=\{0,1\}. The vectors represent graphs on NN vertices, each vector being the characteristic vector of a graph on NN labeled vertices. The set [n][n] corresponds to the set of all (N2){N\choose 2} potential edges. The family F\cal F represents all U(d+1)U(d+1)-free graphs. The collection G{\cal G} is the set of all complete bipartite graphs with N/2N/2 vertices in each color class. Each edge i∈[n]i\in[n] belongs to at least (in fact a bit more than) half of them, i.e., k≥m/2k\geq m/2. Hence,

Concluding remarks and open problems

We have given explicit examples of N×NN\times N sign matrices with small VC dimension and large sign rank. However, we have not been able to prove that any of them has sign rank exceeding N1/2N^{1/2}. Indeed this seems to be the limit of Forster’s approach, even if we do not bound the VC dimension. Forster’s theorem shows that the sign rank of any N×NN\times N Hadamard matrix is at least N1/2N^{1/2}. It is easy to see that there are Hadamard matrices of sign rank significantly smaller than linear in NN. Indeed, the sign rank of the 4×44\times 4 signed identity matrix is 33, and hence the sign rank of its kk’th tensor power, which is an N×NN\times N Hadamard matrix with N=4kN=4^{k}, is at most 3k=Nlog⁡3/log⁡43^{k}=N^{\log 3/\log 4} (a similar argument was given by for the Sylvester-Hadamard matrix). It may well be, however, that some Hadamard matrices have sign rank linear in NN, as do random sign matrices, and it will be very interesting to show that this is the case for some such matrices. It will also be interesting to decide what is the correct behavior of the sign rank of the incidence graph of the points and lines of a projective plane with NN points. We have seen that it is at least Ω(N1/4)\Omega(N^{1/4}) and at most O(N1/2)O(N^{1/2}).

Using our spectral technique we can give many additional explicit examples of matrices with high sign rank, including ones for which the matrices not only have VC dimension 22, but are more restricted than that (for example, no 33 columns have more than 66 distinct projections).

We have also showed how to use this upper bound to get a nontrivial approximation algorithm for the sign rank. It will be interesting to fully understand the computational complexity of computing the sign rank.

Finally we note that most of the analysis in this paper can be extended to deal with M×NM\times N matrices, where MM and NN are not necessarily equal, and we restricted the attention here for square matrices mainly in order to simplify the presentation.

Acknowledgements

We wish to thank Rom Pinchasi, Amir Shpilka, and Avi Wigderson for helpful discussions and comments.

References