Generalization error bounds for kernel matrix completion and extrapolation
Pere Gim\'enez-Febrer, Alba Pag\`es-Zamora, and Georgios B. Giannakis

TL;DR
This paper analyzes the generalization error bounds for kernel matrix completion methods that incorporate prior information via reproducing kernel Hilbert spaces, supported by numerical experiments.
Contribution
It provides theoretical error bounds for kernel-based matrix completion and extrapolation methods, enhancing understanding of their reliability.
Findings
Theoretical error bounds are derived for kernel matrix completion.
Numerical tests confirm the accuracy of the theoretical bounds.
Incorporating prior information improves matrix completion performance.
Abstract
Prior information can be incorporated in matrix completion to improve estimation accuracy and extrapolate the missing entries. Reproducing kernel Hilbert spaces provide tools to leverage the said prior information, and derive more reliable algorithms. This paper analyzes the generalization error of such approaches, and presents numerical tests confirming the theoretical results.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Generalization error bounds for kernel matrix completion and extrapolation
Pere Giménez-Febrer, Alba Pagès-Zamora, and Georgios B. Giannakis P. Giménez-Febrer and A. Pagès-Zamora are with the SPCOM Group, Universitat Politècnica de Catalunya-Barcelona Tech, Spain.
G. B. Giannakis is with the Dept. of ECE and Digital Technology Center, University of Minnesota, USA.
This work is supported by ERDF funds (TEC2013-41315-R and TEC2016-75067-C4-2), the Catalan Government (2017 SGR 578), and NSF grants (1500713, 1514056, 1711471 and 1509040).
Abstract
Prior information can be incorporated in matrix completion to improve estimation accuracy and extrapolate the missing entries. Reproducing kernel Hilbert spaces provide tools to leverage the said prior information, and derive more reliable algorithms. This paper analyzes the generalization error of such approaches, and presents numerical tests confirming the theoretical results.
I Introduction
Matrix completion (MC) deals with the recovery of missing entries in a matrix – a task emerging in several applications such as image restoration [1], collaborative filtering [2] or positioning [3]. MC relies on the low rank of data matrices to enable reliable, even exact [4], recovery of the full unknown matrix. Exploiting this property, mainstream approaches to MC involve the minimization of the nuclear norm [5, 6] or a surrogate involving the data matrix factorization into a product of two low-rank matrices [7, 8].
One main assumption in the aforementioned approaches to MC is that the unknown matrix is incoherent, meaning the entries of its singular vectors are uniformly distributed, which implies that matrices with structured form are not allowed. For instance, data matrices with clustered form lead to segmented singular vectors that violate the incoherence assumption. Such structures may be induced by prior information embedded in, e.g., graphs [9], dictionaries [10], or heuristic assumptions [11]. Main approaches to MC leverage prior information with proper regularization [12, 13, 14, 15], or, by restricting the solution space [16, 17, 18, 19]. Most of these approaches can be unified using a reproducing kernel Hilbert space (RKHS) framework [17, 18], which presents theoretical tools to exploit prior information.
When analyzing the performance of MC algorithms, several works, e.g. [20, 5, 2, 16], focus on the derivation of sample complexity bounds; that is, the evolution of the distance to the optimum across the number of samples and iterations. Other analyses are based on the generalization error (GE) [21, 22, 23], a metric that measures the difference between the value of the loss function applied to a training dataset, and its expected value [24]. When the probability distribution of the data is unknown, the expected value is replaced by the average loss on a testing dataset [25]. Due to the potentially large matrix sizes and the small size of the training dataset, it is important that the estimated matrix exhibits low GE in order to prevent overfitting.
In [18], we introduced a novel Kronecker kernel matrix completion and extrapolation (KKMCEX) algorithm for MC. This algorithm relies on kernel ridge regression with the number of coefficients equal to the number of observations, thus being attractive for imputing matrices with a minimal number of observations. The present paper presents GE analysis for MC with prior information, and establishes that different from other MC approaches, the GE of KKMCEX does not depend on the matrix size, thus making it more reliable when dealing with few observations.
II MC with prior information
Consider a matrix , where denotes an unknown rank matrix, and is a noise matrix. We can only observe a subset of the entries in whose indices are given by the sampling set of cardinality . Factorizing the unknown matrix as , where , and , the unknown entries can be recovered by estimating
[TABLE]
where denotes an operator that sets to zero the entries with index and leaves the rest unchanged, while is a regularization scalar. Hereafter we refer to (1) as the base MC formulation, which can also be written with the nuclear norm as a regularizer through the property [22].
While the basic MC formulation makes no use of prior information, kernel (K)MC incorporates such knowledge by means of kernel functions that measure similarities between points in their input spaces. Let and be spaces of entities with one-to-one correspondence with the rows and columns of , respectively. Given the input spaces and , KMC defines the pair of RKHSs and , where and are kernel functions. Then, KMC postulates that the columns of the factor matrices in (1) are functions in and . Thus, we write and , where and are coefficient matrices, while and are the kernel matrices with entries and . The KMC formulations proposed in [17, 14], recover the factor matrices as
[TABLE]
The coefficient matrices are obtained as and , although this step is usually omitted [17, 14].
Algorithms solving (1) and (2) rely on alternating minimization schemes that do not converge to the optimum in a finite number of iterations [26]. To overcome this limitation and obtain a closed-form solution, we introduced the Kronecker kernel MC and extrapolation (KKMCEX) method [18]. Associated with entries of , consider the two-dimensional function with , and the RKHS it belongs to
[TABLE]
Upon vectorizing , we obtain , where has entries and . Accordingly, the data matrix is vectorized as , where is an binary sampling matrix with a single nonzero entry per row, and denotes the noise vector. With these definitions, the signal model for the observed entries becomes
[TABLE]
Recovery of the vectorized matrix is then performed using the kernel ridge regression estimate of given by
[TABLE]
The closed-form solution to (4) satisfies , where
[TABLE]
is the result of using the matrix inversion lemma on the solution to (4). Since (5) only depends on the observations in , KKMCEX can be equivalently rewritten as
[TABLE]
where . Given and , it becomes possible to use as a kernel, which corresponds to a kernel matrix [18].
III Generalization error in MC
In this section, we derive bounds for the GE of the MC in (1), KMC in (2) and KKMCEX in (4) algorithms. There are two approaches to GE analysis, namely the inductive [24] and the transductive one in [25]. In the inductive one GE measures the difference between the expected value of a loss function and the empirical loss over a finite number of samples. Consider rewriting MC in the general form
[TABLE]
where denotes the loss, and is the hypothesis class. For instance, choosing the square loss and setting the class to the set of matrices with a nuclear norm smaller than a constant results in the base MC formulation (1). Assuming a sampling distribution over for the observed indices in , the GE for a specific estimate is given by the expected difference . However, this definition of GE does not fit the MC framework because it assumes that: i) the data distribution is known; and, ii) the entries are sampled with repetition. In order to come up with distribution-free claims for MC, one may resort to the transductive GE analysis [25]. In this scenario, we are given of data comprising the union of the training set and the testing set , where . These data are taken without repetition, and the objective is to minimize the loss on the testing set. Thus, the GE is the difference between the testing and training loss functions
[TABLE]
By making this difference as small as possible, we ensure that the chosen has good generalization properties, meaning we expect to obtain a similar empirical loss when we choose a different testing set of samples. Since MC algorithms find their solution among a class of matrices under different restrictions or hypotheses, we are interested in bounding (8) for any matrix in the solution space. Before we present such bounds, we need to introduce the notion of transductive Rademacher complexity (TRC) as follows.
Definition 1**.**
Transductive Rademacher complexity[25] Given a set with , the transductive Rademacher complexity (TRC) of a matrix class is
[TABLE]
where is a Rademacher random variable that takes values with probability . We may also write (9) in vectorized form as , where , and has entries if , and otherwise.
TRC measures the expected maximum correlation between any function in the class and the random vector . Intuitively, the greater this correlation is, the larger is the chance of finding a solution in the hypothesis class that will fit any observation draw, that is, . Although TRC measures the ability to fit both the testing and training data at once, a model for is learnt using only the training data. While having a small loss across all entries in is desirable, making it too small can lead to overfitting, and an increased error when predicting entries outside . Using the TRC, the GE is bounded as follows.
Theorem 1**.**
[25]** Let be a matrix hypothesis class. For a loss function with Lipschitz constant , and any , it holds with probability that
[TABLE]
Theorem 1 asserts that in order to bound the GE, it only suffices to bound the TRC. Moreover, using the contraction property, which states that [25], we only need to calculate the TRC of . Given that the same loss function is used in MC, KMC and KKMCEX, in order to assess the GE upper bound of the three methods we will pursue the TRC for the hypothesis class of each algorithm.
III-A Rademacher complexity for base MC
In the base MC formulation (1), the hypothesis class is , where the value of is regulated by . As derived in [21], the TRC for this class of matrices is bounded as
[TABLE]
where is a universal constant. The bound in (11) decays as for fixed and . However, the GE does not since the sum of the second and third terms on the right-hand side of (10) decays as . Ideally, the sizes of the training and testing datasets should be comparable for the TRC to scale well with . Concerning the matrix size, the bound shows that increasing or results in a larger TRC bound regardless of the number of data points . Moreover, the nuclear norm of a matrix is since . Therefore, should also scale with and in order to match the hypothesis class, and obtain a good estimate of .
III-B Rademacher complexity for KMC
Unlike base MC that maximizes the nuclear norm of the data matrix, KMC does not directly employ the rank in its objective function. Instead, it imposes constraints on the maximum norm of the factor matrices in their respective RKHSs. Similar to [21], the TRC for KMC is bounded as follows.
Theorem 2**.**
If the KMC hypothesis class is , then
[TABLE]
where is the largest eigenvalue of and .
Proof.
Rewrite the nuclear norm in (11) in terms of the KMC constraint as
[TABLE]
where we used that with denoting the column of , and . ∎
Theorem 2 establishes that the TRC bound expressions of KMC and MC are identical within a scale. With , controls whether KMC has a larger or smaller TRC bound than MC. Thus, according to Theorem 2, the GE bound for KMC shrinks with and grows with and .
Interestingly, we will show next that it is possible to have a TRC bound that does not depend on the matrix size.
Consider the factorizations and , where and . Plugging the latter into the objective of (2) and substituting and , yields
[TABLE]
where and are coefficient matrices of size and , respectively. Optimizing for in (14) or for in (15) yields the same provided that have full column rank. Under this assumption, we consider the hypothesis class , which satisfies . Clearly, (15) is the objective used by the inductive MC [16]; and therefore, we have shown that inductive MC is a special case of KMC. This leads to the following result.
Theorem 3**.**
If , and is a binary sampling matrix that selects the entries in , then
[TABLE]
Proof.
With , , and , we have that
[TABLE]
where we have successively used the Cauchy-Schwarz inequality, the sub-multiplicative property of the Frobenius norm, and Jensen’s inequality in the first, second and third inequalities, respectively. ∎
If entries in the diagonal of are bounded by a constant, and , Theorem 3 provides a bound that decays as . Thus, if and are constant, the bound does not grow with or . These values can reasonably be kept constant when the coefficients in are not expected to change much as new rows or columns are added to , e.g., when the existing entries in the kernel matrices are largely unchanged as the matrices grow. For instance, let us rewrite the loss in (15) as . If when increasing or we add a few rows to or , as it would have happened with a linear kernel, optimizing for in (15) should yield similar results as with smaller and , as long as the space spanned by is not significantly altered.
III-C Rademacher complexity for KKMCEX
In KKMCEX, the restriction is set on the magnitude of , which depends on . Therefore, the hypothesis class for (6) is not altered by changes in the matrix size. The TRC bound is then given by the next theorem.
Theorem 4**.**
If is the hypothesis class for KKMCEX, it holds that
[TABLE]
Proof.
[TABLE]
∎
Supposing that the diagonal entries of are bounded by a constant, the bound in (17) decays as . For , this yields a rate . Thus, the GE bound induced by (17) only scales with the number of samples. As a result, we can expect the same performance on the testing dataset regardless of the data matrix size. Moreover, thanks to its simplicity and speed [18], KKMCEX can be used to confidently initialize other algorithms when needed, e.g., when the prior information is not accurate enough to provide a reliable hypothesis space.
IV Numerical tests
This section compares the GE of MC and KMC, solved via alternating least-squares (ALS) [26], with the KKMCEX solved with (5). Besides comparing the GE of these algorithms, we also assess how the matrix size impacts the GE. To this end, we use a fixed-rank synthetic data matrix with generated as . The kernel matrices are , where is the DFT basis and is a diagonal matrix with decreasing weights on its diagonal. The coefficient matrices have columns, with entries drawn from a zero-mean Gaussian distribution with variance 1. The entries of are drawn from a zero-mean Gaussian distribution with variance set according to the signal-to-noise ratio .
The tests are run over 1,000 realizations. A new matrix is generated per realization with entries drawn uniformly at random, followed by a run of each algorithm. Then, the loss on the testing set, which consists of the remaining entries, is measured. A single value of chosen by cross-validation is used for all realizations. For KMC and KKMCEX, is scaled with the matrix size to compensate for the trace growth of the kernel matrices, and thus keep the loss and regularization terms balanced.
Fig. 1a shows the training, testing, and GEs for square matrices with size ranging from to , and . We observe for base MC that the training loss is small, whereas it is much larger on the testing dataset, and also it grows with . Moreover, since the training loss is minimal, the GE coincides with the testing loss. Clearly, the MC solution (1) is not able to predict the unobserved entries due to the lack of prior information that would allow for extrapolation. In addition, the GE approaches saturation for large matrix sizes since most entries in the estimated matrix are [math], and the testing loss tends to the average . Regarding the performance of KMC and KKMCEX, we observe that both algorithms achieve a constant training loss. Although not visible on the plot, the training loss of KKMCEX is one order of magnitude smaller than that of KMC. On the other hand, the testing and GE of KKMCEX are constant unlike in KMC for which both are higher and grow with . These results confirm what was asserted by the TRC bounds in Section III.
Fig. 1b shows the same simulation results as Fig. 1a, but with noisy data at . We observe that MC overfits the noisy observations since the training loss is, again, very small, while the testing loss is much larger. For KMC and KKMCEX, the presence of noise increases the training and testing losses. Due to the noise, a larger is selected to prevent overfitting at the cost of a higher training loss. Nevertheless, the testing loss of KMC slightly grows with . In terms of GE, KKMCEX outperforms KMC with a lower value that tends to a constant.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] H. Ji, C. Liu, Z. Shen, and Y. Xu, “Robust video denoising using low rank matrix completion,” in Proc. of Computer Vision and Pattern Recognition Conf. , San Francisco, USA, Jun. 2010, pp. 1791–1798.
- 2[2] N. Rao, H.-F. Yu, P. K. Ravikumar, and I. S. Dhillon, “Collaborative filtering with graph information: Consistency and scalable methods,” in Advances in Neural Information Processing Systems , Montreal, Canada, Dec. 2015, pp. 2107–2115.
- 3[3] T. L. Nguyen and Y. Shin, “Matrix completion optimization for localization in wireless sensor networks for intelligent Io T,” Sensors (Switzerland) , vol. 16, no. 5, pp. 1–11, 2016.
- 4[4] E. J. Candès and B. Recht, “Exact matrix completion via convex optimization,” Foundations of Computational Mathematics , vol. 9, no. 6, pp. 717–772, Dec. 2009.
- 5[5] J. F. Cai, E. J. Candès, and Z. Shen, “A singular value thresholding algorithm for matrix completion,” SIAM Journal on Optimization , vol. 20, no. 4, pp. 1956–1982, Jan. 2010.
- 6[6] S. Ma, D. Goldfarb, and L. Chen, “Fixed point and Bregman iterative methods for matrix rank minimization,” Mathematical Programming , vol. 128, no. 1-2, pp. 321–353, Jun. 2011.
- 7[7] Y. Koren, R. Bell, and C. Volinsky, “Matrix factorization techniques for recommender systems,” Computer , vol. 42, no. 8, pp. 30–37, Aug. 2009.
- 8[8] R. Sun, “Matrix Completion via Nonconvex Factorization: Algorithms and Theory,” Ph.D. dissertation, UNIVERSITY OF MINNESOTA, 2015.
