NFMap: Topographic 2D Manifold Learning with Invertible Normalizing Flows
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "NFMap: Topographic 2D Manifold Learning with Invertible Normalizing Flows".
Jane: The gist NFMAP introduces an invertible, parametric dimensionality reduction method that combines Generative Topographic Mapping's fixed latent grid with the exact likelihood of a normalizing flow.
Tom: First, who's behind it and why it matters.
Title and authors: Tom: So we're looking at this paper called NFMap: Topographic 2D Manifold Learning with Invertible Normalizing Flows <ref:2610.16750#pg1,NFMap: Topographic 2D Manifold Learning with Invertible Normalizing Flows>. What does that actually mean for us?
Jane: It’s about taking something called Generative Topographic Mapping, or GTM, and adding a normalizing flow to it. Essentially, GTM gives you a fixed grid prior over the map structure, but NFMap makes the mapping fully invertible with this flow structure.
Lu: The authors are tackling the problem of having an explicit likelihood and an invertible mapping simultaneously in a visualization setting where you want a navigable map. It’s about making sure you can project new points onto that map and then get back to the original data space exactly.
Meng: So, what's the core idea here? Is it just another way to draw a pretty picture of high-dimensional data? Because we need something that actually works when we have real chemical datasets.
Lalam: It means they are combining a fixed grid prior with the exact likelihood from a normalizing flow, which gives us an effective out-of-distribution signal on those chemical datasets, and it’s fully invertible so you can track any point back to its source.
The paper's summary: Tom: Okay, so the main point of NFMap is this split latent space. They map your data into a latent space that has the same dimension as the original data, but they split it into a two-dimensional navigable map and an off-manifold residual.
Jane: That residual is key because it lets them control how much information goes into the visible coordinates versus what stays in that off-manifold part. They use this to balance local neighborhood fidelity with global distance fidelity.
Lu: The mapping itself is built using a bijective normalizing flow, which they construct from B affine coupling blocks. This means the mapping is invertible in closed form, and the latent vector z is partitioned into z parallel and z perpendicular to that map, where z parallel is just two dimensions.
Meng: So, if I'm trying to deploy this on a production system, what does that residual part actually do? Does it complicate things when we are just trying to visualize the main structure?
Lalam: It means the entire latent vector f theta maps the original data Xtilde exactly, and you only plot z parallel while retaining z perpendicular so no information is discarded, which means f minus one theta reconstructs Xtilde exactly >
The paper's improvements: Tom: Their main contribution seems to be how they control the trade-off between local and global structure. They introduce a residual scale, sigma sub perp.
Jane: That scale is a major control mechanism. It has a volume argument showing that contracting this residual forces structure into the visible coordinates, z parallel, which improves global distance fidelity at the cost of local neighborhood fidelity.
Lu: The authors show that tuning this sigma sub perp isn't just about tweaking one parameter; it’s coupled with the grid extent, so you have to tune them together. They also use a Student-t mixture model for the map prior to handle crowding in large datasets.
Meng: I’m looking at those scaling improvements, like when they use a Student-t prior for larger scales on EGFR or hERG datasets. That suggests it’s actually robust enough for real scale problems where crowding is severe.
Lalam: The paper also shows that the exact likelihood from the flow yields an out-of-distribution score that leads the k-NN distance baseline on every chemical dataset, which is a pretty strong signal for new points >
Conclusion: Tom: So to wrap up, NFMap gives us an invertible method that projects new points onto a trained map and carries any map position back to data space. It uses the fixed grid as a common reference canvas without any measurable cost in embedding quality.
Jane: The big implication is that because it’s fully invertible, you aren't limited to just looking at what’s on the map; you can reconstruct the original data exactly from where you are looking, which is powerful for chemical structure analysis.
Lu: It’s easy to extend this framework with a Student-t prior and hierarchical chemical kernel improvements when dealing with larger datasets, which shows the design is extensible.
Meng: From an engineering standpoint, the fact that it's fully invertible is a huge plus because we know we can always trace back any point projected onto the map without losing data >
Lalam: So to summarize NFMap, they combine GTM’s fixed grid with a flow’s invertibility and exact likelihood, providing an open-source package available at https://github.com/hagaxeight/nfmap >
Hélena Alexandra Gaspar
cs.LG
Submitted: 2026-10-12
Updated: 2026-10-12
Comments: 20 pages, 10 figures. Code: https://github.com/hagax8/nfmap
Code: https://github.com/hagax8/nfmap
License: http://creativecommons.org/licenses/by/4.0/
The gist: The gist NFMAP introduces an invertible, parametric dimensionality reduction method that combines Generative Topographic Mapping's fixed latent grid with the exact likelihood of a normalizing flow.
Key concepts
- Invertible Normalizing Flow
- A type of mathematical transformation that is perfectly reversible. Unlike standard methods, this flow allows you to take a point in the low-dimensional space and accurately calculate its original position in the high-dimensional data space. This property is crucial for mapping new points back to real data.
- Generative Topographic Mapping (GTM)
- A prior design where the latent map centers are fixed onto a regular 2D grid. This provides a structured, parametric embedding for the data, meaning any location on this grid can be used as a reference point in the learned low-dimensional space.
- Residual Scale ($\sigma_{\perp}$)
- A control parameter that determines how much of the data's structure is forced into the visible 2D map versus being kept in the off-manifold residual. Decreasing this scale prioritizes global distance fidelity, pushing more geometric information into the main map coordinates.
- Student-t Mixture Model (SMM)
- A prior component used to handle 'map crowding' in large datasets. It uses heavy-tailed distributions instead of simple Gaussian ones for the 2D map components, allowing the model to better accommodate many data points without losing structure.
Terminology
Summary
The gist NFMAP introduces an invertible, parametric dimensionality reduction method that combines Generative Topographic Mapping's fixed latent grid with the exact likelihood of a normalizing flow.
Method Overview
NFMAP maps data to a latent space split into a 2-dimensional navigable map and an off-manifold residual, ensuring full invertibility because the flow is bijective and penalizes volume contraction NFMAP maps data to a latent space of the same dimension, split into a 2-dimensional navigable map and an off-manifold residual The residual scale is the main control between local neighbourhood fidelity and global distance fidelity The flow is built from B affine coupling blocks where the mapping is invertible in closed form, and the latent vector is partitioned into a two-dimensional map and an off-manifold residual z = fθ(˜x) = (z∥, z⊥).
Prior Design
The prior factorizes over the two blocks, combining a mixture model over the 2D map with a Gaussian penalty on the residual For the map prior pmap, NFMAP uses a Gaussian Mixture Model (GMM) or, to address map crowding in larger datasets, a Student-t Mixture Model (SMM). Following GTM, component means are fixed on a regular grid of radius grid bounds and the mixing weights are uniform. The objective function minimizes a weighted sum involving the map prior, manifold penalty, volume term, graph loss, repulsion loss, and injectivity term.
Key Control Mechanisms
The residual scale σ⊥ acts as a control on the map with a volume argument showing why contracting z⊥ forces structure into the visible coordinates z∥. Decreasing σ⊥ therefore forces more of the data’s geometry into the two visible dimensions, improving global distance fidelity at the cost of local neighbourhood fidelity. The coupling between σ⊥ and the grid extent means that grid-based methods should not be tuned one parameter at a time.
Performance and Benchmarking
NFMAP is compared against t-SNE, UMAP, and Generative Topographic Mapping (GTM) across diverse datasets including chemical sets like BACE, BBBP, and ESOL. NFMAP's reported maps keep at least 99% of points inside grid bounds except for the S-curve (94%). The exact likelihood yields an out-of-distribution score that leads the k-NN distance baseline on every chemical dataset. Furthermore, at larger scales, a Student-t prior and a scaffold-aware kernel each improve scaffold separation on datasets like DRD2, hERG, and EGFR.
Conclusion
NFMAP is an invertible method that projects new points onto a trained map and carries any map position back to data space. The fixed grid provides a common reference canvas at no measurable cost in embedding quality. The framework is also easy to extend with Student-t prior and hierarchical chemical kernel improvements for larger datasets. The main limitations are that several hyperparameters affect how far the map spreads, and that points can fall outside the grid. The adaptive calibration of the grid extent is a natural next step.
--- Page 1 ---
NFMap: Topographic 2D Manifold Learning with Invertible Normalizing Flows Héléna Alexandra Gaspar LovingScience 124 City Road, London EC1V 2NX helena@lovingscience.com 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. 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 latentto-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. arXiv:2610.16750v1 [cs.LG] 12 Oct 2026
--- Page 2 ---
Closest to NFMAP is FloDR [13], developed independently and concurrently 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 σ⊥, 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 σ⊥ as a control on the map, with a volume argument showing why, under a bijection, contracting z⊥ forces structure into the visible coordinates z∥. 2 Empirical evidence that σ⊥ trades local against global structure. 3 A coupling analysis showing that σ⊥, 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 K 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 K. 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.
--- Page 3 ---
2 Methods 2.1 Architecture Let x ∈ R D be an input observation. NFMAP first maps the data to a PCA-reduced representation of dimension d (˜x ∈ R d), then learns a bijection fθ: R d → R d built from B affine coupling blocks [8]. Block b partitions its input by a binary mask mb and applies z(b+1) = z(b) ⊙ expsb + tb, (sb, tb) = (1 − mb) ⊙ gθb mb ⊙ z(b), where gθb is a two-hidden-layer GELU network and sb←tanh(sb) bounds the log-scale for numerical stability. The final layer of each gθb is zero-initialised, so the flow begins as the identity.
Improvements for AI systems
-
Improved dimensionality reduction for chemical data by leveraging exact likelihood via normalizing flows, which provides an
applicability-domain signal on chemical datasets.
This allows for more reliable out-of-distribution detection compared to k-NN distance baselines, as NFMAP'sexact log-likelihood leads the k-NN distance baseline on every chemical dataset.
-
Enhanced map structure preservation by controlling local/global trade-offs via the residual scale, specifically through the mechanism where
shrinking σ⊥ transfers variance into the map, improving global distance fidelity at the cost of neighbourhood fidelity.
This ensures thatthe right setting therefore depends on the data’s geometry rather than being a universal default.
-
Scalable structure preservation for large-scale chemical datasets by incorporating a Student-t prior and a scaffold-informed hierarchical kernel. This addresses map crowding by improving scaffold separation, as seen on EGFR where the combination of these two remedies
reaches scaffold purity 0.642 and silhouette +0.104.
-
Increased robustness for data projection by ensuring full invertibility, as NFMAP's mapping
is a normalizing flow, and is therefore fully invertible: any location on the map can be carried back to data space,
unlike non-invertible methods like GTM whose mappingis an RBF network of bounded flexibility.
-
Enhanced representational power by utilizing a fixed grid prior that does not hinder performance, as
Fixing the grid (Table 3, Figure 6) is statistically non-inferior to learning the mixture means
for both global structure and local structure. This provides acommon reference canvas at no measurable cost in embedding quality.
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.
Sources
- Flows for simultaneous manifold learning and density estimation
- Ordering Dimensions with Nested Dropout Normalizing Flows
- FloDR: An invertible dimensionality reduction method based on a normalising flow
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks