arXiv:2608.25887stat.MLAug 2026

Manuscript Offprint

arXiv:2608.25887

Efficient Estimation of High Information Projections using Nearest Neighbours

David P. Hofmeyr

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

An intuitive method for dimensionality reduction is proposed, which is highly effective for finding interesting projections of multivariate data. Following similar intuitive motivation to a number of existing techniques, the proposed method is based on enhancing the nearest neighbour relationships in the data. The proposed projection arises from the spectral decomposition of a matrix designed to encode the local covariance structure in the data, where the local covariance at a point is captured by pairs of its nearest neighbours. We show that under standard regularity conditions this matrix is a consistent estimator of the so-called “Density Information Matrix” (DIM); a non-parametric analogue of the Fisher Information Matrix. Spectral decompositions of DIMs have been shown to be connected with the important problems of Independent Components Analysis and, in the supervised context, Sufficient Dimension Reduction. However, existing estimators of the DIM are computationally expensive to compute and only target the DIM of a surrogate density, which is proportional to the square of the true underlying density. In addition, we go on to explore the practical utility of our method in aiding the downstream tasks of cluster analysis and outlier detection.

Keywords: Dimension Reduction; Fisher Information; Entropy; Cluster Analysis; Outlier Detection

1 Introduction

At a high level the task of dimension reduction is to extract from a set of multivariate observations, a reduced representation which retains as well as possible the useful information/structure in the data. Structure may be represented at a global level, as in the ubiquitous Principal Components Analysis and its variants (Jolliffe and Cadima, 2016, PCA); or at a more local level, e.g. as in those methods based on manifold learning, which typically rely on a graph-based representation of the data (He and

Niyogi, 2003). Another perspective on the problem is to operate at the level of the probability distribution of the reduced representation, where (after accounting for scale) low entropy distributions are seen to contain more interesting structure than high entropy ones (Hyvärinen, 1997), with both multimodality and long-tailedness being associated with low entropy.

In this paper we introduce a simple and intuitive linear dimensionality reduction technique which is based on enhancing the local structure in a set of data. Although similar in some respects to those based on a nearest neighbour graph constructed from the data, we take our motivation more from the information/entropy perspective. In particular, let X:={x1,...,xn}\mathcal{X} := \{\mathbf{x}_1, ..., \mathbf{x}_n\} be a set of observations in Rp\mathbb{R}^p and for k<nk < n let xi(k)\mathbf{x}_i^{(k)} be the kk-th nearest neighbour of xi;i∈[n]a\mathbf{x}_i; i \in [n]^a. Then define

I(X,k)=p2n∑i=1n((1Dxi,(k)2+1Dxi,(k+1)2)I−2pDxi,(k)2Dxi,(k+1)2Vxi,(k)),(1)I(\mathcal{X},k)=\frac{p}{2n}\sum_{i=1}^{n}\left(\left(\frac{1}{D_{\mathbf{x}_{i},(k)}^{2}}+\frac{1}{D_{\mathbf{x}_{i},(k+1)}^{2}}\right)\mathbf{I}-\frac{2p}{D_{\mathbf{x}_{i},(k)}^{2}D_{\mathbf{x}_{i},(k+1)}^{2}}\mathbf{V}_{\mathbf{x}_{i},(k)}\right), \tag{1}

where Dxi,(k):=∣∣xi−xi(k)∣∣D_{\mathbf{x}_i,(k)} := ||\mathbf{x}_i - \mathbf{x}_i^{(k)}|| is the kk-th neighbour distance of xi\mathbf{x}_i and Vxi,(k)=12(xi(k)−xi(k+1))(xi(k)−xi(k+1))′\mathbf{V}_{\mathbf{x}_i,(k)} = \frac{1}{2}(\mathbf{x}_i^{(k)} - \mathbf{x}_i^{(k+1)})(\mathbf{x}_i^{(k)} - \mathbf{x}_i^{(k+1)})' represents a coarse estimate of the local covariance at xi\mathbf{x}_i. At its essence our approach may be seen from the point of view of projecting X\mathcal{X} on the leading eigenvectors of I(X,k)ΣXI(\mathcal{X}, k)\Sigma_{\mathcal{X}}, where ΣX\Sigma_{\mathcal{X}} is the covariance of X\mathcal{X}. Although we make a few adjustments to this, which we describe in detail in Section 4 b^b, it is worthwhile first considering this formulation as it offers immediate intuitive motivation.

Notice that I(X,k)I(\mathcal{X}, k) may be expressed as αI−∑i=1nβiVxi,(k)\alpha\mathbf{I} - \sum_{i=1}^{n} \beta_i \mathbf{V}_{\mathbf{x}_i,(k)} for some α,βi;i∈[n]\alpha, \beta_i; i \in [n]. The leading eigenvectors of I(X,k)ΣXI(\mathcal{X}, k) \Sigma_{\mathcal{X}} may therefore be seen to represent projections which lead to tighter/more compact local covariance relative to the overall covariance of the projected data. Moreover, notice that the coefficients βi∝1/Dxi,(k)2Dxi,(k+1)2;i∈[n]\beta_i \propto 1/D_{\mathbf{x}_i,(k)}^2 D_{\mathbf{x}_i,(k+1)}^2; i \in [n], will emphasise this compactness around points whose neighbour distances are smaller, or equivalently those at which the density of points is generally higher. In other words, projecting onto the leading eigenvectors of I(X,k)ΣXI(\mathcal{X}, k) \Sigma_{\mathcal{X}}

a^{a}We have used [n][n] to be the first nn natural numbers, i.e. [n]={1,...,n}[n] = \{1, ..., n\}

b^{b}We deviate from this by (i) averaging I(X,k)I(\mathcal{X}, k) over multiple values of k to reduce variance; (ii) thresholding the eigenvalues based on theoretical asymptotic lower bounds; and (iii) orthogonalising the projection for better practical utility on downstream tasks.

will tend to lead to especially compact/high density regions, relative to the overall scale of the projected data, and in such a way which emphasises the already higher density points, leading to “peaky” (low entropy) distributions. In addition, as we show in the remainder, I(X,k)I(\mathcal{X}, k) is a consistent estimator of the Density Information Matrix (Lindsay and Yao, 2012, DIM); a nonparametric analogue of the Fisher Information Matrix. Spectral decompositions of DIMs have been connected with the task of Independent Components Analysis (ICA), which further links the proposed approach with entropy minimisation since ICA may be formulated as a minimum entropy task (Hyvärinen, 1997).

The DIM possesses some remarkable properties at a population level, but is very challenging to estimate. Indeed, as far as we are aware our proposal is the first direct estimator of the DIM, where existing approaches only target the DIM of a surrogate density which is proportional to the square of the data density (Hui and Lindsay, 2010; Lindsay and Yao, 2012; Yao et al., 2019). Although it has been shown that the spectral decompositions of the DIMs from both the true and surrogate densities are similar in many respects, we have found far better practical utility in the proposed formulation, especially on high dimensional applications. We show two examples in Figure 1. The first is a data set commonly used to assess the performance of clustering models; the Multiple Features Database (Duin, 1998). Combining all five associated data sets, these data comprise a total of 649 features derived from 2000 images of handwritten digits taken from Dutch utility maps. The second is the Election2005 data set, taken from the R package Outliers03 (Unwin, 2026). The data correspond with details from two German elections, from 2002 and 2005. We used all 66 numerical features, and have highlighted in the plots the ten points most frequently identified as outliers as described in the package vignette c^{c}.

In each case the plots show two dimensional projections of the data from (i) the proposed approach; (ii) the method of Lindsay and Yao (2012), which projects the

c^{c}https://cran.r-project.org/web/packages/Outliers03/vignettes/Drawing03plots.html

Proposed

kDIM

PCA

RPCA

LPP

Figure

(a) Multiple Features Database

Proposed

kDIM

PCA

RPCA

LPP

Figure

(b) Election2005

Figure 1: Two dimensional projections of (a) the Multiple Features Database; and (b) the Election2005 data set with potential outliers highlighted.

data onto the eigenvectors of I(f^∗)ΣXI(\hat{f}^{*})\Sigma_{\mathcal{X}}, where I(f^∗)I(\hat{f}^{*}) is a kernel based estimate of the DIM of the surrogate density mentioned above; (iii) PCA; (iv) a robust variant of PCA (Hubert et al., 2005, RPCA); and (v) Locality Preserving Projections (He and Niyogi, 2003, LPP). PCA is arguably the most well recognised dimension reduction technique and is based on finding an orthogonal projection which maximises the variance of the projected data. The robust variant used here instead finds the projection which maximises the variance of the projections of the least outlying points. Finally, LPP is a well recognised graph based method, and is a linear approximation of the Laplacian eigenmap.

In the case of the Multiple Features data set, Figure 1(a), both LPP and the proposed approach show pleasing separation of numerous clearly defined clusters. PCA shows some evidence of the presence of clusters but with much less clear separation, and the projection found with RPCA is almost identical up to a reflection in the vertical axis. The DIM based on the method of Lindsay and Yao (2012) shows very little structure by comparison.

On the other hand, when applied to the Election2005 data set, Figure 1(b), all methods place multiple of the potential outliers beyond or near the periphery of the higher density regions, but only the DIM based approaches (the proposed and kDIM methods) separate some of these well away from the remaining data and arguably the proposed approach achieves this more clearly than kDIM.

The remainder of the paper is organised as follows. In the next section we briefly review some of the theoretical properties of the DIM at a population level, while in Section 3 we explore the theoretical properties of I(X,k)I(\mathcal{X}, k) as an estimator for the DIM. In Section 4 we describe some of the practicalities associated with our methodology, and we go on, in Section 5, to further document its practical utility in experiments using popular data sets in the public domain. We then conclude the paper with a brief discussion, in Section 6.