BADiff: Bandwidth Adaptive Diffusion Model

Xi Zhang, Hanwei Zhu, Yan Zhong, Jiamang Wang, Weisi Lin

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?

Conceptual overview of the bandwidth bottleneck and how BADiff preserves quality compared to traditional lossy compression.

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).

Quantitative comparison of FID scores across different backbones and datasets. BADiff consistently outperforms traditional methods.

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

BibTeX
@inproceedings{zhang2025badiff,
  author = {Xi Zhang and Hanwei Zhu and Yan Zhong and Jiamang Wang and Weisi Lin},
  title = {{BADiff: Bandwidth Adaptive Diffusion Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=jSc7HD7mPj},
}
Figure