NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Mask-Conditioned Gradient Masking for Fine-Tuning Mixture-of-Experts Diffusion Language Models

Yiru Tang, Kun Zhou, Xin Zhao, Jing Sha, Zhichao Sheng, Shijin Wang

NeurIPS page · Open on the map

Category: Interpretability & Model Adaptation › Parameter-Efficient Model Adaptation · Type: new method · Keywords: mixture-of-experts, diffusion language models, gradient masking, fine-tuning, mask-conditioned adaptation

Summary

MaGM is an adaptive mask-conditioned gradient masking method that dynamically masks expert updates based on diffusion mask rates, improving fine-tuning of mixture-of-experts diffusion language models.

Explained to a 5-year-old

Computers can have many little helpers called experts that do different jobs. When we teach them new things, we sometimes use masks to hide parts of the work. If the masks are different, the helpers might get confused and not learn well. The researchers noticed that experts become good at certain mask patterns. To help them, they made a smart way to hide the helpers' learning so each expert only learns what matches its pattern.

Explained to a 5-year-old, longer

Computers can have many little helpers called experts that do different jobs. When we teach them new things, we sometimes use masks to hide parts of the work. If the masks are different, the helpers might get confused and not learn well. The researchers noticed that experts become good at certain mask patterns. They saw that when the masks change during learning, the experts can interfere with each other. To fix this, they created a way to hide the helpers' updates based on the mask. This makes sure each expert only learns what matches its pattern. The new method helps the computer remember better and learn faster. It works like a smart guard that watches the masks and protects the experts. The researchers tested it and found it works better than the old way. They will share their code so others can try it too.

For a technical reader

When fine-tuning large language models that use a mixture of experts, different training conditions (like mask rates) can cause expert updates to interfere with each other, hurting performance. The proposed technique monitors the mask rate for each training example and selectively masks the gradient updates of experts to match the current regime. This reduces interference and lets each expert specialize effectively. Experiments show the method consistently beats standard full-parameter fine-tuning on diffusion language models. The implementation will be released publicly for further use.

Problem

Fine-tuning expert-based language models under varying training regimes can suffer from gradient interference, reducing adaptation performance. This interference arises when training conditions such as mask rates do not align with the specialized behaviors of different experts.

Method

The approach dynamically masks expert parameter updates based on the mask rate of each training instance, ensuring that regime-specialized experts receive appropriate gradients during fine-tuning. This mask-conditioned gradient masking aligns updates with the diffusion regimes to reduce interference.

Results

The approach consistently outperforms standard full-parameter fine-tuning on diffusion language models, confirming improved adaptation across regimes.

Contributions

The work reveals that expert-based language models develop specialization across different mask-rate diffusion regimes and identifies gradient interference as a bottleneck during fine-tuning. It proposes a mask-conditioned gradient masking technique that dynamically aligns expert updates with training regimes, leading to better adaptation.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction