TL;DR
Bernoulli Flow Models (BFM) introduce a continuous-time framework for binary data generation, moving away from the discrete Markov chains used in traditional binary diffusion. By defining a unified continuous probability path, BFM enables "self-consistent" sampling at arbitrary speeds, allowing for high-quality generation with 16x fewer steps (e.g., from 256 down to 16) without any additional training or distillation.
What Problem Does This Paper Address?
Generative modeling for binary data—like binarized images or discrete latent representations—has recently seen a surge in interest thanks to diffusion-style methods. However, these models suffer from a major bottleneck: they are computationally expensive to sample from, often requiring hundreds or thousands of sequential function evaluations (NFEs).
In the continuous domain (like standard images), we have tricks like DDIM to speed up sampling. But binary diffusion models are typically built on discrete-time Markov chains. When you try to speed them up by "skipping steps," you introduce a structural mismatch between how the model was trained and how it's being used. This approximation error causes sample quality to collapse at low NFEs. The authors identify that the core obstacle isn't just a lack of fast solvers, but the lack of an analytical mechanism that stays valid when you change the sampling grid.
Methods
The authors propose Bernoulli Flow Models (BFM) to decouple generative dynamics from fixed discrete time steps.
- Continuous Probability Flow: Instead of discrete one-step transitions, BFM defines a unified continuous Bernoulli probability path that interpolates between the data distribution and pure binary noise.
- Analytical Cross-Step Posterior: This is the "secret sauce." Because the path is continuous, the authors derive closed-form analytical solutions for marginal, transition, and posterior distributions over any time interval.
- Self-Consistency: When you want to sample faster (e.g., using 16 steps instead of 256), you don't "approximate" skipped steps. You simply re-evaluate the exact analytical posterior on the new, coarser time grid. This makes the low-NFE sampling "self-consistent" by construction.
- Training Objective: The model is trained to predict the uncorrupted data ($X_0$) using a standard binary cross-entropy (BCE) loss, similar to the $x_0$-prediction paradigm in continuous diffusion models.
Datasets
The researchers evaluated BFM across several diverse benchmarks:
- High-Dimensional Images: LSUN Churches, LSUN Bedrooms, and FFHQ (all at 256x256 resolution, modeled in a binary latent space).
- Binary Manifolds: Binarized MNIST.
- Scientific Data: The 2D Ising model, a classic system from statistical physics.
Key Insights and Ideas
- The "Aha" Moment on Discretization: The paper realizes that the "skipping steps" problem in binary diffusion is a mathematical artifact of defining the model on a discrete grid. By starting with a continuous path, the "grid" becomes irrelevant to the underlying math.
- Robustness to Speedups: Unlike previous models that degrade rapidly when you reduce sampling steps, BFM remains remarkably stable. This is because it's using the same exact (not approximate) posterior logic regardless of the step size.
- Coherent Training Signal: Because every time point in training is tied to the same unified continuous path, the model receives a more coherent signal across time. This leads to faster convergence and better final performance compared to discrete-chain baselines.
Key Results
- Massive Speedup without Quality Loss: On the LSUN Churches dataset, a BFM trained for 256 steps achieves an impressive FID of 9.22 when sampled with only 16 steps. In contrast, the state-of-the-art discrete baseline (BLD) collapses to an FID of 204.10 under the same conditions.
- State-of-the-Art on MNIST: BFM achieved a new best FID of 0.42 on Binarized MNIST, outperforming previous flow-matching and diffusion methods.
- Competitive at Full Speed: Even when given the full 256 steps, BFM consistently outperforms or matches baselines across LSUN and FFHQ datasets (e.g., FID 5.86 vs 6.22 on LSUN Bedrooms).
- Physical Fidelity: In the Ising model experiments, BFM didn't just generate "look-alike" patterns; it accurately captured the complex thermodynamic properties (like the magnetization curve) of the physical system.
Limitations and Future Work
- Domain Scope: While the results on images and physics are strong, the authors note that broader domain-specific validation (e.g., in discrete structures like graphs or text) is still needed.
- Ultra-Fast Sampling: While 16 steps is fast, the authors aim to combine BFM with distillation or consistency-style training to reach the "holy grail" of 1-step or 2-step high-quality binary generation.
- Temperature Sensitivity: The model uses a temperature hyperparameter ($\kappa$) to control diversity, and the authors suggest that finding optimal schedules for this could further improve results.
Summary updated