Intrinsic dimension

From HandWiki

The intrinsic dimension for a data set can be thought of as the number of variables needed in a minimal representation of the data. Similarly, in signal processing of multidimensional signals, the intrinsic dimension of the signal describes how many variables are needed to generate a good approximation of the signal. When estimating intrinsic dimension, however, a slightly broader definition based on manifold dimension is often used, where a representation in the intrinsic dimension does only need to exist locally. Such intrinsic dimension estimation methods can thus handle data sets with different intrinsic dimensions in different parts of the data set. This is often referred to as local intrinsic dimensionality.

The intrinsic dimension can be used as a lower bound of what dimension it is possible to compress a data set into through dimension reduction, but it can also be used as a measure of the complexity of the data set or signal. For a data set or signal of N variables, its intrinsic dimension M satisfies 0 ≤ M ≤ N, although estimators may yield higher values.

Example

Let [math]\displaystyle{ f(x_1, x_2) }[/math] be a two-variable function (or signal) which is of the form [math]\displaystyle{ f(x_1, x_2) = g(x_1) }[/math] for some one-variable function g which is not constant. This means that f varies, in accordance to g, with the first variable or along the first coordinate. On the other hand, f is constant with respect to the second variable or along the second coordinate. It is only necessary to know the value of one, namely the first, variable in order to determine the value of f. Hence, it is a two-variable function but its intrinsic dimension is one.

A slightly more complicated example is[math]\displaystyle{ f(x_1, x_2) = g(x_1 + x_2) }[/math]. f is still intrinsic one-dimensional, which can be seen by making a variable transformation [math]\displaystyle{ y_1 = x_1 + x_2 }[/math] and [math]\displaystyle{ y_2 = x_1 - x_2 }[/math] which gives [math]\displaystyle{ f\left(\frac{y_1 + y_2}{2}, \frac{y_1 - y_2}{2}\right) = g\left(y_1\right) }[/math]. Since the variation in f can be described by the single variable y1 its intrinsic dimension is one.

For the case that f is constant, its intrinsic dimension is zero since no variable is needed to describe variation. For the general case, when the intrinsic dimension of the two-variable function f is neither zero or one, it is two.

In the literature, functions which are of intrinsic dimension zero, one, or two are sometimes referred to as i0D, i1D or i2D, respectively.

Formal definition for signals

For an N-variable function f, the set of variables can be represented as an N-dimensional vector x: [math]\displaystyle{ f = f\left(\mathbf{x} \right) \text{ where } \mathbf{x} = \left(x_1, \dots, x_N \right) }[/math].

If for some M-variable function g and M × N matrix A is it the case that

  • for all x; [math]\displaystyle{ f(\mathbf{x}) = g(\mathbf{Ax}), }[/math]
  • M is the smallest number for which the above relation between f and g can be found,

then the intrinsic dimension of f is M.

The intrinsic dimension is a characterization of f, it is not an unambiguous characterization of g nor of A. That is, if the above relation is satisfied for some f, g, and A, it must also be satisfied for the same f and g′ and A′ given by [math]\displaystyle{ g'\left(\mathbf{y}\right) = g \left(\mathbf{By}\right) }[/math] and [math]\displaystyle{ \mathbf{A'} = \mathbf{B}^{-1} \mathbf{A} }[/math] where B is a non-singular M × M matrix, since [math]\displaystyle{ f\left(\mathbf{x}\right) = g'\left(\mathbf{A'x}\right) = g \left(\mathbf{BA'x}\right) = g\left(\mathbf{Ax}\right) }[/math].

The Fourier transform of signals of low intrinsic dimension

An N variable function which has intrinsic dimension M < N has a characteristic Fourier transform. Intuitively, since this type of function is constant along one or several dimensions its Fourier transform must appear like an impulse (the Fourier transform of a constant) along the same dimension in the frequency domain.

A simple example

Let f be a two-variable function which is i1D. This means that there exists a normalized vector [math]\displaystyle{ \mathbf{n} \in \reals^{2} }[/math] and a one-variable function g such that [math]\displaystyle{ f(\mathbf{x}) = g(\mathbf{n}^{\operatorname {T}} \mathbf{x}) }[/math] for all [math]\displaystyle{ \mathbf{x} \in \reals^{2} }[/math]. If F is the Fourier transform of f (both are two-variable functions) it must be the case that [math]\displaystyle{ F \left(\mathbf{u}\right) = G \left(\mathbf{n}^{\mathrm{T}} \mathbf{u}\right) \cdot \delta \left(\mathbf{m}^{\mathrm{T}} \mathbf{u}\right) }[/math].

Here G is the Fourier transform of g (both are one-variable functions), δ is the Dirac impulse function and m is a normalized vector in [math]\displaystyle{ \reals^{2} }[/math] perpendicular to n. This means that F vanishes everywhere except on a line which passes through the origin of the frequency domain and is parallel to m. Along this line F varies according to G.

The general case

Let f be an N-variable function which has intrinsic dimension M, that is, there exists an M-variable function g and M × N matrix A such that [math]\displaystyle{ f(\mathbf{x}) = g(\mathbf{Ax}) \quad \forall \mathbf{x} }[/math].

Its Fourier transform F can then be described as follows:

  • F vanishes everywhere except for a subspace of dimension M
  • The subspace M is spanned by the rows of the matrix A
  • In the subspace, F varies according to G the Fourier transform of g

Generalizations

The type of intrinsic dimension described above assumes that a linear transformation is applied to the coordinates of the N-variable function f to produce the M variables which are necessary to represent every value of f. This means that f is constant along lines, planes, or hyperplanes, depending on N and M.

In a general case, f has intrinsic dimension M if there exist M functions a1, a2, ..., aM and an M-variable function g such that

  • [math]\displaystyle{ f(\mathbf{x}) = g \left( a_1(\mathbf{x}), a_2(\mathbf{x}), \dots, a_M(\mathbf{x}) \right) }[/math]for all x
  • M is the smallest number of functions which allows the above transformation

A simple example is transforming a 2-variable function f to polar coordinates:

[math]\displaystyle{ f\left(\frac{y_1 + y_2}{2}, \frac{y_1 - y_2}{2}\right) = g\left(y_1\right) }[/math]

  • [math]\displaystyle{ f(x_1, x_2) = g \left(\sqrt{x_1^2 + x_2^2} \right) }[/math], f is i1D and is constant along any circle centered at the origin
  • [math]\displaystyle{ f(x_1, x_2) = g \left(\arctan \left(\frac{x_2}{x_1}\right)\right) }[/math], f is i1D and is constant along all rays from the origin

For the general case, a simple description of either the point sets for which f is constant or its Fourier transform is usually not possible.

Local Intrinsic Dimensionality

Local intrinsic dimensionality (LID) refers to the observation that often data is distributed on a lower-dimensional manifold when only considering a nearby subset of the data. For example the function [math]\displaystyle{ f(x,y) = x + \max\{0, |y|-1\} }[/math] can be considered one-dimensional when y is close to 0 (with one variable x), two-dimensional when y is close to 1, and again one-dimensional when y is positive and much larger than 1 (with variable x+y).

Local intrinsic dimensionality is often used with respect to data. It then usually is estimated based on the k nearest neighbors of a data point,[1] often based on a concept related to the doubling dimension in mathematics. Since the volume of a d-sphere grows exponentially in d, the rate at which new neighbors are found as the search radius is increased can be used to estimate the local intrinsic dimensionality (e.g., GED estimation[2]). However, alternate approaches of estimation have been proposed, for example angle-based estimation.[3]

Intrinsic dimension estimation

Intrinsic dimension of data manifolds can be estimated by many methods, depending on assumptions of the data manifold. A 2016 review is.[4]

The two-nearest neighbors (TwoNN) method is a method for estimating the intrinsic dimension of an immersed Riemannian manifold. The algorithm is as follows:[5]

Scatter some points on the manifold.

Measure [math]\displaystyle{ \mu = r_2/r_1 }[/math] for many points, where [math]\displaystyle{ r_1, r_2 }[/math] are the distances to the point's two closest neighbors.

Fit the empirical CDF of [math]\displaystyle{ \mu }[/math] to [math]\displaystyle{ 1-\mu^{-d} }[/math].

Return [math]\displaystyle{ d }[/math].

History

During the 1950s so called "scaling" methods were developed in the social sciences to explore and summarize multidimensional data sets.[6] After Shepard introduced non-metric multidimensional scaling in 1962[7] one of the major research areas within multi-dimensional scaling (MDS) was estimation of the intrinsic dimension.[8] The topic was also studied in information theory, pioneered by Bennet in 1965 who coined the term "intrinsic dimension" and wrote a computer program to estimate it.[9][10][11]

During the 1970s intrinsic dimensionality estimation methods were constructed that did not depend on dimensionality reductions such as MDS: based on local eigenvalues.,[12] based on distance distributions,[13] and based on other dimension-dependent geometric properties[14]

Estimating intrinsic dimension of sets and probability measures has also been extensively studied since around 1980 in the field of dynamical systems, where dimensions of (strange) attractors have been the subject of interest.[15][16][17][18] For strange attractors there is no manifold assumption, and the dimension measured is some version of fractal dimension — which also can be non-integer. However, definitions of fractal dimension yield the manifold dimension for manifolds.

In the 2000s the "curse of dimensionality" has been exploited to estimate intrinsic dimension.[19][20]

Applications

The case of a two-variable signal which is i1D appears frequently in computer vision and image processing and captures the idea of local image regions which contain lines or edges. The analysis of such regions has a long history, but it was not until a more formal and theoretical treatment of such operations began that the concept of intrinsic dimension was established, even though the name has varied.

For example, the concept which here is referred to as an image neighborhood of intrinsic dimension 1 or i1D neighborhood is called 1-dimensional by Knutsson (1982),[21] linear symmetric by Bigün & Granlund (1987)[22] and simple neighborhood in Granlund & Knutsson (1995).[23]

See also

References

  1. Amsaleg, Laurent; Chelly, Oussama; Furon, Teddy; Girard, Stéphane; Houle, Michael E.; Kawarabayashi, Ken-ichi; Nett, Michael (2015-08-10). "Estimating Local Intrinsic Dimensionality". Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. KDD '15. Sydney, NSW, Australia: Association for Computing Machinery. pp. 29–38. doi:10.1145/2783258.2783405. ISBN 978-1-4503-3664-2. https://doi.org/10.1145/2783258.2783405. 
  2. Houle, M. E.; Kashima, H.; Nett, M. (2012). "Generalized Expansion Dimension". 2012 IEEE 12th International Conference on Data Mining Workshops. pp. 587–594. doi:10.1109/ICDMW.2012.94. ISBN 978-1-4673-5164-5. https://ieeexplore.ieee.org/document/6406405. 
  3. Thordsen, Erik; Schubert, Erich (2020). Satoh, Shin'ichi; Vadicamo, Lucia; Zimek, Arthur et al.. eds. "ABID: Angle Based Intrinsic Dimensionality" (in en). Similarity Search and Applications. Lecture Notes in Computer Science (Cham: Springer International Publishing) 12440: 218–232. doi:10.1007/978-3-030-60936-8_17. ISBN 978-3-030-60936-8. https://link.springer.com/chapter/10.1007/978-3-030-60936-8_17. 
  4. Camastra, Francesco; Staiano, Antonino (2016-01-20). "Intrinsic dimension estimation: Advances and open problems". Information Sciences 328: 26–41. doi:10.1016/j.ins.2015.08.029. ISSN 0020-0255. https://www.sciencedirect.com/science/article/pii/S0020025515006179. 
  5. Facco, Elena; d’Errico, Maria; Rodriguez, Alex; Laio, Alessandro (2017-09-22). "Estimating the intrinsic dimension of datasets by a minimal neighborhood information". Scientific Reports 7 (1). doi:10.1038/s41598-017-11873-y. ISSN 2045-2322. http://dx.doi.org/10.1038/s41598-017-11873-y. 
  6. Torgerson, Warren S. (1978). Theory and methods of scaling. Wiley. ISBN 0471879452. OCLC 256008416. 
  7. Shepard, Roger N. (1962). "The analysis of proximities: Multidimensional scaling with an unknown distance function. I.". Psychometrika 27 (2): 125–140. doi:10.1007/BF02289630. 
  8. Shepard, Roger N. (1974). "Representation of structure in similarity data: Problems and prospects". Psychometrika 39 (4): 373–421. doi:10.1007/BF02291665. 
  9. Bennet, Robert S. (June 1965). "Representation and analysis of signals—Part XXI: The intrinsic dimensionality of signal collections". Rep. 163. Baltimore, MD: The Johns Hopkins University. http://www.dtic.mil/cgi-bin/GetTRDoc?Location=U2&doc=GetTRDoc.pdf&AD=AD0475844. 
  10. Robert S. Bennett (1965). Representation and Analysis of Signals Part XXI. The intrinsic dimensionality of signal collections (PDF) (PhD). Ann Arbor, Michigan: The Johns Hopkins University. Archived from the original (PDF) on December 27, 2019.
  11. Bennett, Robert S. (September 1969). "The intrinsic dimensionality of signal collections". IEEE Transactions on Information Theory 15 (5): 517–525. doi:10.1109/TIT.1969.1054365. 
  12. Fukunaga, K.; Olsen, D. R. (1971). "An algorithm for finding intrinsic dimensionality of data". IEEE Transactions on Computers 20 (2): 176–183. doi:10.1109/T-C.1971.223208. 
  13. Pettis, K. W.; Bailey, Thomas A.; Jain, Anil K.; Dubes, Richard C. (1979). "An intrinsic dimensionality estimator from near-neighbor information". IEEE Transactions on Pattern Analysis and Machine Intelligence 1 (1): 25–37. doi:10.1109/TPAMI.1979.4766873. PMID 21868828. 
  14. Trunk, G. V. (1976). "Statistical estimation of the intrinsic dimensionality of a noisy signal collection". IEEE Transactions on Computers 100 (2): 165–171. doi:10.1109/TC.1976.5009231. 
  15. Grassberger, P.; Procaccia, I. (1983). "Measuring the strangeness of strange attractors". Physica D: Nonlinear Phenomena 9 (1–2): 189–208. doi:10.1016/0167-2789(83)90298-1. Bibcode1983PhyD....9..189G. 
  16. Takens, F. (1984). "On the numerical determination of the dimension of an attractor". in Tong, Howell. Dynamical Systems and Bifurcations, Proceedings of a Workshop Held in Groningen, The Netherlands, April 16-20, 1984. Lecture Notes in Mathematics. 1125. Springer-Verlag. pp. 99–106. doi:10.1007/BFb0075637. ISBN 3540394117. 
  17. Cutler, C. D. (1993). "A review of the theory and estimation of fractal dimension". Dimension estimation and models. Nonlinear Time Series and Chaos. 1. World Scientific. pp. 1–107. ISBN 9810213530. https://books.google.com/books?id=uLyp99DIJG8C&pg=PA1. 
  18. Harte, D. (2001). Multifractals — Theory and Applications. Chapman and Hall/CRC. ISBN 9781584881544. 
  19. Chavez, E. (2001). "Searching in metric spaces". ACM Computing Surveys 33 (3): 273–321. doi:10.1145/502807.502808. 
  20. Pestov, V. (2008). "An axiomatic approach to intrinsic dimension of a dataset". Neural Networks 21 (2–3): 204–213. doi:10.1016/j.neunet.2007.12.030. PMID 18234471. 
  21. Knutsson, Hans (1982). Filtering and reconstruction in image processing. Linköping Studies in Science and Technology. 88. Linköping University. oai:DiVA.org:liu-54890. ISBN 91-7372-595-1. http://liu.diva-portal.org/smash/get/diva2:311054/FULLTEXT01.pdf. 
  22. Bigün, Josef; Granlund, Gösta H. (1987). "Optimal orientation detection of linear symmetry". Proceedings of the International Conference on Computer Vision. pp. 433–438. http://www2.hh.se/staff/josef/publ/publications/bigun87london.pdf. 
  23. Granlund, Gösta H.; Knutsson, Hans (1995). Signal Processing in Computer Vision. Kluwer Academic. ISBN 978-1-4757-2377-9. https://www.springer.com/engineering/signals/book/978-0-7923-9530-0.