Abstract
Diffusion models have revolutionized image generation but remain "bandwidth-blind" in cloud-to-device scenarios. This paper introduces BADiff, a bandwidth-adaptive diffusion framework that integrates real-time bandwidth awareness directly into the generation process. By conditioning the model on target entropy and employing an adaptive sampling policy, BADiff produces images that naturally fit transmission constraints. Experimental results demonstrate that BADiff achieves higher visual fidelity (lower FID) and up to a 40% reduction in computation time compared to traditional "generate-then-compress" pipelines.
Introduction
In the current "cloud-to-device" era, high-end AI models typically reside on powerful servers, while users receive results on mobile devices. Standard diffusion models are inherently bandwidth-blind; they expend significant computational resources to generate intricate textures and fine details, only for a lossy compression algorithm (like JPEG or BPG) to strip those details away to meet a limited data connection.
This creates two major inefficiencies: wasted server-side GPU cycles on details that will never be seen, and perceptual loss due to compression artifacts like blurring or blocking. BADiff addresses this by asking: What if the model knew the bandwidth limit before it started drawing?
Methods
BADiff modifies the standard denoising process through three key innovations:
- Entropy-Conditioned Generation: The model is given a "budget" in the form of a target entropy ($H_{target}$). This value is converted into a high-dimensional embedding and injected into the U-Net using FiLM (Feature-wise Linear Modulation), acting as a continuous "quality dial."
- Differentiable Entropy Regularization: To ensure the model respects the budget, a differentiable neural entropy predictor is used during training. A hinge loss penalizes the model only if the predicted bitrate of the generated image exceeds the target, forcing the model to learn how to simplify images (e.g., smoothing backgrounds) when bandwidth is tight.
- Adaptive Sampling Policy: A lightweight policy network monitors the image at each step. If the image already meets the perceptual quality appropriate for the target bitrate, the policy triggers an "early stop," significantly reducing computational overhead.
Experimental Results
The model was rigorously evaluated on standard benchmarks including CIFAR-10, CelebA-HQ, and LSUN. Across all datasets, BADiff consistently achieved lower (better) FID scores than the "Cascade" baseline (Diffusion + BPG compression).
Key findings include:
- Superior Quality: On CelebA-HQ at low bitrates, BADiff improved the FID from 28.5 to 21.7. The model learns to "hide" information or simplify textures in a way that is perceptually pleasing rather than suffering from compression artifacts.
- Significant Speedup: The adaptive sampling policy allows the model to halt early without sacrificing quality. At low bitrates, BADiff is roughly 1.7x faster than standard pipelines, cutting latency from 115ms to 65ms on a DDPM-1k backbone.
- Scalability: When applied to Stable Diffusion on COCO-val2017, BADiff maintained its edge, proving compatibility with complex, prompt-based generation.
Conclusion and Future Work
BADiff demonstrates that integrating bandwidth awareness into the generative process leads to more efficient and higher-quality cloud-to-device transmission. While the current model targets uniform bit allocation, future research will explore spatially varying allocation—prioritizing bits for foreground objects—and extending the framework to the even more bandwidth-critical domain of video generation.
Summary updated