Mobile platform multi-target classification method based on multi-teacher assisted instance adaptive DNN

By employing a multi-teacher-assisted example-adaptive dynamic neural network framework, combined with course learning and multi-teacher knowledge distillation, the generalization and robustness issues of dynamic neural networks on mobile platforms are addressed. This results in lightweight and efficient multi-objective classification that adapts to complex environments and changing objectives.

CN118097228BActive Publication Date: 2026-11-20NANJING TECH UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410085261.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-21
Publication Date
2026-11-20
Estimated Expiration
2044-01-21

AI Technical Summary

Technical Problem

Existing technologies struggle to improve the generalization and robustness of dynamic neural networks on mobile platforms, and the lack of collaborative optimization between policy and detection networks makes it difficult for models to meet the accuracy and speed requirements of real-time target classification under resource-constrained conditions.

Method used

We employ a multi-teacher-assisted instance-adaptive dynamic neural network framework, combining course learning and multi-teacher knowledge distillation. By generating routing vectors through a policy network, we dynamically adjust the residual blocks of the detection network, achieving lightweight and efficient classification.

Benefits of technology

Under resource-constrained conditions, it significantly improves the detection accuracy and inference speed of multi-target classification, reduces the model parameter volume and inference latency compared to traditional methods, and adapts to complex environments and target changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118097228B_ABST
    Figure CN118097228B_ABST
Patent Text Reader

Abstract

Aiming at the multi-instance classification task on resource-constrained vehicle platforms, the application proposes a mobile platform multi-target classification method based on multi-teacher assisted instance adaptive DNN, which realizes the dual optimization of detection accuracy and inference speed. The student network includes a strategy network and a multi-branch residual block detection network. The strategy network uses curriculum learning to extract task-related features and dynamically generates a routing vector that matches the instance attributes. The routing vector is mapped to the detection network, guiding the adaptive activation and skipping of the residual block to adapt to the diversity of autonomous driving instances. In order to enhance the overall inference performance of the student network, a multi-teacher guided joint training framework is proposed. The strategy network relies on the detection results of the multi-teacher combined knowledge and feedback to optimize the routing decision, and the detection network fine-tunes its parameters under the guidance of the routing vector. The experimental results on the dataset confirm that the method can maintain the sparsity of the network channel when facing images of different complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the application of artificial intelligence technology in mobile platforms such as autonomous driving, specifically a multi-object classification method for mobile platforms based on a multi-teacher-assisted instance adaptive DNN. Background Technology

[0002] Mobile platforms, exemplified by autonomous vehicles and drones, place extremely high demands on the real-time performance and efficiency of neural network models. For instance, autonomous vehicles need to process massive amounts of sensor data in real time, including camera images, radar, and LiDAR point clouds. This data requires rapid analysis through neural network models to support real-time vehicle decision-making and control. If the model's inference speed is too slow, it will be unable to respond promptly to changes on the road, increasing the risk of accidents. Considering the limited computing resources of autonomous vehicles, especially in embedded systems, coupled with the low-latency requirements of in-vehicle applications, traditional neural network detection frameworks fall short in terms of real-time performance and the ability to meet diverse needs. For example, detection networks often require 30-100ms to process a single image, far exceeding the latency requirements of autonomous driving. Drones performing monitoring tasks also need to analyze collected video in real time. Due to their reliance on battery power and limited computing and storage capabilities, drone platforms struggle to support complex model inference. Therefore, there is an urgent need to explore lightweight and adaptive models customized for mobile platforms to enable real-time perception and decision-making in mobile environments.

[0003] Improving model inference speed is mainly achieved through model compression, such as model pruning [1-3], which reduces model size and computation by removing unimportant weights or neurons; and knowledge distillation [4-6], which uses a large model (teacher model) to guide the training of a small model (student model), thereby enabling the small model to have faster inference speed while maintaining performance. However, these methods have some inherent limitations when dealing with multi-objective classification tasks due to dynamic changes in scenarios and tasks. After training, the model structure and parameters are usually fixed, making it difficult to adapt to changes in different tasks and datasets.

[0004] Dynamic neural networks (DNNs)[7] are a promising solution that can adaptively adjust their structure and parameters according to different input data, thereby better adapting to different tasks and datasets. This adaptability makes dynamic neural networks more flexible and robust when dealing with data that is uncertain and variable. Figure 1For example, dynamic neural networks typically include a policy network and a detection network. They can automatically adjust the network structure and depth to handle moving targets with frequently changing scenes. For targets in simple backgrounds, only a few convolutional layers are needed for recognition; however, deeper layers are required for complex scenes. This method can improve inference speed while meeting recognition accuracy requirements.

[0005] Due to their advantages in reasoning efficiency and expressive power, dynamic neural networks have opened up new avenues for solving object classification on mobile platforms, but they still face some unique challenges, mainly including:

[0006] (1) Improve the generalization and robustness of dynamic neural networks.

[0007] Compared with static neural networks, dynamic neural networks have more complex structures and inferences. Inappropriate structural design and incomplete training strategies can easily cause the structure of dynamic networks to collapse, making the model lose its adaptive adjustment ability. In the face of the dynamism of instances and environments, it is urgent to enhance the generalization and robustness of dynamic neural networks. Chen et al. [8] proposed a self-adaptive network pruning method (SANP) to prune each channel according to the predicted saliency scores. Wang proposed a dual dynamic inference framework [9] that allows simultaneous layering and channel skipping to adapt to different task requirements in the Internet of Things. By combining channel gating and layer gating, Bejnordi et al. constructed a neural network that adjusts its own topology according to the input

[10] . BlockDrop

[11] provides an effective dynamic inference method for the ResNet architecture, which improves the inference efficiency and performance of the model by dynamically and selectively "dropping" blocks in the network during the inference process. The dynamic detection capabilities of these methods are limited and cannot exceed the selected detection network. More importantly, relying on a single source of knowledge weakens the ability of dynamic networks to detect noisy (e.g., blurred instances) or outlier (e.g., incomplete instances) images.

[0008] (2) Cooperative optimization of strategy-detection network.

[0009] Generally speaking, the policy network determines the activation mode of neurons, while the detection network is responsible for classifying specific task targets. Inappropriate policy network decisions will weaken the effectiveness of the detection network, and the effective collaboration between the two networks becomes an important challenge. GaterNet

[12] is a convolutional neural network module for dynamic filter selection. It achieves dynamic filter selection by introducing an additional gating mechanism to control the activation and inhibition of filters. Lin et al.

[13] proposed a statistical method to identify redundant neuronal connections and weights. This method automatically determines which connections and weights can be pruned through statistical analysis of the input data, thereby achieving compression and optimization of dynamic neural networks. SkipNet

[14] is an improved residual network that integrates supervised learning and reinforcement learning to solve the "non-differentiable jump decision". The above methods prune the detection network under the guidance of the policy network to reduce the inference cost. Since there is a dependency between specific instances and filters, only considering dynamic pruning of filters will lead to the problem of mismatch between the policy network and some input instances, which weakens the detection accuracy. Summary of the Invention

[0010] To address the two challenging issues in existing technologies—improving the generalization and robustness of dynamic neural networks and co-optimizing policy-detection networks—this invention proposes a multi-teacher-assisted instance adaptive dynamic neural network for multi-target classification on mobile platforms (e.g., vehicle-mounted or drone-mounted). The aim is to ensure classification accuracy and real-time performance when using data collected from mobile platforms under resource constraints.

[0011] This dynamic neural network framework comprises a customizable teacher network and a student network consisting of a policy network and a detection network. The policy network adaptively extracts task features based on the expertise provided by multiple teacher networks, while the detection network dynamically selects network routes based on the routing vectors provided by the policy network.

[0012] The main innovations and contributions of this invention include:

[0013] First, a lightweight policy network based on curriculum learning (CL) is developed. The routing vectors it generates are mapped to a detection network composed of multi-branch residual blocks, determining the on and off states of these residual blocks. Under the guidance of a multi-teacher network, the proposed policy network outputs routing vectors that match the task attributes, while simultaneously reducing the inference cost of both the policy and detection networks.

[0014] Second, a multi-teacher knowledge distillation-driven joint training framework was developed to improve the robustness and generalization ability of the student network. The detection network and policy network learn feature representations and routing policies from the combined knowledge of multiple pre-trained teacher models, respectively, enabling the student network to construct an instance-path mapping relationship similar to a routing table, thereby adapting to the diversity and changes in the environment, target, and data during movement.

[0015] Third, experimental results on the CIFAR and ImageNet datasets confirm the efficiency of the proposed method in compressing the model. With comparable detection accuracy, it reduces model parameter volume by 98% and 89% compared to VGG-19 and DenseNet121, respectively. Compared to unsupervised and single-supervised models, student networks under multi-supervised guidance produce better classification results. At the same accuracy level, it reduces inference latency by 52% and 62% compared to early retirement and pruning, respectively. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of dynamic reasoning for simple and complex instances in the existing technology;

[0017] Figure 2 This is a schematic diagram of an instance-adaptive dynamic neural network under multi-teacher network guidance according to the present invention;

[0018] Figure 3 This is a schematic diagram of the multi-branch residual structure of the present invention;

[0019] Figure 4 This is a schematic diagram of the multi-teacher-assisted instance adaptive dynamic neural network joint training workflow of the present invention;

[0020] Figures 5(a) to 5(c) Feature visualization of the student model Inception15 on the CIFAR-100 dataset, where:

[0021] Figure 5(a) shows the model without teacher (model) guidance.

[0022] Figure 5(b) shows the single-teacher (model) ResNet110 guidance.

[0023] Figure 5(c) shows the three-teacher (model) ResNet110+VGG-19+DenseNet121 guidance;

[0024] Figures 6(a) and 6(b) reflect the detection accuracy and average FLOPs of each method on different datasets, where:

[0025] Figure 6(a) shows the detection accuracy and average FLOPs of each method on the CIFAR dataset.

[0026] Figure 6(b) shows the detection accuracy and average FLOPs of each method on the ImageNet dataset. Detailed Implementation

[0027] 1 Overview

[0028] For multi-instance classification tasks on resource-constrained vehicle platforms, this paper proposes a multi-teacher knowledge distillation-driven instance adaptive dynamic neural network for multi-target classification of mobile platform vehicles (such as in-vehicle vehicles), which achieves dual optimization of detection accuracy and inference speed for multi-target classification of mobile platform vehicles.

[0029] The student network consists of a lightweight policy network and a multi-branch residual detection network.

[0030] The policy network uses curriculum learning (CL) to extract task-related features and dynamically generates routing vectors that match instance attributes. These routing vectors are mapped into the detection network, guiding residual blocks to adaptively activate and skip actions to accommodate the diversity of autonomous driving instances.

[0031] To enhance the overall inference performance of the student network, a multi-teacher-guided joint training framework was developed. The policy network optimizes routing decisions by combining knowledge and feedback from multiple teachers, while the detection network fine-tunes its parameters under multi-teacher guidance by observing routing vectors. Experimental results on the CIFAR and ImageNet datasets demonstrate that the proposed dynamic routing strategy maintains the sparsity of network channels even when dealing with images of varying complexity.

[0032] The subsequent content is arranged as follows: Section 2 introduces the dynamic neural network architecture driven by multi-teacher knowledge distillation, including its detection and policy networks, and proposes a joint training method. Section 3 describes the simulation experiments for performance evaluation. Section 4 summarizes the research and discusses future prospects.

[0033] 2 Scheme Design

[0034] This section explains the design concept and implementation details of a multi-teacher network-driven instance adaptive dynamic neural network.

[0035] like Figure 2 As shown, the framework proposed in this invention consists of a multi-teacher network and a student network (including a policy network and a detection network). The teacher model is responsible for generating knowledge, while the student model learns by imitating the behavior of the teacher model.

[0036] Multi-teacher networks combine knowledge from different levels of multiple teacher models to enhance the synergy between the policy and detection networks. The infusion of knowledge from multiple teacher networks increases the amount of information available for model training, improving the model's adaptability to a wider range of data distributions.

[0037] 2.1 Multi-Teacher Network Knowledge Transfer

[0038] The integrated knowledge from multiple teacher networks is used to guide the parameter adjustments of the strategy network and the detection network.

[0039] Figure 2 The process of a team of teachers (i.e., multiple teacher models) imparting knowledge to students (models) is demonstrated. The teachers’ knowledge is divided into three levels: advanced knowledge, intermediate knowledge, and real-label knowledge

[15] .

[0040] The teacher network and the set of test categories are respectively represented as Let z = [z1,...,z] c [] represents the model's logits output, where c is the class number. The student model's prediction result for class c is represented as... Where τ represents the distillation temperature. The cross-entropy loss between teacher-generated soft labels and student-generated labels is used to characterize high-level knowledge, denoted as...

[0041]

[0042] The intermediate layer of the teacher network is also used for knowledge distillation to extract more information, enabling students to efficiently learn from multiple teachers. The matching degree from the intermediate features of the teacher and student networks is calculated as follows:

[0043]

[0044] Where r(·) is a function aligning the feature dimensions of the intermediate layers for students and teachers. In addition to the two losses mentioned above, the regularized cross-entropy between the soft labels generated by the student network and the ground truth labels is calculated as follows:

[0045]

[0046] The overall loss of the teacher network is the weighted sum of (1), (2), and (3), expressed as:

[0047]

[0048] β1 and β2 are used to balance knowledge distillation and standard cross-entropy loss.

[0049] 2.2 Student Network Design Supporting Dynamic Reasoning

[0050] The student network consists of a policy network based on classifiers (CL) and a multi-branch residual detection network. By integrating the policies of multiple teacher networks, the policy network can learn richer and more diverse decision-making patterns, improving its adaptability and generalization ability. Meanwhile, the detection network learns more accurate pattern detection methods based on classification knowledge from the multi-teacher networks, improving recognition accuracy in dynamic environments. The construction of the two student subnetworks is described in detail below.

[0051] The multi-branch residual detection network consists of a set of multi-branch residual blocks connected in series. A multi-branch residual block

[16] consists of residual connections and a multi-branch structure. Figure 3 As shown, a 1×1 convolutional kernel is used to reduce the dimensionality of the input, and a multi-branch structure is used to extract data features. Branch 1 and Branch 2 use convolutional kernels of sizes 3×3 and 5×5, respectively, and Branch 3 is connected to a pooling layer. The feature matrices obtained from each branch are summed, resulting in a summation matrix for the residual block. This summation matrix is ​​then further transformed using a 1×1 convolutional kernel. Next, utilizing the quick connection in the residual network, this matrix is ​​superimposed with the downsampled original features to obtain the output of the multi-branch residual block. When y... i When input to the i-th multi-branch residual block, the output of that residual block is y. i+1 =F i (y i )+y i This serves as the input for the next residual block.

[0052] This invention adjusts the detection network architecture by selecting paths. Specifically, guided by policy vectors, the multi-branch residual network achieves dynamic routing through shortcut connections in the residual structure. When a residual module receives a "skip" instruction, the convolutional kernels within the residual block will not participate in inference, equivalent to y i+1 =y i Nevertheless, simply skipping too many blocks or selecting blocks irrationally during inference will inevitably increase classification errors. Dynamically selecting a suitable set of residual blocks based on the attributes of instances, i.e., dynamic routing, is crucial for improving the real-time performance and adaptability of the model.

[0053] The policy network helps the pre-trained detection network find an optimal set of residual blocks, i.e., to achieve accurate classification with the fewest possible blocks. A detection network consisting of K residual blocks has two possible outcomes. K The on / off strategy for each block, i.e., there are 2 K -1 optional route. It can be seen that the dimensionality of the policy search space increases exponentially with the number of residual blocks. With a large dimensionality, randomly setting the initial search policy makes training the policy network extremely difficult, and may even prevent convergence.

[0054] To address the aforementioned issues, a policy network based on Chain Link (CL) is designed, employing a progressive search pattern to gradually determine action sequences. During training, CL selects the last h residual blocks from all K residual blocks for training. In the first round, h is 1; subsequently, as h increases, it gradually associates and optimizes the switching of more residual blocks until h equals K, covering all blocks. When associating the h residual blocks, the policy network keeps the first Kh blocks open and only learns the switching policies of the last h blocks, accelerating model convergence while reducing training costs. This method optimizes the "on and off" of each block based on input features to evaluate the utility generated by each block. The policy network trained with CL can flexibly identify and skip redundant residual blocks to adapt to the diversity of instances.

[0055] 2.3 Multi-teacher-assisted joint training

[0056] The policy network generates vectors under the guidance of a multi-teacher network to determine routes for the detection network. The classification results of the detection network and the cross-entropy generated by the teacher networks reinforce the policy network through backpropagation. The policy network trained with CL learns diverse routing knowledge, but route selection reduces the classification accuracy of the detection network compared to performing full model inference. This drives us to explore a joint training framework to collaboratively optimize routing decisions and detection network parameters, achieving an optimal balance between detection accuracy and inference speed. Figure 4 As shown, the main workflow of the joint training framework includes:

[0057] • Knowledge transfer: Multiple teacher networks generate comprehensive knowledge based on input instances, which is used to guide the parameter tuning of the policy network and the detection network;

[0058] • Policy generation: The policy network based on CL is responsible for extracting features of input instances and outputting routing vectors. The training of CL depends on the joint participation of the policy, detection and teacher networks.

[0059] • Link jump: Guided by the policy vector, the multi-branch residual network achieves dynamic jumps through shortcut connections;

[0060] • Dynamic reasoning: Residual blocks in the detection network are selectively skipped, and reasoning is performed in the form of dynamic routing;

[0061] • Collaborative Training: The detection network fine-tunes its parameters based on the knowledge of the teacher network, and inputs the results and cross-entropy into the reward function in the CL. The output reward value is backpropagated to the policy network, guiding it to learn more appropriate routes.

[0062] Unlike random depth

[17] , the selection of residual blocks in the proposed scheme is controlled by the policy network to enhance the matching degree with the detection task instance. For an input image, the policy network outputs all residual network routes at once, that is, predicts all actions of the detection network, which is essentially a single-step Markov decision process given the input state. Let s k ∈[0,1] represents the k-th element in the policy vector s, and its value represents the probability that residual block k is enabled. Given an image x and a pre-trained detection network consisting of K multi-branch residual blocks, the policy for selecting residual blocks is defined as a K-Viberoulli distribution, i.e.

[0063]

[0064] The policy network here is described as a function f(x; W) of image x and weights W. Image x is activated by the function σ(x) = 1 / (1+e^(-x / W)). -x The processed output is represented as

[0065] s=f(x;W) (6)

[0066] A lightweight ResNet-8 model is used to construct the policy network. The inference overhead is largely determined by the number of convolutional kernels. Due to the relatively small number of kernels, the inference cost generated by the policy network accounts for only 8% of the overall network cost. The policy network generates an action vector u based on s, determining the blocks involved in inference. The variable u is a 0-1 variable. k Corresponding to the k-th element in u, u k =1(u k =0) means that the k-th residual block is turned on (off).

[0067] We develop a reward function to quantify the benefit derived from action vector u and guide the policy network to find routes with high accuracy and low cost. The training objective is to improve the similarity between the student network's predictions and the soft labels generated by the teacher network, quantified as...

[0068]

[0069] And reduce the length of the detected network routes (block usage). Accordingly, the reward function is formalized as follows:

[0070]

[0071] in, P represents the proportion of enabled residual blocks in the entire detection network. A higher P-value indicates a shorter route length and a greater positive reward, encouraging the policy network to skip more residual blocks. γ is used to penalize predictions with low similarity to the teacher network, balancing inference speed and detection accuracy. Selecting more residual blocks improves detection accuracy but reduces inference speed. The expected reward is defined as...

[0072]

[0073] Train a policy network that maximizes (9), which generates route vectors that determine which blocks in the detection network perform forward propagation. The image classification result corresponding to the route vector and the route length (number of blocks used) are used together to calculate the reward value.

[0074] Policy gradient method

[18] is a traditional reinforcement learning method that samples from a multinomial distribution to obtain the policy gradient, which can be used to search for the gradient that maximizes equation (9). In contrast, this invention collects training policy samples from a k-dimensional Bernoulli distribution. For u k For each ∈{0,1}, the policy gradient is calculated as follows:

[0075]

[0076] Through joint training, the execution process is described as Algorithm 1, which involves joint fine-tuning of the policy and detection networks by a multi-teacher network, simultaneously optimizing network routing and inference accuracy. The policy network sets the first Kh variables in the vector s to 1 and gradually increases h to begin training the CL model (lines 4-12). As the model gradually explores routing patterns, the parameters of the policy and detection networks are further adjusted based on the integrated knowledge of the teacher networks (lines 13-17).

[0077]

[0078] 3. Experimental Design and Results Analysis

[0079] To evaluate the detection and inference performance of the proposed method under different image complexities and instances, we selected three authoritative datasets: CIFAR-10

[19] , CIFAR-100

[19] , and IMAGE-NET

[20] . The CIFAR dataset contains 60,000 32×32 RGB images, of which 50,000 and 10,000 images were used for training and testing, respectively. The ImageNet dataset contains 1.2 million training images in 1,000 categories, of which 50,000 were used as a validation set to test top-1 accuracy.

[0080] The proposed method was implemented on the PyTorch platform, and the ADAM optimizer was used to train the model. The model training server was configured with an Intel i9-13900k CPU and an NVIDIA GeForce RTX 4090 GPU. In Equation (1), the distillation temperature τ was set to 4, and in Equation (4), the hyperparameters β1 and β2 were set to 1 and 50, respectively. The learning rate was 1×10⁻⁶. -4 In policy network (CL) training, the batch size was set to 2048. In joint training, the batch size was adjusted to 256, and the learning rate was adjusted to 1×10⁻⁶. -5 .

[0081] Two multi-branch residual detection networks with similar numbers of convolutional kernels to ResNet50

[21] and ResNet110

[21] were constructed and named Inception15 and Inception54. As basic student detection networks, they consist of 15 and 54 multi-branch residual blocks, respectively. We test dynamic routing on this basic model to demonstrate the effectiveness of the proposed scheme.

[0082] 3.1 Effectiveness Analysis of Multi-Teacher Knowledge Distillation

[0083] The first set of experiments analyzes the promoting effect of multi-teacher knowledge distillation on model compression and classification accuracy. In this set of experiments, Resnet110

[21] , VGG-19

[22] and DenseNet121

[23] were selected to construct a multi-teacher network. The student network was constructed by Inception15 and named Student, and was trained under the guidance of multiple teachers. Table 1 shows the parameter volume of each model and the classification accuracy achieved on CIFAR-10 and CIFAR-100. We use the parameter volume of the VGG-19 model with the largest parameter volume as the benchmark to quantify the compression rate of the model. Although the model volume of the student network in the proposed framework was greatly compressed to 3.2M, it achieved satisfactory accuracy of 93.60% and 73.62% on the CIFAR-10 and CIFAR-100 datasets, respectively. This result is better than Resnet110 and VGG-19, and slightly worse than DenseNet121, as shown in Table 1.

[0084]

[0085] Table 2 illustrates the impact of teacher group size on the classification performance of student networks. Classification accuracy is positively correlated with the number of teacher networks, but the gains achieved by student networks exhibit marginal benefits. The performance gap of 0.7% between single-teacher and dual-teacher networks is greater than the performance gap of 0.4% between dual-teacher and triple-teacher networks. We further visualize the feature representation of student networks on CIFAR-100 as follows: Figures 5(a) to 5(c)Compared to unsupervised and single-supervised learning, multi-supervised student networks can generate more compact class-specific clusters, and the boundaries between different categories of goals become clearer.

[0086]

[0087] 3.2 Acceleration Performance of Dynamic Inference Model

[0088] The third set of experiments balances route length and detection accuracy by adjusting the parameter γ in R(u) to observe the optimal balance point under different detection requirements. Each point on the curves in Figures 6(a) and 6(b) represents a set of model parameters for a given γ. The average FLOPs (floating point operations) generated by image classification in the test set were used to evaluate model complexity. To comprehensively and fairly compare the acceleration performance of the models, the following three benchmark algorithms were selected:

[0089] ·ACT

[24] : It is a kind of early exit mechanism that automatically exits the model inference when the confidence requirement is met.

[0090] SACT

[24] : A gating function is added to ACT to use different inference depths for different regions of the image (such as background, contour, etc.).

[0091] ·PFEC

[25] : It is a model pruning strategy that reduces the parameters of convolutional layers by pruning static networks.

[0092] Figure 6(a) shows the average FLOPs and detection accuracy of different methods on the CIFAR dataset. Compared with the ResNet-110 model, the best model of the proposed method (corresponding to the point indicated by the arrow in the figure) improves the accuracy by an average of 0.4% (93.6% vs. 93.2%) and reduces FLOPs by an average of 69% (1.60 × 10⁻⁶). 8 For 5.10×10 8 The proposed method achieves the same 93.0% detection accuracy with only 48% of the FLOPs required by ACT. At the same 93.6% detection accuracy, the proposed method reduces FLOPs by 62% compared to PFEC. PFEC can be used in conjunction with the framework presented in this paper to accelerate convolution operations.

[0093] Figure 6(b) shows the average FLOPs and detection accuracy of different algorithms on the ImageNet dataset. The best model in the proposed scheme outperforms ResNet-110 in detection accuracy (76.9% vs. 76.3%), and reduces inference cost by 14% (1.36 × 10⁻⁶). 10 For 1.58×1010 (FLOPs). After slightly reducing the detection accuracy (see the rectangular box in the figure), the proposed inference framework performs comparably to the full ResNet110, with an inference cost reduction of 26% (1.17 × 10⁻⁶). 10 For 1.58×10 10 (FLOPs). A 26% speedup without compromising detection accuracy is quite significant. For example, in a high-precision image recognition service that receives 1 billion API calls per day, the proposed method saves approximately 1200 hours of computation (0.024 seconds / image) on a single P6000 GPU.

[0094] 4. Conclusion

[0095] This invention proposes a multi-teacher distillation-driven instance-adaptive dynamic neural network scheme to support multi-object classification tasks on resource-constrained mobile platforms. The policy network generates routing vectors by learning from multiple teacher networks to guide the detection network in selectively enabling and disabling multi-branch residual blocks, balancing the inference cost and detection accuracy of the detection network to meet the diverse classification task requirements. A joint training method for teacher-policy-detection networks is designed to further improve the diversity of routing policies and the synergy of the detection network. Test results on the CIFAR and ImageNet datasets demonstrate the efficiency of the proposed method in compressing the model. Compared to unsupervised and single-teacher guidance, the student network under multi-teacher guidance produces better classification results. At the same inference cost (accuracy level), the accuracy level (inference cost) of the proposed method outperforms mainstream benchmark methods such as early departure and pruning. With customization, the proposed method has the potential to be integrated into most existing mainstream object classification frameworks, enabling its true integration into mobile platforms such as autonomous vehicles and drones, and empowering intelligent mobile systems.

[0096] References

[0097] [1]Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through networkslimming. ICCV, 2017.

[0098] [2]Yang He,Guoliang Kang,Xuanyi Dong,Yanwei Fu,and Yi Yang.Softfilter pruning for accelerating deep convolutional neural networks.IJCAI,2018.

[0099] [3]Yihui He,Xiangyu Zhang,and Jian Sun.Channel pruning foraccelerating very deep neural networks.ICCV,2017.

[0100] [4]Jimmy Ba and Rich Caruana.Do deep nets really need to be deep?InNeurIPS,2014.

[0101] [5]Geoffrey E.Hinton,Oriol Vinyals,and Jeffrey Dean.Distilling theknowledge in a neural network.arXiv:1503.02531,2015.

[0102] [6]Adriana Romero,Nicolas Ballas,Samira Ebrahimi Kahou,AntoineChassang,Carlo Gatta,and Yoshua Bengio.Fitnets:Hints for thin deep nets.InICLR,2015.

[0103] [7]Yizeng Han,Gao Huang,Shiji Song,Le Yang,Honghui Wang,and Yulinwang.Dynamic Neural Networks:ASurvey.arXiv:2102.04906,2021.

[0104] [8]Jinting Chen,Zhaocheng Zhu,Cheng Li,Yuming Zhao.Self-adaptivenetwork pruning.In ICONIP 2019.

[0105] [9]Yue Wang,Jianghao Shen,Ting-Kuei Hu.Dual Dynamic Inference:Enabling More Efficient,Adaptive,and Controllable Deep Inference.IEEE Journalof Selected Topics in Signal Processing,2020.

[0106]

[10] Ali Ehteshami Bejnordi and Ralf Krestel.Dynamic Channel and LayerGating in Convolutional Neural Networks.KI 2020:Advances in ArtificialIntelligence,2020.

[0107]

[11] Zuxuan Wu1,Tushar Nagarajan,Abhishek Kumar,StevenRennie.BlockDrop:Dynamic Inference Paths in Residual Networks.In CVPR 2018.

[0108]

[12] Zhourong Chen,Yang Li,Samy Bengio,Si Si.You Look Twice:GaterNetfor Dynamic Filter Selection in CNNs.In CVPR 2019.

[0109]

[13] Ji Lin,Yongming Rao,Jiwen Lu,Jie Zhou.Runtime Neural Pruning.InNIPS 2017.

[0110]

[14] Xin Wang,Fisher Yu,Zi-Yi Dou,Trevor Darrell,JosephE.Gonzalez.SkipNet:Learning DynamicRouting in Convolutional Networks.In ECCV2018.

[0111]

[15] Shan You,Chang Xu,Chao Xu,Dacheng Tao.Learning from MultipleTeacher Networks.In ACMSIGKDD 2017.

[0112]

[16] SU Tian-tian,WANG Hui-min,ZHANG Xiao-feng.Research on LightweightImage ClassificationAlgorithm Based on Multi-Branch Bottleneck Structure.ActaElectronica Sinica,2023

[0113]

[17] G.Huang,Y.Sun,Z.Liu,D.Sedra,and K.Q.Weinberger.Deep networks withstochastic depth.InECCV,2016.

[0114]

[18] R.S.Sutton and A.G.Barto.Reinforcement learning:Anintroduction.MIT press Cambridge,1998.

[0115]

[19] A.Krizhevsky and G.Hinton.Learning multiple layers of featuresfrom tiny images.2009.

[0116]

[20] J.Deng,W.Dong,R.Socher,L.-J.Li,K.Li,and L.FeiFei.Imagenet:Alarge-scale hierarchical imagedatabase.In CVPR,2009.

[0117]

[21] HE K,ZHANG X,REN S,et al.Deep residual learning for imagerecognition.Proceedings of theIEEE Conference on Computer Vision and PatternRecognition.Piscat-away:IEEE,2016.

[0118]

[22] K.Simonyan and A.Zisserman.Very deep convolutional networks forlarge-scale image recognition.arXiv preprint arXiv:1409.1556,2014.

[0119]

[23] Gao Huang,Zhuang Liu,Laurens van der Maaten,KilianQ.Weinberger.Densely ConnectedConvolutional Networks.In CVPR 2017.

[0120]

[24] M.Figurnov,M.D.Collins,Y.Zhu,L.Zhang,J.Huang,D.Vetrov,and R.Salakhutdinov.Spatiallyadaptive computation time for residual networks.In CVPR,2017.

[0121]

[25] H.Li,A.Kadav,I.Durdanovic,H.Samet,and H.P.Graf.Pruning filtersfor efficient convnets.InICLR,2017.

Claims

1. A multi-object classification method for mobile platforms based on multi-teacher-assisted instance adaptive DNN, comprising the following steps: First, sensors on the mobile platform collect image data; Then, these image data are input into a dynamic neural network (DNN) model for processing to obtain target classification; Its characteristic is that the DNN model is a multi-teacher-assisted instance adaptive DNN model, and its network framework includes a multi-teacher network and a student network; Multi-teacher networks are customizable and consist of the integration of multiple teacher networks; The student network consists of a policy network and a detection network. The policy network is a policy network based on the course learning CL. It adaptively extracts task features based on the professional knowledge provided by multiple teacher networks and dynamically generates routing vectors that match instance attributes. The detection network is composed of a set of residual blocks connected in series. The opening and closing of the residual blocks are determined by the routing vectors, so as to dynamically select network routes. The training of the DNN model adopts a joint training method driven by multi-teacher knowledge distillation: the policy network relies on the combined knowledge and feedback detection results of the multi-teacher network to optimize the routing decision; the detection network fine-tunes its own parameters under the guidance of multiple teachers by observing the routing vector, so that the student network can build an instance-path mapping relationship. The policy network generates routing vectors under the guidance of the multi-teacher network to determine the routes of the detection network; the classification results of the detection network and the cross-entropy generated by the teacher network are used to reinforce the policy network through backpropagation. The workflow for joint training includes: 1) Knowledge transfer: Multiple teacher networks generate comprehensive knowledge based on input instances to guide the adjustment of parameters in the policy network and the detection network; 2) Policy generation: The policy network extracts features from the input instances and outputs routing vectors. The training of CL depends on the joint participation of the policy network, the detection network, and the teacher network. 3) Link jump: Under the guidance of policy vectors, multi-branch residual networks achieve dynamic jumps through shortcut connections; 4) Dynamic reasoning: Residual blocks in the detection network are selectively skipped, and reasoning is performed in the form of dynamic routing; 5) Collaborative training: The detection network fine-tunes its parameters based on the knowledge of the teacher network, and inputs the results and cross-entropy loss into the reward function in CL; the reward value output by the reward function is backpropagated to the policy network; Adjust the detection network parameters based on the cross-entropy loss, and adjust the strategy network parameters based on the reward value; In multi-teacher networks, the knowledge of multiple teacher networks is used to guide the parameter adjustment of the strategy network and the detection network; The process of knowledge transfer from a multi-teacher network to a student network is as follows: Teachers' knowledge is divided into three levels: advanced knowledge, intermediate knowledge, and real-label knowledge. The middle layer of the teacher network is used for knowledge distillation to extract more information; The cross-entropy loss in step 5) is the overall cross-entropy loss of the teacher network, expressed as: ; Among them: the cross-entropy loss between the soft labels generated by the teacher network and the labels generated by the student network. Used to depict advanced knowledge; The loss is calculated based on the matching degree of features between the teacher network and the student network. Regularized cross-entropy loss for generating soft and real labels for student networks; and This is used to balance knowledge distillation and standard cross-entropy loss.

2. The mobile platform multi-objective classification method based on multi-teacher-assisted instance adaptive DNN according to claim 1, characterized in that: The policy network helps the pre-trained detection network find an optimal set of residual blocks, that is, to achieve accurate classification with the fewest residual blocks. The policy network uses a progressive search mode to gradually determine the action sequence. During training, CL selects the last h residual blocks from all K residual blocks in the detection network for training. In the first round of training, h is 1. As h increases, the switching of more residual blocks is gradually associated and optimized until h equals K, covering all residual blocks. When associating h residual blocks, the policy network keeps the first Kh residual blocks open and only learns the on / off policies of the last h residual blocks.

3. The mobile platform multi-objective classification method based on multi-teacher-assisted instance adaptive DNN according to claim 1, characterized in that: The residual block is a multi-branch residual block, which consists of residual connections and a three-branch structure. In a residual block, firstly, a 1×1 convolutional kernel is used to reduce the dimensionality of the input y. i Branch 1 and Branch 2 use convolutional kernels of size 3×3 and 5×5 respectively, and Branch 3 is connected to a pooling layer. Then, the feature matrices obtained from the three branches are summed, and a summation matrix is ​​obtained through the residual block. Next, a 1×1 convolutional kernel is used to transform the dimension of the summation matrix. Then, using the shortcut connection in the residual network, the resulting matrix is ​​superimposed with the downsampled original features to obtain the output of the residual block. In the detection network, when y i When input to the i-th residual block, the output of that residual block is y. i+1 =F i (y i )+y i , as input to the next residual block; The network architecture is adjusted by selecting paths. The method is as follows: under the guidance of routing vectors, the multi-branch residual network achieves dynamic routing through shortcut connections in the residual structure. When a residual block receives a "skip" instruction, the convolutional kernels within that residual block will not participate in inference, i.e., y i+1 = y i .

4. The mobile platform multi-objective classification method based on multi-teacher-assisted instance adaptive DNN according to claim 1, characterized in that: The sensor data includes camera images or radar imaging images.

5. The mobile platform multi-objective classification method based on multi-teacher-assisted instance adaptive DNN according to claim 1, characterized in that: The policy network is a ResNet-8 network.

Citation Information

Patent Citations

  • Model compression method and system based on multi-teacher joint guidance quantification

    CN114239861A

  • Automatic driving multi-target detection method based on instance adaptive dynamic neural network

    CN117237893A