Back to paper library
arXiv 2025CVPR 2026Object detectionPaper notes

YOLO-Master

Cooking to Order

Original paper

YOLO-Master: MOE-Accelerated with Specialized Transformers for Enhanced Real-time Detection

Paper authors

Xu Lin · Jinlong Peng · Zhenye Gan · Jiawen Zhu · Jun Liu

Publication
CVPR 2026Conference
First submitted to arXiv
arXiv:2512.23273
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{objectdetectionyolomaster2025,
  title = {{YOLO-Master: MOE-Accelerated with Specialized Transformers for Enhanced Real-time Detection}},
  author = {Xu Lin and Jinlong Peng and Zhenye Gan and Jiawen Zhu and Jun Liu},
  year = {2025},
  eprint = {2512.23273},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.23273}
}
On this page

Whether the photo shows nothing but blue sky and a single seagull or an intersection packed with two hundred people, YOLO spends exactly the same amount of computation on it.

Every image takes the same path and passes through every one of the same layers; that's the default for nearly all detectors. Large language models switched approaches long ago. Mixture of experts (MoE) models like Mixtral have many sets of parameters, each input activates only a few of them, and different inputs take different paths.

At the end of 2025, Xu Lin, Jinlong Peng and colleagues at Tencent Youtu Lab brought this idea into YOLO and built YOLO-Master. They describe it as the first work to integrate MoE deeply into the YOLO architecture.

Figure 1 from the paper: latency (ms) on the horizontal axis and COCO AP on the vertical axis. Five N-size models are plotted: YOLO11-N at 1.5 ms and 39.4; YOLOv12-N at 1.64 ms and 40.6; YOLOv10-N at 1.84 ms and 38.5; YOLOv13-N at 1.97 ms and 41.6; and YOLO-Master-N at 1.62 ms and 42.4, at the very top. A dashed line runs from YOLO11-N to YOLO-Master-N and is labeled as the Pareto frontier; YOLOv12-N sits to the right of the dashed line.
Original Figure 1, Lin et al., from PDF page 1, arXiv license, scholarly quotation.

The paper's first figure compares only N sizes. YOLO-Master-N is at the top, with 42.4 AP at 1.62 ms; the only faster model is YOLO11-N at 1.5 ms, but its AP is 3 points lower.

Problem Definition

The authors start from an observation. Every improvement to YOLO, whether a new backbone, a reworked neck or added attention, is static. The model's capacity and computation are fixed at design time and stay the same whatever the input.

This causes two problems. Simple scenes don't need that much computation, so it's wasted; complex scenes need more capacity but can't get it. A detector tuned for crowded city streets has far more parameters than it can use on an empty highway; conversely, a detector slimmed down for speed falls short when it meets difficult scenes.

The idea of MoE is to give the model several sets of experts and let a routing network decide, based on the input, which ones to use. The total parameter count can then be large, but only a few experts are computed each time, so computation doesn't balloon along with it.

MoE is already mature in language models and ViT classification, but nobody had yet made it work well in a real-time detector. Detection has to handle multi-scale feature maps with widely varying object density and size, and earlier attempts to put MoE into ViT detectors were all too computationally heavy for real-time use.

Solution

Figure 2 from the paper: the top row is the overall YOLO-Master architecture, with one ES-MoE module sandwiched between convolution layers in both the Backbone (feature extraction) and the Neck (feature fusion), and the Head outputting predictions at three scales, P3, P4 and P5. The bottom row zooms in on the ES-MoE module: the input feature [C×H×W], the Dynamic Routing Network, Softmax Gating producing weights w, four experts Expert1 to Expertn each processing the features, Top-K Selection (K=2) picking two of them, and finally Weighted Aggregation. On the right are the routing strategies, in three kinds: standard softmax, Soft Top-K for training and Hard Top-K for inference.
Original Figure 2, Lin et al., from PDF page 3, arXiv license, scholarly quotation.

The overall architecture is simply YOLOv12, with certain convolution modules in the backbone and neck replaced by ES-MoE (Efficient Sparse Mixture-of-Experts). Let's follow one feature map through the bottom row.

Routing: One Look at the Whole Image

The input is a C×H×WC\times H\times W feature map XX. The routing network has to decide which experts this map should go to.

The first step is global average pooling, which squeezes the whole feature map into a CC-dimensional vector PP. Next come two 1×1 convolutions with a SiLU in between, first reducing the channels to max⁡(C/8,8)\max(C/8, 8) and then outputting EE numbers, one score per expert, Λ\Lambda:

Λ=Conv1×1 E(SiLU(Conv1×1 C/8(P)))\Lambda = \text{Conv}^{\,E}_{1\times 1}\Big(\text{SiLU}\big(\text{Conv}^{\,C/8}_{1\times 1}(P)\big)\Big)

Because global pooling comes first, this step's computation doesn't depend on the feature map's size; however large the feature map, it works on just one CC-dimensional vector.

It also means routing is decided per whole image. Every position in an image goes to the same few experts, unlike MoE in language models, where each token picks its own experts. When the paper talks about allocating computation by scene complexity, this image-level choice is what it means.

Experts: Different Kernel Sizes

Each expert is a depthwise separable convolution, and they differ in kernel size, such as 3×3, 5×5 and 7×7, which correspond to receptive fields of different sizes. By default there are 4 experts, with 2 active at a time.

Depthwise separable convolutions are cheap, so even with several experts, the total parameter count doesn't grow by much.

There's a small oddity here. The paper's title says "MOE-Accelerated with Specialized Transformers", but every expert in the paper is a convolution; the method contains no Transformer experts.

Different Routing for Training and Inference

MoE has an old problem. At inference we want to compute only KK experts and genuinely save computation; but if training rigidly selects only KK, the experts that aren't selected get no gradient, and the routing network doesn't learn well either.

The authors give training and inference each their own rule. First, the scores go through a softmax to get each expert's weight Ω′\Omega':

Ω′=softmax(Λ)\Omega' = \text{softmax}(\Lambda)

Soft top-K for training. Find the KK experts with the highest weights, multiply the rest by 0, and renormalize what remains so it sums to 1:

Ωtrain=Ω′⊙MK∑j(Ω′⊙MK)j+ϵ\Omega_{train} = \frac{\Omega'\odot M_K}{\sum_j (\Omega'\odot M_K)_j + \epsilon}

MKM_K is a mask that is 1 for the top KK and 0 elsewhere. Although only KK experts contribute to the output, the weights come from the full softmax, so gradients still flow back through the whole routing network.

Hard top-K for inference. Pick the top KK directly from the scores Λ\Lambda and apply softmax only to those KK; the other experts get a weight of 0 and aren't even computed.

Finally, the outputs of the selected experts are summed by weight and normalized once more to give the ES-MoE output.

Don't Let Experts Sit Idle

Another common problem in MoE training is expert collapse. The routing network easily comes to favor one or two experts that happen to do better at the start, and the others, never selected, never learn anything.

The authors add a load-balancing loss. It computes each expert's average usage μi\mu_i over the whole batch and all positions, and penalizes its deviation from the ideal average 1/E1/E:

LLB=1E∑i=1E(μi−1E)2\mathcal{L}_{LB} = \frac{1}{E}\sum_{i=1}^{E}\left(\mu_i - \frac{1}{E}\right)^2

The total loss is YOLO's original detection loss plus this term. After the ablations, the authors' final setting removes DFL (Distribution Focal Loss) from the detection loss and sets the load-balancing loss weight to 1.5.

Discussion

Experimental Setup

The base is YOLOv12 at the N size; with ES-MoE added, it trains for 600 epochs at 640×640. Evaluation uses five datasets: COCO, PASCAL VOC, VisDrone (drone aerial footage with many small objects), KITTI (self-driving) and SKU-110K (supermarket shelves, 147 objects per image on average).

For latency, the paper says only that it was measured "on a dedicated inference accelerator, following the standard hardware configuration of the YOLOv12 baseline (FP16, batch size=1)". The other models' latencies in the table are exactly the numbers the YOLOv12 paper measured on a T4, so they were presumably carried over directly.

Main Results

ModelCOCOVOCVisDroneKITTISKU-110KLatency (ms)
YOLOv10-N38.560.618.766.057.41.84
YOLO11-N39.461.018.567.857.41.50
YOLOv12-N40.660.718.367.657.41.64
YOLOv13-N41.660.717.567.757.51.97
YOLO-Master-N42.462.119.669.258.21.62

Compiled from Table 1 of the paper, mAP (0.5:0.95).

It comes first on all five datasets. Relative to its base, YOLOv12-N, it gains 1.8 on COCO, 1.4 on VOC, 1.3 on VisDrone, 1.6 on KITTI and 0.8 on SKU-110K, and latency is even 0.02 ms lower.

On VisDrone, with its many small objects, the previous YOLO generations actually scored lower each time, sliding from YOLOv10-N's 18.7 all the way to YOLOv13-N's 17.5; YOLO-Master pulls it back up to 19.6.

Scaling Up to S

ModelParams (M)GFLOPsCOCO mAP
YOLO11-S9.4019.747.0
YOLOv12-S9.1319.748.0
YOLOv13-S9.0020.848.0
YOLO-Master-S9.6428.649.1

Compiled from Table 2 of the paper.

At the S size, mAP rises by 1.1, but GFLOPs climb from 19.7 to 28.6, 45% more. This table gives no latency. MoE's whole point is to keep computation in check through sparse activation, and at the S size, computation was not kept in check.

The authors also used the same backbone for classification and segmentation. On ImageNet classification, YOLO-Master-cls-N reaches 76.6% top-1, nearly 5 points above YOLOv12-cls-N's 71.7%; on COCO instance segmentation, its mask mAP is 35.6, 2.8 above YOLOv12-seg-N.

Ablations

In the ablations, the default setting scores around 62 mAP throughout, in the same range as the main VOC result; the paper doesn't say which dataset the ablations were run on.

Where to put ES-MoE.

PlacementParams (M)mAP
None (baseline)2.6360.8
Neck only2.4958.2
Backbone only2.6662.1
Both2.7654.9

Compiled from Table 5 of the paper.

The results in this table are extreme. Backbone only gains 1.3; neck only actually loses 2.6; both together drop a full 5.9. The authors' explanation is that the backbone and the neck each have their own routing, and their gradients interfere during backpropagation, making training unstable and keeping the experts from specializing. So in the end, ES-MoE goes only in the backbone.

The architecture diagram at the start draws ES-MoE in both places, but the setting actually adopted puts it only in the backbone.

Number of experts and K. 4 experts is best (62.3); 2 gives only 61.0, and 8 gives 62.0 with a third more parameters. As for how many of the 4 to activate, K=1K=1 gives 61.3, K=2K=2 61.8, K=3K=3 61.8, and K=4K=4, with every expert active, 61.9. The authors choose K=2K=2 to balance accuracy and sparsity; going by the numbers, there's no clear gain beyond K=2K=2.

Loss settings. Keeping both DFL and the load-balancing loss while raising the load-balancing weight to 1.5 makes the training curve oscillate, and mAP falls to 61.4; removing DFL and keeping only the load-balancing loss (weight 1.5) gives a smooth curve and 62.2. The authors suspect that the gradients of DFL and the load-balancing loss conflict.

When reading these ablation tables, keep in mind that the same final default setting scores 62.1, 62.3, 61.8 and 62.2 in different tables, a spread of 0.5, and many of the comparisons in the tables involve gaps within that range.

Conclusion

By putting MoE into YOLO, YOLO-Master takes first place on all five datasets at the N size without adding latency. It takes one look at the whole image through global pooling and picks two experts with different kernel sizes to process it; training uses soft top-K to keep the gradients flowing, and inference uses hard top-K to compute only two experts.

Its design hinges on details. ES-MoE works only in the backbone and regresses when placed in the neck; DFL has to go for training to be stable. At the S size, computation grows by almost half, and latency isn't reported.

The official code later moved to Tencent's GitHub organization and gained tools for pruning and diagnosing MoE experts, which can remove experts that hardly get used. Once you have the pretrained weights, checking which experts your own data keeps busy and which sit idle tells you more than deploying straight away.