What is AI dimensionality reduction?

Dimensionality reduction is the family of methods that turn data described by many variables into a lower-dimensional representation while preserving as much of its structure as possible. It eases the classification, visualisation, communication and storage of high-dimensional data.

Unlike feature selection, which keeps a subset of the original variables, dimensionality reduction usually creates new components derived from them.

Topic
Machine learning, models and training
Also known as
Dimension reduction
Origin
Principal component analysis in statistics; 2006 deep autoencoders, 2008 t-SNE, 2018 UMAP

How AI dimensionality reduction works

  1. Principal component analysis (PCA) finds the directions of greatest variance and represents each point by its coordinates along them.
  2. Autoencoders train a neural network with a small central layer to reconstruct its input; that layer's output is the low-dimensional code.
  3. Manifold learning methods such as t-SNE and UMAP place each data point on a two or three-dimensional map, mostly for visualisation.
  4. Matryoshka representation learning encodes information at different granularities within one embedding so its first dimensions can be used alone.

In more detail

The low-dimensional manifold idea

Many methods assume that high-dimensional data actually lies on a much lower-dimensional structure called a manifold. For example, 64 by 64 pixel face images have 4096 dimensions, yet because all faces look somewhat alike they lie on a manifold of around 200 dimensions. t-SNE was designed to reveal structure at many scales in a single map for data lying on several related low-dimensional manifolds.

Commonly confused terms

TermHow it differs
Embedding dimensionEmbedding dimension is the number of values in an embedding vector. Dimensionality reduction is the process that lowers this number or the number of dimensions of any data.

Why AI dimensionality reduction matters for on-premises AI

A 2006 study showed that deep autoencoders learn low-dimensional codes that reduce dimensionality much better than principal component analysis. In embedding systems dimensions are a direct cost: the 2022 paper introducing Matryoshka representation learning reported up to 14 times smaller embeddings at the same accuracy on an image classification task and up to 14 times faster large-scale retrieval. This cuts memory and search costs in vector databases.

ON-PREMISES EXAMPLE

An e-commerce company stores product description embeddings in its own vector database. The team tests reduced-dimension versions on its own search queries and picks the smallest size with acceptable search quality, cutting memory use.

Common questions

Is dimensionality reduction the same as feature selection?

No. Feature selection keeps a subset of the original variables and preserves their meaning. Dimensionality reduction usually produces new components that combine the original variables.

When are t-SNE and UMAP used?

Mostly to visualise high-dimensional data on a two or three-dimensional map. UMAP has no computational restrictions on embedding dimension, which makes it viable for general-purpose dimension reduction too.

Does reducing embedding dimension hurt search quality?

It can; the effect depends on the method and the data. Reduced embeddings are therefore chosen by measuring them on the organisation's own queries and documents.

Sources

In the glossary: Glossary, A to D

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.