Variational Flow Matching for Graph Generation

We present a formulation of flow matching as variational inference, which we refer to as variational flow matching (VFM). Based on this formulation we develop CatFlow, a flow matching method for categorical data. CatFlow is easy to implement, computationally efficient, and achieves strong results on graph generation tasks. In VFM, the objective is to approximate the posterior probability path, which is a distribution over possible end points of a trajectory. We show that VFM admits both the CatFlow objective and the original flow matching objective as special cases. We also relate VFM to score-based models, in which the dynamics are stochastic rather than deterministic, and derive a bound on the model likelihood based on a reweighted VFM objective. We evaluate CatFlow on one abstract graph generation task and two molecular generation tasks. In all cases, CatFlow exceeds or matches performance of the current state-of-the-art models.

Paper

References (65)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer vH9B5/10 · confidence 4/52024-06-26

Summary

This paper proposed a variant of flow matching for graph generation from a variational perspective, called CatFlow. The main idea is not to estimate the marginal velocity, but instead to estimate the posterior first and then evaluate the marginal velocity as the expectation of the conditional velocity w.r.t. the posterior. In the case of linear conditional velocity and Gaussian variational approximation, the equivalence to vanilla flow matching has been established and connection to score-based models have been discussed. A simplified mean-field variational approach has also been proposed based on the observation that marginal posterior matching (for individual dimensioins) is enough for posterior mean estimation for linear conditional velocity. Experiments on several graph/molecule generation tasks demonstrate the effectiveness of the CatFlow.

Strengths

The paper is written clearly. The variational formulation and the connection to standard flow matching is new. The authors have also shown that a weighted average of the training objective of VFM provides a bound on the log-likelihood of the model.

Weaknesses

The main weakness of the paper is that the core idea of learning the posterior first (i.e., the variational formulation) and evaluating the marginal velocity using the expected conditional velocity w.r.t. the posterior has already been proposed in Dirichlet Flow [1]. Although the author claimed that Dirichlet Flow uses the specific dirichlet distribution as the conditonal probability, this is mainly a design choice which does not affect the generality of Dirichlet Flow for modeling discrete objectives such as graphs and molecules. Given this, the lack of an appropriate comparison to Dirichlet Flow in the experiments represents a significant drawback of the current paper. The paper also lacks a brief introduction to the baseline methods, which would help contextualize the results and better highlight the contributions of the proposed approach. [1] Hannes Stark, Bowen Jing, Chenyu Wang, Gabriele Corso, Bonnie Berger, Regina Barzilay, and Tommi Jaakkola. Dirichlet flow matching with applications to dna sequence design. arXiv preprint arXiv:2402.05841, 2024.

Questions

1. Although it is reasonable to match the marginal posterior using mean-field approximation, it is still not clear if this simple mean-field approximation is good enough to capture the posterior mean. Can the author provide some intuition when the mean-field approximation is good enough? 2. In flow matching, an error bound for the generated distribution in term of flow matching error is provided. Can a similar result be provided here in terms of the variational approximation error? 3. How would VFM perform when the conditional velocity is not linear?

Rating

5

Confidence

4

Soundness

3

Presentation

3

Contribution

2

Limitations

The limitations has been adequately addressed.

Reviewer WAZn6/10 · confidence 3/52024-07-13

Summary

This work presents variational flow matching framework VFM and introduces CatFlow, an application to generation of categorical data such as graph. The paper reformulates flow matching using variational perspective and with linear assumption on the conditional vector field achieves tractable objective. The authors derive the connection with the score-based models and show that the framework provides variational bound on the model likelihood.

Strengths

- To the best of my knowledge, the variational framework for flow matching is novel and the provided theoretical works seem solid. - Connection with the score-based model provide intuitions on the method. - Application to discrete data seems reasonable and the benefits over standard flow matching is well explained.

Weaknesses

- The reason CatFlow outperforms previous diffusion models is unclear. Is it because VFM provides variational bound on the model likelihood? Ablation studies on why CatFlow outperforms other diffusion models would strengthen the work. - CatFlow should be validated on larger datasets used in recent works [1, 2], for example Planar and SBM, since community-small and ego-small datasets consists of very small graphs which is not suitable for evaluating generative models. - In particular, validity metric should be used to evaluate the method, instead of only relying on MMD. Evaluating only with MMD is not appropriate as MMD may fail to catch important graph characteristics, for example, small MMD does not guarantee the generated graphs is actually a community graph. Evaluating on Planar or SBM dataset and comparing the results of V.U.N. (valid, unique, and novel) is necessary to strongly argue the advantage of the proposed method. - Comparison with discrete diffusion model like DiGress should be done on more datasets other than QM9. This also leads to experiments on Planar or SBM datasets or in molecular generation tasks, like GuacaMol dataset. Minor correction: citation in line 148 should be fixed

Questions

I would appreciate it if the authors could address the weakness above. Also, I recommend more explanation on Figure 1 as it would privde the readers to get better understanding on CatFlow. In summary, I believe the paper provides theoretical contributions, but the experimental validation needs more room to improve.

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors have addressed the limitations at the end of the paper.

Reviewer 5EeZ7/10 · confidence 3/52024-07-16

Summary

This paper introduces a new variational inference framework of flow matching with a focus on applying the framework on discrete data generation. Instead of using the squared norm in standard flow matching, the paper proposes a variational distribution to the conditional path, which is used in the vector field. The paper shows that when the variational distribution is identical to the conditional path, the approximate vector field equals to the target one. The paper then uses mean-field factorisation of the variational distribution and applies linear conditional vector field. Based on the proposed framework, the paper mainly applies it for discrete data generation including the tasks of abstract graph generation and molecular generation. Experiments show that the proposed method outperforms other diffusion-based or flow-matching-based methods.

Strengths

1. The technical contribution and significance of the paper are good. The paper provides a novel angle of formulating flow matching as a variational inference problem, which is theoretically sound and conceptually intuitive. 2. The paper derives a general framework first and then implement it on the task of discrete data generation. The paper also provides comprehensive theoretical analysis on the connections to related methods. 3. The experimental results of the proposed method are convincing. 4. The paper is well-written in general.

Weaknesses

In general, the quality of the paper is good. But I have a few questions on clarity. Please see below.

Questions

but not all of them are weaknesses. 1. In standard flow matching, one needs to minimise the squared norm between the parameterised vector field and the true vector field. That's why one needs to compute the (conditional) vector field. But in variational flow matching, it seems that the final objective is the maximisation of the data likelihood in terms of $\theta$. I wonder how the vector fields come into play in this case. Are they used for computing the variational distribution somehow? 2. Related to the previous question, it would be good to have more details of the parameterisation of $q$ or the implementation of $\theta$. 3. Mean-field approximation of the variational distribution and linear formulation of the conditional vector field are used, more for efficiency consideration. Can the authors provide more discussions on when these approximation and assumption will be the bottleneck of performance? 4. Although the code is provided, it might be good to provide an algorithm of pseudo code in the paper. 5. It would be good to have more explanations of Figure 1.

Rating

7

Confidence

3

Soundness

4

Presentation

4

Contribution

4

Limitations

The authors adequately addressed the limitations

Authorsrebuttal2024-08-12

Dear reviewer vH9B, we wondered if the added results and comparison to Dirichlet FM addressed your main concerns regarding our work. Thanks a lot for your review once more.

Reviewer 5EeZ2024-08-14

Thanks for the response. I am happy to keep my original rating of the paper.

Zijing Ou12024-11-28

Hi, thanks for the great work. I am confused about the generation step in algorithm 2: $x_1 = x_0 + \int\_{t=0}^{t=1} \frac{\mu_t (x_t) - x_t }{1-t+\epsilon} dt$. Did you re-normalize the logits and obtain $x_t$ by sampling from the categorical distribution? How do you ensure that $x_t$ remains a categorical variable when solving this ODE?

Floor Eijkelboom12024-11-28

Dear Zijing, Thanks a lot for the kind words and reaching out! That's a good point - we actually do not ensure that $x_t$ is a categorical variable at all times $t$, e.g. $x_0$ is sampled from $x_0 \sim \mathcal{N}(x_0 \mid 0, {I})$ and hence is just a vector in $\mathbb{R}^K$. However, since $\mu^{\theta}(x_t)$ always lies on $\Delta^K$ (as it is the expected value $\mathbb{E}_{q^{\theta}_t}[x_1 \mid x_t]$ for a categorical distribution $q_t^{\theta}(x_1 \mid x_t)$), we will have that $v^{\theta}_t$ will always points *into* $\Delta^K$. Hence, as $t \to 1$, our $x_t$ will move to a point on $\Delta^K$. Then, to 'select' the class after generation, we simply choose the point with the highest probability / closest corner on the simplex. I hope this clears up the confusing. If not, feel free to reach out directly by email!

Zijing Ou12024-11-28

Thank you for the clarification! It is clear to me now. I really enjoyed reading the paper—great work once again! 😊

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC