Not All Parameters Matter: Masking Diffusion Models for Enhancing Generation Ability

Lei Wang, Senmao Li, Fei Yang, Jianye Wang, Ziheng Zhang +3 more
2/10/2026

No official code found. Best implementation: gudaochangsheng/MaskUnet (138 stars, last commit 2026-04-02). 1 more below.

Abstract

The diffusion models, in early stages focus on constructing basic image structures, while the refined details, including local features and textures, are generated in later stages. Thus the same network layers are forced to learn both structural and textural information simultaneously, significantly differing from the traditional deep learning architectures (e.g., ResNet or GANs) which captures or generates the image semantic information at different layers. This difference inspires us to explore the time-wise diffusion models. We initially investigate the key contributions of the U-Net parameters to the denoising process and identify that properly zeroing out certain parameters (including large parameters) contributes to denoising, substantially improving the generation quality on the fly. Capitalizing on this discovery, we propose a simple yet effective method—termed "MaskUNet"— that enhances generation quality with negligible parameter numbers. Our method fully leverages timestep- and sample-dependent effective U-Net parameters. To optimize MaskUNet, we offer two fine-tuning strategies: a training-based approach and a training-free approach, including tailored networks and optimization functions. In zero-shot inference on the COCO dataset, MaskUNet achieves the best FID score and further demonstrates its effectiveness in downstream task evaluations. Project page: https://gudaochangsheng.github.io/MaskUnet-Page/

View on arXivView PDF

Code Implementations(2)

[CVPR 2025] Official PyTorch implementation of Not All Parameters Matter: Masking Diffusion Models for Enhancing Generation Ability

1389Shell, PythonMar 25, 20256 months ago
diffusion-modelsmaskstable-diffusiontext-to-image-generationtext-to-video-generation+1 more

Project Page of "Not All Parameters Matter: Masking Diffusion Models for Enhancing Generation Ability"

00CSS, HTMLMar 11, 20251 years ago

Similar Papers

Cite this paper

@article{wang2026parameters,
  title  = {Not All Parameters Matter: Masking Diffusion Models for Enhancing Generation Ability},
  author = {Lei Wang and Senmao Li and Fei Yang and Jianye Wang and Ziheng Zhang and Yuhan Liu and Yaxing Wang and Jian Yang},
  year   = {2026},
  eprint = {2505.03097},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2505.03097},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.03097.svg)](https://codeofpaper.com/paper/2505.03097)

Discussion