Spectral regularization is any of a class of
regularization
Regularization may refer to:
* Regularization (linguistics)
* Regularization (mathematics)
* Regularization (physics)
* Regularization (solid modeling)
* Regularization Law, an Israeli law intended to retroactively legalize settlements
See also ...
techniques used in
machine learning
Machine learning (ML) is a field of inquiry devoted to understanding and building methods that 'learn', that is, methods that leverage data to improve performance on some set of tasks. It is seen as a part of artificial intelligence.
Machine ...
to control the impact of noise and prevent
overfitting
mathematical modeling, overfitting is "the production of an analysis that corresponds too closely or exactly to a particular set of data, and may therefore fail to fit to additional data or predict future observations reliably". An overfitt ...
. Spectral regularization can be used in a broad range of applications, from deblurring images to classifying emails into a spam folder and a non-spam folder. For instance, in the email classification example, spectral regularization can be used to reduce the impact of noise and prevent overfitting when a machine learning system is being trained on a labeled set of emails to learn how to tell a spam and a non-spam email apart.
Spectral regularization algorithms rely on methods that were originally defined and studied in the theory of
ill-posed
The mathematical term well-posed problem stems from a definition given by 20th-century French mathematician Jacques Hadamard. He believed that mathematical models of physical phenomena should have the properties that:
# a solution exists,
# the sol ...
inverse problem
An inverse problem in science is the process of calculating from a set of observations the causal factors that produced them: for example, calculating an image in X-ray computed tomography, source reconstruction in acoustics, or calculating th ...
s (for instance, see) focusing on the inversion of a linear operator (or a matrix) that possibly has a bad
condition number
In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the inpu ...
or an unbounded inverse. In this context, regularization amounts to substituting the original operator by a bounded operator called the "regularization operator" that has a condition number controlled by a regularization parameter,
[L. Lo Gerfo, L. Rosasco, F. Odone, E. De Vito, and A. Verri. Spectral Algorithms for Supervised Learning, ''Neural Computation'', 20(7), 2008.] a classical example being
Tikhonov regularization
Ridge regression is a method of estimating the coefficients of multiple- regression models in scenarios where the independent variables are highly correlated. It has been used in many fields including econometrics, chemistry, and engineering. Als ...
. To ensure stability, this regularization parameter is tuned based on the level of noise.
The main idea behind spectral regularization is that each regularization operator can be described using spectral calculus as an appropriate filter on the eigenvalues of the operator that defines the problem, and the role of the filter is to "suppress the oscillatory behavior corresponding to small eigenvalues".
Therefore, each algorithm in the class of spectral regularization algorithms is defined by a suitable filter function (which needs to be derived for that particular algorithm). Three of the most commonly used regularization algorithms for which spectral filtering is well-studied are Tikhonov regularization,
Landweber iteration The Landweber iteration or Landweber algorithm is an algorithm to solve ill-posed linear inverse problems, and it has been extended to solve non-linear problems that involve constraints. The method was first proposed in the 1950s by Louis Landweber, ...
, and
truncated singular value decomposition
In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any \ m \times n\ matrix. It is related ...
(TSVD). As for choosing the regularization parameter, examples of candidate methods to compute this parameter include the discrepancy principle, generalized
cross validation, and the L-curve criterion.
[P. C. Hansen, J. G. Nagy, and D. P. O'Leary. ''Deblurring Images: Matrices, Spectra, and Filtering'', Fundamentals of Algorithms 3, SIAM, Philadelphia, 2006.]
It is of note that the notion of spectral filtering studied in the context of machine learning is closely connected to the literature on
function approximation
In general, a function approximation problem asks us to select a function among a that closely matches ("approximates") a in a task-specific way. The need for function approximations arises in many branches of applied mathematics, and comput ...
(in signal processing).
Notation
The training set is defined as
, where
is the
input matrix and
is the output vector. Where applicable, the kernel function is denoted by
, and the
kernel matrix is denoted by
which has entries
and
denotes the
Reproducing Kernel Hilbert Space
In functional analysis (a branch of mathematics), a reproducing kernel Hilbert space (RKHS) is a Hilbert space of functions in which point evaluation is a continuous linear functional. Roughly speaking, this means that if two functions f and g i ...
(RKHS) with kernel
. The regularization parameter is denoted by
.
''(Note: For
and
, with
and
being Hilbert spaces, given a linear, continuous operator
, assume that
holds. In this setting, the direct problem would be to solve for
given
and the inverse problem would be to solve for
given
. If the solution exists, is unique and stable, the inverse problem (i.e. the problem of solving for
) is well-posed; otherwise, it is ill-posed.) ''
Relation to the theory of ill-posed inverse problems
The connection between the regularized least squares (RLS) estimation problem (Tikhonov regularization setting) and the theory of ill-posed inverse problems is an example of how spectral regularization algorithms are related to the theory of ill-posed inverse problems.
The RLS estimator solves
:
and the RKHS allows for expressing this RLS estimator as
where
with
.
[L. Rosasco. Lecture 6 of the Lecture Notes for 9.520: Statistical Learning Theory and Applications. Massachusetts Institute of Technology, Fall 2013. Available at https://www.mit.edu/~9.520/fall13/slides/class06/class06_RLSSVM.pdf] The penalization term is used for controlling smoothness and preventing overfitting. Since the solution of empirical risk minimization
can be written as
such that
, adding the penalty function amounts to the following change in the system that needs to be solved:
[L. Rosasco. Lecture 7 of the Lecture Notes for 9.520: Statistical Learning Theory and Applications. Massachusetts Institute of Technology, Fall 2013. Available at https://www.mit.edu/~9.520/fall13/slides/class07/class07_spectral.pdf]
:
In this learning setting, the kernel matrix can be decomposed as
, with
:
and
are the corresponding eigenvectors. Therefore, in the initial learning setting, the following holds:
:
Thus, for small eigenvalues, even small perturbations in the data can lead to considerable changes in the solution. Hence, the problem is ill-conditioned, and solving this RLS problem amounts to stabilizing a possibly ill-conditioned matrix inversion problem, which is studied in the theory of ill-posed inverse problems; in both problems, a main concern is to deal with the issue of numerical stability.
Implementation of algorithms
Each algorithm in the class of spectral regularization algorithms is defined by a suitable filter function, denoted here by
. If the Kernel matrix is denoted by
, then
should control the magnitude of the smaller eigenvalues of
. In a filtering setup, the goal is to find estimators
where
. To do so, a scalar filter function
is defined using the eigen-decomposition of the kernel matrix:
:
which yields
:
Typically, an appropriate filter function should have the following properties:
1. As
goes to zero,
.
2. The magnitude of the (smaller) eigenvalues of
is controlled by
.
While the above items give a rough characterization of the general properties of filter functions for all spectral regularization algorithms, the derivation of the filter function (and hence its exact form) varies depending on the specific regularization method that spectral filtering is applied to.
Filter function for Tikhonov regularization
In the Tikhonov regularization setting, the filter function for RLS is described below. As shown in,
in this setting,
. Thus,
:
The undesired components are filtered out using regularization:
* If
, then
.
* If
, then
.
The filter function for Tikhonov regularization is therefore defined as:
Filter function for Landweber iteration
The idea behind the Landweber iteration is
gradient descent
In mathematics, gradient descent (also often called steepest descent) is a first-order iterative optimization algorithm for finding a local minimum of a differentiable function. The idea is to take repeated steps in the opposite direction of ...
:
:
:
:
:
In this setting, if
is larger than
's largest eigenvalue, the above iteration converges by choosing
as the step-size:.
The above iteration is equivalent to minimizing
(i.e. the empirical risk) via gradient descent; using induction, it can be proved that at the
-th iteration, the solution is given by
:
Thus, the appropriate filter function is defined by:
It can be shown that this filter function corresponds to a truncated power expansion of
;
to see this, note that the relation
, would still hold if
is replaced by a matrix; thus, if
(the kernel matrix), or rather
, is considered, the following holds:
:
In this setting, the number of iterations gives the regularization parameter; roughly speaking,
.
If
is large, overfitting may be a concern. If
is small, oversmoothing may be a concern. Thus, choosing an appropriate time for early stopping of the iterations provides a regularization effect.
Filter function for TSVD
In the TSVD setting, given the eigen-decomposition
and using a prescribed threshold
, a regularized inverse can be formed for the kernel matrix by discarding all the eigenvalues that are smaller than this threshold.
Thus, the filter function for TSVD can be defined as
:
It can be shown that TSVD is equivalent to the (unsupervised) projection of the data using (kernel)
Principal Component Analysis
Principal component analysis (PCA) is a popular technique for analyzing large datasets containing a high number of dimensions/features per observation, increasing the interpretability of data while preserving the maximum amount of information, and ...
(PCA), and that it is also equivalent to minimizing the empirical risk on the projected data (without regularization).
Note that the number of components kept for the projection is the only free parameter here.
References
{{reflist
Mathematical analysis
Inverse problems
Computer engineering