Introduction
In the realm of high-resolution image generation, researchers frequently rely on Vector-Quantized (VQ) latents. These models represent images as a grid of discrete "tokens" (indices) that map to continuous "embeddings" (vectors). However, this dual nature creates a fundamental modeling tension:
- Continuous models (like Latent Diffusion or standard Flow Matching) treat these embeddings as points in continuous space. While they excel at smooth transitions, they ignore the underlying discrete nature of the data. Because they lack "logits," they cannot express uncertainty between specific codes or utilize temperature scaling during generation.
- Discrete models (like VQ-Diffusion) treat codes as unrelated tokens. While they respect the discrete nature of the data, they lose the geometric relationships between tokens—the model doesn't inherently know that two different blue-pixel codes are more similar than a blue and a red one. This often results in abrupt "teleporting" between states rather than smooth transport.
Purrception is a novel hybrid generative model designed to bridge this gap. By using categorical supervision to guide continuous transport dynamics, it achieves significantly faster training convergence and enables "temperature control" for image sharpness—a feature previously reserved for discrete text models.
The Purrception Approach
Purrception adapts Variational Flow Matching (VFM) specifically for VQ latents, avoiding the "degenerate extremes" of purely continuous or purely discrete methods.
- The Hybrid Mechanism: Instead of predicting a raw velocity vector like standard Flow Matching, Purrception predicts a categorical distribution (probabilities) over all possible codebook indices for a given patch.
- Continuous Transport: The actual velocity used to move the sample through space is calculated as the expectation of the velocities toward those predicted codes. This allows the model to "reason" about discrete choices while physically "moving" through continuous space. Uncertainty isn't just a statistical byproduct; it defines the path. If the model is unsure between two codes, the resulting velocity field naturally averages them, leading to smooth, geometry-aware transport.
- Discrete Supervision: During training, the model is optimized using a standard cross-entropy loss against the ground-truth codebook indices. This provides a much stronger and more efficient learning signal than the simple mean-squared error (MSE) on vectors used by continuous models.
- Inference Control: Because the model outputs logits, users can apply Softmax Temperature Scaling ($\tau$) at test time. By adjusting this single parameter, users can trade off between "safe," clean images and highly detailed, diverse ones.
Key Results and Insights
The model was evaluated on the gold standard ImageNet-1k dataset at $256 \times 256$ resolution, utilizing pre-trained VQ-VAEs like Stable Diffusion’s vq-f8 and LlamaGen’s vq-ds8-c2i.
Accelerated Convergence
The most striking finding is that categorical supervision acts as a massive shortcut. Telling the model which index to pick via cross-entropy is far more efficient than telling it where to go in vector space via MSE.
Purrception converges 2.3x to 3.5x faster than purely continuous (CFM) or purely discrete (DFM) baselines. For instance, a Purrception model at 1 million iterations matched the performance of a DFM model that had trained for over 3 million iterations.
Competitive Quality and Temperature Control
Purrception achieved a competitive FID score of 3.88 on ImageNet-1k. While it does not yet beat the absolute state-of-the-art continuous diffusion models (which often benefit from much longer training schedules and higher-quality non-quantized VAEs), it outperformed almost all existing discrete and masked generative models.
Furthermore, Purrception is the first continuous flow model where you can dial the temperature down to get simpler, cleaner samples, or up to get fine-grained details. Quantitative tests revealed a U-shaped quality curve, confirming that an intermediate temperature ($\tau \approx 0.8\text{--}0.9$) yields the best image quality. This proves that "soft" categorical reasoning is superior to "hard" commitments during the generation process.
Note on Stability: The authors found that large models (like DiT-XL/2) could become unstable due to exploding logits during training. They successfully mitigated this by applying a "z-loss" regularization—a technique borrowed from Large Language Model (LLM) training—to stabilize the flow matching process.
Limitations and Future Work
- Tokenizer Dependency: Purrception's performance is heavily tied to the quality of the pre-trained VQ-VAE. If the tokenizer is "lossy," the flow model cannot fix those underlying artifacts.
- The Gap to Top-Tier Diffusion: While highly efficient, it hasn't yet reached the absolute lowest FID scores of models like SiT-XL/2, likely due to those models' longer training times and superior non-quantized autoencoders.
- Future Directions: The authors suggest exploring joint training (optimizing the VQ-VAE and the flow model together) and extending this hybrid approach to other modalities like video, audio, and 3D shapes.
Summary updated