Random projection explained

In mathematics and statistics, random projection is a technique used to reduce the dimensionality of a set of points which lie in Euclidean space. According to theoretical results, random projection preserves distances well, but empirical results are sparse.[1] They have been applied to many natural language tasks under the name random indexing.

Dimensionality reduction

See main article: Dimensionality reduction. 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

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 pairwise distances between the points with high probability.

In random projection, the original d-dimensional data is projected to a k-dimensional (k << d) subspace, using a random

k x d

- dimensional matrix R whose columns have unit lengths. Using matrix notation: If

Xd

is the original set of N d-dimensional observations, then
RP
X
k x N

=RkXd

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

d x N

data matrix X onto K dimensions of order

O(dkN)

. If the data matrix X is sparse with about c nonzero entries per column, then the complexity of this operation is of order

O(ckN)

.[3]

Gaussian random projection

The random matrix R can be generated using a Gaussian distribution. The first row is a random unit vector uniformly chosen from

Sd-1

. 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, and the following properties are satisfied:

A\inO(d)

, RA and R have the same distribution.

More computationally efficient random projections

Achlioptas[4] has shown that the Gaussian distribution can be replaced by a much simpler distribution such as

Ri,j=\sqrt{3} x \begin{cases} +1&with

1
6

\\ 0&with

2
3

\\ -1&with

1
6

\end{cases}

This is efficient for database applications because the computations can be performed using integer arithmetic. More related study is conducted in.[5]

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.[6] This is advantageous since a sparse embedding matrix means being able to project the data to lower dimension even faster.

Random Projection with Quantization

Random projection can be further condensed by quantization (discretization), with 1-bit (sign random projection) or multi-bits. It is the building block of SimHash,[7] RP tree,[8] and other memory efficient estimation and learning methods.[9] [10]

Large quasiorthogonal bases

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. 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.[11]

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.[12] 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

See also

Further reading

Notes and References

  1. Bingham . Ella . Mannila . Heikki . 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 . 245–250 . Association for Computing Machinery . 2001 . New York . 10.1145/502512.502546 . 10.1.1.24.5135 .
  2. Book: Johnson . William B. . William B. Johnson (mathematician) . Lindenstrauss . Joram . Joram Lindenstrauss . Extensions of Lipschitz mappings into a Hilbert space . 10.1090/conm/026/737400 . Providence, RI . 737400 . 189–206 . American Mathematical Society . Contemporary Mathematics . Conference in Modern Analysis and Probability (New Haven, Conn., 1982) . 26 . 1984 . 9780821850305 . 117819162 . registration . .
  3. Web site: Random projection in dimensionality reduction: Applications to image and text data . May 6, 2014. Bingham . Ella . Mannila . Heikki .
  4. Book: 10.1145/375551.375608. Database-friendly random projections. Proceedings of the twentieth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems - PODS '01. 274–281. 2001. Achlioptas. Dimitris. 978-1581133615. 10.1.1.28.6652. 2640788.
  5. Book: Ping . Li . Hastie . Trevor . Church . Kenneth . Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining . Very sparse random projections . 10.1145/1150402.1150436 . 1 . 287–296 . 2006. 1595933395 . 7995734 .
  6. Daniel M. . Kane . Nelson . Jelani . 10.1145/2559902 . 1 . 1–23 . . Sparser Johnson-Lindenstrauss Transforms . 61 . 2014 . 3167920. 1012.1577. 7821848 .
  7. Book: Moses . Charikar . Proceedings of the thiry-fourth annual ACM symposium on Theory of computing . Similarity estimation techniques from rounding algorithms . 10.1145/509907.509965 . 1 . 380–388 . 1 . 2002. 1581134959 . 4229473 .
  8. Yoav . Freund . Sanjoy . Dasgupta . Mayank . Kabra . Nakul . Verma . 1 . 473–480 . 20th International Conference on Neural Information Processing Systems . Learning the structure of manifolds using random projections . 1 . 2007.
  9. Petros . Boufounos . Richard . Baraniuk . 1 . 16–21 . 42nd Annual Conference on Information Sciences and Systems . 1-bit Compressive Sensing . 1 . 2008. 10.1109/CISS.2008.4558487 . 206563812 .
  10. Xiaoyun . Li . Ping . Li . 15150–15160 . 33rd International Conference on Neural Information Processing Systems . Generalization error analysis of quantized compressive learning . 1 . 2019.
  11. Book: Hecht-Nielsen . R. . Context vectors: General-purpose approximate meaning representations self-organized from raw data . 43–56 . Zurada . Jacek M. . Marks . Robert Jackson . Robinson . Charles J. . Computational Intelligence: Imitating Life . 1994 . IEEE . 978-0-7803-1104-6 .
  12. Alexander N. . Gorban . Aleksandr Gorban . Ivan Y. . Tyukin . Danil V. . Prokhorov . Konstantin I. . Sofeikov . 10.1016/j.ins.2015.09.021 . 129–145 . . Approximation with Random Bases: Pro et Contra . 364-365 . 2016 . 1506.04631. 2239376 .
  13. Ravindran . Siddharth . A Data-Independent Reusable Projection (DIRP) Technique for Dimension Reduction in Big Data Classification Using k-Nearest Neighbor (k-NN) . National Academy Science Letters . 43 . 13–21 . 10.1007/s40009-018-0771-6 . 2020 . 91946077 .
  14. Siddharth . R. . Aghila . G. . RandPro- A practical implementation of random projection-based feature extraction for high dimensional multivariate data analysis in R . SoftwareX . July 2020 . 12 . 100629 . 10.1016/j.softx.2020.100629 . 2020SoftX..1200629S . free .