JaSpec-LID: Local Intrinsic Dimension Estimation via Jacobian Spectra of ODE-based Generative Models
Hiro Ishii, GENKI OSADA
NeurIPS page · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Flow Matching Theory · Type: new method · Keywords: local intrinsic dimension, ODE generative models, velocity field Jacobian, model-agnostic estimation, spectral analysis
Areas: Generative Models (Diffusion & Flows) › Flow Matching and Diffusion › Generative Flow Methods
Summary
JaSpec-LID introduces a model-agnostic local intrinsic dimension estimator that counts singular values of the velocity-field Jacobian below a threshold, achieving zero MAE on high-dimensional benchmarks and extending to ODE-based generative models.
Explained to a 5-year-old
We want to know how many ways a piece of data can change around a point, like how many free choices it has. Some models that make new pictures or sounds only show a direction they move, not a full picture. We look at that direction and count how many of its parts are very small. This helps us see if the model is just copying old examples or if it can handle new ones. It works for many kinds of models that only give directions, making it useful for many AI tools.
Explained to a 5-year-old, longer
We want to understand how many different ways a piece of information can vary when we look at it closely. Imagine a point on a hidden surface; the local intrinsic dimension tells us how many directions we can move while staying close to that point. Many modern AI models that create images, sounds, or text only give us a single direction of change, like a wind blowing. Because they only show a direction, we cannot use old methods that need a full picture of how the data changes. We came up with a new idea: we look at that direction and count how many of its tiny parts are smaller than a chosen size. If many parts are tiny, the point lives on a lower-dimensional surface; if few are tiny, it lives in a higher-dimensional space. This counting works for any model that gives us a direction, including diffusion models, flow matching, and other ODE-based generators. We also proved that under a certain condition, this counting reliably tells us the true local dimension. On standard tests, our method gets the exact answer for most cases up to very high dimensions and is much better than previous methods on the hardest cases.
For a technical reader
The paper presents a way to estimate how many degrees of freedom a data point has locally, which is useful for detecting memorization and distribution shift. Existing estimators require full density models, but many modern generative models only expose a velocity field. The proposed method counts small singular values of that velocity-field Jacobian, works for any differentiable ODE generator, and includes both an exact cubic-time algorithm and a linear-time stochastic Lanczos variant. Theoretical analysis provides an identifiability guarantee under a Jacobian-normal-dominance condition, and experiments show zero error on most benchmarks up to 3072 dimensions and a tenfold improvement on the hardest case.
Problem
Estimating the local intrinsic dimension of data manifolds is important for tasks such as memorization detection and distribution shift diagnosis, but existing generative-model-based estimators rely on scores, log-density Hessians, or exact likelihoods and thus cannot be applied to ODE-based generators that only provide a velocity field.
Method
The approach counts singular values of the velocity-field Jacobian that fall below a threshold, using either an exact O(D³) path or a linear-cost stochastic Lanczos quadrature, and includes a Jacobian-normal-dominance condition for identifiability.
Results
On VP-SDE diffusion and OT-CFM flow-matching benchmarks, JaSpec achieves zero mean absolute error on most settings up to 3072 dimensions and reduces error by roughly tenfold compared to the best prior model-based estimator on the challenging 3072-dimensional nonlinear mixture.
Contributions
It provides the first model-agnostic LID estimator that works for any differentiable ODE generator, proves a dynamical identifiability theorem under a Jacobian-normal-dominance condition, and offers both exact and linear-cost computational paths.
Limitations and assumptions
The identifiability result relies on a Jacobian-normal-dominance condition, and the exact O(D³) path may be costly for very high dimensions.
Practical relevance
Enabling LID analysis for modern ODE-based generative models facilitates better monitoring of model behavior, detection of memorization, and diagnosis of distribution shift in safety-critical AI systems.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction