Manuscript Offprint
arXiv:2611.23684Variable Length Diffuse Everything: Arbitrary Length Generative Modeling on Arbitrary State Spaces
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Diffusion and flow-based generative models have achieved remarkable results across diverse applications, but most assume data of fixed-dimension/length. Meanwhile, real-world problems such as layout generation often involve variable-length, multimodal data, such as continuous bounding box coordinates paired with discrete types. Existing methods typically address variable length by padding data to a fixed size or by introducing specialized objectives to model lengths explicitly, adding complexity and limiting generality. We propose Variable Length Diffuse Everything (VL-DE), a simple and general framework for variable-length multimodal generation on arbitrary state spaces. Instead of padding, VL-DE handles variable length through an insertion-based mechanism grounded in a principled theoretical framework, yielding a tractable training objective. In addition, by utilizing the fact that VL-DE is based on a generator with an additive form, we develop a higher-order sampler by appropriately handling the time dependence. Extensive experiments on layout generation demonstrate the effectiveness of our approach.
A Preprint
1 Introduction
Generative models have led to significant advances across a wide range of scientific and practical applications. Diffusion and flow-based models have been established across a broad range of settings, including Euclidean spaces (Song et al., 2020; Ho et al., 2020; Albergo et al., 2023; Lipman et al., 2022; Liu et al., 2022), curved manifolds (De Bortoli et al., 2022; Huang et al., 2022; Chen and Lipman, 2024; Zhu et al., 2025), discrete spaces (Campbell et al., 2022; Lou et al., 2023; Ou et al., 2024; Sahoo et al., 2024; Shi et al., 2024), and more recently, multimodal data (Holderrieth et al., 2024; Campbell et al., 2024; Rojas et al., 2025; Benton et al., 2024; Ren et al., 2025b, e.g.,). Variable-length generation has likewise received substantial attention, but almost exclusively in single-modality settings (Campbell et al., 2023; Kim et al., 2025; Havasi et al., 2025). Multimodal generation, on the other hand, has been studied predominantly at fixed length. Only a handful of works sit at the intersection of these two lines (Billera et al., 2025; Nguyen et al., 2025), and even these impose strong structural constraints; such as tying all modalities to a single length.
Variable-length multimodal data arises naturally in many domains. One such example is layout generation, where a layout is a variable-length sequence of discrete box types paired with continuous box coordinates, and both the number of boxes and their arrangement must be generated jointly.
Figure 1: Overview of VL-DE on a layout example. Variable-length data is generated by a joint process , where is an auxiliary process that tracks the active coordinates and carries their values. Each coordinate receives an insertion time , an insertion distribution and is denoised on its own clock , so that all elements are clean simultaneously at .
A key challenge in such settings is that length is rarely known a priori: much like a language model does not know how many tokens it will produce before generation begins, the appropriate length only becomes apparent as the content unfolds. This makes length an implicit, content-dependent quantity, and suggests that decoupled approaches — in which one first samples a length and then samples data conditioned on it — are unlikely to capture the joint structure faithfully.
A standard approach to variable-length generation relies on auto-regressive models, which generate sequences through a series of insertions. While effective in many settings, auto-regressive generation imposes a left-to-right factorization that is not always natural for the underlying data distribution. This has motivated work to extend diffusion and flow-based models to support variable-length data. Unimodal methods such as Transdimensional Diffusion (Campbell et al., 2023), FlexMDM (Kim et al., 2025), and Edit Flows (Havasi et al., 2025) extend diffusion or flow-based models with insertion or editing mechanisms, but do not address the multimodal case. Interleaving-based multimodal methods such as Transfusion (Zhou et al., 2025) and OneFlow (Nguyen et al., 2025) handle the specific pairing of discrete tokens with continuous values by interleaving them in a single sequence; this construction is tied to that particular pairing and does not extend to general orderings in general state spaces. General-state-space multimodal frameworks such as Branching Flows (Billera et al., 2025) allow arbitrary state spaces, but their duplication dynamics may not suit all data, and they impose structural restrictions like having all modalities share a length.
In this work, we introduce Variable Length Diffuse Everything (VL-DE), a framework whose construction rests on two frameworks: Generator Matching (Holderrieth et al., 2024) and Diffuse Everything (Rojas et al., 2025). Generator Matching offers a general recipe to learn generators of continuous-time Markov processes on arbitrary state spaces, while Diffuse Everything shows how to model multimodal data by combining per-modality generators under decoupled time variables. Neither, however, accommodates variable-length data: Generator Matching applied directly leads to intractable training objectives (as in Campbell et al. (2023)), and Diffuse Everything inherits these issues.
VL-DE addresses both limitations. We extend Generator Matching by augmenting the state space with an auxiliary variable that records the latent operations producing a state. Marginalizing this variable yields a generator on the original variable-length data space, while training on the joint augmented process keeps the objective tractable. As a concrete instantiation, we specify the training process directly as a variable-length interpolant: each coordinate of a data point is assigned an insertion time, then as in Diffuse Everything, each coordinate is denoised on its own clock, so that all coordinates are clean simultaneously at the end (see Figure 1). The resulting generator combines insertion and denoising on arbitrary state spaces, and recovers many variable length approaches such as (Kim et al., 2025; Havasi et al., 2025; Nguyen et al., 2025).
Beyond the design of the generative process, efficient sampling is essential for practical deployment. To this end, we leverage the fact that our approach is based on the generator of a Markov process that is naturally the sum of multiple terms, and develop higher-order samplers. Notably, traditional operator splitting techniques (McLachlan and Quispel, 2002) do not directly apply because each term is time dependent, and we introduce a novel non-autonomous operator splitting scheme for general Markov processes. These samplers improve sample quality per step at small step counts.
We evaluate VL-DE on variable-length multimodal generation on both unconditional and conditional layout generation. Experimental evidence demonstrates that VL-DE can perform on par with even oracle-length models without sacrificing sample quality and beats other variable length methods.
Our contributions are summarized as follows:
- For generatively modeling multimodal data with variable dimensions, we develop a principled construction based on augmenting state space with auxiliary variables, and show that the resulting dynamics can be marginalized to obtain generators defined on the original state space.
- We instantiate this construction as a variable-length interpolant with insertion and per-coordinate clocks, which is defined on arbitrary state spaces, is trained without marginalizing over latent insertion histories, and can handle multiple lengths.
- We develop an efficient sampling method based on a non-autonomous operator splitting for general Markov processes, improving accuracy per step in the large step size regime.
Generator Matching
Many generative models construct samples by interpolating between a simple reference distribution and the data distribution . This includes diffusion, flow-based, and related models across Euclidean, discrete, and multimodal state spaces. A unifying perspective is to view these models as continuous-time Markov processes. Concretely, given a state space and data distribution , one specifies a conditional probability path for satisfying
Averaging over yields the marginal path which interpolates between and . If is generated by a (possibly time-inhomogeneous) Markov process with generator (refer to Appendix C.1 for a formal introduction), then its evolution satisfies the weak Fokker-Planck equation
for suitable test functions . Thus, learning the generator is sufficient to specify the generative process. Generator Matching (Holderrieth et al., 2024) provides a general framework for learning such generators. Suppose that for each data point , there exists a conditional generator generating the path . Then the generator of the marginal path admits the factorization
where denotes the posterior over data points given the intermediate state at time . Furthermore, for a broad class of Markov processes, the generator admits a linear parameterization
where is a fixed linear operator and characterizes the dynamics. Generator Matching aims at learning a neural approximation by minimizing
where is a Bregman divergence. Since this objective is generally intractable, one instead minimizes the conditional generator matching objective
where parameterizes . A key result in Holderrieth et al. (2024) shows that minimizing this objective recovers the generator of the marginal path.
Diffuse Everything
Rojas et al. (2025) models multimodal data on arbitrary state spaces. It was originally formulated in the Denoising Markov Models framework (Benton et al., 2024; Ren et al., 2025b), where the generative process is reversing a forward noising process; however, its core construction applies more broadly to any number of Markov processes specified by their generators, including those that do not arise from a forward process. We adopt this more general view here.
Given two modalities and , each is equipped with its own generator, and , defined on its respective space. These per-modality generators are then combined into a joint generator using decoupled time variables , one per modality:
Under this construction each modality evolves independently under its own clock. The decoupled times allow a single model to support multiple generation modes: setting corresponds to joint generation of , while holding one clock fixed (e.g., ) and running the other yields conditional generation (e.g., ). The framework extends to any number of modalities and state spaces. A key restriction, however, is that Diffuse Everything assumes each modality lives in a fixed-length state space; lifting this restriction is the central goal of VL-DE. Appendix A discusses this view of Diffuse Everything and the effect of decoupled times on training.
3 Methodology
In principle, generator matching can model variable length data by defining a Markov process over , where is an arbitrary space that may itself be multimodal (e.g., ). If this process changes dimensions (e.g., through insertions), it can model variable-length data — as in Trans-dimensional Diffusion (Campbell et al., 2023). However, the difficulty lies in the conditional probability path: many latent operations (e.g., different insertion paths) can produce the same state, so evaluating the loss function requires summing over all such possibilities. This is generally intractable, and Campbell et al. (2023) relies on a practical simplification to make training feasible.
To sidestep this issue, Edit Flows (Havasi et al., 2025) and FlexMDM (Kim et al., 2025) concurrently introduced an auxiliary process that explicitly tracks the latent operations producing each state, removing the ambiguity and making training tractable. However, both constructions restrict the data and the auxiliary process to discrete spaces, which limits their applicability to multimodal data.
We address this in two steps. Section 3.1 generalizes the auxiliary-process idea to arbitrary state spaces, yielding Generator Matching with an Auxiliary Process; this already covers multimodal data with a common length. Section 3.2 then instantiates it as a variable-length interpolant in which every coordinate is denoised on its own clock; since a coordinate may itself be a variable-length object, this also covers modalities with independently varying lengths, a regime not handled by prior work.
3.1 Generator Matching with an Auxiliary Process
Notation. We use to denote generators acting on augmented state spaces (e.g., including auxiliary variables), and to denote generators acting on the marginal data space.
Setup:
We start by considering a distribution over a space that we want to generate new samples from. Unlike standard approaches that define a generator on , we work on a joint state space , where the auxiliary space records the latent operations that produced a corresponding state in — for example, in Edit Flows the auxiliary process keeps track of the sequence of edit operations used. We require this generator to satisfy the same principle as in Equation 2:
Furthermore, we assume that both and can be parametrized linearly as:
are the same conditions as in Generator Matching (Holderrieth et al., 2024), reviewed in (2) and (3), except now on the extended state space. These conditions allow defining a generative model over . Naively doing so would force us to model , leading to an unnecessary computational overhead. We propose a better alternative, while keeping the benefits of the auxiliary process.
The marginalized Process:
The key insight is that the role of is to make training tractable by removing the ambiguity of many auxiliary sequences producing the same . We therefore construct a generator on that marginalizes while still letting us exploit it during training, as formalized by the following theorem:
Theorem 3.1.
Under the regularity assumptions of Appendix C.2, let satisfy equations (6) and (7) as well as the weak Fokker-Planck equation (1), and let denote the lift of to . Define the generator on by
Then generates the marginal probability path . Furthermore, the generator admits a factorization given by:
where the conditional generator . Additionally, assume that the linear operator from (7) satisfies that for some linear operator , then the generator admits a linear parametrization of the form:
Algorithm 1 Generator Matching with an Auxiliary Process: recipe.
Step 1. Construct a conditional generator generating and satisfying (6);
Step 2. Parametrize through , this is the training target.
Step 3. Parametrize (Theorem 3.1) through
Step 4. Train by minimizing the loss in (11)
Step 5. Sample by simulating the marginalized generator on driven by .
This theorem specifies that given a generator generating and acting on functions of , one can define a new generator acting on functions over that generates the marginals . Furthermore, it provides us with a principled condition in which the resulting generator can be linearly parametrized. A discussion on which processes satisfy such conditions, as well as a comparison to other related auxiliary-process constructions, is provided in Appendix C.2.
The loss function: Naively one could use the generator in the conditional generator matching objective in Equation (5). However, doing so would once again result in having to consider all the possible values of . This would complicate the training as in Campbell et al. (2023) and may be computationally intractable. To address this we use the following theorem:
Theorem 3.2.
(Conditional Generator Matching with Auxiliary Process) Under the assumptions of Theorem 3.1, for any Bregman divergence , possibly depending on , the loss given by
satisfies that .
This theorem yields a tractable training objective and is central to our method. Evaluating the loss only requires sampling from the conditional probability paths of the joint process, which is often straightforward. Training on samples from the joint process—rather than the marginalized one—avoids explicitly summing over the many auxiliary configurations that can correspond to the same observed state. We summarize the framework for training with auxiliary processes in Algorithm 1.
3.2 Designing a variable length generative model
We now instantiate step 1 of Algorithm 1: a conditional generator for variable-length data over an arbitrary state space , which may itself be multimodal (e.g. ). We take an interpolant perspective (Albergo et al., 2023): we first describe what a sample looks like given a data point , and then give the generator that produces it. The description has two steps, illustrated in Figure 1: every coordinate of receives an insertion time, at which it is inserted with a value drawn from an insertion distribution, and from then on it is denoised toward its value.
The variable-length interpolant:
Let . Fix an insertion distribution on , and a single-coordinate conditional probability path , , from to with conditional generator , as in standard Generator Matching. For example, one might have a Gaussian prior, , with the flow matching path . The insertion distribution then does not depend on and need not be learned. Alternatively, one may insert noisy data: take to be the Gaussian path at an intermediate noise level and the same path from that level to the clean value. Now depends on , and the model must additionally learn the insertion distribution; in the extreme case clean values are inserted directly and no denoising is needed.
(i) Insertion times. Fix an increasing schedule with and . Each coordinate receives an independent insertion time with . The auxiliary variable is the ordered set of inserted coordinates , so that and .
(ii) Insertion and denoising. At time , coordinate is inserted with a value drawn from . From then on it is denoised toward over the interval , which we view as the coordinate’s own denoising clock , running from at insertion to at irrespective of . Hence independently for each inserted coordinate: a coordinate inserted late is simply denoised faster, and all are clean at the end. Since every coordinate is denoised on its own time, the construction resembles Diffuse Everything (Rojas et al., 2025), where every modality has its own clock, and from which VL-DE takes its name.
The state is the sequence of inserted coordinates together with their insertion times, . Insertion times are observed at sampling time and the denoiser needs them to know the noise level of each coordinate, so they belong to the data state rather than to the auxiliary variable.
The conditional generator:
The process above is Markov, and its generator has two terms mirroring the two steps:
Insertion is a jump process. Writing for the index in of the -th entry of and for the state obtained by inserting the entry at position , its jump kernel is
with the conventions and ; it inserts in between existing coordinates as in Kim et al. (2025). The kernel has a rate part, which depends on the state only through , and an initialization part , which is known in closed form when it is a prior and must be learned otherwise. Denoising runs the base generator of every inserted coordinate on its clock, whose speed is :
with acting on the -th value only. Since the rate depends on the state only through and denoising never changes , the two steps decouple:
Theorem 3.3.
The process defined by steps (i)–(ii) is Markov with generator (12), and its conditional probability path factorizes as
where are the insertion times contained in . In particular, is sampled by steps (i)–(ii) above, without simulating the process.
The loss function:
By Theorem 3.1, at sampling time the model observes only , i.e. values and insertion times, and outputs the denoising parameters of every coordinate, the expected number of missing coordinates in each gap between consecutive entries, and, when is not a prior, a distribution for the value of the next coordinate inserted in gap . Theorem 3.2 then yields the objective.
Lemma 3.4.
For the generator in (12), the training objective is
where , and as in Theorem 3.3. The -th entry of the denoising target is the base target of at clock time toward , and is the standard Bregman divergence for jump rates (Kim et al., 2025). When is a prior, the initialization term is constant in and is dropped. Other positive time reweightings of the terms are possible (Remark C.11). See Appendix C.3 for a proof.
All targets are read off from the sampled insertion times, with no marginalization over the latent insertion orders that could have produced . The initialization term is the cross-entropy of the learned insertion distribution against the true one; it plays the role of the unmasking loss in masked diffusion and is only needed when coordinates are inserted as noisy data.
Extensions:
The recipe is modular. Other insertion kernels, e.g. auto-regressive or block insertion, may replace (13) (Appendix D.1). Inserting mask tokens recovers FlexMDM (Kim et al., 2025), and inserting clean values with substitutions recovers Edit Flows (Havasi et al., 2025). Deletions follow by augmenting with junk coordinates whose lifetime ends before , and Theorem 3.3 and Lemma 3.4 extend naturally (Appendix D.2). Finally, may itself be a variable-length space, so modalities with independently varying lengths are handled with one clock per modality as in Diffuse Everything, unlike previous approaches which require equal lengths.
3.3 Higher-Order Sampling via Autonomized Operator Splitting
Higher-order integrators can substantially reduce the number of sampling steps in diffusion models (Karras et al., 2022; Zhang et al., 2022; Lu et al., 2022; Ren et al., 2025a, e.g.,). In multimodal or variable-length settings, however, operations like insertion alter the dynamics and make standard higher-order samplers hard to apply directly. Existing methods therefore often rely on Euler discretizations with many steps (e.g., Billera et al. (2025) uses ).
To address this, we design a sampler based on autonomized operator splitting. While motivated by our framework, the method applies more generally to time-dependent Markov generators, so we present the method in its full generality. Consider a time-dependent generator of the form .
If there were no time dependence, high-order integration could be accomplished via operator splitting (McLachlan and Quispel, 2002) based on and . However, the non-autonomy, or more precisely, the lack of commutativity in time (, ), is what makes accurate numerical integration nontrivial as the exact flow maps induced by and are no longer tractable. We address this by introducing auxiliary time variables and in addition to and split the dynamics in a very specific way:
Note the split systems and both became autonomous system because is a constant in A dynamics and is a constant in B dynamics, and their analytical solutions are respectively given by the following flow maps:
Second-order sampling.
Applying Strang splitting yields the second-order scheme
Naively, this requires three neural network evaluations per step. However, consecutive steps contain adjacent operations, which can be merged using the semigroup property:
This reduces the cost from three to two neural network evaluations per step. Pseudocode for both variants is given in Listings 5 and 6 in Appendix D.3.
Applying this to variable length generation:
In our setting we set to be the denoising operator, while corresponds to the insertion operator. This decouples the insertion of new elements from their refinement. In mixed-length multimodal settings we follow this same convention.
4 Experiments
We evaluate VL-DE on layout generation, where each element is a discrete category and a continuous bounding box and the number of elements varies. Prior layout models use heuristics for both of these challenges, such as quantization of the coordinates or embedding the categories into the Euclidean space (Zhang et al., 2023; Guerreiro et al., 2024), and receive the number of elements as input or pad to a fixed number of slots. On the other hand, VL-DE generates the length and keeps each modality in its native space. We evaluate it unconditionally on RICO (Deka et al., 2017) and PubLayNet (Zhong et al., 2019), and on CGL (Zhou et al., 2022), where the length must be inferred from the canvas; a demonstration where each box includes variable length text is included in Appendix E.5, other experimental details are in Appendix E. We further evaluate on 3D molecule generation on QM9 (Section 4.3), and a new toy problem of arithmetic equations,(Section 4.4).
Table 1: Unconditional layout generation. Left: layout models grouped by how they handle the number of elements (numbers from Guerreiro et al. (2024); retrained there). Right: methods that generate the number of elements, on RICO, grouped by how they represent boxes. : closer to the validation data is better. Protocol and sampling steps in Appendix E.1.
| RICO | PubLayNet | ||||||
|---|---|---|---|---|---|---|---|
| Model | FID | Ali | Ove | FID | Ali | Ove | |
| Fixed number of slots, padded with an empty class | |||||||
| LayoutDM∗ | 4.43 | 0.143 | 0.584 | 36.85 | 0.180 | 0.132 | |
| LayoutDiffusion | 2.49 | 0.069 | 0.502 | 8.63 | 0.065 | 0.003 | |
| Number of elements given as input | |||||||
| DLT∗ | 13.02 | 0.271 | 0.571 | 12.70 | 0.117 | 0.036 | |
| LayoutFlow | 2.37 | 0.150 | 0.498 | 8.87 | 0.057 | 0.009 | |
| Number of elements generated | |||||||
| VL-DE (ours) | 2.32 | 0.253 | 0.547 | 8.45 | 0.130 | 0.014 | |
| Validation data | 2.10 | 0.093 | 0.466 | 8.10 | 0.022 | 0.003 |
| RICO | |||
|---|---|---|---|
| Method | FID | Ali | Ove |
| Discrete: boxes quantized to tokens | |||
| Edit Flows | 6.43 | 0.191 | 0.570 |
| FlexMDM | 8.41 | 0.188 | 0.606 |
| Multimodal: continuous boxes | |||
| OneFlow | 3.31 | 0.293 | 0.499 |
| Branching Flows | 12.09 | 0.247 | 0.643 |
| Multimodal, arbitrary state space | |||
| VL-DE (ours) | 2.32 | 0.253 | 0.547 |
| Validation data | 2.10 | 0.093 | 0.466 |
4.1 Layout Generation on RICO and PubLayNet
We set with a mask prior for the category and Gaussian noise as the box prior (Figure 1), and use an insertion schedule that only inserts elements during ; ablations of both choices can be found in Appendix E.2.
Setup. We follow the training and evaluation protocol of LayoutFlow (Guerreiro et al., 2024) on RICO (Deka et al., 2017), K mobile UI layouts with categories, and PubLayNet (Zhong et al., 2019), K document layouts with categories. We report FID in the feature space of Zhang et al. (2023), together with the geometric statistics Alignment and Overlap, whose ideal value is that of the validation data. The standard conditional tasks, generation given the categories (Gen-Type) or the categories and sizes (Gen-TypeSize), completion and refinement, are generation modes of Section 3.2 and need no task-specific training. Other details can be found in Appendix E.1.
VL-DE matches fixed-length approaches. Table 1 (left) compares VL-DE with the layout generation literature on RICO and PubLayNet. VL-DE neither receives the length nor pads, yet it matches the best of these models on RICO, reaching a new state-of-the-art FID of against for LayoutFlow. Unselected samples of every method are shown in Figure 8 (Appendix E.1).
Comparison against other variable-length methods. A natural question is how existing variable-length approaches perform on this task. We test this by running FlexMDM and Edit Flows on the tokenized problem of Chai et al. (2023), and OneFlow and Branching Flows on the multimodal setup; details are in Appendix E.1. Table 1 (right) shows that VL-DE outperforms all of them, with OneFlow close behind. We attribute this to the native multimodal dynamics of our method, in which each box evolves jointly with its category rather than separately as in OneFlow. Branching Flows severely underperforms here, as its duplication dynamics may not be well suited to layout generation.
Figure 2: Operator-splitting samplers on RICO (Mean over sampling seeds, error bars one standard deviation). (a) Per step, the direct split is far ahead of Euler below steps. (b) Per network evaluation, Euler is the most economical sampler at every budget.
Our samplers improve generation at low steps: Figure 2 compares the samplers of Section 3.3 on the learned-initialization model for to steps. Per step, the direct split reaches an FID of at steps and at , against and for Euler, and the two match from steps on. The staggered variant does not retain this gain. Per NFE, Euler is best at every budget, so the splitting samplers pay off when the number of steps rather than the number of evaluations is the bottleneck (Convergence analysis in (Appendix D.4)). We report all other results with Euler for a fair comparison.
4.2 Content-Aware Layout Generation on CGL
Unconditionally, the length distribution can be estimated from the data itself; the conditional setup does not, for instance, there may be a single example per condition, which makes the length much harder to model. We study this on content-aware layout generation, where the input is a poster canvas and the output its layout. Our goal is not the best content-aware generator but a comparison of how length can be modeled: sampling it from the training histogram, which ignores the canvas; padding to a fixed number of slots with an empty class (Zhou et al., 2022; Li et al., 2026); autoregressive decoding with an end token (Horita et al., 2024); and our insertion based approach.
Setup. We use CGL (Zhou et al., 2022) with the splits, inpainted canvases, saliency maps and evaluator released by RALF (Horita et al., 2024), and report their metrics on the test split: FID, saliency occlusion (Occ), strict underlay effectiveness (Unds) and overlay (Ove) in Table 2, with unreadability and loose underlay in Appendix E.4. Experimental details are described in Appendix E.4.
Length mechanism FID Occ Und Ove Histogram (canvas-blind) 1.63 0.318 0.877 0.006 Padding + empty class 4.02 0.144 0.774 0.013 Autoregressive (RALF w/o retr.) 2.89 0.125 0.917 0.011 Insertion (VL-DE, ours) 1.53 0.148 0.950 0.0097 RALF + retrieval (Horita et al., 2024) 1.32 0.126 0.978 0.0042 Test data 0.80 0.125 0.988 0.0003
Table 2: Content-aware layout generation on CGL VL-DE outperforms other base methods in conditional generation. Full metrics, in Table 11; samples in Figure 9.
Figure 3: Generated count distributions on CGL VL-DE better models the length distribution.
VL-DE better models the length and the sample distribution. Table 2 shows the results for the given task, among the existing methods VL-DE obtains the lowest FID and ranks highly in other metrics. Furthermore, Figure 3 shows the histograms for each method where we observe that VL-DE is the best at modeling the length, proving the robustness of our method on the conditional setting.
4.3 Molecule Generation on QM9
Molecules are a variable-length set of atoms, with a 3D position and a discrete element type. On QM9 (Ramakrishnan et al., 2014) we set : the 3D positions are inserted from a Gaussian distribution, while the atom type is drawn from a learned insertion distribution which is not denoised further. We use the same parametrization as in Campbell et al. (2023); Satorras et al. (2021) and the same insertion schedule as in the layouts experiments.
Setup. We follow the protocol of Branching Flows (Billera et al., 2025): K generated molecules are compared with K reference molecules using the Kolmogorov Smirnov statistic (KS) for several distribution metrics and a binned multivariate Jensen–Shannon divergence (JSDm) over their joint distribution. For sampling we use Euler steps, as in their evaluation. Details are in Appendix E.6.
Results. Table 3 shows that VL-DE is on par with Branching Flows and the fixed-length ADiT (Joshi et al., 2025), which is given the number of atoms, and is far ahead of Transdimensional Jumps (Campbell et al., 2023). Demonstrating that VL-DE extends naturally to other domains.
Table 3: Unconditional molecule generation on QM9. Multivariate Jensen–Shannon divergence (JSDm, lower is better), KS distance to the data (higher is better) and fractions of valid and unique molecules; K samples. Baselines from Billera et al. (2025);
Model JSDm #Atoms HBD HBA LogP Weight #C #H #O #N #F Valid Unique Avg. KS Models with length access ADiT 0.086 0.988 0.990 0.923 0.976 0.944 0.978 0.989 0.945 0.973 0.999 0.985 0.979 0.971 Multimodal FM 0.063 0.993 0.981 0.964 0.967 0.931 0.988 0.985 0.988 0.980 0.996 0.989 0.965 0.977 Variable length models Transdimensional Jumps 0.120 0.870 0.866 0.832 0.833 0.883 0.815 0.856 0.925 0.855 0.968 0.978 0.986 0.870 Branching Flows 0.080 0.990 0.982 0.948 0.952 0.902 0.984 0.979 0.981 0.978 0.997 0.987 0.973 0.969 VL-DE (ours) 0.082 0.943 0.987 0.987 0.989 0.918 0.987 0.950 0.993 0.996 0.999 0.970 0.979 0.975
4.4 Arithmetic Equations: Modalities of Different Lengths
We introduce a new toy problem of arithmetic equations Figure 4, it consists of a sequence of symbols and a sequence of numbers that satisfy an equality condition, each with different length. Under this setup the symbols and numbers are separate sequences that have a coupling induced by the data, and the goal is to generate both of them without leveraging extra knowledge.
Setup. We generate M training equations from random arithmetic operations whose two sides evaluate to the same value; the generation procedure, model and training details are in Appendix E.7. We sample equations with Euler steps and measure whether their lengths are consistent with the mathematical rules and the discrepancy between both sides of the equality.
Results. VL-DE closely matches the joint distribution of the number of numbers and of parenthesis groups (Figure 4b,c), demonstrating that VL-DE can learn the coupling between lengths. Furthermore, half of the generated equations have a discrepancy smaller than . Considering that small differences in products can result in big discrepancies, this is proves that VL-DE can learn the true distribution (Figure 4d). We also present an ablation against an interleaved model in Appendix E.7.

Figure 4: Arithmetic equations. (a) The symbols and numbers of an equation; the number of symbols is set by the numbers and the parenthesis groups. (b, c) Joint distribution of these counts for the test data and samples of VL-DE. (d) left right of the valid samples of VL-DE.
5 Limitations and Future Work
We highlight a few limitations of the current work. First, while the framework supports arbitrarily many modalities, all of our experiments use two; scaling to substantially more modalities is an interesting direction. Beyond these, VL-DE points to several broader directions: richer auxiliary-process designs (e.g., kernels that mix insertion with reordering or substitutions), and applying the autonomized operator-splitting sampler to non-autonomous generative models beyond the variable-length setting. On layouts, the sampler’s gain per step does not carry over to a gain per network evaluation; settings where one operator is cheap to evaluate, such as a separate insertion network, or caching mechanisms, could turn it into a significant gain in cost.
References
Michael S Albergo, Nicholas M Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. arXiv preprint arXiv:2303.08797, 2023.
Marianne Arriola, Aaron Gokaslan, Justin T Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sekhar Sahoo, and Volodymyr Kuleshov. Block diffusion: Interpolating between autoregressive and diffusion language models. arXiv preprint arXiv:2503.09573, 2025.
Joe Benton, Yuyang Shi, Valentin De Bortoli, George Deligiannidis, and Arnaud Doucet. From denoising diffusions to denoising markov models. Journal of the Royal Statistical Society Series B: Statistical Methodology, 86(2):286–301, 2024.
Lukas Billera, Hedwig Nora Nordlinder, Jack Collier Ryder, Anton Oresten, Aron Stålmarck, Theodor Mosetti Björk, and Ben Murrell. Branching flows: Discrete, continuous, and manifold flow matching with splits and deletions. arXiv preprint arXiv:2511.09465, 2025.
Andrew Campbell, Joe Benton, Valentin De Bortoli, Thomas Rainforth, George Deligiannidis, and Arnaud Doucet. A continuous time framework for discrete denoising models. Advances in Neural Information Processing Systems, 35:28266–28279, 2022.
Andrew Campbell, William Harvey, Christian Weilbach, Valentin De Bortoli, Thomas Rainforth, and Arnaud Doucet. Trans-dimensional generative modeling via jump diffusion models. Advances in Neural Information Processing Systems, 36:42217–42257, 2023.
Andrew Campbell, Jason Yim, Regina Barzilay, Tom Rainforth, and Tommi Jaakkola. Generative flows on discrete state-spaces: Enabling multimodal flows with applications to protein co-design. arXiv preprint arXiv:2402.04997, 2024.
Shang Chai, Liansheng Zhuang, and Fengying Yan. Layoutdm: Transformer-based diffusion model for layout generation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023.
Ricky TQ Chen and Yaron Lipman. Flow matching on general geometries. In ICLR, 2024.
Valentin De Bortoli, Emile Mathieu, Michael Hutchinson, James Thornton, Yee Whye Teh, and Arnaud Doucet. Riemannian score-based generative modelling. Advances in neural information processing systems, 35:2406–2422, 2022.
Biplab Deka, Zifeng Huang, Chad Franzen, Joshua Hibschman, Daniel Afergan, Yang Li, Jeffrey Nichols, and Ranjitha Kumar. Rico: A mobile app dataset for building data-driven design applications. In ACM Symposium on User Interface Software and Technology (UIST), 2017.
Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al. Scaling rectified flow transformers for high-resolution image synthesis. In Forty-first international conference on machine learning, 2024.
Julian Jorge Andrade Guerreiro, Naoto Inoue, Kento Masui, Mayu Otani, and Hideki Nakayama. Layoutflow: Flow matching for layout generation. In European Conference on Computer Vision (ECCV), 2024.
Marton Havasi, Brian Karrer, Itai Gat, and Ricky TQ Chen. Edit flows: Flow matching with edit operations. arXiv preprint arXiv:2506.09018, 2025.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.
Peter Holderrieth, Marton Havasi, Jason Yim, Neta Shaul, Itai Gat, Tommi Jaakkola, Brian Karrer, Ricky TQ Chen, and Yaron Lipman. Generator matching: Generative modeling with arbitrary markov processes. arXiv preprint arXiv:2410.20587, 2024.
Daichi Horita, Naoto Inoue, Kotaro Kikuchi, Kota Yamaguchi, and Kiyoharu Aizawa. Retrieval-augmented layout transformer for content-aware layout generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024.
Chin-Wei Huang, Milad Aghajohari, Joey Bose, Prakash Panangaden, and Aaron C Courville. Riemannian diffusion models. Advances in Neural Information Processing Systems, 35:2750–2761, 2022.
Zhaoyun Jiang, Jiaqi Guo, Shizhao Sun, Huayu Deng, Zhongkai Wu, Vuksan Mijovic, Zijiang James Yang, Jian-Guang Lou, and Dongmei Zhang. Layoutformer++: Conditional graphic layout generation via constraint serialization and decoding space restriction. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023.
Chaitanya K. Joshi, Xiang Fu, Yi-Lun Liao, Vahe Gharakhanyan, Benjamin Kurt Miller, Anuroop Sriram, and Zachary W. Ulissi. All-atom diffusion transformers: unified generative modelling of molecules and materials. In Proceedings of the 42nd International Conference on Machine Learning, ICML’25. JMLR.org, 2025.
Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. Advances in neural information processing systems, 35:26565–26577, 2022.
Jaeyeon Kim, Lee Cheuk-Kit, Carles Domingo-Enrich, Yilun Du, Sham Kakade, Timothy Ngotiaoco, Sitan Chen, and Michael Albergo. Any-order flexible length masked diffusion. arXiv preprint arXiv:2509.01025, 2025.
Yu Li, Yifan Chen, Gongye Liu, Fei Yin, Qingyan Bai, Jie Wu, Hongfa Wang, Ruihang Chu, and Yujiu Yang. Layoutdit: exploring content-graphic balance in layout generation with diffusion transformer. IEEE Transactions on Multimedia, 2026.
Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022.
Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. arXiv preprint arXiv:2209.03003, 2022.
Aaron Lou, Chenlin Meng, and Stefano Ermon. Discrete diffusion modeling by estimating the ratios of the data distribution. arXiv preprint arXiv:2310.16834, 2023.
Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan Li, and Jun Zhu. Dpm-solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps. Advances in neural information processing systems, 35:5775–5787, 2022.
Robert I McLachlan and G Reinout W Quispel. Splitting methods. Acta Numerica, 11:341–434, 2002.
John Nguyen, Marton Havasi, Tariq Berrada, Luke Zettlemoyer, and Ricky TQ Chen. Oneflow: Concurrent mixed-modal and interleaved generation with edit flows. arXiv preprint arXiv:2510.03506, 2025.
Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024.
Jingyang Ou, Shen Nie, Kaiwen Xue, Fengqi Zhu, Jiacheng Sun, Zhenguo Li, and Chongxuan Li. Your absorbing discrete diffusion secretly models the conditional distributions of clean data. arXiv preprint arXiv:2406.03736, 2024.
Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific data, 1(1):140022, 2014.
Yinuo Ren, Haoxuan Chen, Yuchen Zhu, Wei Guo, Yongxin Chen, Grant M Rotskoff, Molei Tao, and Lexing Ying. Fast solvers for discrete diffusion models: Theory and applications of high-order algorithms. NeurIPS, 2025a.
Yinuo Ren, Grant M Rotskoff, and Lexing Ying. A unified approach to analysis and design of denoising markov models. arXiv preprint arXiv:2504.01938, 2025b.
Kevin Rojas, Yuchen Zhu, Sichen Zhu, Felix X-F Ye, and Molei Tao. Diffuse everything: Multimodal diffusion models on arbitrary state spaces. arXiv preprint arXiv:2506.07903, 2025.
Subham S Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models. Advances in Neural Information Processing Systems, 37:130136–130184, 2024.
Vıctor Garcia Satorras, Emiel Hoogeboom, and Max Welling. E (n) equivariant graph neural networks. In International conference on machine learning, pages 9323–9332. PMLR, 2021.
Jiaxin Shi, Kehang Han, Zhe Wang, Arnaud Doucet, and Michalis Titsias. Simplified and generalized masked diffusion for discrete data. Advances in neural information processing systems, 37:103131–103167, 2024.
Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456, 2020.
Kota Yamaguchi. Canvasvae: Learning to generate vector graphic documents. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pages 5461–5469. IEEE, 2021.
Junyi Zhang, Jiaqi Guo, Shizhao Sun, Jian-Guang Lou, and Dongmei Zhang. Layoutdiffusion: Improving graphic layout generation by discrete diffusion probabilistic models. In IEEE/CVF International Conference on Computer Vision (ICCV), 2023.
Qinsheng Zhang, Molei Tao, and Yongxin Chen. gddim: Generalized denoising diffusion implicit models. In The Eleventh International Conference on Learning Representations, 2022. URL https://arxiv.org/abs/2206.05564.
Xu Zhong, Jianbin Tang, and Antonio Jimeno Yepes. Publaynet: largest dataset ever for document layout analysis. In International Conference on Document Analysis and Recognition (ICDAR), 2019.
Chunting Zhou, LILI YU, Arun Babu, Kushal Tirumala, Michihiro Yasunaga, Leonid Shamis, Jacob Kahn, Xuezhe Ma, Luke Zettlemoyer, and Omer Levy. Transfusion: Predict the next token and diffuse images with one multi-modal model. In The Thirteenth International Conference on Learning Representations, 2025.
Min Zhou, Chenchen Xu, Ye Ma, Tiezheng Ge, Yuning Jiang, and Weiwei Xu. Composition-aware graphic layout GAN for visual-textual presentation designs. In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence (IJCAI), 2022.
Xudong Zhou, Guozheng Li, and Chi Harold Liu. Layoutgd: Content-aware layout generation via graph-enhanced diffusion model. In Proceedings of the 2026 International Conference on Multimedia Retrieval, pages 1832–1841, 2026.
Yuchen Zhu, Tianrong Chen, Lingkai Kong, Evangelos Theodorou, and Molei Tao. Trivialized momentum facilitates diffusion generative modeling on lie groups. In ICLR, 2025.
Appendix A Diffuse Everything within Generator Matching
Diffuse Everything was formulated in the Denoising Markov Models framework [Benton et al., 2024, Ren et al., 2025b], which only admits generative processes that reverse a forward noising process. Generator Matching [Holderrieth et al., 2024] imposes no such requirement, so it covers a strictly larger class of generators, and the construction of Diffuse Everything carries over to it unchanged: each modality receives its own generator and its own time variable, and the joint generator is their sum.
The decoupled time variables only change how training times are sampled. Drawing a separate time per modality on paired data trains a single model for both unconditional and conditional generation, since any modality can be held at at sampling time. Drawing a shared time gives up conditional generation but trains the model only on the diagonal it uses for unconditional sampling. Unconditionally, a model trained with a shared time therefore behaves like one trained directly with Generator Matching, whereas decoupled times trade some unconditional quality for the additional generation modes.
Appendix B Related Works
We organize related work into unimodal variable-length methods, interleaving-based multimodal methods, and general-state-space multimodal methods, and discuss how each relates to VL-DE. Table 4 summarizes the comparison.
Branching Flows The work most closely related to ours is Branching Flows Billera et al. [2025]. They propose a general framework, similar in spirit to ours, for modeling variable-length data. Unlike our approach, variable length is handled through explicit splits during the generation process. Each resulting branch is then denoised independently until the data distribution is recovered. A key advantage of this strategy is that it avoids the need to explicitly model the distribution of marginals at intermediate times t. However, this comes at the cost of requiring more aggressive velocity fields, which can become problematic when neighboring elements of the data distribution differ significantly in magnitude. In contrast, this approach performs particularly well in settings where neighboring points are close to each other, such as molecule generation. Like our method, Branching Flows are agnostic to the data modality (e.g., discrete, Euclidean, or manifold-valued data) and can be paired with arbitrary flow models.
Flex MDM Another relevant work that inspired our approach is Flex MDM Kim et al. [2025], which addresses variable-length discrete data using mask diffusion models. Their method introduces masked token insertions, which are subsequently unmasked following the standard mask diffusion framework. Their approach corresponds to a special case of our setting when is trivial and random insertions are performed on discrete data. From this perspective, our method recovers the benefits of FlexMDM while extending it to other data modalities as well as more general classes of flow models.
Transdimensional Diffusion Campbell et al. [2023] is one of the earlier works on modeling variable length data using diffusion models. It models variable length euclidean data by using jump diffusions. A forward process is designed to delete dimensions, while the backwards process is learned to insert dimensions. A key difference from our approach is that this method does not leverage an auxiliary process, resulting in an objective that involves a complex mixture over the data distribution. This significantly complicates training and, in practice, necessitates simplifying assumptions that introduce discrepancies between the theoretical objective and the implemented training procedure. Moreover, insertions are performed directly in the data space rather than via mask tokens, as in our method. While this avoids the need for a separate insertion head, it further increases the complexity of the learning objective. In this sense, both our approach and Branching Flows benefit from a simpler and more structured treatment of insertions.
Edit Flows Havasi et al. [2025] propose another method for modeling variable length in discrete spaces. They combine substitutions, insertions and deletions to model the data distribution. The combination of insertions and deletions allows modeling the length in a flexible manner. Inserted elements follow the marginal distribution at a given time and can subsequently be refined through substitutions, similar in spirit to our denoising of inserted coordinates.
OneFlow Nguyen et al. [2025] extends the Edit Flows framework to Euclidean data by inserting an image token equipped with its own time variable; after insertion, a noise variable associated with the token is progressively denoised. While this extension enables certain multimodal settings, it imposes structural constraints: the modalities must be paired one-to-one within a single sequence, and the data is restricted to a sequential insertion-and-refinement composition.
Transfusion Zhou et al. [2025] interleaves discrete tokens and continuous values into a single sequence and applies a unified transformer that handles each position with the appropriate per-token loss (cross-entropy for discrete, denoising for continuous). Like One Flow, it is tied to the specific pairing of one discrete and one continuous modality and does not extend naturally to general state spaces or to more than two modalities. Its variable-length behaviour is also inherited from the underlying autoregressive backbone rather than by defining a stochastic process as the other approaches considered here.
Table 4: Comparison of methods for modeling variable-length data. Inserted object: what is added when the dimensionality grows. Modalities: what state spaces are supported. Arbitrary denoiser: whether the per-coordinate dynamics can be any generator on (as opposed to a fixed mask-diffusion or noisy-data scheme). Different per-modality length: whether each modality can carry its own independent length.
| Method | Inserted Object | Modalities | Arbitrary denoiser | Different per-modality length |
|---|---|---|---|---|
| Flex MDM | Mask tokens | Discrete | × | × |
| Transdimensional Diffusion | Noisy data | Euclidean | × | × |
| Edit Flows | Noisy data | Discrete | × | × |
| OneFlow | Noisy data | Euclidean + Discrete | × | × |
| Transfusion | Clean Tokens / Noisy Images | Euclidean + Discrete | × | × |
| Branching Flows | Duplicates | General | ✓ | × |
| VL-DE (Ours) | Arbitrary | General | ✓ | ✓ |
Appendix C Background and Proofs
C.1 Background on Generators
In this section we provide some definitions regarding generators of Markov processes.
Definition C.1.
(Generator of a process) Given a time homogenous process we can define the generator as:
for in the domain of .
In practice it is common to consider processes that are not time homogenous, for this reason it is useful to consider an augmented process , this process also has an augmented generator that satisfies the relation:
where is the generator at time . A notable property of generators is that it allows us to define an equation for the time evolution of the density of our process, to do so we need the notion of the adjoint operator.
Definition C.2.
(Adjoint Operator) We define the adjoint operator with respect to the inner product on as the unique operator satisfying:
Given the adjoint operator we can write down the Kolmogorov Forward Equation, otherwise known as Fokker-Planck equation.
Theorem C.3.
(Fokker-Planck Equation) The marginal density of a process with generator satisfies:
Alternatively, in its weak form the equation above becomes:
for all test functions . For a proof refer to Theorem A.23 of Ren et al. [2025b].
For jump components of the process, we specify the dynamics through a jump kernel , which gives the transition rate from state to state . The associated generator acts as
or analogously as an integral when the state space is continuous.
C.2 Auxiliary Generator Matching Proofs
The theorems in this section hold under the following assumptions.
Assumption C.4 (Joint process).
is a Markov process on with marginals and generator . For every test function (Assumption C.5), the map is differentiable and satisfies the weak Fokker-Planck equation (21). This holds in the setting of Generator Matching, i.e. for Feller processes with finitely many expected jumps on and with and continuous [Holderrieth et al., 2024, Appendix A.2, Assumptions 1–4].
Assumption C.5 (Test functions).
We call a test function of if lies in the domain of and . The domain of is the class of functions such that is a test function of . We assume that determines probability measures on : if and only if for all [Holderrieth et al., 2024, Appendix A.2, Assumption 3].
Assumption C.6 (Integrable targets).
The conditional target is integrable under the joint law of the data and the process at time :
By Fubini’s theorem, the conditional expectation then exists for -almost every . This assumption is only needed for the linear parametrization.
We start by giving the proof of theorem 3.1.
Proof.
We first show that generates by showing it satisfies the Fokker Planck equation:
In the third line we have used that by Assumption C.5, so by Fubini’s theorem is integrable given for -almost every ; hence is well defined -almost everywhere and the integrals can be split. This proves the first part of the theorem. The factorization principle follows from the representation above, equation (6) and the tower property:
For the linear parametrization, the conditional parametrization in (7) and the assumption give . The first argument does not depend on , so by the factorization above, linearity of the pairing and Assumption C.6,
Notice that no extra assumption is needed since is defined this way, and the quantity exists by the integrability of . ∎
Remark C.7.
The statement that generates means that solves the weak Fokker-Planck equation of for all . Simulating recovers if is the generator of a Markov process for which the weak Fokker-Planck equation identifies the path [Holderrieth et al., 2024, Appendix A.2, Assumption 5]; in that case, this process started from has marginals .
Remark C.8.
The theorem above gives us a direct construction of how to compute a marginalized process, as well as sufficient conditions under which such process can be linearized, so that it can be learnable under the framework of generator matching.
Remark C.9.
A similar theorem in Billera et al. [2025] was used to construct their process. We must emphasize that the theorems are different. Intuitively, their approach allows for conditioning on a discrete process, on the other hand, instead of conditioning on a process, we consider a joint process over an arbitrary state space that we marginalize over. Mathematically, Billera et al. [2025] assume that (in our notation) for each there exists a generator such that:
That is, it assumes that there exists a generator for the process under a fixed . On the other hand, we assume that we have a generator over a joint space and directly construct a process that is learnable through generator matching, which simplifies the design of the auxiliary process.
Remark C.10.
We would like to comment on the assumption of . This is not restrictive as it corresponds to operators such that affects coordinates locally, while the coupling between variables is captured by the function . This class admits coupled dynamics—including flows, diffusions, and joint jumps whose coefficients depend on latent variables—but excludes operators that mix coordinates. For example generators of the form do not satisfy this assumption. Under this assumption, marginalization of the variable preserves the operator structure.
We now present the proof that Bregman divergences are a suitable training objective as in Theorem 3.2.
Proof.
By Theorem 3.1, the marginal generator is parametrized as , where the target is defined by
Let be the Bregman divergence generated by a convex function and consider parameters for which the loss is finite,
Then
Substituting the conditional expectation representation of and applying the tower property yields
where
is independent of .
Therefore,
with independent of and the loss functions have the same gradients. ∎
Remark C.11 (Reweighting).
If the target has several components, , and are Bregman divergences generated by , then for any weights the sum is the Bregman divergence generated by the convex function . By Theorem 3.2, any positive time-dependent reweighting of the terms of the conditional loss therefore has the same gradient as the correspondingly reweighted marginal loss.
C.3 Proofs for our Process
In the interpolant construction of Section 3.2 the coordinates do not interact: each one waits, is inserted, and is then denoised, independently of the others. We therefore first describe a single coordinate and then combine the coordinates to prove Theorem 3.3. Throughout, is continuously differentiable on and denotes its hazard rate.
Lemma C.12 (One coordinate).
Fix . Let be a random time with and, independently of , let be a Markov process with right-continuous paths, generator and , so that . Define the process
with values in , where stands for “not yet inserted”. Then:
(a) with probability , and otherwise has density on . (b) is a Markov process and, whenever , its generator is given by
Proof.
(a) We have and has density . Given , the value has law , since is independent of .
(b) Markov property. If , the past of only reveals that , which is the same information as . If , the insertion time is part of the state and, since is Markov and independent of , the future of the value depends on its past only through . In both cases the future of depends on the past through alone.
Generator. If , the coordinate is inserted in with probability
in which case converges to as by right-continuity, with . This gives the first formula. If , the value is the process run on the clock , so its generator is that of multiplied by the speed of the clock, . This gives the second formula. ∎
Proof of Theorem 3.3.
Fix , so that . Let be independent, where is the process of Lemma C.12 with and insertion time . Steps (i)–(ii) of Section 3.2 define exactly
that is, lists the inserted coordinates in order and records their indices. The pair and the tuple determine each other, so they are two ways of writing the same state.
Independent Markov processes are jointly Markov. Their joint law is the product of the individual laws and, by the product rule, their generator is the sum of the individual generators, each acting on its own coordinate. Hence is Markov, and it remains to write this law and this generator in terms of .
By Lemma C.12(a), every contributes a factor and every a factor , so
which is (15).
Generator. By Lemma C.12(b), every contributes the base generator of its value at speed , and the sum of these terms is in (14). Every contributes a jump of from to at rate , with . In terms of , this single jump inserts the entry into at the position with and adds to . The sum of these terms is therefore
the jump generator with kernel (13). ∎
Finally, we prove Lemma 3.4:
Proof.
Recall that the conditional generator is , and that each component admits a linear parametrization in the sense of (7). Applying Theorem 3.2 yields the objective
and since the generator decomposes additively, the feature representation, and hence the loss, separates into a denoising and an insertion contribution. The denoising term is .
The insertion component is a jump process. Write and for the number of missing coordinates in gap . On , the state reached by inserting a missing coordinate of gap with value is , which does not depend on . Summing the kernel (13) over these coordinates, the conditional jump measure out of gap is
with total mass . We parametrize it as with normalized, and take as Bregman divergence the generalized KL between jump measures, up to terms independent of , for a reference measure . Substituting,
where does not depend on . The first term is the insertion loss and the second the initialization loss; when is a prior, is fixed and the second term is constant. Summing over gaps, Theorem 3.2 gives the stated objective with the insertion and initialization terms multiplied by . Dividing these terms by is a positive time reweighting, so by Remark C.11 the stated objective is again a Bregman divergence loss and Theorem 3.2 applies to it directly. ∎
Appendix D Design choices for our method
D.1 Insertion Methods
As discussed in Section 3.2, the insertion kernel only adds positions to (never removes them) and can be specified independently of the denoising dynamics. All variants below share the same global schedule , which controls the rate at which insertions happen; they differ in which positions receive the next insertion. The list below is illustrative, not exhaustive: any rate matrix that monotonically grows to the target size yields a valid variable-length generator, and the choice can be tailored to the structure of the data.
Random insertion. The default kernel from Equation (12) of the main body, repeated here for reference:
with boundary conventions and . The main appeal is order-agnosticism: the model can fill in the structure in whatever order best matches the data.
Auto-regressive insertion. Alternatively, one can restrict insertions to the right end of the current sequence, recovering an auto-regressive growth pattern:
The factor scales the rate by the remaining length, so the expected number of insertions tracks the global schedule regardless of how far the sequence has grown. This kernel is natural when the underlying data has an inherent left-to-right ordering.
Block insertion. Both kernels above can be extended to insert several mask tokens at once, which is useful when the data evolves in fixed-size groups — for example, D coordinates that come in blocks of three, or block-wise schemes like Block Diffusion Arriola et al. [2025].
D.2 Deletions via Junk Augmentation
The recipe of Section 3.2 extends to processes that can also delete coordinates, through the standard procedure that we outline here. The idea is to augment each data point with junk coordinates that are deleted before , so that the model learns which coordinates do not belong. We spell out the construction and show that Theorem 3.3 and Lemma 3.4 carry over unchanged.
Augmentation.
Given , sample , where is obtained by inserting junk values into and labels each slot; write . Removing the slots in from recovers . The augmentation distribution is a design choice; a natural default places a Poisson number of junk slots uniformly among the gaps of and draws their values from the marginal distribution of coordinate values, so that junk cannot be recognized from its value alone. The case recovers the insertion-only process of the main text.
Lifetimes.
Fix increasing schedules and with and . Each slot receives an insertion time with , as in the main text, and each junk slot additionally receives a deletion time with ; real slots have . Slot is alive during . The auxiliary variable records the alive slots and the slots already deleted,
and slots in neither set have not been inserted yet. Since , at every real slot is alive and every junk slot has been deleted, so the process ends at . While alive, every slot follows the base interpolant on its local clock exactly as in the main text, ; junk slots are denoised toward their junk value, so in isolation they are statistically indistinguishable from real ones and can only be identified through their context.
Generator.
The conditional generator gains a deletion term,
Write , let denote the state after inserting slot at position with value and clock , and let denote the state after removing the -th coordinate together with its clock. Insertion uses the kernel (13) restricted to slots that have not been deleted, and deletion fires only on junk:
A junk slot inserted at time survives until time with probability , which vanishes at , and a deleted slot is never re-inserted. The denoising generator is (14) with targets . Real and junk slots are inserted through the same kernel, so the insertion mechanism cannot distinguish them.
D.3 Sampler Pseudocode
We provide pseudocode for the two higher-order sampler variants from Section 3.3. ⬇ def sample(x, N): # x: initial condition, N: num steps h = 1 / N t1 = 0 t2 = 0 x, t2 = flow_A(x, t1, h / 2), h/2 for n in range(N): x = flow_B(x, t2, h) t1 += h dt = h if n != N-1 else h/2 x = flow_A(x, t1, dt) t2 += dt return x Staggered operator-splitting sampler (NFEs = 2). ⬇ def sample(x, N): # x: initial condition, N: num steps h = 1 / N t1 = 0 t2 = 0 for n in range(N): x = flow_A(x, t1, h / 2) t2 += h / 2 x = flow_B(x, t2, h) t1 += h x = flow_A(x, t1, h / 2) t2 += h / 2 return x Direct operator-splitting sampler (NFEs = 3).
D.4 Empirical Order of the Samplers
Figure 7 reports, for each sampler, the error minus the best error reached by any sampler, against the step size . On QM9, the fraction of invalid and of disconnected molecules decreases at a slope of about for all three samplers, with nearly identical constants. On RICO, all samplers, including Euler, decrease at a slope of about in FID; this is expected, since FID is a squared distance between feature statistics, so that a bias of order in the samples appears at order . The splitting samplers therefore converge at the same empirical order as Euler.
Although Strang splitting is second order only if every split flow is applied exactly (Section 3.3). In our samplers, this is not possible, due to the simulation of CTMCs, on the other hand for Euclidean diffusion we are able to integrate them exactly which we do in practice. Nevertheless, we observe that the splitting lowers the constant: on RICO, the direct split reduces the excess FID by a factor of to at to steps (Figure 2).
Figure 7: Error versus step size, minus the best error reached by any sampler (log-log). (a) RICO, FID . (b–d) QM9: one minus the average KS, the fraction of valid molecules and the fraction of connected molecules (K molecules from one sampling seed per point). Dashed and dash-dotted lines have slopes and .
Appendix E Experimental Details
In this section we present experimental details for the experiments. Every model was trained and evaluated on a single NVIDIA A100 (80 GB) GPU. Hyperparameters for RICO and PubLayNet are in Table 5.
Table 5: Hyperparameters for layout generation on RICO and PubLayNet. The backbone matches the size of the Transformer used by Guerreiro et al. [2024].
Hyperparameter RICO PubLayNet Architecture Transformer over the element set, no positional encoding Layers 4 4 Width 512 512 Heads 8 8 Parameters 15.7M 15.7M Insertion from the prior, own clock from the prior, own clock Training tasks 4 conditional tasks + unconditional, equal parts of each batch Reveal horizon 0.5 0.5 Loss weights (category / insertion / ) 0.25 / 0.1 / 0.2 0.25 / 0.1 / 0.2 Training 2,000 epochs (124K steps) 1,000 epochs (609K steps) Batch size 512 512 Optimizer AdamW AdamW Learning rate , reduced on a validation-FID plateau EMA none none Integration steps (eval) 100 (Euler) 100 (Euler)
E.1 Layout Generation: Additional Details
Data representation.
Each element is a pair of a category in and a bounding box in , parametrized by center and size and normalized by the canvas dimensions. Layouts with more than elements are discarded, following Zhang et al. [2023], Jiang et al. [2023]. There are categories on RICO and on PubLayNet. The layout is treated as a set: the backbone has no positional encoding and elements that do not exist yet are hidden by a padding mask, so the insertion kernel adds elements without an ordering. On both datasets the model inserts an element with a rate per existing element and draws its box from the Gaussian prior on its own clock. A single model is trained to complete all tasks: each training batch is split in five equal parts, one per conditional task (Gen-Type, Gen-TypeSize, completion and refinement) and one for unconditional generation, and the unconditional and conditional results are all obtained from this model.
Evaluation.
We follow the same evaluation protocol as in the official respository of Zhang et al. [2023]. Including the task types, architecture and data splits.
Table 6: Layout generation on RICO and PubLayNet, all tasks and methods. Baseline numbers are from Guerreiro et al. [2024];
RICO PubLayNet Task Model FID Ali Ove mIoU FID Ali Ove mIoU Un-Gen LayoutTransformer 24.32 0.037 0.542 0.587 30.05 0.067 0.005 0.359 LayoutFormer++ 20.20 0.051 0.546 0.634 47.08 0.228 0.001 0.401 LayoutDM∗‡ 4.43 0.143 0.584 0.582 36.85 0.180 0.132 0.382 DLT∗† 13.02 0.271 0.571 0.566 12.70 0.117 0.036 0.431 LayoutDiffusion‡ 2.49 0.069 0.502 0.620 8.63 0.065 0.003 0.417 LayoutFlow† 2.37 0.150 0.498 0.570 8.87 0.057 0.009 0.424 VL-DE (ours) 2.32 0.253 0.547 0.578 8.45 0.130 0.014 0.421 Gen-Type NDN-none 13.76 0.560 0.550 0.350 35.67 0.350 0.170 0.310 LayoutFormer++ 2.48 0.124 0.537 0.377 10.15 0.025 0.009 0.333 LayoutDM∗ 2.39 0.222 0.598 0.341 39.12 0.267 0.139 0.348 DLT∗ 6.64 0.303 0.616 0.326 7.09 0.097 0.040 0.349 LayoutDiffusion 1.56 0.124 0.491 0.345 3.73 0.029 0.005 0.343 LayoutFlow 1.48 0.176 0.517 0.322 3.66 0.037 0.011 0.350 VL-DE (ours) 1.36 0.177 0.523 0.339 3.64 0.058 0.015 0.351 Gen-TypeSize LayoutDM∗ 1.76 0.175 0.606 0.424 29.91 0.246 0.160 0.436 DLT∗ 6.27 0.332 0.609 0.424 5.35 0.130 0.053 0.426 LayoutFlow 1.03 0.283 0.523 0.470 1.26 0.041 0.031 0.454 VL-DE (ours) 1.11 0.193 0.525 0.453 2.28 0.067 0.041 0.425 Validation data 2.10 0.093 0.466 0.658 8.10 0.022 0.003 0.434
Table 7: Completion and refinement on RICO and PubLayNet. Baseline numbers are from Guerreiro et al. [2024]; models marked with were retrained there on the common split. In completion, LayoutFlow and LayoutDM are given the number of missing elements, whereas VL-DE generates it.
RICO PubLayNet Task Model FID Ali Ove mIoU FID Ali Ove mIoU Completion LayoutDM∗ 6.80 0.054 0.630 0.678 25.02 0.169 0.107 0.678 LayoutFlow 1.51 0.150 0.474 0.741 1.10 0.054 0.127 0.746 VL-DE (ours) 2.92 0.154 0.539 0.532 3.92 0.089 0.024 0.435 Refinement RUITE 7.93 0.177 0.492 0.658 7.89 0.073 0.038 0.637 LayoutFormer++ 3.67 0.141 0.503 0.656 2.94 0.042 0.013 0.642 LayoutDM∗ 2.91 0.143 0.575 0.437 48.61 0.286 0.173 0.372 LayoutDiffusion 0.55 0.102 0.469 0.719 2.05 0.035 0.008 0.660 LayoutFlow 0.77 0.152 0.455 0.700 0.18 0.020 0.005 0.723 VL-DE (ours) 0.84 0.136 0.454 0.688 0.31 0.046 0.006 0.721 Validation data 2.10 0.093 0.466 0.658 8.10 0.022 0.003 0.434
E.2 Insertion Mechanism and Schedule
All variants share the setup of Table 5, draw the category of a new element from a classifier, and insert following . They differ in the inserted box:
- Fully noised: , denoised on its own clock .
- Noisy data at the global time: , with sampled from a learned head, denoised on the shared clock .
- Masked, then revealed: a mask token, revealed later as in the previous bullet.
The first two predict one insertion rate per existing element, the third a single rate per layout. Since the layout is a set, the new element could be any missing one, so the target of the head is multimodal; we therefore compare a point estimate, a single Gaussian and a -component Gaussian mixture.
Table 8 shows that per-element rates matter more than the form of the box, that is best while fails, and that the mixture head is best and converges in about half the epochs. The main results use the fully noised mechanism with .
Table 8: Insertion mechanism and schedule on RICO, unconditional generation. Mechanism rows: , sampling seeds with the sampler of the main results. Schedule rows: masked-then-revealed mechanism, single runs. Head rows: the same model at fixed length, where all elements are present from the start and revealed from the head, single runs; “epochs” is the number of training epochs to reach a validation FID of .
| Setting | FID | Ali | Ove | epochs | |
|---|---|---|---|---|---|
| Mechanism | Fully noised | 2.34 | 0.217 | 0.557 | – |
| Noisy data at the global time | 2.30 | 0.221 | 0.543 | – | |
| Masked, then revealed | 2.59 | 0.215 | 0.513 | – | |
| Schedule | 2.55 | 0.240 | 0.497 | – | |
| 2.43 | 0.233 | 0.509 | – | ||
| 11.94 | 0.269 | 0.645 | – | ||
| Head | Gaussian mixture ( components) | 2.30 | 0.205 | 0.512 | 749 |
| Single Gaussian | 2.39 | 0.223 | 0.532 | 1524 | |
| Point estimate | 2.39 | 0.235 | 0.509 | 1299 |
E.3 Other Ablations on RICO
Clocks. Training the category and box clocks independently, as Diffuse Everything does for any-to-any generation, costs almost two FID points; we train them jointly and obtain the conditional tasks from a task mixture instead ( unconditional). Table 9 gives the numbers.
Table 9: Other ablations on RICO, unconditional generation. sampling seeds.
| Setting | FID | Ali | Ove | |
|---|---|---|---|---|
| Clocks | Independent category and box clocks | 4.17 | 0.284 | 0.674 |
| Shared clock, task mixture | 2.58 | 0.169 | 0.497 |
Hazard weight.
Applying Theorem 3.2 to the generator (12) would include the hazard rate , which for is for and diverges at the end of the insertion window; by Remark C.11 any positive weight gives a valid loss. We compare three weights on the count and class terms of the insertion loss: (our loss), and the same weight divided by its mean over , , so that it has the same average scale as the unweighted loss. All other settings are those of the main results with a single training seed shared by the three runs and epochs; we report the last checkpoint.
Table 10 shows that including the hazard weight worsens the FID and overlap. Normalizing it fixes this: at the end of training it matches the unweighted loss ( against FID), which suggests that the overall scale of the weight hurts the performance rather than how it distributes the loss over time.
Table 10: Hazard weight on the insertion loss on RICO, unconditional generation. Length TV is the total variation distance between the generated and test distributions of the number of elements. The unweighted row is a retrained copy of the model of the main results.
| Insertion weight | FID | Ali | Ove | Length TV |
|---|---|---|---|---|
| (ours) | ||||
Variable-length baselines.
All baselines share our backbone size, data and evaluation, and are reported with the best-by-validation checkpoint over sampling seeds. Edit Flows [Havasi et al., 2025] and FlexMDM [Kim et al., 2025] run on the -bin tokenization of Chai et al. [2023], with steps; for FlexMDM we use the exact random unmasking order, and insert the tokens required per-box at once. OneFlow [Nguyen et al., 2025] runs with steps. Branching Flows [Billera et al., 2025] runs with steps and predicts the velocity toward its anchor, which was needed for the boxes to sharpen. To select the number of steps for each method we evaluated each baseline on a grid of steps and reported the best result.
Qualitative samples.
Figure 8 shows samples of every method. LayoutFlow receives the number of elements; the other methods generate it.

(a) RICO ( categories).

(b) PubLayNet ( categories: text, title, list, table, figure).
Figure 8: Unconditional layout generation. Rows are methods, columns eight layouts of a seeded batch; colors are categories. LayoutFlow is given the number of elements, the other methods generate it.
E.4 Content-Aware Layout Generation on CGL
We use RALF’s release of CGL [Horita et al., 2024] (splits of / / posters with at most elements, inpainted canvases and saliency maps) and run its evaluation script unmodified on our samples. The model is the RICO backbone of Table 5 with the learned-initialization insertion, which transfers better than inserting from the prior on this dataset. Each canvas is encoded once by a frozen DINOv2-small [Oquab et al., 2024] into an grid of patch tokens with the mean saliency of each cell appended; elements read it through a gated cross-attention layer, and a pairwise geometric attention bias as in LayoutGD [Zhou et al., 2026] is added between elements. To avoid memorizing the training canvases, we hide half of the canvas tokens and, for of the samples, the whole canvas, and flip canvas and layout horizontally with probability . Training runs for epochs with the optimizer of Table 5, and the checkpoint is selected by validation FID. At the last sampling step, each underlay is enlarged to strictly contain the element that is already mostly inside it; this containment projection raises strict underlay effectiveness from to without changing FID. Table 11 reports all of RALF’s metrics and Figure 9 unselected samples.
Table 11: Content-aware layout generation on CGL (test split, RALF’s evaluator), grouped by how the number of elements is modeled. RALF rows are computed from their released outputs; marks numbers taken from the papers, which report no FID. “Proj.” applies a single containment projection at the last sampling step (Appendix E.4). Table 2 in the main text reports the four-column summary.
Model FID Occ Rea Und Und Ove Histogram of (canvas ignored) VL-DE, canvas-blind 1.63 0.318 0.041 0.960 0.877 0.006 Fixed number of slots, padded with an empty class VL-DE backbone, padding 4.02 0.144 0.022 – 0.774 0.013 Autoregressive with an end token RALF without retrieval 2.89 0.125 0.019 0.967 0.917 0.011 Insertion VL-DE (ours) 1.53 0.148 0.023 0.933 0.784 0.0097 VL-DE + proj. 1.54 0.149 0.022 0.959 0.950 0.0097 Reference: retrieval-augmented and published diffusion models RALF [Horita et al., 2024] (16 retrieved layouts) 1.32 0.126 0.018 0.992 0.978 0.0042 LayoutDiT† [Li et al., 2026] – 0.124 0.016 0.995 0.988 0.0016 LayoutGD† [Zhou et al., 2026] – 0.120 0.014 0.999 0.994 0.0004 Test data 0.80 0.125 0.017 0.995 0.988 0.0003

Figure 9: Content-aware layouts on CGL, unselected test canvases. Boxes are drawn over the inpainted canvas; underlays are drawn beneath the other elements.
E.5 Demonstration: Independent Lengths on Crello
The per-element state may itself be variable-length. This section demonstrates that the construction accommodates two independently varying lengths in one sampling run; it is not a benchmark result. On Crello [Yamaguchi, 2021], a design is a variable number of elements, and every text element carries a string of its own length. We keep the layout model of Section 4.2, which generates the number of elements by insertion, and give the strings their own generator, a fine-tuned autoregressive language model; which we model as a Markov process on the text coordinate, so it fits the construction unchanged, but it is not trained with our insertion objective. In partial completion, half of a design’s elements are given with their strings, and the model must decide how many elements to add and write the strings of the new text elements. In the joint sampler the strings are written once during insertion, at , and condition the remaining steps, so the element count and the string lengths are generated in one run. Compared with generating the layout first and the strings afterwards, this reduces the error in the number of added text elements from to (paired bootstrap interval over test designs) and the layout FID from to (Table 12, samples in Figure 10). We also compare to a single autoregressive sequence over all elements and strings . We find that this approach models the lengths better, but at a large cost in layout quality. Extending this experiment to jointly generate the layout and the text that goes into them at a larger scale are left for future work, and hope this serves as a proof of concept.
Table 12: Partial completion on Crello ( test designs; real designs add elements). Errors are mean absolute differences in the number of added elements and added text elements. : significantly better than the pipeline (paired bootstrap over designs).
| Model | added-elem. err. | added-text err. | FID |
|---|---|---|---|
| Layout, then strings (pipeline) | 2.09 | 1.26 | 2.48 |
| Joint (VL-DE) | 1.96† | 1.06† | 2.34 |
| Flat autoregressive sequence | 1.81 | 0.89 | 8.54 |

Figure 10: Partial completion on Crello, four test designs. Top: the given half of the design, in gray with its strings. Middle: the joint sampler of VL-DE adds elements (colored boxes) and writes their strings in the same run. Bottom: the real design. Designs were selected from test designs without a near-duplicate in the training set.
Protocol.
We use the Crello dataset [Yamaguchi, 2021] ( / / templates with at most elements, five element types). The first element of a template is the full-canvas background, which conditions the layout; the other elements are generated. The layout model is the CGL model of Appendix E.4 with the font size of text elements as a fifth box coordinate and a per-element feature of the string (a CLIP text embedding and its character, word and line counts), trained with conditioning dropout and with batches in which a random subset of elements is given. The strings are written by Qwen2.5-7B-Instruct with a LoRA adapter, prompted with the template’s title and keywords and the layout serialized as text, which writes all strings of a design in one pass and ends each at its own length. Layout FID uses a layout network trained on Crello with RALF’s recipe.
For every test design with at least two text elements ( designs), a random half of the elements is given with type, box, font size and string, with at least one text element given and one held out. The pipeline completes the layout without seeing the given strings and then writes the new strings. The joint sampler conditions on the given strings from the start, calls the language model once at on the current clean-layout estimate, and a last time for elements inserted afterwards. Rewriting the strings repeatedly during sampling is unstable, since each rewrite lengthens them and the layout grows to fit. The flat baseline is the same language model and adapter size trained to emit the whole design as one sequence, without the background image. Confidence intervals are paired bootstraps over designs with resamples.
E.6 Molecule Generation on QM9
Setup.
We train on QM9 [Ramakrishnan et al., 2014], we center every molecule so that its centroid is at the origin and apply a random rotation at each training step. The backbone is the EGNN of EDM [Satorras et al., 2021], which predicts the clean position of every atom equivariantly; with a head on its last hidden state to predict the insertion rate and for every gap, as in Campbell et al. [2023]. Additionally every atom receives its own clock as input. We follow the evaluation protocol of Billera et al. [2025] and report our hyperparameters in Table 13.
Samplers. Figure 11 reports the average for our model under different step counts and network evaluations for our samplers. For each point we sample K molecules, and find that when using less steps both of our samplers outperform the Euler sampler. On the other hand, when matching the network evaluations, we find that the split sampler lags behind in the beggining, with all samplers performing similarly under large NFEs.
Table 13: Hyperparameters on QM9.
| Backbone | EGNN, layers, width |
|---|---|
| Head | Transformer, layers |
| Parameters | 9.0M |
| Insertion window | |
| Optimizer | AdamW, grad. clip |
| Learning rate | , warmup steps |
| Schedule | cosine to |
| Training steps | M |
| Batch size | |
| EMA | |
| Sampling | Euler steps, EMA weights |
Figure 11: Operator-splitting samplers on QM9 (average KS, K molecules per point). (a) Under fixed step size our samplers outperform Euler (b) Per network evaluation, all samplers obtain similar performance, with the best results coming from our samplers demonstrating improved accuracy.
E.7 Arithmetic Equations
In the other experiments every modality has the same length. Here each element is an arithmetic equation, which consists of a sequence of symbols and a sequence of numbers whose lengths differ and are linked only through the grammar (Figure 4a). VL-DE gives each modality its own insertion process (Section 3.2).
Data. Each equation states that two random expressions have the same value; Figure 12 illustrates how the data is generated. We start with a target value sampled uniformly from . We then randomly split each side of the equation with an operation (, or ): one part is a random expression, while the other is chosen to preserve the equality and is split in the same way until a single number remains. Parentheses only enclose sums that are multiplied, so none of them is redundant. Finally, we write the equation and separate it into the two sequences.
Figure 12: Construction of an arithmetic equation. A target value is drawn (1), each side is a random expression tree with one open leaf, which is solved so that the side equals the target (2), and the rendered equation is split into its symbols and the magnitudes of its numbers (3).
Dataset. The symbols (the sign of every term, , parentheses and ) form one sequence, and the magnitudes of the numbers, in reading order, form the other. Equations have to numbers and to symbols, and of them contain parentheses. We use K test equations and M training equations.
Model and training. Both modalities share the global time and are inserted on . The MMDiT has one stream per modality joined by joint attention, receives the clock of every number, and predicts the clean numbers, the number of missing elements in every gap of each modality and the insertion distribution of the symbols. We use an MMDiT [Esser et al., 2024]. Hyperparameters are in Table 14.
Evaluation. We sample equations with Euler steps and parse the symbols with the grammar. An equation is valid if it can be parsed, and it is balanced if its left-hand and right-hand sides differ by less than .
Ablation: a single interleaved sequence. To the best of our knowledge, no existing method covers the setup of multiple variable lengths. However, to obtain a better comparison, we implement a version of the dataset in which the data elements are presented as a single sequence, similar to Nguyen et al. [2025]. We add a token that represents a number; when this token is selected, we insert Gaussian noise and denoise it on its own clock, as in VL-DE.
| Ablation | Main model | |
|---|---|---|
| Training equations | M | M |
| Depth (streams, joint) | ||
| Width | ||
| Parameters | 24.4M | 47.5M |
| Training steps | K | K |
| Optimizer | AdamW, lr , warmup, clip | |
| Schedule | cosine to | same, extended twice |
| Batch size | ||
| EMA | ||
| Sampling | Euler steps, EMA weights |
Table 14: Hyperparameters on the arithmetic equations.
| Model | Valid | Balanced |
|---|---|---|
| K steps, depth | ||
| Interleaved | 92.9 | 24.9 |
| VL-DE | 91.9 | 20.5 |
| K steps, depth | ||
| VL-DE | 94.3 | 49.3 |
Table 15: Valid samples and balanced valid samples (%), samples, Euler steps.
Results. Table 15 compares the two models at equal budget. We find that the interleaved model produces more valid and balanced equations. This is not surprising, since the interleaved sequence approach has more information, and it demonstrates that our approach is effective at learning such distributions.