arXiv:2611.23684cs.LGNov 2026

Manuscript Offprint

arXiv:2611.23684

Variable Length Diffuse Everything: Arbitrary Length Generative Modeling on Arbitrary State Spaces

Kevin Rojas, Felix X. -F. Ye, Molei Tao

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 (Xt,St)(X_{t},S_{t}), where StS_{t} is an auxiliary process that tracks the active coordinates and XtX_{t} carries their values. Each coordinate ii receives an insertion time τi\tau_{i}, an insertion distribution and is denoised on its own clock uu, so that all elements are clean simultaneously at t=1t=1.

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.

References (45)