Sign rank versus VC dimension
Noga Alon, Shay Moran, Amir Yehudayoff
Introduction
Boolean matrices (with entries) and sign matrices (with entries) naturally appear in many areas of research There is a standard transformation of a boolean matrix to the sign matrix , where is the all matrix. The matrix is called the signed version of , and the matrix is called the boolean version of .. 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 with no zero entries, let denote the sign matrix such that for all . The sign rank of a sign matrix is defined as
The VC dimension of a sign matrix , denoted , is defined as follows. A subset of the columns of is called shattered if each of the different patterns of ones and minus ones appears in some row in the restriction of to the columns in . The VC dimension of is the maximum size of a shattered subset of columns. It captures the size of the minimum -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 is the maximum number such that
The dual sign rank of is the maximum number such that
It turns out that the dual sign rank is almost equivalent to the VC dimension (the proof is in Section 3.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 disjointness matrix , whose rows and columns are indexed by all subsets of , and if and only if . For this matrix both the sign rank and the dual sign rank are exactly .
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 matrices with VC dimension for which the sign rank tends to infinity with . used ideas from together with estimates concerning the Zarankiewicz problem to show that many matrices with constant VC dimension (at least ) have high sign rank.
We further investigate the problem of determining or estimating the maximum possible sign rank of matrices with VC dimension . Denote this maximum by . We are mostly interested in fixed and tending to infinity.
We observe that there is a dichotomy between the behaviour of when and when . The value of is , but for , the value of tends to infinity with . We now discuss the behaviour of in more detail, and describe our results.
We start with the case . The following theorem and claim imply that for all ,
The following theorem which was proved by shows that for , 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 is one then its sign rank is at most .
We also note that the bound is tight (see Section 3.2.1 for a proof).
For , the signed identity matrix (i.e. the matrix with on the diagonal and off the diagonal) has VC dimension one and sign rank .
Next, we consider the case , starting with lower bounds on . As mentioned above, two lower bounds were previously known: showed that . showed that , for every fixed , which provides a nontrivial result only for . We prove the following stronger lower bound.
The following lower bounds on hold:
which is close to for large . The proofs are described in Section 3.2, where we also discuss the tightness of our arguments.
What about upper bounds on ? It is shown in that for every matrix in a certain class of matrices with constant VC dimension, the sign rank is at most . 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 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 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 is known.
We focus on the case of regular matrices, but a similar discussion can be carried more generally. A boolean matrix is regular if every row and every column in it has exactly ones, and a sign matrix is regular if its boolean version is regular.
An real matrix has singular values . The largest singular value of is also called its spectral norm where with the standard inner product. If the ratio is bounded away from one, or small, we say that has a spectral gap.
We prove that if has a spectral gap then the sign rank of is high.
Let be a regular boolean matrix with , and let be its signed version. Then,
In many cases a spectral gap for 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 , the vectors corresponding to and the vectors corresponding to 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 of the distance between the convex hull of the vectors corresponding to and the convex hull of the vectors corresponding to . 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 , most hypothesis classes of VC dimension have sign-rank of . As discussed in Section 1.2, Theorem 4 quantitatively improves over their results.
Maximum classes with large sign rank
Let be a class with VC dimension . The class 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 , and a maximal class is such that for every sign vector , if is added to then the VC dimension is increased.. That is, . 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 is a maximum class that can not be realized this way. By Lemma 19, however, the hamming ball of radius has sign rank at most (it is in fact exactly ). It is therefore natural to ask whether every maximum class has sign rank which depends only on . A similar question was also asked by . Theorem 8 in Section 2.2.1 gives a negative answer to this question, even when (when , by Theorem 2 the sign rank is at most ).
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 and . Let be the set of points in a dimensional projective space of order , and let be the set of hyperplanes in the space. For , this is just a projective plane with points and lines. It is known (see, e.g., ) that
Let be the signed point-hyperplane incidence matrix:
The matrix is with , its VC dimension is , 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 was given by .
The sign rank of is at most , due to the observation in mentioned above. To see this, note that every point in the projective space is incident to 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 but have high sign rank; no columns in them have more than distinct projections. An -graph is a regular graph on vertices so that the absolute value of every eigenvalue of the graph besides the top one is at most . There are several known constructions of -graphs for which , that do not contain short cycles. Any such graph with provides an example with sign rank at least , and if there is no cycle of length at most then in the sign matrix we have at most distinct projections on any set of columns.
The class of all intervals is a maximum class of VC dimension . Moreover, there exists a choice of linear orders for the lines in such that the resulting has sign rank .
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 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 by matrix up to a multiplicative factor of where 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 and a distribution on its inputs, define as the minimum communication complexity of a protocol that correctly computes with error over inputs from . Define D^{\times}(f)=\max\{D_{\mu}(f):\text{\muis a product distribution}\}. Define the unbounded error communication complexity of 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 with probability strictly larger than 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 is By taking larger values of , the constant may be increased to . . The distributional communication complexity of under product distributions is .
These two seemingly contradicting facts are a corollary of the high sign rank and the low VC dimension of , using two known results. The upper bound on follows from the fact that , and the work of which used the PAC learning algorithm to construct an efficient (one round) communication protocol for under product distributions. The lower bound on follows from that , 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 denote the number of classes with VC dimension . We give the following estimate of for constant and large enough. The proof is given in Section 3.4.3.
For every , there is such that for all :
Let denote the number of maximum classes of VC dimension . The problem of estimating was proposed by . We provide the following estimate (see Section 3.4.3).
For every , there is such that for all :
The gap between our upper and lower bound is roughly a multiplicative factor of in the exponent. In the previous bounds given by the gap was a multiplicative factor of 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 be a graph (not necessarily bipartite). The universal graph is defined as the bipartite graph with two color classes and where , and the edges are defined as iff . The graph is called -free if for all two disjoint sets of vertices so that and , the bipartite graph consisting of all edges of between and is not isomorphic to . In Theorem 24 of , which improves Theorem 2 there, it is proved that for , the number of -free graphs on 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 term by a single term.
For every fixed , the number of -free graphs on vertices is at most .
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 is antipodally shattered in a sign matrix if for each , either or appear as a row in the restriction of to the columns in .
The set of columns is antipodally shattered in if and only if in every matrix with the columns in are linearly independent.
First, assume is such that there exists some with in which the columns in are linearly dependent. For a column , denote by the ’th column in . Let be a set of real numbers so that and not all ’s are zero. Consider the vector such that if and if . The restriction of to does not contain nor as a row, which certifies that is not antipodally shattered by .
The dual sign rank of is the maximum size of a set of columns that are antipodally shattered in .
The left inequality: The VC dimension of is at most the maximum size of a set of columns that is antipodally shattered in , which by the above claim equals the dual sign rank of .
The right inequality: Let be a largest set of columns that is antipodally shattered in . By the claim above, the dual sign rank of is . Let such that . If is shattered in then we are done. Otherwise, there exists some that does not appear in restricted to . Since is antipodally shattered by , this implies that contains all patterns in whose restriction to is . In particular, shatters which is of size at least .
2 Sign rank versus VC dimension
In this section we study the maximum possible sign rank of matrices with VC dimension , 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 , and that is tight. Before reading this section, it may be a nice exercise to prove that the sign rank of the signed identity matrix is exactly three (for ).
Our goal in this section is to embed 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 be an sign matrix with VC dimension one so that no row appears twice in it, and every column is shattered (i.e. the two values appear in it). Then, there is a column and a row so that for all in .
For every column , denote by the number of rows so that , and let . Assume without loss of generality that for all , and that . Since all columns are shattered, . To prove the claim, it suffices to show that .
Assume towards a contradiction that . For , denote by the submatrix of consisting of all rows so that . The matrix has at least two rows. Since all rows are different, there is a column so that two rows in differ in . Specifically, column is shattered in . Since , it follows that is not shattered in , which means that the value in column is the same for all rows of the matrix . Therefore, , 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 . If , 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 but for all .
This is the construction. Its correctness follows by induction, by the choice of the last added half space which separates from all other points, and since if exists it belongs to the same cell as in the embedding of . ∎
We conclude the section by showing that the bound above cannot be improved.
Finally, the signed identity matrix is not a submatrix of . 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 , let denote the maximum number of sign changes (SC) along a column of . Define where the minimum is taken over all matrices obtained from by a permutation of the rows.
For any sign matrix , .
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 mapping positive integers to positive integers, we say that a sign matrix satisfies a primal shatter function if for any integer and any set of columns of , the number of distinct projections of the rows of on is at most . 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 be a sign matrix with rows that satisfies the primal shatter function for some constants and . Then .
Let be an sign matrix of VC dimension . By Sauer’s lemma , it satisfies the primal shatter function . Hence, by Lemma 20, . Therefore, by Lemma 19, . ∎
The proof of Theorem 5 works, with essentially no change, for a larger class of sign matrices than the ones with VC dimension . Indeed, the proof shows that the sign rank of any matrix with primal shatter function at most for some fixed and is at most In this statement the estimate is sharp for all integers , up to a logarithmic factor. This follows from the construction in , which supplies boolean matrices so that the number of entries in them is at least , and they contain no by submatrices of ’s. These matrices satisfy the primal shatter function (with room to spare). Indeed, if we have more than that many distinct projections on a set of columns, we can omit all projections of weight at most . Each additional projection contains ’s in at least one set of size , and the same -set cannot be covered more than times. Plugging this matrix in the counting argument that gives a lower bound for the sign rank using Lemma 22 proven below supplies an lower bound for the sign rank of many matrices with primal shatter function .
We have seen in Lemma 19 that sign rank is at most of order . Moreover, for a fixed , many of the sign matrices with sign rank at most also have at most : Indeed, a simple counting argument shows that the number of sign matrices with is
so, the set of sign matrices with is a subset of size of all sign matrices with sign rank at most .
How many matrices of sign rank at most are there? by Lemma 22 proved in the next section, this number is at most . So, the set of matrices with is a rather large subset of the set of matrices with sign rank at most .
Indeed, fix some order on the rows of , that is, order the points with . The key point is that one of the hyperplanes is so that the number of for which is at least : For each there is at least one hyperplane that separates and , that is, for which . The number of such pairs of points is , and the number of hyperplanes is just .
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 for , 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 , the sign pattern of at is the vector
Let be the total number of sign patterns of as ranges over all of . This number is bounded from above by the number of connected components of .
An matrix is of rank at most iff it can be written as a product of an matrix by an matrix . Therefore, each entry of is a quadratic polynomial in the variables describing the entries of and . We thus deduce the following from Warren’s Theorem stated above. A similar argument has been used by .
Let . Then, the number of sign matrices of sign rank at most does not exceed .
For a fixed , 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 matrices of sign rank .
In order to derive the statement of Theorem 4 from the last lemma it suffices to show that the number of sign matrices of VC dimension 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 : Consider the incidence matrix of the projective plane with points and lines, considered in the previous sections. The number of entries in is , and it does not contain (the all 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 , since every matrix of VC dimension must contain as a submatrix. This gives us distinct sign matrices of VC dimension at most . Lemma 22 therefore establishes the assertion of Theorem 4, part 1.
2. The case : Call a binary matrix heavy if its rows are the all row and the rows with Hamming weight . Call a 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 matrix so that the number of entries in it is at least , and it does not contain any heavy-dominating submatrix. Given such a matrix , any matrix obtained from by replacing some of the ones by zeros have VC dimension at most . This implies part 2 of Theorem 4, using Lemma 22 as before.
The existence of is proved by a probabilistic argument. Let be a random binary matrix in which each entry, randomly and independently, is with probability . Let be the random variable counting the number of entries of minus twice the number of heavy-dominant submatrices contains. By linearity of expectation,
Fix a matrix for which the value of is at least its expectation. Replace at most two entries by in each heavy-dominant submatrix in to get the required matrix .
3. The case : The basic idea is as before, but here there is an explicit construction that beats the probabilistic one. Indeed, constructed an boolean matrix so that the number of entries in is at least and it does not contain as a submatrix (see also for another construction). No set of rows in every matrix obtained from this one by replacing ’s by ’s can be shattered, implying the desired result as before.
4. The case : The proof here is similar to the one in part 2. We prove by a probabilistic argument that there is an binary matrix so that the number of entries in it is at least
and it contains no heavy-dominant submatrix. Here, heavy-dominant means a by matrix that is bigger or equal in each entry than the matrix whose rows are all the distinct vectors of length and Hamming weight at least . Any matrix obtained by replacing ’s by ’s in cannot have VC dimension exceeding . The result follows, again, from Lemma 22.
We start as before with a random matrix in which each entry, randomly and independently, is chosen to be 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 is an sign matrix then
We would like to apply Forster’s theorem to the matrix in our explicit examples. The spectral norm of , however, is too large to be useful: If is regular and is the all vector then and so . Applying Forster’s theorem to yields that its sign rank is , 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 which we call star norm and denote by The minimizer belongs to a closed subset of the bounded set .
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, . (iii) Every in the above minimum satisfies .
Let be an 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 . It is not a priori obvious that there is a matrix for which this holds. The following lemma shows that spectral gaps yield such examples.
Let be a regular sign matrix with , and 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 it follows that for all . So,
Since is regular, the all vector is a right singular vector of with singular value . Specifically, . For every , write where is the projection of on and is orthogonal to . Thus,
Note that (and hence ). Indeed, since is regular, there are permutation matrices so that is their sum. The spectral norm of each is one. The desired bound follows by the triangle inequality.
Finally, since is orthogonal to ,
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 . 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 of a regular graph is not too small,
where the term vanishes when 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 , at least when .
But what about general lower bounds on ? It is well known that any sign matrix satisfies . We prove a generalization of this statement.
Let be an sign matrix. For , let be the minimum between the number of ’s and the number of ’s in the i’th row. Let . Then,
This lemma provides limitations on the bound from Theorem 24. Indeed, and is a monotone decreasing function of , which implies . Interestingly, Lemma 25 and Theorem 24 provide a quantitively weaker but a more general statement than the Alon-Boppana theorem: If is a regular boolean matrix with , 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 is while this matrix is 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 is the trace of , which is . As the spectral norm is , the sum of squares of the other singular values is , implying that
which is (slightly) larger than the bound above.
Let be a matrix so that and for all . Assume without loss of generality Multiplying a row by does not affect . that is the number of ’s in the ’th row of . If , then has only positive entries which implies as claimed. So, we may assume . Let be the largest real so that
That is, if then and if then
There are two cases to consider. One is that for all we have . In this case, if is the all vector then
The second case is that there is so that . Assume without loss of generality that . Denote by the subset of the columns so that . Thus,
Convexity of implies that
In this case, if is the vector with in the first entry and in all other entries then
Since , it follows that . ∎
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 is the identity matrix, and is the rank one matrix with entry .
The lemma shows that every in general position can be linearly mapped to that is, in some sense, equidistributed. In a nutshell, the proof of the lemma is by finding so that each makes closer to being equidistributed, and finally using that the underlying object is compact, so that this process reaches its goal.
If necessary replace by and by , and then normalize (the assumption required in the lemma that is in general position may be obtained by a slight perturbation of its vectors).
The proof continues by bounding in two different ways.
First, bound from above: Observe that for every two vectors , Cauchy-Schwartz inequality implies
Second, bound from below: Since and for all , using (2),
4 Applications
It is well known that the VC dimension of is , but we provide a brief explanation. The VC dimension is at least by considering any set of independent points (i.e. so that no strict subset of it spans it). The VC dimension is at most since every set of points is dependent in a 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 is the boolean version of 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 . The number of hyperplanes through two distinct points is .
The first property implies that is regular. These properties also imply
where is the all matrix. Therefore, all singular values except the maximum one are . ∎
Thus, is indeed a maximum class of VC dimension .
Next we show that there exists a choice of a linear order for each line such that the resulting has sign rank . By the proof of Theorem 4, case , there is a choice of a subset for each line such that the resulting subsets form a class of sign rank . We can therefore pick the linear orders in such a way that each of these 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 . ∎
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 be a set. A pair is crossed by a vector if . Let be a tree with vertex set and edge set . Let be a sign matrix. The stabbing number of in is the largest number of edges in that are crossed by the same column of . For example, if is a path then defines a linear order (permutation) on 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 with a low stabbing number for matrices with VC dimension . 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 sign matrix with , outputs a path on with stabbing number at most where .
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 are pairwise distinct.
We start by handling the case This analysis also provides an alternative proof for Lemma 18. . In this case, we directly output a tree that is a path (i.e., a linear order on ). If , then Claim 17 implies that there is a column with at most sign changes with respect to any order on . The algorithm first finds by recursion a path for the matrix obtained from by removing this column, and outputs the same path for the matrix as well. By induction, the resulting path has stabbing number at most (when there is a single column the stabbing number can be made ).
For , the algorithm constructs a sequence of forests over the same vertex set . The forest has exactly edges, and is defined by greedily adding an edge to . As we prove below, the tree has a stabbing number at most . The tree is transformed to a path as follows. Let be an eulerian path in the graph obtained by doubling every edge in . This path traverses each edge of exactly twice. Let be the matrix with rows and columns obtained from be putting row in as row , for . The number of sign changes in each column in is at most . Finally, let be the path obtained from the eulerian path by leaving a single copy of each row of . Since deleting rows from cannot increase the number of sign changes, the path is as stated.
The edge is chosen as follows. The algorithm maintains a probability distribution on . The weight of the pair is the probability mass of the columns crosses, that is, . The algorithm chooses as an edge with minimum -weight among all edges that are not in and do not close a cycle in .
The distributions are chosen iteratively as follows. The first distribution is the uniform distribution on . The distribution is obtained from by doubling the relative mass of each column that is crossed by . That is, let , and for every column that is crossed by define , and for every other column define .
This algorithm clearly produces a tree on , and the running time is indeed polynomial in . It remains to prove correctness. We claim that each column is crossed by at most edges in . To see this, let be a column in , and let be the number of edges crossing . It follows that
To upper bound , we use the following claim.
For every we have .
The claim completes the proof of Theorem 28: Since and ,
The claim follows from the following theorem of Haussler.
Let be a probability distribution on , and let . Let be a sign matrix of VC dimension so that the -distance between every two distinct rows is large:
Then, the number of distinct rows in is at most
Haussler’s theorem states that if the number of distinct rows is , then there must be two distinct rows of -distance at most . There are connected components in . Pick rows, one from each component. Therefore, there are two of these rows whose distance is at most . Now, observe that the -weight of the pair equals the -distance between . Since is chosen to have minimum weight, ∎
We now describe the approximation algorithm. Let be an sign matrix of VC dimension . Run Welzl’s algorithm on , and get a permutation of the rows of that yield a low stabbing number. Let be the maximum number of sign changes among all columns of with respect to this permutation. Output as the approximation to the sign rank of .
We now analyze the approximation ratio. By Lemma 19 the sign rank of is at most . Therefore, the approximation factor is at least . On the other hand, Proposition 1 implies that . Thus, by the guarantee of Welzl’s algorithm,
This factor is maximized for and is therefore at most .
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 as follows. Start with the (lexicographically) first member , call it . Assuming have already been chosen, let be the member among the remaining vectors in whose hamming distance from the set is minimum (in case of equalities we take the first one lexicographically). This gives an enumeration of the members of , and .
We now present a lower bound on the number of (maximum) classes with VC dimension . Take a family of subsets of of size so that every subset of size is contained in exactly one of them. Such families exist by a recent breakthrough result of Keevash , provided the trivial divisibility conditions hold and . His proof also gives that there are such families.
Now, construct a class by taking all subsets of cardinality at most , and for each -subset in the family take it and all its subsets of cardinality besides one. The VC dimension of is indeed . The number of possible s that can be constructed this way is at least the number of families . Therefore, the number of classes of VC dimension is at least the number of s:
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 it is enough to upper bound the number of connected subgraphs of the -dimensional cube of size . It is known (see, e.g., Lemma 2.1 in ) that the number of connected subgraphs of size in a graph with vertices and maximum degree is at most . In our case, plugging , , yields the desired bound .
For the lower bound, note that in the proof of Theorem 11 the constructed classes were of size , and therefore maximum classes. Therefore, there are at least maximum classes of VC dimension . ∎
4.4 Counting graphs
The key observation is that whenever we split the vertices of a -free graph into two disjoint sets of equal size, the bipartite graph between them defines a matrix of VC dimension at most . Hence, the number of such bipartite graphs is at most
By a known lemma of Shearer , this implies that the total number of -free graphs on vertices is less than . For completeness, we include the simple details. The lemma we use is the following.
Let be a family of vectors in . Let be a collection of subsets of , and suppose that each element belongs to at least members of . For each , let be the set of all projections of the members of on the coordinates in . Then
In our application, and . The vectors represent graphs on vertices, each vector being the characteristic vector of a graph on labeled vertices. The set corresponds to the set of all potential edges. The family represents all -free graphs. The collection is the set of all complete bipartite graphs with vertices in each color class. Each edge belongs to at least (in fact a bit more than) half of them, i.e., . Hence,
Concluding remarks and open problems
We have given explicit examples of 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 . 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 Hadamard matrix is at least . It is easy to see that there are Hadamard matrices of sign rank significantly smaller than linear in . Indeed, the sign rank of the signed identity matrix is , and hence the sign rank of its ’th tensor power, which is an Hadamard matrix with , is at most (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 , 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 points. We have seen that it is at least and at most .
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 , but are more restricted than that (for example, no columns have more than 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 matrices, where and 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.