Manuscript Offprint
arXiv:2610.39408YOLOF-MLD: A Multi-Level Distillation Framework for Efficient Object Detection
Xiaolong Wu , Liming Zheng , Zitong Liu , Yue Zheng
The Chinese University of Hong Kong (Shenzhen), Shenzhen, Guangdong, 518172, P.R. China
The Chinese University of Hong Kong, Shatin, New Territories, Hong Kong SAR, China
Email: 224010119@link.cuhk.edu.cn, 125090999@link.cuhk.edu.cn, 1155248030@link.cuhk.edu.hk, zhengyue@cuhk.edu.cn
Abstract—Efficient object detection on resource-constrained edge devices is essential for safety-critical applications such as fire-smoke monitoring. However, current lightweight frameworks, such as YOLO26, still rely on the parameter-dense multi-branch Feature Pyramid Network (FPN), preventing full exploitation of their lightweight advantage. Replacing FPN with YOLOF's single-input-single-output (SiSo) neck is a promising solution but causes substantial accuracy loss. To alleviate this, we propose YOLOF-MLD, a CPU-efficient multi-level distillation (MLD) framework that combines a YOLO26n backbone, a SiSo neck, and MLD. It aligns features at the backbone via sliced-semantics matching, neck with receptive-field matching, and response levels. On D-Fire and Annotated Fire-Smoke (AFS) datasets, YOLOF-MLD reduces the parameter count of YOLO26n by 35.7% and achieves a 62.3% speedup on Raspberry Pi 5, attaining 71.6% and 59.9% mAP50, respectively, compared with 75.5% and 60.0% for YOLO26n. These results demonstrate a competitive accuracy-latency trade-off for edge deployment. Our code is available at https://github.com/XiaolongWU111/YOLOF---MLD/blob/main/README.md.
Index Terms—Lightweight object detection, edge deployment, knowledge distillation, fire-smoke detection
I. INTRODUCTION
Edge-based visual detection is increasingly required in safety-critical applications such as fire-smoke monitoring and traffic surveillance. Deploying detectors on edge platforms is often constrained by limited computational capability, memory bandwidth, and power budgets. Despite these constraints, models must maintain high accuracy and timely alarms, as missed detections or delayed responses may endanger human lives and cause substantial economic losses. Therefore, developing lightweight, high-performance, and low-latency object detectors has become a critical requirement.
To address this, lightweight detectors have been proposed, which mainly follow two strategies. The first is efficient architecture design (e.g., MobileNet-SSDv2 [1], NanoDetPlus [2], PP-PicoDet [3], and tiny YOLO variants [4]), which reduces computation but sacrifices representation capability. The second is knowledge distillation (e.g., GID [5], SKD [6], CrossKD [7], and CanKD [8]), which recovers accuracy without architectural changes, but struggles with large teacher-student feature discrepancies.
To the best of our knowledge, YOLO26 [9] achieves the best accuracy-speed trade-off through its optimized architecture design. Nevertheless, YOLO26 [9] still relies on a multi-branch feature pyramid network (FPN) [13] neck, which utilizes up-sampling, concatenation, and extra convolutions to fuse multi-level features, complicating the topological structure and increasing inference latency.
Replacing FPN [13] with the YOLOF's [10] single-input-single-output (SiSo) neck can significantly reduce redundant computation and boost inference speed. However, directly coupling the SiSo [10] neck with YOLO26's lightweight backbone and framework is non-trivial. Our empirical observations show that this direct replacement causes a drastic accuracy drop, as the backbone is too lightweight to supply sufficient feature representation, violating YOLOF's "one-level feature carries enough context" assumption. Furthermore, the conventional YOLOF neck relies on naive dilated convolutions, which lacks the flexibility to adapt to targets with varying scales and irregular shapes, hindering effective context aggregation at the neck level.
To bridge this gap, we propose YOLOF-MLD, a multi-level distillation (MLD) framework tailored for SiSo neck based lightweight detector. By progressively aligning features across the backbone, neck and response levels, our method effectively transfers the rich, multi-scale contextual knowledge of a complex FPN teacher to a highly efficient SiSo student. Our contributions are threefold:
-
We propose YOLOF-MLD, a lightweight object detector that replaces the computational expensive multi-branch FPN [13] neck with an optimized SiSo neck, significantly reducing inference latency on edge devices.
-
We design an MLD framework comprising sliced semantics matching (SSM), receptive field matching (RFM), and response knowledge distillation (RKD) to effectively compensate for the representational loss caused by the architectural simplification.
-
We extensively evaluate the approach on two challenging fire-smoke benchmarks: D-Fire [14] and the annotated fire-smoke (AFS) dataset [15] on CPU platforms. Compared to the YOLO26n [9] baseline, our YOLOF-MLD reduces the parameter count by 35.7% and achieves relative speedups of 62.3% and 76.2% on Raspberry Pi 5 and a 4-thread Intel CPU, respectively, while preserving nearly identical accuracy on AFS (59.9% vs. 60.0% mAP50). Despite using more parameters, it also achieves more than 20% relative speedups than YOLOX-nano [11] and NanoDet-plus-m [2] on both platforms.
A. FPN Neck [13]
Multi-scale feature fusion is essential for detecting objects of varying sizes. The mainstream FPN utilizes a multi-branch topology, where high-level semantic features are progressively up-sampled and laterally concatenated with low-level features. Although effective, this architecture introduces complex memory access patterns and significant computational overhead. On resource-constrained edge CPUs, this multi-branch topology severely bottlenecks inference latency.
B. YOLOF's Dilated SiSo Neck [10]
To eliminate the FPN bottleneck, YOLOF proposes a highly streamlined SiSo neck. Instead of fusing multiple scales, the SiSo neck takes only the deepest feature map from the backbone and processes it through sequentially stacked dilated convolution blocks. By introducing gaps between convolution weights, the SiSo neck expands the receptive field to capture global context without the latency penalty of up-sampling and concatenation.
III. METHODOLOGY
This section details the proposed MLD framework, as illustrated in Fig. 1. The teacher consists of a backbone and employs a multi-branch FPN [13] neck that generates three outputs with varying receptive fields. In contrast, the student comprises a backbone and utilizes a lightweight, single-branch SiSo neck comprising three concatenated dilated convolutions. To bridge the resulting representational gap, we propose to align the networks progressively in backbone, neck, and response levels.
Throughout the paper, superscript and denote teacher- and student- related variables, respectively, while c and d denote the channel and spatial dimensions of feature maps.

Fig. 1: Framework of YOLOF-MLD.
A. Backbone-level Sliced-semantics Matching (SSM)
Conventional feature distillation typically aligns teacher and student features at corresponding depths. Although teacher's deep layer features provide strong semantic supervision, they have also undergone repeated downsampling and abstraction, and may therefore contain limited fine-grained spatial details. Such details are particular valuable for compensating the representation loss of a compact student. In contrast, the teacher's early-stage features preserve higher-resolution local structures and appearance cues, which motivates us to use an early-stage teacher feature to supervise the student's late-stage feature , enabling the final student representation to retain fine-grained information beyond conventional same-stage distillation.
However, directly aligning and is problematic. The teacher's early-stage feature contains massive, high-dimensional raw information that easily overwhelms the student if forced into a rigid, element-wise alignment. Besides, and differs significantly in both spatial dimensionality and feature distribution. Classical methods [8] [12] attempt to bridge this gap by using parameterized projection layers. However, these methods either suffer from the teacher's knowledge loss during the projection process, or induce the student model to rely too much on the projection branch, reducing the gain of distillation.
To overcome this dimension-distribution mismatch without relying on lossy projections, we propose SSM, which is an optimal transport (OT) inspired distillation. Specifically, given and , we first slice them along the channel dimension: , . Since the two sliced features differ in spatial dimension, we utilize a lightweight projector to align the student's spatial resolution to the teacher's, yielding , where is composed only of depth-wise convolutions. This architectural constraint limits the projector's capacity, effectively preventing the student from over-relying on the auxiliary branch.
Using these aligned features, we establish the matching relationship (i.e., the transport plan) via a joint distribution . Since the exact conditional matching probability is unknown and computationally expensive to strictly solve, we approximate it using a Softmax operation over the cosine similarities between slices. Assuming a uniform marginal distribution for the student slices , the joint distribution is then approximated as:
(1)
where is the temperature. To encourage confident and precise semantic matching, we optimize the projector via joint entropy minimization:
By minimizing , the projector is forced to discover unambiguous fine-grained co-relationship between sliced semantics. Consequently, for each student slice , we can identify its most similar teacher slice by maximizing the joint distribution:
The distillation objective is then formulated to minimize the distance between these optimally matched pairs, which approximates the semi-relaxed Kantorovich OT problem [16]:
where denotes the complete set of joint distributions. This OT-inspired formulation provides a highly fine-grained optimization objective without imposing rigid point-to-point constraints.
However, since the teacher’s early-stage features inevitably contain background noise irrelevant to the target task, directly applying Eq. 4 is sub-optimal. To alleviate this, we introduce a spatial attention mask with mean value normalization to filter out the unrelated noise by averaging the teacher’s channels: . The final spatially-weighted SSM objective becomes:
B. Neck-level Receptive-field Matching (RFM)
Formally, the teacher's FPN neck generates three multi-scale output features , , . These features naturally capture contexts with progressively larger receptive fields, i.e., , where is the receptive field measure function. In contrast, the student relies on a SiSo neck , which sequentially stacks three convolution blocks: , and .
The baseline SiSo design (e.g., YOLOF) relies on standard dilated convolutions. By introducing gaps between convolution weights, dilated convolutions successfully expand the receptive field, achieving , without adding computational overhead. However, their sampling grids remain strictly rigid and uniformly distributed, hindering the network's ability to model targets with extreme scale variations and irregular geometric deformations.
To alleviate this, we propose RFM distillation to guide the student's stacked dilated blocks to mimic the FPN's aggregation mechanism. We accomplish this in a divide-and-conquer manner by strictly aligning features with comparable receptive-field scales:
where denotes projectors to match the feature dimensions. By minimizing , the adaptive SiSo neck implicitly acquires the rich multi-scale fusion capability of the FPN, while circumventing the inference latency of a complex multi-branch topology.
C. Response-level Knowledge Distillation (RKD)
Beyond intermediate feature alignment, we introduce RKD to directly utilize the teacher's predictions to supervise the student. Specifically, let and denote the final predictions of the teacher and the student, respectively, where represents the bounding box coordinates, is the classification logits, and is the number of predicted boxes.
For every student’s bounding box, we first find the corresponding teacher’s bounding box via the assignment rule of YOLO26 [9], i.e., . Then we align the two matched predictions. In detail, for bounding box alignment, we utilize IoU loss, and for probability distribution alignment, we utilize KL divergence with temperature , i.e.,
(7)
D. Online Distillation and Overall Objective
Finally, we train the entire MLD framework using an online distillation paradigm, optimizing both models in parallel. The total loss is:
where and denote the standard detection losses for student and teacher using ground-truth hard labels. The hyperparameters , , and are empirically set to 0.01, 0.01, 0.008, 0.12 by default to balance the MLD terms, s denotes batch size.
IV. EXPERIMENTS
A. Experiment Settings
Datasets. We evaluated our method on 2 datasets: D-Fire [14], a large-scale dataset comprising 21,527 images of fire and smoke, and Annotated fire-smoke dataset (AFS) [15], which is composed of 11027 images of fire and smoke. Both of them effectively simulate harsh real-world environment demanding efficient edge deployment.
Implementation Details. We choose YOLO26n as the backbone of both teacher and student, and aim to adapt the FPN-based YOLO26n baseline for efficient edge deployment. The temperatures are empirically set to for SSM and for RKD. To evaluate inference efficiency across different CPU-based edge settings, we benchmark the models on a Raspberry Pi 5 (Model B Rev 1.1) and an Intel(R) Core(TM) i7-10750H. The latter represents a higher-performance edge gateway. Inference on both platforms is restricted to four CPU threads to emulate constrained per-stream compute resources. Models are trained in Pytorch [18], exported and executed via ONNX [17] Runtime with a batch size of 1.
B. Performance and Comparison
To validate the effectiveness of our proposed framework, we compare it against two groups of baselines:
• Lightweight Detectors: Tiny-YOLOv3 [4], NanoDet-m-0.5x [2], NanoDet-Plus-m [2], and YOLOX-Nano [11].
• Distillation Methods: GID [5], SKD [6], GKD [12], CrossKD [7], and CanKD [8].
TABLE I: Comparisons with Lightweight Object Detectors
| Model | Param. | FPS (Avg) | D-Fire [14] | AFS [16] | |||
|---|---|---|---|---|---|---|---|
| Raspberry Pi | Intel CPU | mAP50 | mAP50-95 | mAP50 | mAP50-95 | ||
| TN-YOLOv3 [4] | 12.13M | 3.79 | 15.81 | 71.5 | 37.1 | 54.7 | 28.3 |
| NanoDet-m-0.5x [2] | 0.26M | 26.23 | 97.67 | 70.8 | 33.5 | 56.2 | 27.2 |
| NanoDet-plus-m [2] | 1.17M | 9.60 | 40.67 | 77.8 | 43.9 | 56.4 | 32.1 |
| YOLOX-nano [11] | 0.90M | 10.06 | 49.58 | 72.2 | 41.1 | 57.8 | 32.0 |
| YOLO26n [9] | 2.38M | 7.86 | 33.92 | 75.5 | 43.4 | 60.0 | 33.5 |
| YOLOF-MLD (Ours) | 1.53M | 12.76 | 59.78 | 71.6 | 38.8 | 59.9 | 32.6 |
Note: FPS (Avg) is the average FPS across both datasets, excluding pre-processing and post-processing (e.g., non-max suppression).
- Comparison with lightweight detectors: Baseline lightweight detectors are trained using their default settings and official codes, and we set the maximum input image size as 640 under their different multi-scale training strategy. For inference evaluation, we use an input resolution of and report the frame-per-second (FPS) on the Raspberry Pi and the Intel CPU platforms, measured from model-forward latency only and excluding pre- and post-processing. For detection accuracy, we adopt the standard mean average precision (mAP) metrics: mAP@0.5 and mAP@0.5-0.95, which are denoted as mAP50 and mAP50-95 for brevity.
Table I compares YOLOF-MLD against existing lightweight detectors across two datasets. Compared with the original YOLO26n baseline, our method reduce the parameter count from 2.38M to 1.53M and achieves a relative speedup (7.86 to 12.76 FPS) on the Raspberry Pi 5 and relative speedup (33.92 to 59.78 FPS) on Intel CPU. This acceleration introduces an accuracy trade-off on D-Fire (mAP50/mAP50-95: to ), while nearly preserving the baseline accuracy on AFS vs. . Compared with the ultralightweight NanoDet-m-0.5x, YOLOF-MLD prioritizes detection accuracy over maximum throughput, achieving higher mAP50/mAP50-95 on both datasets. Moreover, despite having more parameters, YOLOF-MLD outperforms YOLOX-nano and NanoDet-plus-m in inference speed, achieving relative speed up of and on Raspberry Pi 5/Intel CPU, respectively. These results suggest that parameter count alone does not characterize practical CPU inference efficiency, and a streamlined SiSo topology can offer favorable balance between detection accuracy and deployment speed.
- Comparison with distillation methods: For all distillation-related experiments, we adopt a unified training configuration for fair comparison. Specifically, the baseline and competing KD methods (GID, SKD, GKD, CrossKD, and CanKD) are trained for 200 epochs with a batch size of 32 using the MuSGD optimizer, an initial learning rate of 0.01 (for CanKD [8], the learning rate is set as 0.001 for numerical stability), and a linear decay schedule. All methods use the same student architecture, consisting of the YOLO26n [9] backbone and YOLOF [10]'s dilated SiSo neck, and follow the original YOLO26 label-assignment rule.
As shown in Table II, most general-purpose methods provide weak improvements on the baselines and may even cause negative transfer; for example, SKD improves the baseline by 1.5 percentage points of mAP50 on AFS but decreases by 0.5 percentage points of mAP50-95 on D-Fire. In contrast, our MLD strategy consistently improves the baseline by 1.8/1.0 mAP50/mAP50-95 on D-Fire and 1.1/1.0 on AFS. Notably, it also outperforms the strongest competitor (CanKD) by a significant margin of +0.8 and +0.7 mAP50-95 on D-Fire and AFS, respectively, demonstrating the effectiveness of the proposed multi-level transfer for the FPN-to-SiSo setting.
TABLE II: Comparison of Distillation and Ablation Study
| Method | D-Fire [14] | AFS [15] | ||
|---|---|---|---|---|
| mAP50 | mAP50-95 | mAP50 | mAP50-95 | |
| Baseline | 69.8 | 37.8 | 58.8 | 31.6 |
| GID [5] | 70.0(+0.2) | 37.8 (+0.0) | 58.2 (-0.6) | 31.7 (+0.1) |
| SKD [6] | 70.3 (+0.5) | 37.3 (-0.5) | 60.3 (+1.5) | 32.4 (+0.8) |
| GKD [12] | 69.5 (-0.3) | 36.4 (-1.4) | 55.8 (-3.0) | 29.5 (-2.1) |
| CrossKD [7] | 70.2 (+0.4) | 38.0 (+0.2) | 59.2 (+0.4) | 31.7 (+0.1) |
| CanKD [8] | 70.4 (+0.6) | 38.0 (+0.2) | 59.5 (+0.7) | 31.9 (+0.3) |
| + Uniform Matching [10] | 65.9(-3.9) | 34.9 (-2.9) | 58.6(-0.2) | 30.0(-1.6) |
| + RFM | 70.2 (+0.4) | 38.1 (+0.3) | 58.4 (-0.4) | 31.8 (+0.2) |
| + RFM + SSM | 70.5 (+0.7) | 37.8 (+0.0) | 59.7 (+0.9) | 32.2 (+0.6) |
| + RFM + SSM + RKD(ours) | 71.6 (+1.8) | 38.8 (+1.0) | 59.9 (+1.1) | 32.6 (+1.0) |
Note: Student without distillation; Top k=4.
C. Ablation Study
We conduct ablations on the proposed YOLOF-MLD framework. The baseline consists of the YOLO26n backbone and the SiSo neck, trained without distillation while retaining the original YOLO26n dynamic label-assignment rule. We first replace this rule with YOLOF's Uniform Matching [10], which encourages a more balanced positive-negative label assignment ratio to compensate for the accuracy drop caused by replacing FPN with dilated SiSo neck. However, it reduces overall performance on D-Fire datasets by up to 3.9 mAP50 and on AFS datasets by up to 1.6 mAP50-95, possibly because sparse prediction locations on low-resolution SiSo feature maps may yield low-quality positive samples with substantial background content. We then add RFM, SSM, and RKD individually to the baseline. As shown in Table II, every sub-method continues to improve the baselines; combining all components yields a cumulative gain of 1.8/1.1 mAP50 and 1.1/1.0 mAP50-95.
D. Conclusion and Future Works
In conclusion, we presented YOLOF-MLD, a CPU-efficient object detector that combines a YOLO26n backbone with a lightweight SiSo neck derived from YOLOF. By incorporating multi-level knowledge distillation, the proposed framework mitigates the accuracy degradation caused by replacing the multi-branch FPN neck. Experiments on two fire-smoke detection datasets demonstrate that YOLOF-MLD substantially improves the inference efficiency of the YOLO26n baseline on both Raspberry Pi and thread-constrained Intel CPU, while maintaining competitive detection accuracy. In future work, we will further investigate backbone optimization and its integration with the proposed MLD framework to reduce remaining computational redundancy.
REFERENCES
[1] Y.-C. Chiu, C.-Y. Tsai, M.-D. Ruan, G.-Y. Shen, and T.-T. Lee, "Mobilenet-SSDv2: An improved object detection model for embedded systems," in 2020 International conference on system science and engineering (ICSSE), 2020, pp. 1–5.
[2] RangiLyu, “NanoDet-Plus: Super fast and high accuracy lightweight anchor-free object detection model,” 2021. [Online]. Available: https://github.com/RangiLyu/nanodet
[3] G. Yu et al., “PP-PicoDet: A better real-time object detector on mobile devices,” arXiv preprint arXiv:2111.00902, 2021.
[4] P. Adarsh, P. Rathi, and M. Kumar, “YOLO v3-Tiny: Object Detection and Recognition using one stage improved model,” in 2020 6th international conference on advanced computing and communication systems (ICACCS), 2020, pp. 687–694.
[5] X. Dai et al., “General instance distillation for object detection,” in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2021, pp. 7838–7847.
[6] P. De Rijk, L. Schneider, M. Cordts, and D. Gavrila, “Structural knowledge distillation for object detection,” Advances in Neural Information Processing Systems, vol. 35, pp. 3858–3870, 2022.
[7] J. Wang, Y. Chen, Z. Zheng, X. Li, M.-M. Cheng, and Q. Hou, "CrossKD: Cross-head knowledge distillation for object detection," in 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2024, pp. 16520–16530.
[8] S. Sun and W. Ohyama, “CanKD: Cross-Attention-based Non-local operation for Feature-based Knowledge Distillation,” in 2026 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), IEEE, 2026, pp. 8606–8616.
[9] G. Jocher, J. Qiu, M. Liu, S. Lyu, F. C. Akyon, and M. E. Kalfaoglu, "Ultralytics YOLO26: Unified real-time end-to-end vision models," arXiv preprint arXiv:2606.03748, 2026.
[10] Q. Chen, Y. Wang, T. Yang, X. Zhang, J. Cheng, and J. Sun, “You only look one-level feature,” in 2021 IEEE/CVF conference on computer vision and pattern recognition (CVPR), 2021, pp. 13034–13043.
[11] Z. Ge, S. Liu, F. Wang, Z. Li, and J. Sun, “YOLOX: Exceeding YOLO series in 2021,” arXiv preprint arXiv:2107.08430, 2021.
[12] Q. Lan and Q. Tian, “Gradient-guided knowledge distillation for object detectors,” in 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2024, pp. 423–432.
[13] T.-Y. Lin, P. Dollár, R. Girshick, K. He, B. Hariharan, and S. Belongie, "Feature pyramid networks for object detection," in 2017 IEEE conference on computer vision and pattern recognition (CVPR), 2017, pp. 936–944.
[14] P. V. A. Venancio, A. C. Lisboa, and A. V. Barbosa, “An automatic fire detection system based on deep convolutional neural networks for low-power, resource-constrained devices,” Neural Computing and Applications, vol. 34, no. 18, pp. 15349–15368, 2022.
[15] S. Partheepan, “Annotated Fire -Smoke Image Dataset for fire detection Using YOLO,” 4 2025, doi: 10.25946/28747046.v1.
[16] C. Villani, “Optimal transport: old and new,” vol. 338, 2009.
[17] O. R. developers, “ONNX Runtime.” Accessed: Oct. 22, 2026. [Online]. Available: https://onnxruntime.ai/
[18] A. Paszke et al., “Pytorch: An imperative style, high-performance deep learning library,” Advances in neural information processing systems, vol. 32, 2019.