MoD 深度混合模型是一种让每个 token 在每一层动态决定是否执行完整计算块的推理优化方法,核心是按容量预算挑选需要深算的 token、其余 token 通过残差直接跳过,能力包括 token 级路由、跳过多样性约束以及与稀疏专家模型的组合。它解决的是推理计算量与显存占用偏高的问题,并不解决路由策略训练不稳定、以及在现有算子实现上加速收益被额外开销削弱的问题。
MoD 深度混合模型的核心是让简单 token 少算、困难 token 多算,它可以帮助企业实现以下目标:
让推理算力明显下降。训练总计算量与稠密模型相当,但推理时每层只计算部分 token,等效运算次数随之减少。
让长上下文的收益更明显。序列越长,被跳过的 token 越多,加速比随长度提升,长文档处理场景尤其划算。
让吞吐随算力弹性提升。简单请求少算、复杂请求多算,同一套硬件可以承接更多并发的差异化负载。
让动态计算与稀疏专家互补。深度动态与宽度动态叠加使用,两个方向的加速收益可以同时取得。在推理服务网格中,它还可以与模型量化、推测解码和缓存压缩配合,构成模型结构优化的一环。
总之,MoD 深度混合模型可以帮助企业在不重新训练模型的前提下压低推理成本,用结构化跳算把算力用在真正需要的地方;前提是路由策略稳定并针对目标硬件做了算子适配,否则额外开销会吃掉本该得到的加速。其开源实现与生产部署案例相对成熟方案仍偏少,落地前需要自行评估算子适配与质量取舍。
翻译
Mixture of Depths is an inference optimization method that lets each token decide at every layer whether to run the full computation block. Its core is selecting, under a capacity budget, the tokens that need to be computed deeply while the rest skip the layer through the residual path, with capabilities covering token-level routing, constraints that keep skipping diverse, and combination with sparse expert models. It solves the problem of high inference computation and memory footprint, but it does not solve the unstable training of the routing policy, nor the way extra overhead can eat into the speedup on existing kernel implementations.
At the heart of Mixture of Depths is letting simple tokens cost less and difficult tokens cost more, which can help companies achieve the following:
Cut inference computation clearly. Total training computation stays comparable to a dense model, but at inference each layer computes only a subset of tokens, so the effective number of operations falls.
Make long contexts pay off more. The longer the sequence, the more tokens are skipped and the larger the speedup, which favors long-document workloads.
Let throughput scale with compute. Simple requests take the cheap path and complex ones the deep path, so the same hardware serves a more differentiated mix of concurrent load.
Let dynamic depth and sparse experts complement each other. Depth-side and width-side savings can be combined, so both kinds of acceleration are realized at once. Inside an inference service mesh it can also work alongside quantization, speculative decoding and cache compression as one part of model-side optimization.
In short, Mixture of Depths can help enterprises cut inference cost without retraining the model, using structured skipping to spend compute only where it is needed. That requires a stable routing policy and kernels adapted to the target hardware, otherwise the extra overhead cancels out the speedup that was supposed to be gained. Open-source implementations and production deployments remain fewer than those of more mature approaches, so teams have to weigh kernel adaptation and quality trade-offs themselves before deployment.