Manuscript Offprint

arXiv:2610.16750

NFMap: Topographic 2D Manifold Learning with Invertible Normalizing Flows

Héléna Alexandra Gaspar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present NFMAP, a dimensionality reduction method for 2D visualisation that extends Generative Topographic Mapping (GTM) with a bijective normalizing flow. Like GTM, NFMAP places a fixed mixture grid prior over a 2D latent map, giving a parametric embedding, an explicit likelihood, and the ability to project new points onto an existing map; the likelihood is an effective out-of-distribution signal on chemical datasets. Unlike GTM, whose latent-to-data mapping is an RBF network of bounded flexibility, NFMAP's mapping is a normalizing flow, and is therefore fully invertible: any location on the map can be carried back to data space. To alleviate map crowding on large datasets, NFMAP additionally supports heavy-tailed Student-t mixture components.

NFMAP maps data to a latent space of the same dimension, split into a 2-dimensional navigable map and an off-manifold residual. Because the flow is bijective and its objective penalises volume contraction, variance squeezed out of the residual must reappear in the navigable map. The residual scale is the main control between local neighbourhood fidelity and global distance fidelity; its effect depends on the dimensionality of the data and is coupled to the extent of the latent grid.

1 Introduction

Neighbour-embedding methods such as t-SNE [1] and UMAP [2] preserve local structure well and are the default in most pipelines. However, they are non-invertible. Their standard versions are non-parametric, but both have parametric counterparts [3, 4].

Generative topographic mapping [5] (GTM) fits a constrained Gaussian mixture whose centres lie on a fixed 2-D grid, giving a parametric, probabilistic, out-of-sample-capable map. It is the direct ancestor of this work and remains strong on global structure. Its limit is representational: the latent-to-data mapping is an RBF network, so flexibility is bounded by the basis, and the mapping is not invertible.

Normalizing flows [6–10] give exact likelihoods and invertible mappings but are not designed to produce a navigable low-dimensional map — their latent space has the same dimension as the data. Injective variants target density estimation on manifolds [9] rather than visualisation. Some flows put the main structure in their first few latent coordinates [11, 12], but they are built for density estimation, not 2-D visualisation.

This work combines GTM’s fixed grid prior with a flow’s invertibility and exact likelihood, exposing a scalar governing how much of the data’s variance is forced into the visible map.

Preprint.

Closest to NFMAP is FloDR [13], developed independently and concurrently 1^{1} . Both methods use a bijective normalizing flow whose leading coordinates form the 2D map while the remaining coordinates are retained as a residual, ensuring full invertibility and exact density evaluation. The two methods diverge in prior design and residual handling: NFMAP anchors the map prior to a fixed topographic grid and regulates the residual via a global scale σ⊥\sigma_{\perp} , whereas FloDR fits an unconstrained Gaussian mixture to the embedding after training and models the residual conditionally to derive local spread diagnostics. Furthermore, while FloDR relies on an explicit ordinal ranking loss to preserve global ordering, NFMAP obtains global distance fidelity geometrically, through residual variance contraction. NFMAP additionally offers a Student-t mixture prior for large-scale map crowding.

We provide NFMAP as an open-source Python package available at https://github.com/hagax8/nfmap.

Contributions:

  1. The residual scale σ⊥\sigma_{\perp} as a control on the map, with a volume argument showing why, under a bijection, contracting z⊥z_{\perp} forces structure into the visible coordinates z∥z_{\parallel}.

  2. Empirical evidence that σ⊥\sigma_{\perp} trades local against global structure.

  3. A coupling analysis showing that σ⊥\sigma_{\perp}, the grid extent, the repulsion weight and the graph weight all act on one quantity.

  4. The flow likelihood as an applicability-domain signal for projected data points.

  5. Mechanisms to address map crowding at dataset scale: a general heavy-tailed Student-t prior over the map coordinates, and a domain-specific hierarchical chemical kernel demonstrating the framework's extensibility to specialized data types.

Table 1: Capabilities of each method. Parametric: unseen points can be projected onto an existing map. Landscape grid: the prior places KK components at fixed, known positions, so any quantity can be aggregated per node and rendered as a continuous background field at a resolution set by KK. Student-t: the low-dimensional model uses Student-t tails, a standard remedy for crowding (built into t-SNE's similarity kernel, and available in NFMAP as a Student-t mixture prior). UMAP's kernel, also used by FloDR, is heavy-tailed but not Student-t.

ParametricInvertibleExact densityLandscape gridStudent-t
t-SNE✓*✕✕✕✓
UMAP✓*✕✕✕✕
GTM✓✕✓✓✕
FloDR✓✓✓x†\mathbf{x}^{\dagger}✕
NFMAP✓✓✓✓✓‡\checkmark^{\ddagger}
  • via parametric variants (parametric t-SNE [3], parametric UMAP [4]); the standard implementations are non-parametric; †\dagger FloDR fits a Gaussian mixture to the embedding after training; its components are not fixed; ‡\ddagger optional

1^{1} Development of NFMAP began in May 2026; see the commit history at https://github.com/hagax8/nfmap.

References (18)