p-MoD: Building Mixture-of-Depths MLLMs via Progressive Ratio Decay

Jun Zhang, Desen Meng, Zhengming Zhang, Zhenpeng Huang, Tao Wu +1 more
12/5/2024
cs.CVcs.CL

No official code found. Best implementation: MCG-NJU/p-MoD (44 stars, Apache-2.0, last commit 2025-06-26).

Abstract

Despite the remarkable performance of multimodal large language models (MLLMs) across diverse tasks, the substantial training and inference costs impede their advancement. In this paper, we propose p-MoD, an efficient MLLM architecture that significantly reduces training and inference costs while maintaining model performance. The majority of computation in MLLMs stems from the overwhelming volume of vision tokens processed by the transformer-based LLM. Accordingly, we leverage the Mixture-of-Depths (MoD) mechanism, where each LLM layer selects essential vision tokens to process while skipping redundant ones. However, integrating MoD into MLLMs is non-trivial. To address the challenges of training and inference stability as well as limited training data, we adapt the MoD module with two novel designs: tanh-gated weight normalization (TanhNorm) and symmetric token reweighting (STRing). Moreover, we observe that vision tokens exhibit higher redundancy in deeper layers and thus design a progressive ratio decay (PRD) strategy, which gradually reduces the token retention ratio layer by layer, employing a shifted cosine schedule. This crucial design fully unleashes the potential of MoD, significantly boosting the efficiency and performance of our models. Extensive experiments on two baseline models across 15 benchmarks show that our model matches or even surpasses the performance of corresponding baselines, while requiring only 55.6% TFLOPs and 53.7% KV cache storage during inference, and 77.7% GPU hours during training.

View on arXivView PDF

Code Implementations(1)

MCG-NJU/p-MoDCommunity100%
Apache-2.0

[ICCV 2025] p-MoD: Building Mixture-of-Depths MLLMs via Progressive Ratio Decay

442Shell, PythonDec 2, 20241 years agoApache-2.0

Cite this paper

@article{zhang2024pmod,
  title  = {p-MoD: Building Mixture-of-Depths MLLMs via Progressive Ratio Decay},
  author = {Jun Zhang and Desen Meng and Zhengming Zhang and Zhenpeng Huang and Tao Wu and Limin Wang},
  year   = {2024},
  eprint = {2412.04449},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.04449v2}
}

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/2412.04449.svg)](https://codeofpaper.com/paper/2412.04449)

Discussion