Manifold regularization
In machine learning, Manifold regularization is a technique for using the shape of a dataset to constrain the functions that should be learned on that dataset. In many machine learning problems, the data to be learned do not cover the entire input space. For example, a facial recognition system may not need to classify any possible image, but only the subset of images that contain faces. The technique of manifold learning assumes that the relevant subset of data comes from a manifold, a mathematical structure with useful properties. The technique also assumes that the function to be learned is smooth: data with different labels are not likely to be close together, and so the labeling function should not change quickly in areas where there are likely to be many data points. Because of this assumption, a manifold regularization algorithm can use unlabeled data to inform where the learned function is allowed to change quickly and where it is not, using an extension of the technique of Tikhonov regularization. Manifold regularization algorithms can extend supervised learning algorithms in semi-supervised learning and transductive learning settings, where unlabeled data are available. The technique has been used for applications including medical imaging, geographical imaging, and object recognition.
Manifold regularizer
Motivation
Manifold regularization is a type of regularization, a family of techniques that reduces overfitting and ensures that a problem is well-posed by penalizing complex solutions. In particular, manifold regularization extends the technique of Tikhonov regularization as applied to Reproducing kernel Hilbert spaces. Under standard Tikhonov regularization on RKHSs, a learning algorithm attempts to learn a function from among a hypothesis space of functions. The hypothesis space is an RKHS, meaning that it is associated with a kernel, and so every candidate function has a norm, which represents the complexity of the candidate function in the hypothesis space. When the algorithm considers a candidate function, it takes its norm into account in order to penalize complex functions.Formally, given a set of labeled training data with and a loss function, a learning algorithm using Tikhonov regularization will attempt to solve the expression
where is a hyperparameter that controls how much the algorithm will prefer simpler functions to functions that fit the data better.
embedded in three-dimensional space. Manifold regularization attempts to learn a function that is smooth on the unrolled manifold.
Manifold regularization adds a second regularization term, the intrinsic regularizer, to the ambient regularizer used in standard Tikhonov regularization. Under the manifold assumption in machine learning, the data in question do not come from the entire input space, but instead from a nonlinear manifold. The geometry of this manifold, the intrinsic space, is used to determine the regularization norm.
Laplacian norm
There are many possible choices for. Many natural choices involve the gradient on the manifold, which can provide a measure of how smooth a target function is. A smooth function should change slowly where the input data are dense; that is, the gradient should be small where the marginal probability density, the probability density of a randomly drawn data point appearing at, is large. This gives one appropriate choice for the intrinsic regularizer:In practice, this norm cannot be computed directly because the marginal distribution is unknown, but it can be estimated from the provided data. In particular, if the distances between input points are interpreted as a graph, then the Laplacian matrix of the graph can help to estimate the marginal distribution. Suppose that the input data include labeled examples and unlabeled examples. Define to be a matrix of edge weights for a graph, where is a distance measure between the data points and. Define to be a diagonal matrix with and to be the Laplacian matrix. Then, as the number of data points increases, converges to the Laplace–Beltrami operator, which is the divergence of the gradient. Then, if is a vector of the values of at the data,, the intrinsic norm can be estimated:
As the number of data points increases, this empirical definition of converges to the definition when is known.
Solving the regularization problem
Using the weights and for the ambient and intrinsic regularizers, the final expression to be solved becomes:As with other kernel methods, may be an infinite-dimensional space, so if the regularization expression cannot be solved explicitly, it is impossible to search the entire space for a solution. Instead, a representer theorem shows that under certain conditions on the choice of the norm, the optimal solution must be a linear combination of the kernel centered at each of the input points: for some weights,
Using this result, it is possible to search for the optimal solution by searching the finite-dimensional space defined by the possible choices of.
Applications
Manifold regularization can extend a variety of algorithms that can be expressed using Tikhonov regularization, by choosing an appropriate loss function and hypothesis space. Two commonly used examples are the families of support vector machines and regularized least squares algorithms. The extended versions of these algorithms are called Laplacian Regularized Least Squares and Laplacian Support Vector Machines, respectively.Laplacian Regularized Least Squares (LapRLS)
Regularized least squares is a family of regression algorithms: algorithms that predict a value for its inputs, with the goal that the predicted values should be close to the true labels for the data. In particular, RLS is designed to minimize the mean squared error between the predicted values and the true labels, subject to regularization. Ridge regression is one form of RLS; in general, RLS is the same as ridge regression combined with the kernel method. The problem statement for RLS results from choosing the loss function in Tikhonov regularization to be the mean squared error:Thanks to the representer theorem, the solution can be written as a weighted sum of the kernel evaluated at the data points:
and solving for gives:
where is defined to be the kernel matrix, with, and is the vector of data labels.
Adding a Laplacian term for manifold regularization gives the Laplacian RLS statement:
The representer theorem for manifold regularization again gives
and this yields an expression for the vector. Letting be the kernel matrix as above, be the vector of data labels, and be the block matrix :
with a solution of
LapRLS has been applied to problems including sensor networks,
medical imaging,
object detection,
spectroscopy,
document classification,
drug-protein interactions,
and compressing images and videos.
Laplacian Support Vector Machines (LapSVM)
are a family of algorithms often used for classifying data into two or more groups, or classes. Intuitively, an SVM draws a boundary between classes so that the closest labeled examples to the boundary are as far away as possible. This can be directly expressed as a linear program, but it is also equivalent to Tikhonov regularization with the hinge loss function, :Adding the intrinsic regularization term to this expression gives the LapSVM problem statement:
Again, the representer theorem allows the solution to be expressed in terms of the kernel evaluated at the data points:
can be found by writing the problem as a linear program and solving the dual problem. Again letting be the kernel matrix and be the block matrix, the solution can be shown to be
where is the solution to the dual problem
and is defined by
LapSVM has been applied to problems including geographical imaging,
medical imaging,
face recognition,
machine maintenance,
and brain-computer interfaces.
Limitations
- Manifold regularization assumes that data with different labels are not likely to be close together. This assumption is what allows the technique to draw information from unlabeled data, but it only applies to some problem domains. Depending on the structure of the data, it may be necessary to use a different semi-supervised or transductive learning algorithm.
- In some datasets, the intrinsic norm of a function can be very close to the ambient norm : for example, if the data consist of two classes that lie on perpendicular lines, the intrinsic norm will be equal to the ambient norm. In this case, unlabeled data have no effect on the solution learned by manifold regularization, even if the data fit the algorithm's assumption that the separator should be smooth. Approaches related to co-training have been proposed to address this limitation.
- If there are a very large number of unlabeled examples, the kernel matrix becomes very large, and a manifold regularization algorithm may become prohibitively slow to compute. Online algorithms and sparse approximations of the manifold may help in this case.
Software
- The and the implement LapRLS and LapSVM in MATLAB.
- The for C++ includes a linear manifold regularization function.