When people compress image generators to run faster, they check that the pictures still look good, usually with Fréchet Inception Distance (FID), a score that compares feature statistics of generated and real images. They almost never check the other thing a generative model is for: assigning correct probability to real data. That probability is what matters for lossless compression, anomaly detection, and out-of-distribution detection. The two goals are known to pull apart. Models trained to cover the data distribution tend to produce blurrier samples, while models tuned for sharp samples often assign almost no probability to parts of the real data. A pruning method that keeps FID steady could therefore be quietly dropping rare modes of the data, and current evaluations would not notice.
This note proposes to compress an exact-likelihood generator, a transformer-based normalizing flow (an invertible network whose log-probability of any image can be computed exactly), into the 2:4 sparse format. In that format, two of every four consecutive weights are zero, and recent NVIDIA GPUs execute it natively at up to twice the matrix-multiply speed. The compression is calibrated directly on the model's own log-likelihood rather than on per-layer output reconstruction. Because the flow's likelihood is exact, every bit lost to sparsity can be counted. The regime where 2:4 sparsity actually pays off is also the regime likelihood users care about: batched, parallel density evaluation, which is dominated by large matrix multiplies. It is not the memory-bound, token-by-token sampling loop.
Core Claim
We make two linked claims. The first is a measurement claim: FID-calibrated pruning of generators moves models toward the mode-seeking end of the likelihood-fidelity trade-off. If so, it will show up as rising bits-per-dimension (bpd), and above all as a fattening tail of per-image negative log-likelihood (NLL) on held-out data, even when FID is flat.
The second is a method claim. At a matched hardware format, calibrating the sparse model with an end-to-end likelihood objective recovers most of that loss without giving up FID. The format is 2:4 sparsity plus the lightweight block-diagonal "wrapper" matrices of ARMOR. For a flow, the natural objective is the exact KL divergence from the dense model to the sparse one on real data:
$$\mathcal{L}(M, A, B) = \mathbb{E}_{x \sim p_{\text{data}}}\left[\log p_{\text{dense}}(x) - \log p_{\text{sparse}}(x; M, A, B)\right],$$
where $M$ is the 2:4 mask and $A, B$ are the block-diagonal wrappers around each sparse weight core. This quantity is exactly the extra bits per image caused by compression, so the method optimizes what it reports.
The approach rests on a structural fact about autoregressive flows. TARFLOW builds its flow from causally masked Vision Transformer blocks. Zeroing individual weights inside those blocks never breaks the causal structure, so the sparse model stays invertible and its Jacobian stays triangular. Exact likelihood survives sparsification for free. The file flags exactly this as unexplored ("invertibility, Jacobian determinants, and exact likelihood computation must be preserved under sparse projection"). The answer, at least for TARFLOW-style flows, is that preservation is automatic, and that is what makes the bit-accounting clean.
Relation to Prior Work
Three diffusion-pruning papers motivate the measurement gap, because all of them evaluate only perceptual or task metrics. Structural Pruning for Diffusion Models removes channels using Taylor importance restricted to informative timesteps and reports FID 6.24 against a dense 6.48 on CelebA-HQ 64×64. It also concedes degradation on the more multi-modal CIFAR-10, which is exactly where mode dropping would bite. OBS-Diff adapts Optimal Brain Surgeon, a pruning method that uses second-order curvature to decide which weights to remove and how to compensate the rest. It uses a hand-set logarithmic timestep weighting, covers unstructured, 2:4, and structured formats, and is evaluated with FID, CLIP score, and ImageReward. Sparse ActionGen prunes computation dynamically for robot policies and measures task success. None of the three reports NLL. We differ in the evaluation, which counts exact bits, and in the calibration target, which is likelihood rather than layer reconstruction or a heuristic timestep schedule.
The likelihood-fidelity literature supplies the reason to expect divergence. DDPM observes that likelihood spends much of the model's capacity on imperceptible fine detail. That suggests a sparsity budget chosen to preserve perceptual quality will cut exactly the capacity likelihood depends on. Flow-GAN documents that visually strong, mode-seeking models leave large likelihood gaps. Rényi Diffusion Models shows the balance point can be moved by the choice of divergence. We borrow that idea as a secondary knob: a Rényi-weighted version of the calibration loss that reweights images by how badly the sparse model fits them. Only one of these papers constrains our design. RDM argues the trade-off stems from the objective rather than the architecture. If so, capacity cuts alone might leave the trade-off untouched, and our measurement study tests that directly.
The hardware-sparsity literature supplies the method. Unstructured zeros rarely speed anything up on dense accelerators (Wiedemann et al., Grimaldi et al.), which is why we target 2:4. Rigid 2:4 masks hurt accuracy after training, and two correction schemes address this. ARMOR wraps the sparse core in block-diagonal matrices and fits them by block coordinate descent. 3BASiL adds a low-rank term. For training-time recovery, SR-STE and Masked Gradient Decay from Hu et al. stabilize the mask. All of these were developed and evaluated on language models and classifiers, where the target (next-token perplexity or accuracy) is itself a likelihood or a label. They were never tested where the likelihood objective and the sample-quality objective disagree. Hu et al. also set the realistic ceiling: a 2× matrix-multiply speedup becomes only 1.21× end to end on GPT-2, because normalization and other non-matrix operations stay dense.
Research Program
The work has three stages.
The first stage is a measurement study. We take the released TARFLOW ImageNet-64 checkpoint (apple/ml-tarflow) and compress its linear layers to 2:4 with four existing methods: magnitude 2:4, OBS-style second-order pruning with layer-output reconstruction, ARMOR, and 3BASiL. For each, we report bpd, FID, and the full distribution of per-image NLL on the validation set. The central quantity is the change in the upper tail, for example the 95th and 99th percentile NLL, and whether damage concentrates in particular classes. Concentration by class is the signature of mode dropping. This stage stands on its own even if the method stage fails.
The second stage is likelihood calibration. We keep ARMOR's parameterization and alternating optimization, but replace its layer-wise reconstruction loss with the end-to-end KL above. Gradients of that loss flow through the exact log-determinant and base density. To keep memory bounded, we calibrate one transformer block at a time, with downstream blocks frozen at their dense values. A final short joint pass follows, using a few thousand calibration images. The Rényi variant replaces the mean over images with a softened maximum that upweights the worst-fit images. Varying its order traces a curve between average-case bpd and tail NLL.
The third stage transfers the approach to diffusion. We apply the same comparison to a likelihood-trained CIFAR-10 diffusion model. Its likelihood can only be bounded from below via the evidence lower bound (ELBO), a variational bound on log-likelihood. We calibrate with the ELBO's own per-timestep weighting and compare it to OBS-Diff's logarithmic schedule. This tests the tension the file identifies: heuristic timestep weights prioritize one end of the trajectory, while likelihood weighting puts capacity where DDPM says the bits are.
Hardware evaluation runs on A100-class GPUs with native 2:4 kernels. We time two workloads separately: batched likelihood evaluation of the full forward pass, and batched sampling.
Baselines
The naive reference is the dense TARFLOW checkpoint, reported by its authors at 2.99 bpd and FID 2.66 on ImageNet 64×64 (Normalizing Flows are Capable Generative Models). Alongside it we run magnitude 2:4 with no correction, which sets the floor for how bad hard 2:4 is on a flow. Every compressed model is evaluated with the same bpd and FID pipeline from the TARFLOW codebase, with the same number of samples and the same noise-augmentation and denoising settings.
The strongest competitor is ARMOR's block-diagonal-wrapped 2:4 compression with its original layer-wise reconstruction objective. It is the best reported post-training 2:4 method in the file: it closes up to half the perplexity gap on LLaMA-2-13B and gives a 1.57× layer speedup on Qwen 2.5-14B. Because it shares our parameterization, it isolates the calibration objective exactly. We give it the same calibration images, the same number of optimization steps, and the same wall-clock budget as our method, and we tune its hyperparameters with the same search budget. No bpd or FID result for ARMOR or any 2:4 method on a generative image model is reported on Lacuna, so the comparison numbers are produced here. Beating it means lower bpd and lower tail NLL at equal or better FID and identical measured latency.
We also compare against OBS-Diff-style second-order pruning with its logarithmic timestep weighting, on the diffusion transfer, and against 3BASiL's sparse-plus-low-rank decomposition with a small rank. The latter tests whether a low-rank residual, rather than likelihood calibration, is what recovers the lost bits. For both we report the latency cost of the extra low-rank or wrapper parameters, since they erode the 2× speedup.
The key ablation holds everything fixed except the loss. It compares layer-output reconstruction, end-to-end KL, and Rényi-weighted KL, all under the ARMOR parameterization. A second ablation swaps our calibration onto a plain 2:4 mask without wrappers, to separate the contributions of objective and parameterization.
Why not just…?
Why not just run OBS-Diff or ARMOR as they are and report bpd? That is the first stage of this proposal, and it is a real threat to the method stage. If layer-wise reconstruction already keeps bpd within a few hundredths of dense, likelihood calibration buys little, and the contribution reduces to the measurement result plus the invertibility observation. We think this outcome is unlikely for one reason. Reconstruction losses weight every activation dimension equally, while the flow's log-determinant is sensitive mainly to the scale outputs. Stage one settles the question before any new method is built.
Why not just fine-tune the 2:4 model densely with SR-STE or Masked Gradient Decay until it recovers? With enough training budget, this probably closes most of the gap. Hu et al. get within 0.2 GLUE points of dense BERT when training from scratch. But fine-tuning a large flow on ImageNet-64 costs a meaningful fraction of pre-training, in the way Diff-Pruning spends 10–20% of the original budget. We therefore plot bpd against fine-tuning compute for SR-STE starting from magnitude 2:4 and starting from our calibrated model. The claim is that post-training likelihood calibration reaches a given bpd with far less compute, and that it is a better starting point for fine-tuning.
Why not just train a half-width dense flow? This is the most serious alternative. Since 2:4 sparsity yields only about 1.2–1.6× in practice, a smaller dense model of matched measured latency needs no special kernels at all. We train that model with the same compute as pre-training plus compression and compare the two at equal measured throughput. If the small dense model matches on both bpd and FID, the honest conclusion is that 2:4 compression of flows is not worth it at this scale. We would report that.
Why not just cache activations or skip steps during sampling? For TARFLOW this is largely orthogonal. Sampling is sequential and already relies on a KV cache, and likelihood evaluation, the workload that motivates this work, has no steps to skip. We therefore treat caching as complementary and do not include it as a competitor.
Proposed Experiments
The primary benchmark is ImageNet 64×64 with the TARFLOW checkpoint, reporting validation bpd, FID from 50k samples, per-image NLL quantiles, and per-class NLL change. The secondary benchmark is CIFAR-10 with a likelihood-trained diffusion model, reporting ELBO bpd and FID. There the reference points are Likelihood Matching's score-matching numbers of 3.28 bpd and FID 3.15, and the known CIFAR-10 fragility of Diff-Pruning, for which no number is reported on Lacuna. Latency is measured on A100 GPUs for batched likelihood evaluation at several batch sizes and for batched sampling, reporting end-to-end speedup rather than matrix-multiply speedup.
Four checks decide the outcome:
- Mode dropping under FID-calibrated compression. Under reconstruction-calibrated 2:4, does tail NLL grow much faster than mean bpd while FID stays flat? If yes, perceptual evaluation of pruned generators is hiding mode dropping.
- Likelihood calibration. At identical mask format and latency, does the end-to-end KL loss beat ARMOR on bpd and tail NLL without losing FID?
- Objective versus architecture. Does varying the Rényi order trace a genuine trade-off curve in the sparse model? This tests RDM's claim that the objective, not capacity, sets the trade-off.
- Worth the sparse machinery. Does the result survive the matched-latency half-width dense model? If not, the finding is negative for 2:4 compression of flows.
Each check has a clear failure outcome, and each failure is itself reportable.
References
- ARMOR: High-Performance Semi-Structured Pruning via Adaptive Matrix Factorization
- Normalizing Flows are Capable Generative Models
- Structural Pruning for Diffusion Models
- OBS-Diff: Accurate Pruning For Diffusion Models in One-Shot
- Sparse ActionGen: Accelerating Diffusion Policy with Real-time Pruning
- Denoising Diffusion Probabilistic Models
- Flow-GAN: Combining Maximum Likelihood and Adversarial Learning in Generative Models
- Rényi Diffusion Models
- Dithered backprop: A sparse and quantized backpropagation algorithm for more efficient deep neural network training
- Accelerating Deep Neural Networks via Semi-Structured Activation Sparsity
- 3BASiL: An Algorithmic Framework for Sparse plus Low-Rank Compression of LLMs
- Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch
- Accelerating Transformer Pre-training with 2:4 Sparsity
- Likelihood Matching for Diffusion Models