Random projection
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
(Learn how and when to remove this template message)
|
In mathematics and statistics, random projection is a technique used to reduce the dimensionality of a set of points which lie in Euclidean space. Random projection methods are powerful methods known for their simplicity and less erroneous output compared with other methods[citation needed]. According to experimental results, random projection preserve distances well, but empirical results are sparse.[1] They have been applied to many natural language tasks under the name of random indexing.
Contents
Dimensionality reduction[edit]
Dimensionality reduction, as the name suggests, is reducing the number of random variables using various mathematical methods from statistics and machine learning. Dimensionality reduction is often used to reduce the problem of managing and manipulating large data sets. Dimensionality reduction techniques generally use linear transformations in determining the intrinsic dimensionality of the manifold as well as extracting its principal directions. For this purpose there are various related techniques, including: principal component analysis, linear discriminant analysis, canonical correlation analysis, discrete cosine transform, random projection, etc.
Random projection is a simple and computationally efficient way to reduce the dimensionality of data by trading a controlled amount of error for faster processing times and smaller model sizes. The dimensions and distribution of random projection matrices are controlled so as to approximately preserve the pairwise distances between any two samples of the dataset.
Method[edit]
The core idea behind random projection is given in the Johnson-Lindenstrauss lemma,[2] which states that if points in a vector space are of sufficiently high dimension, then they may be projected into a suitable lower-dimensional space in a way which approximately preserves the distances between the points.
In random projection, the original d-dimensional data is projected to a k-dimensional (k << d) subspace, using a random - dimensional matrix R whose columns have unit lengths.[citation needed] Using matrix notation: If is the original set of N d-dimensional observations, then is the projection of the data onto a lower k-dimensional subspace. Random projection is computationally simple: form the random matrix "R" and project the data matrix X onto K dimensions of order . If the data matrix X is sparse with about c nonzero entries per column, then the complexity of this operation is of order .[3]
Gaussian random projection[edit]
The random matrix R can be generated using a Gaussian distribution. The first row is a random unit vector uniformly chosen from . The second row is a random unit vector from the space orthogonal to the first row, the third row is a random unit vector from the space orthogonal to the first two rows, and so on. In this way of choosing R, R is an orthogonal matrix (the inverse of its transpose), and the following properties are satisfied:
- Spherical symmetry: For any orthogonal matrix , RA and R have the same distribution.
- Orthogonality: The rows of R are orthogonal to each other.
- Normality: The rows of R are unit-length vectors.
More computationally efficient random projections[edit]
Achlioptas[4] has shown that the Gaussian distribution can be replaced by a much simpler distribution such as
This is efficient for database applications because the computations can be performed using integer arithmetic.
It was later shown how to use integer arithmetic while making the distribution even sparser, having very few nonzeroes per column, in work on the Sparse JL Transform.[5] This is advantageous since a sparse embedding matrix means being able to project the data to lower dimension even faster.
Large quasiorthogonal bases[edit]
The Johnson-Lindenstrauss lemma states that large sets of vectors in a high-dimensional space can be linearly mapped in a space of much lower (but still high) dimension n with approximate preservation of distances. One of the explanations of this effect is the exponentially high quasiorthogonal dimension of n-dimensional Euclidean space.[6] There are exponentially large (in dimension n) sets of almost orthogonal vectors (with small value of inner products) in n–dimensional Euclidean space. This observation is useful in indexing of high-dimensional data.[7]
Quasiorthogonality of large random sets is important for methods of random approximation in machine learning. In high dimensions, exponentially large numbers of randomly and independently chosen vectors from equidistribution on a sphere (and from many other distributions) are almost orthogonal with probability close to one.[8] This implies that in order to represent an element of such a high-dimensional space by linear combinations of randomly and independently chosen vectors, it may often be necessary to generate samples of exponentially large length if we use bounded coefficients in linear combinations. On the other hand, if coefficients with arbitrarily large values are allowed, the number of randomly generated elements that are sufficient for approximation is even less than dimension of the data space.
Implementations[edit]
- RandPro - An R package for random projection
- sklearn.random_projection - Python module for random projection
- Weka implementation [1]
See also[edit]
References[edit]
- ^ Ella, Bingham; Heikki, Mannila (2001). "Random projection in dimensionality reduction: Applications to image and text data". KDD-2001: Proceedings of the Seventh ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York: Association for Computing Machinery. pp. 245–250. doi:10.1145/502512.502546. Retrieved 22 Dec 2015.
- ^ Johnson, William B.; Lindenstrauss, Joram (1984). "Extensions of Lipschitz mappings into a Hilbert space". Conference in Modern Analysis and Probability (New Haven, Conn., 1982). Contemporary Mathematics. 26. Providence, RI: American Mathematical Society. pp. 189–206. doi:10.1090/conm/026/737400. MR 0737400..
- ^ Bingham, Ella; Mannila, Heikki (May 6, 2014). "Random projection in dimensionality reduction: Applications to image and text data" (PDF).
- ^ Achlioptas, Dimitris (2001). "Database-friendly random projections". Proceedings of the twentieth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems - PODS '01. p. 274. doi:10.1145/375551.375608. ISBN 1581133618.
- ^ Kane, Daniel M.; Nelson, Jelani (2014). "Sparser Johnson-Lindenstrauss Transforms". Journal of the ACM. 61 (1). arXiv:1012.1577. doi:10.1145/2559902. MR 3167920.
- ^ Kainen, Paul C.; Kůrková, Věra (1993), "Quasiorthogonal dimension of Euclidean spaces", Applied Mathematics Letters, 6 (3): 7–10, doi:10.1016/0893-9659(93)90023-G, MR 1347278
- ^ R. Hecht-Nielsen, Context vectors: General-purpose approximate meaning representations self-organized from raw data, in: J. Zurada, R. Marks, C. Robinson (Eds.), computational Intelligence: Imitating Life, IEEE Press, 1994, pp. 43–56.
- ^ A.N. Gorban, I.Yu. Tyukin, D.V. Prokhorov, K.I. Sofeikov, Approximation with Random Bases: Pro et Contra, Information Sciences, 364–365 (2016), 129-145.
- Fodor, I. (2002) "A survey of dimension reduction techniques". Center for Applied Scientific Computing, Lawrence Livermore National, Technical Report UCRL-ID-148494
- ADITYA KRISHNA MENON (2007) "Random projections and applications to dimensionality reduction". School of Information Technologies, The University of Sydney, Australia
- ADITYA Ramdas "A Random Introduction To Random Projections". Carnegie Mellon University