Learning Distributions on Manifolds with Free-Form Flows

We propose Manifold Free-Form Flows (M-FFF), a simple new generative model for data on manifolds. The existing approaches to learning a distribution on arbitrary manifolds are expensive at inference time, since sampling requires solving a differential equation. Our method overcomes this limitation by sampling in a single function evaluation. The key innovation is to optimize a neural network via maximum likelihood on the manifold, possible by adapting the free-form flow framework to Riemannian manifolds. M-FFF is straightforwardly adapted to any manifold with a known projection. It consistently matches or outperforms previous single-step methods specialized to specific manifolds. It is typically two orders of magnitude faster than multi-step methods based on diffusion or flow matching, achieving better likelihoods in several experiments. We provide our code at https://github.com/vislearn/FFF.

Paper

Similar papers

Peer review

Reviewer Z5qx5/10 · confidence 4/52024-06-25

Summary

In this paper the authors propose to adapt the formalism in Draxtler et al. (2024) and Sorrensen et al. (2024) to Riemannian geometry. The idea they build upon is called Free-form flows and consists of: (i) relaxing the bijectivity requirement of Normalizing Flows by approximating the inverse transformation with a learnable function and (ii) approximating the gradient of the Jacobian determinant with the Hutchinson's trace estimator (and in particular to use the approximate inverse at this point). The contribution consists in generalizing such framework to accommodate for Riemannian manifolds (and specifically to accommodate for the further multiplication by the tangent space orthonormal basis).

Strengths

- the proposed Theorem 3 is elegant and simple, and allows to easily adapt the framework to the manifold under study - even if not discussed in these terms, the proposed method seem to work particularly well in settings where the underlying density is highly multi modal (e.g. Table 3 and Table 6)

Weaknesses

- even though the authors claim the performance is "mixed" or better "in some cases", the proposed method performs significantly worse than most multi-step approaches across almost all datasets (see Table 4). In almost all other experiments (Table 3, 5, 6) the proposed method performs equal or worse than other multi-step approaches. - I would then expect the proposed method to highlight a trade-off between performance and computational speed, but no thorough runtime comparison study is performed.

Questions

1. as I understand the method, the main advantage comes from fast inference. Since the performance compared to other methods are worse or equal in most settings (except highly multi modal distributions), I believe it is important to show a runtime comparison with SOTA approaches. In particular, the very recent method in [1] is particularly flexible and much faster than other concurrent work. How does concurrent work compare with the proposed method at fixed performance (e.g. for a given log likelihood value) in terms of runtime (both training and inference)? 2. what are the numerical log likelihood values relative to the plots in Figure 6? how do they compare to other methods? 3. the proposed method relies on two fundamental approximations: estimation of the trace for the Jacobian determinant and approximate inverse of the learnt transformation. In the appendix the authors argue how to reduce the variance by rescaling v and that this helps particularly in low dimensions. I would be interested to see empirically how the variance scales with the dimensions in some experiments 4. given the several losses used in optimization (eq. 22) I was wondering how well is the inverse approximated in practice, which is the second fundamental approximation of the model. Also, the additional two losses kind of suggest that it is hard in practice to learn the approximate inference, which is however fundamental for the method to work. The authors also highlight that the reconstruction error plays a crucial role to learn the correct log likelihood. What are in practice the reconstruction error values (and the other loss terms) in the experiments you have run? As a general advice, I would suggest the authors to further investigate how and why the proposed approach performs better when the learnt densities are multi modal. I think this is a very promising aspect - and from experience maybe the true limitation of bijective layers - but it is not explored in the paper [1] Chen et al., Flow Matching on General Geometries, ICLR 2024 [2] Draxler et al., Free-form Flows: Make Any Architecture a Normalizing Flow, AISTATS 2024

Rating

5

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

Limitations are not at all clearly stated as such in the paper. Some limitations are referenced in the checklist but their description is vague and some references are missing (e.g. the checkerboard dataset. Without a comparison is also hard to grasp how much of a limitation this is). I would suggest the authors to include a paragraph concerning limitations, where limitations are mentioned and discussed.

Reviewer nDWB7/10 · confidence 5/52024-07-03

Summary

This paper introduces M-FFF, a single-step generative model that operates on Riemann manifolds. The authors extend the existing FFF, which functions in Euclidean space, establishing the theoretical foundation for learning distributions on various Riemann manifolds and enabling faster generation than existing multi-step and single-step methods. The effectiveness of the proposed approach is evaluated on several datasets.

Strengths

1. The authors have extended the single-step generator FFF to arbitrary Riemann manifolds, making it possible to generate data in non-Euclidean spaces in a single step with simulator-free which developed in recent flow matching. 2. M-FFF demonstrated superior performance compared to existing flow models in experiments with different datasets. It not only generated high-quality samples but also effectively learned the distribution on each manifold.

Weaknesses

1. Extending existing generative models operating in Euclidean space to Riemannian manifold is a well-trodden path in recent research, so this extension alone lacks novelty. However, the theoretical contributions specific to the extension are solid. 2. The authors evaluated the method's effectiveness only under limited conditions where the dimensionality n is ~10 or less. Given that the theory and method are highly general without specific applications, there should be a discussion on the potential limitations of the algorithm.

Questions

1. Is it realistic to generate data in high-dimensional spaces (e.g., 100 ~ 1000 dimensions), or is it inherently challenging? Understanding the short rebuttal period, I don't expect new experiments, but could you provide insights on the expected impacts of increased dimensionality? 2. Do you plan to release the source code, including reproduction experiments? Considering the scarcity of source code for generative models on Riemann manifolds, releasing the code would significantly contribute to the field. 3. Regarding Specialized architectures in related work, refer to, for example, the paper for quotient manifolds by Yataka et al., Grassmann manifold flows for stable shape generation, NeurIPS2023. While authors of M-FFF claim their theoretical results operate on arbitrary Riemann manifolds, can the same be said for quotient manifolds? 4. M-FFF is described as requiring "requiring only a projection function from an embedding space." However, isn't the calculation of R and Q dependent on the manifold necessary for computing the negative log-likelihood? If so, how are these obtained? At least, it seems there is a discrepancy between the claims in the Introduction and the necessity of Eq. (9) in Section 5 (Toy distributions on hyperbolic space). 5. The authors describe that evaluating the loss in Euclidean space (Eq. (22)) is practically acceptable because "we find that ambient Euclidean distance works well in." However, considering that Riemannian flow matching is rigorously formulated based on the Riemannian metric, this approach seems inconsistent. Theoretically, wouldn’t a formulation using the Riemannian manifold's metric be necessary? 6. Particularly in spaces with negative curvature, such as hyperbolic space, I am concerned about the appropriateness of using Euclidean distance. If some measures are needed, please explain why the formulation in Eq. (22) is appropriate as a general evaluation metric for M-FFF.

Rating

7

Confidence

5

Soundness

4

Presentation

3

Contribution

3

Limitations

1. There is no mention of limitations related to dimensionality.

Reviewer RvPv7/10 · confidence 5/52024-07-16

Summary

The extends a recent class of generative models, called free-form flows, to Riemannian manifolds. These models are trained like normalizing flows, but relax the bijective constraint and instead employ separate encoder and decoder networks that are trained to be inverses of each other. The proposed method differs from existing flows for manifolds in that it constructs a map from the manifold M, back to M, using a full rank transformation plus a projection. This differs from existing manifold flows which typically use injective transformations. The authors derive a change of variables on manifolds for this setting and derive an unbiased estimator of its gradient and propose a loss function that affords stable training of these models. The method consistently outperforms existing generative models on manifolds at learning the various target distributions from samples at a significantly lower expense than previous methods.

Strengths

- The paper is well written - The idea is novel and extends an interesting line of work around a new class of generative models - The method seems to perform well in practice, although I have some concerns - Section 3 includes a loss function that mitigates potential failure cases like the networks failing in low data regions, or the ambient space encoder mapping to points away from the manifold. - The method is evaluated on the typical datasets seen in flows for manifold papers.

Weaknesses

- I'm not fully convinced by the likelihood based evaluation. The invertibility of normalizing flows ensures that the flow can produce samples anywhere on $\mathcal{M}$ and similarly, can assign a likelihood to any point on $\mathcal{M}$. Since free form flows are not invertible, it is possible that the flow does not map to all of $\mathcal{M}$. This would make the comparison between the likelihood values of normalizing flows and free form flows invalid because the likelihoods are valid on different domains, which could potentially invalidate the reported results. Instead, the experiments could report a sample based metric to measure the method's performance. - There is no error bound on the likelihood gradient like there is in Draxler et al. 2024. Although it seems like the method performs well in practice, I would like to know exactly how much is lost by using a decoder network instead of a true inverse. In injective flows, I don't think that the free form flow gradient works because $\nabla \log |f'(x)| = \text{Tr}{(\nabla f'(x){f^+}'(z))}$ where ${f^+}'$ is the pseudo inverse of $f'$, so using any other possible inverse would give a wrong gradient. I understand that the proposed method is not an injective flow and might not suffer from this, but I would like to see a gradient error bound to know for sure. - The $m$ and $n$ dimensions in the proof of theorem 2 seem to be flipped in the appendix.

Questions

- It would be nice to clarify in the text that all of the quantities considered are written in terms of the Euclidean ambient space coordinates.

Rating

7

Confidence

5

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors adequately addressed the limitations.

Reviewer m8ZT6/10 · confidence 4/52024-07-16

Summary

This paper introduces Manifold Free-Form Flows (M-FFF), an extension of free-form flows to Riemannian manifolds. M-FFF is easy to adapt to an arbitrary Riemannian manifold, since the method requires only a projection function from an embedding space. Moreover, the method itself relies only on a single function evaluation during training and sampling, which speeds up inference over multi-step methods by several orders of magnitude. As demonstrated by the experimental section, M-FFF consistently matches or outperforms single-step methods on several benchmarks on spheres, tori, rotation matrices, and hyperbolic space, while being reasonably competitive with multi-step methods.

Strengths

1. This adaptation of free-form flows to manifolds is novel and allows for unconstrained flows over manifolds that are easier to learn (due to fewer geometric restrictions) and much faster as a consequence of the single-step nature of the method. 2. The results given are quite reasonable and show that M-FFF is an excellent single step method and competitive with multi-step methods, while being much faster.

Weaknesses

1. The method, in essence, trades the hard manifold constraints and theoretical cleanliness of previous Riemannian Normalizing Flows (Mathieu et al., 2020) for a projection-based approximation. Specifically, the benefit of a loose and adaptable "encoder-decoder" framework comes at the cost of having to optimize three additional losses: the reconstruction loss $\mathcal{L}_R$, the uniformity loss $\mathcal{L}_U$, and the projection loss $\mathcal{L}_P$. That is to say, unless these losses are optimized well, the geometry may be respected very approximately, which is a drawback relative to existing multi-step methods. The authors themselves admit that they have had issues with the reconstruction loss being too high (see Section 5). Additionally, such a method may be rather suboptimal for applications where there are hard physical constraints, e.g. see learning symmetric densities over $SU(n)$ [a] in the context of lattice QFT for downstream use in gauge integrals. M-FFF is nonetheless an interesting method, but these limitations should be well-noted. 2. There are clearly contexts in which this method is suboptimal relative to existing multi-step methods, e.g. see Figure 6. Due to the many approximations made in the method, it can be hard to match some of the more rigid density geometry exhibited by the checkerboard pattern, that strict on-manifold multi-step methods have no trouble learning (see Lou et al. (2020)). This should also be well noted; the speed flexibility of M-FFF come at a cost. ### References [a] Equivariant manifold flows. https://arxiv.org/abs/2107.08596

Questions

My questions to the authors are listed below: 1. In Section 5, the authors mention that the "reconstruction error sometimes does not drop to a satisfactory level." My question is, when does this usually happen, and can we more precisely characterize the situations in which one of the non-NLL losses fails to give a satisfactory result? I believe this question is key to better determining when precisely M-FFF is a reasonable and/or good alternative to strict multi-step methods such as Lou et al. (2020) or Mathieu et al. (2020). ### Additional Comments and Minor Corrections The writing in this paper is for the most part quite clear and the presentation of material is excellent, with several expository figures given to elucidate important parts of the method. Nonetheless, I would like to give a non-exhaustive list of minor corrections below: L62: "for building normalizing flows such as SO(3)" -> "for building normalizing flows for manifolds such as SO(3)" L203: I believe the authors meant to say the substitution happens for equation (13), and the results is shown in equation (19). That is, "This allows us... in Eq. (19)" -> "This allows us.... in Eq. (13)" L228: "by rotations matrices with positive determinant" -> "by rotation matrices with positive determinant"

Rating

6

Confidence

4

Soundness

4

Presentation

4

Contribution

3

Limitations

Although some limitations of the method are mentioned throughout the paper, this work would benefit from an explicit section made to address limitations of the method (in particular incorporating some of what I have mentioned in the "Weaknesses" section above).

Reviewer RvPv2024-08-08

Thank you for the response and for clearing up some of my concerns. I appreciate adding reconstruction losses to the text however I am still concerned about using comparing likelihoods from the proposed model to those produced by exact flows. My concern stems from the possibility that if the model does not map to the entire data space, then its values for probability density can be inflated compared to a model that maps to the entire data space. For example, a uniform distribution over a space with volume $V$ has a density of $\frac{1}{V}$, but a uniform distribution over a subset of the region, with volume $V - T$ where $T>0$, has a larger density of $\frac{1}{V - T}$. It is possible that something similar is happening in your experiments which is why I would like to see sample based evaluation. Please let me know if you do not agree with this reasoning.

Authorsrebuttal2024-08-12

Thank you for the clarification and the continued interest! We do think that the reconstruction losses validate reporting likelihoods. Below, we provide more details why reconstruction errors are useful to detect the described behavior, as well as complimentary experimental evidence that no important regions are left out by M-FFF. Let us consider the reviewer’s example of a uniform distribution, as this is an instructive case. Suppose that the model learns a uniform distribution, but leaves out a region $T$. Then we agree, it would result in a spurious likelihood. However, the reconstruction loss notices: A point in $T$ is moved by the encoder-decoder pair into $V \\setminus T$ (since the generator only produces points on $V \\setminus T$). Thus, all points in $T$ are moved into $V \\setminus T$, increasing reconstruction loss. The reconstruction losses consistently lower than 1 by three or more orders of magnitude indicate that no such left-out region exists or it is negligibly small. Experimentally, we additionally verify that **every test data point has a generated point close by** on all $n=2$ manifolds (sphere, bunny, torus). To test this, we divide the manifold into bins and confirm that in each bin with a test data point, M-FFF also generates samples. We test this by sampling often enough from the trained model, until there is a sample in each bin. We choose natural bins for each manifold (icosphere, subdivision of original trimesh, rectangular grid of polar representation) and make the bins small (bin area $1/100,000$ compared to total manifold area). We confirm for every run for every $n=2$ experiment that in every bin populated by test data M-FFF also generates samples. The problem with a sample-based metric is that competitors have not made their pretrained models available, so a thorough comparison would not be possible. We propose adding sample-based evaluations to the camera ready revision for future work to compare against. As a preliminary metric, we report the Wasserstein-2 distance for the $n=2$ datasets above: | Dataset | Wasserstein-2 distance | |---------------|---------------| | Bunny (K=10) | 0.09 ± 0.02 | | Bunny (K=50) | 0.046 ± 0.006 | | Bunny (K=100) | 0.026 ± 0.007 | | General | 0.21 ± 0.04 | | Glycine | 0.32 ± 0.05 | | Proline | 0.51 ± 0.05 | | PrePro | 0.47 ± 0.04 | | Flood | 0.047 ± 0.010 | | Fire | 0.072 ± 0.027 | | Volcano | 0.249 ± 0.035 | | Earthquake | 0.068 ± 0.022 |

Reviewer RvPv2024-08-12

Thank you for the response, I agree that small reconstruction errors might mitigate the likelihood issue and think that identifying how they are related is out of the scope of this paper. Also thank you for reporting the W2 distance of your method on the various datasets, this is a great item for future works to compare against. Since you have addressed all of my concerns, I'll update my score.

Reviewer m8ZT2024-08-11

Thank you for the rebuttal

Thank you for your rebuttal comments; in particular, the comments regarding when reconstruction error does not drop to a satisfactory level. I maintain my original score and believe this paper should be accepted.

Reviewer nDWB2024-08-12

I appreciate the authors addressing my concerns. - The authors provided the specific limitations on dimensions. - The authors were honest in their responses to my other questions. - I strongly recommend that the authors include the content they provided in the updated version. Overall, thank you for the efforts in addressing my concerns, and I have decided to adjust my recommendation to a score of 7.

Reviewer Z5qx2024-08-13

I would like to thank the authors for the detailed rebuttal. As reviewers m8ZT and RvPv I was initially concerned about the reconstrcution error and I'm happy to see that in practice it is negligible. I now think about the proposed model as a fast alternative to competing methods and I think it is particularly relevant among single step methods. I still believe, however, that the comparison with multi step methods is not very convincing. I will adjust my score accordingly.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC