An AI model cross-hardware ontology migration adaptation method and device
By employing feature transformation, dimension mapping, and feature reconstruction methods, the problems of representational degradation and feature domain bias in the cross-hardware migration of AI models are solved, achieving high robustness and high fidelity cross-hardware adaptation, which is suitable for drone-based building facade inspection.
Patent Information
- Application Number
- CN202611664815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, during the cross-hardware migration of AI models, fine-tuning of global parameters can easily damage the original representational ability of the model, and the effect of cross-hardware feature domain deviation correction is poor.
By acquiring content information generated from multiple source hardware platform models, performing feature transformation and dimension mapping processing, and combining preset feature deletion ratios and rules, a target hardware platform model is generated. The initial hardware platform model is then used for feature reconstruction and fine-tuning to improve the model's robustness to hardware instruction differences and storage layout disturbances.
It significantly improves the robustness and cross-hardware generalization ability of the model in heterogeneous hardware environments, enables low-latency, high-fidelity AI model cross-hardware ontology migration and adaptation, and supports stable deployment in drone building facade inspection scenarios.
Smart Images

Figure CN123158196A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data processing technology, and in particular relates to a method and apparatus for AI model migration and adaptation across hardware entities. Background Technology
[0002] As artificial intelligence technology is deployed in heterogeneous hardware scenarios such as cloud, edge, and terminal, a large number of computing hardware devices from different manufacturers and with different architectures are being used in engineering applications, and the demand for AI models to migrate and adapt across hardware continues to grow.
[0003] Existing technologies employ model compilation and conversion, along with global quantization and pruning, to achieve cross-hardware deployment. This approach converts the AI model trained on the source hardware into a unified intermediate representation. Combined with a fixed proportion of model weight pruning or quantization compression, it completes the migration of the model to the target hardware platform. After the migration is complete, a small number of samples are collected based on the target hardware to perform global fine-tuning of the overall model parameters, thereby adapting it to the target hardware inference environment.
[0004] However, existing technology models lack closed-loop constraints on feature reconstruction loss during the migration process. Global fine-tuning methods can easily lead to the degradation of the original model's basic representation capabilities, and feature domain biases generated during cross-hardware migration are difficult to correct effectively. Summary of the Invention
[0005] In view of this, the present application provides an AI model cross-hardware ontology migration and adaptation method and apparatus, which aims to solve the problems in the prior art that global parameter fine-tuning easily destroys the original representation ability of the model and the cross-hardware feature domain offset correction effect.
[0006] The first aspect of this application provides a method for AI model migration and adaptation across hardware ontology, including: Obtain content information generated from multiple source hardware platform models; Based on the multiple source hardware platform models, generate content information and target hardware platform models, and generate target hardware platform model content information.
[0007] One aspect of this application provides a step for generating a target hardware platform model, including: Obtain content information generated from multiple models to be migrated, as well as the initial hardware platform model; Based on the content information generated by the multiple models to be transferred, feature transformation and dimension mapping are performed to generate multiple content feature sequence information of the models to be transferred. Based on multiple preset content feature deletion ratios and preset content feature deletion rules for the models to be migrated, the sequence information of the multiple content feature generated by the models to be migrated is processed to generate multiple processed content feature sequence information of the models to be migrated. Based on the content feature sequence information generated from the multiple processed models to be migrated and the initial hardware platform model, a target hardware platform model is generated.
[0008] A second aspect of this application provides an AI model cross-hardware ontology migration and adaptation device, including: The source hardware platform model generated content information acquisition module is used to acquire the generated content information of multiple source hardware platform models; The target hardware platform model generating content information generation module is used to generate target hardware platform model generating content information based on the multiple source hardware platform model generating content information and the target hardware platform model. The target hardware platform model is obtained through the following steps: Obtain content information generated from multiple models to be migrated, as well as the initial hardware platform model; Based on the content information generated by the multiple models to be transferred, feature transformation and dimension mapping are performed to generate multiple content feature sequence information of the models to be transferred. Based on multiple preset content feature deletion ratios and preset content feature deletion rules for the models to be migrated, the sequence information of the multiple content feature generated by the models to be migrated is processed to generate multiple processed content feature sequence information of the models to be migrated. Based on the content feature sequence information generated from the multiple processed models to be migrated and the initial hardware platform model, a target hardware platform model is generated.
[0009] A third aspect of this application provides a terminal device, the terminal device including a memory and a processor, the memory storing a computer program that can run on the processor, and the processor executing the computer program to implement the steps of the AI model cross-hardware ontology migration and adaptation method described in the first aspect above.
[0010] A fourth aspect of this application provides a computer-readable storage medium, comprising: storing a computer program, wherein when executed by a processor, the computer program implements the steps of the AI model cross-hardware ontology migration and adaptation method described in the first aspect above.
[0011] Compared with the prior art, the beneficial effects of the embodiments of this application are: the application significantly improves the robustness of the model to complex inference noise such as differences in hardware instructions and disturbances in storage arrangement, and enhances its cross-hardware generalization ability, enabling low-latency, high-fidelity AI model cross-hardware ontology migration and adaptation, and providing stable and efficient inference support for the deployment of heterogeneous hardware edge models in the scenario of UAV building facade inspection. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram illustrating the implementation process of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 1 of this application; Figure 2 This is a schematic diagram illustrating the implementation process of the target hardware platform model generation steps provided in Embodiment 1 of this application; Figure 3 This is a schematic diagram illustrating the implementation process of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 2 of this application; Figure 4 This is a schematic diagram illustrating the implementation process of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 3 of this application; Figure 5 This is a schematic diagram illustrating the implementation process of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 4 of this application; Figure 6 This is a schematic diagram illustrating the implementation process of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 5 of this application; Figure 7 This is a schematic diagram illustrating the implementation process of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment Six of this application; Figure 8 This is a schematic diagram illustrating the implementation process of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 7 of this application; Figure 9 This is a schematic diagram of the structure of the AI model cross-hardware ontology migration and adaptation device provided in the embodiments of this application; Figure 10 This is a schematic diagram of the terminal device provided in the embodiments of this application. Detailed Implementation
[0014] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0015] To illustrate the technical solution described in this application, specific embodiments are provided below.
[0016] Figure 1 The flowchart illustrating the implementation of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 1 of this application is shown below in detail: Step S101: Obtain content information generated from multiple source hardware platform models.
[0017] In this embodiment, the multiple source hardware platform model generation content information can refer to the intermediate feature output information of multiple batches of models collected on a heterogeneous computing hardware test platform, according to a standardized model inference acquisition paradigm, for source hardware equipped with different instruction set architectures, for performing cross-modal registration inference tasks of visible light images and thermal infrared images of building facades. A continuous dynamic model inference feature acquisition process can be constructed through a heterogeneous hardware inference acquisition system. The acquisition process can first perform 3 minutes of hardware idle benchmark inference recording, and then complete multiple rounds of model forward inference acquisition according to fixed inference batches and task intervals, thereby generating multiple source hardware platform model generation content information.
[0018] Step S102: Generate target hardware platform model generation content information based on the multiple source hardware platform models and the target hardware platform model.
[0019] In this embodiment, the content information generated by multiple source hardware platform models may be preprocessed by sequentially performing 4th-order Butterworth bandpass filtering, 50Hz notch filtering, global mean normalization, and hardware noise artifact removal. Then, feature segmentation and sequence embedding are performed on the preprocessed content information generated by the multiple source hardware platform models. The processed information is then input into the target hardware platform model and undergoes a series of computational processes, including second-order statistical isomorphism and feature domain whitening, global feature topology extraction of the visual transformer, latent manifold projection and distribution alignment, and low-rank adaptation hardware platform task fine-tuning. Finally, the target hardware platform model outputs the target hardware platform model generated content information adapted to the target hardware platform.
[0020] The AI model cross-hardware ontology migration and adaptation method provided in this application significantly improves the robustness of the model to complex inference noise such as differences in hardware instructions and disturbances in storage arrangement, as well as its cross-hardware generalization ability. It achieves low-latency, high-fidelity AI model cross-hardware ontology migration and adaptation, providing stable and efficient inference support for the deployment of heterogeneous hardware edge models in the scenario of UAV building facade inspection.
[0021] Figure 2 A schematic diagram illustrating the implementation flow of the target hardware platform model generation steps provided in Embodiment 1 of this application is shown below in detail: Step S1101: Obtain the content information generated by multiple models to be migrated and the initial hardware platform model.
[0022] In this embodiment, the multiple model-generated content information to be transferred can refer to model inference feature data obtained from publicly available model inference datasets. It can be intermediate inference feature information of multiple batches of models after preprocessing such as 4th order Butterworth bandpass filtering, 50 Hz notch filtering, global mean normalization, and hardware noise artifact removal. The initial hardware platform model adopts a deep learning network built based on a visual transformer.
[0023] Step S1102: Perform feature transformation and dimension mapping processing on the content information generated by the multiple models to be transferred to generate multiple content feature sequence information of the models to be transferred.
[0024] In this embodiment, multiple pieces of content generated by the model to be transferred can first be divided into multiple non-overlapping feature segments according to the preset segmentation size information of the content generated by the model to be transferred. The preset segmentation size information of the content generated by the model to be transferred can be preset manually, and the segmentation size is 640 multiplied by 512. Then, a learnable feature mapping operator is performed on each feature segment and a learnable feature position embedding is superimposed. Finally, multiple feature sequence information of the content generated by the model to be transferred containing complete spatiotemporal information is generated.
[0025] Step S1103: Based on multiple preset deletion ratios and rules for content features generated by models to be migrated, process the multiple content feature sequence information generated by models to be migrated to generate multiple processed content feature sequence information generated by models to be migrated.
[0026] In this embodiment, the preset deletion ratios of multiple features generated by the model to be transferred can be preset manually, and the preset deletion rules of features generated by the model to be transferred can be preset manually. The preset first deletion ratio of features generated by the model to be transferred is 0.3, and the preset second deletion ratio of features generated by the model to be transferred is 0.6. The deletion ratios of features generated by the model to be transferred are adjusted in a non-linear growth manner from low to high, thereby performing a multi-gradient feature removal and replacement operation from random perturbation to regional failure on the feature sequence information of multiple features generated by the model to be transferred, and then generating multiple processed feature sequence information of features generated by the model to be transferred.
[0027] Step S1104: Generate the target hardware platform model based on the content feature sequence information generated by the multiple processed models to be migrated and the initial hardware platform model.
[0028] In this embodiment, the initial hardware platform model consists of four parts: an initial hardware platform feature extraction sub-model, an initial hardware platform adapted prior probability distribution generation sub-model, an initial hardware platform adapted posterior probability distribution generation sub-model, and an initial hardware platform model feature reconstruction sub-model. Specifically, the initial hardware platform feature extraction sub-model can employ a model global feature topology extraction backbone network built based on a visual transformer, incorporating second-order statistical isomorphism and feature domain whitening, multi-head self-attention, and multilayer perceptron cascaded coding blocks; the initial hardware platform adapted posterior probability distribution generation sub-model can be a variational inference encoder that only receives incomplete features and lacks prior assistance from original features; the initial hardware platform adapted prior probability distribution generation sub-model can be a reference encoder that accesses complete original model features and is used to generate an ideal prior distribution; the initial hardware platform model feature reconstruction sub-model can be a lightweight reconstruction decoder that restores model feature fragments based on reparameterized sampling and inverse projection; the preset hardware platform model feature reconstruction loss threshold can be manually preset, with a value of 0.08.
[0029] In this embodiment, multiple processed transferable models can be input into the initial hardware platform model to complete the self-supervised learning process of second-order statistical isomorphism and feature domain whitening, global feature topology extraction of the visual transformer, latent manifold projection and distribution alignment, model feature reconstruction and network joint optimization. Then, the model adaptation is completed by combining low-rank adaptation hardware platform task fine-tuning, thereby generating the target hardware platform model.
[0030] The AI model cross-hardware ontology migration and adaptation method provided in this application improves the robustness of the target hardware platform model to the interference of heterogeneous hardware inference feature offset through a multi-gradient dynamic feature culling strategy. It effectively overcomes the defects of difficult model feature parsing, weak anti-interference ability and poor cross-hardware feature decoupling in heterogeneous hardware porting scenarios, greatly improves the fidelity and stability of cross-hardware migration and adaptation, and effectively supports the efficient operation of heterogeneous hardware edge AI model deployment in the scenario of UAV building facade inspection.
[0031] Figure 3 The flowchart illustrating the implementation of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 2 of this application is shown. The difference between this method and Embodiment 1 is that step S1102 specifically includes: Step S201: Generate multiple content fragments of the model to be migrated based on the multiple content information generated by the multiple models to be migrated and the preset content segmentation size information of the model to be migrated.
[0032] In this embodiment, the preset content segmentation size information of the model to be transferred can be preset manually. According to the preset content segmentation size information of the model to be transferred, the multiple content information of the model to be transferred is divided into multiple non-overlapping regions along the feature dimension, thereby generating multiple content fragment information of the model to be transferred.
[0033] Step S202: Generate multiple content feature sequence information of the multiple models to be transferred based on the content fragment information generated by the multiple models to be transferred and the preset feature mapping operator for the content generated by the models to be transferred.
[0034] In this embodiment, the preset feature mapping operator for the content generated by the model to be transferred can be preset by humans. It can be a learnable linear mapping layer that can flatten multiple content fragment information generated by the model to be transferred and input them sequentially into the preset feature mapping operator for mapping calculation, thereby generating multiple feature sequence information of the content generated by the model to be transferred.
[0035] The AI model cross-hardware ontology migration and adaptation method provided in this application accurately retains the global feature structure information of the content information generated by the model to be migrated, thereby improving the extraction accuracy and representation capability of the target hardware platform model for model inference features.
[0036] Figure 4 The flowchart illustrating the implementation of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 3 of this application is shown. Its difference from Embodiment 1 above lies in: Multiple preset deletion ratios for content features generated by models to be transferred include a first preset deletion ratio for content features generated by models to be transferred and a second preset deletion ratio for content features generated by models to be transferred. Among them, the preset deletion ratio of content features generated by the first model to be migrated is less than the preset deletion ratio of content features generated by the second model to be migrated. The content feature sequence information generated by the multiple models to be transferred includes the content feature sequence information generated by the first model to be transferred and the content feature sequence information generated by the second model to be transferred. The multiple processed content feature sequence information generated by the model to be transferred includes the first processed content feature sequence information generated by the model to be transferred and the second processed content feature sequence information generated by the model to be transferred. Step S1103 specifically includes: Step S301: Based on the preset deletion ratio of the first content feature generated by the model to be migrated and the preset deletion rules of the content feature generated by the model to be migrated, process the content feature sequence information of the first content feature generated by the model to be migrated to generate the first processed content feature sequence information of the model to be migrated.
[0037] In this embodiment, the preset feature deletion ratio of the generated content of the model to be transferred follows dynamic course scheduling, and the preset first feature deletion ratio of the generated content of the model to be transferred can be preset manually. The preset feature deletion rule of the generated content of the model to be transferred can also be preset manually, and can be to perform random feature removal processing on the values in the matrix according to the preset feature deletion ratio of the generated content of the model to be transferred. Random removal calculation is performed according to the preset first feature deletion ratio of the generated content of the model to be transferred and the preset feature deletion rule of the generated content of the model to be transferred, thereby generating the first feature masking matrix information. The first feature masking matrix information and the first feature sequence information of the generated content of the model to be transferred are multiplied by one point, and then the removed region is replaced with learnable feature masking words. Then, the first processed feature sequence information of the generated content of the model to be transferred is generated to simulate slight fluctuations in hardware computing power and local feature noise interference, which helps the initial hardware platform model to quickly and stably converge and learn the basic feature context dependencies.
[0038] Step S302: Based on the preset deletion ratio of the content features generated by the second model to be migrated and the preset deletion rules of the content features generated by the second model to be migrated, process the content feature sequence information generated by the second model to be migrated to generate the second processed content feature sequence information generated by the second model to be migrated.
[0039] In this embodiment, the preset second feature deletion ratio of the model to be transferred can be preset manually. The preset feature deletion rule of the model to be transferred can also be preset manually, which can be to randomly remove features from the matrix according to the preset feature deletion ratio of the model to be transferred. Random removal calculation is performed according to the preset second feature deletion ratio and the preset feature deletion rule of the model to be transferred, thereby generating second feature masking matrix information. The second feature masking matrix information and the second feature sequence information of the model to be transferred are multiplied by pointwise, and then the removed regions are replaced with learnable feature masking words. Then, the second processed feature sequence information of the model to be transferred is generated. This is used to simulate extreme and harsh inference conditions such as limited hardware bandwidth and abnormal operator failure, forcing the initial hardware platform model to learn global deep feature topology dependencies and improve robustness under heterogeneous hardware perturbations.
[0040] The AI model cross-hardware ontology migration and adaptation method provided in this application enhances the adaptability of the target hardware platform model to hardware inference disturbances of different intensities, thereby significantly improving the robustness and migration and adaptation stability of the model in complex interference environments of heterogeneous hardware.
[0041] Figure 5The flowchart illustrating the implementation of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 4 of this application is shown. Its difference from Embodiment 1 above lies in: The initial hardware platform model includes an initial hardware platform feature extraction sub-model, an initial hardware platform adaptation prior probability distribution generation sub-model, an initial hardware platform adaptation posterior probability distribution generation sub-model, and an initial hardware platform model feature reconstruction sub-model. Step S1104 specifically includes: Step S401: Generate multiple processed model feature sequence representation information based on the multiple processed models to be transferred content feature sequence information and the initial hardware platform feature extraction sub-model.
[0042] In this embodiment, the initial hardware platform feature extraction sub-model can be a visual transformer backbone network composed of several concatenated coding blocks. It can input the content feature sequence information generated by multiple processed models to be transferred into the initial hardware platform feature extraction sub-model, thereby completing the second-order statistical isomorphism and feature domain whitening, global feature topology extraction of the visual transformer, and then generating multiple processed model feature sequence representation information.
[0043] In this embodiment, the model inference features inherently exhibit strong inter-hardware bias and batch-to-batch variability. To eliminate this cross-hardware platform marginal distribution bias before feature embedding, this application introduces an Euclidean alignment mechanism based on covariance whitening transformation before the input sequence enters the transformer encoding block. For multiple pre-processed model inference feature sequences for a given hardware platform, the network first calculates the reference covariance matrix corresponding to that hardware platform. Subsequently, the inverse square root of this reference matrix is used to project and normalize each set of inference features. After this spatial isomorphism transformation, the transformed model inference features from different hardware platforms or different inference batches are forced to project into a consistent representation domain space with a unit covariance matrix. This process smooths out cross-hardware computational power differences and baseline drift at the second-order statistical level, providing a highly consistent and robust standardized sequence input for the subsequent visual transformer.
[0044] In this embodiment, the model inference features are essentially high-dimensional representation mappings of the neural network's forward inference output, and the synchronous response relationships between different feature channels often contain key information for cross-modal registration tasks. To reconstruct this cross-channel global topology in the feature space, this application deploys a multi-head self-attention component at the core of each coding block. Specifically, for the input sequence of the first layer, the network first performs projection of the feature subspace. To simultaneously capture the attributes of model inference features in different dimensions, such as the response synchronicity of the feature channel domain and the feature fluctuations in the temporal dimension, a multi-head design is introduced. The input sequence is first normalized by layer to standardize the distribution, and then mapped to query, key, and value matrices through three learnable linear projection matrices. After obtaining the above projections, the model performs global interactive computation. By calculating the dot product of the query matrix and the transpose of the key matrix, the model quantifies the correlation strength between any two feature segments in the sequence. To prevent the dot product result from being too large and causing Softmax gradient saturation, this application introduces a scaling factor. Subsequently, the correlation is transformed into a probability distribution using the Softmax function, and the value matrix is weighted and aggregated. This process mathematically achieves information fusion that transcends the limitations of segment position. Finally, to address the degradation problem in deep networks and preserve the original input information, residual connections are introduced to add the aggregated features to the original input, resulting in the output of the multi-head self-attention sub-layer.
[0045] In this embodiment, it is understood that although the multi-head self-attention mechanism successfully captures the global context, the features are still in a linear combination state. To extract deeper semantic information, the output of the multi-head self-attention sub-layer is fed into the multilayer perceptron sub-layer for nonlinear transformation. This process follows the design mechanism of dimensionality increase, activation, and dimensionality reduction. The input features are first normalized again, and then the dimensionality is increased through the first linear layer, allowing the model inference features to fully expand in a higher-dimensional manifold space, thereby exposing subtle patterns hidden under hardware noise. Subsequently, a Gaussian error linear unit is introduced as the activation function. Compared with the traditional ReLU, the Gaussian error linear unit has smoother gradient characteristics when processing high-random offset signals such as model inference features. Finally, the features are restored to the original dimension through the second linear layer. The operation of the entire multilayer perceptron sub-layer is combined with residual connections. By stacking multiple layers of the above-mentioned coding blocks, the original sequence embedding is gradually transformed into a high-dimensional feature representation rich in high-order semantic information. This feature not only retains the global feature topology structure acquired by the model inference features in the multi-head self-attention stage, but also completes denoising and semantic abstraction in the multilayer perceptron stage.
[0046] Step S402: Based on the multiple processed model feature sequence representation information, the multiple transferable model generated content feature sequence information, the initial hardware platform adaptation prior probability distribution generation sub-model, and the initial hardware platform adaptation posterior probability distribution generation sub-model, multiple processed hardware platform adaptation prior probability distribution information and multiple processed hardware platform adaptation posterior probability distribution information are generated.
[0047] In this embodiment, the initial hardware platform adaptation prior probability distribution generation sub-model and the initial hardware platform adaptation posterior probability distribution generation sub-model can be a pre-defined reference encoder and a pre-defined inference encoder. Multiple processed model feature sequence representations can be input into the initial hardware platform adaptation posterior probability distribution generation sub-model to generate multiple processed hardware platform adaptation posterior probability distributions. Similarly, multiple transferable model content feature sequence information can be input into the initial hardware platform adaptation prior probability distribution generation sub-model to generate multiple processed hardware platform adaptation prior probability distributions.
[0048] Step S403: Alignment processing is performed based on the multiple processed hardware platform adaptation prior probability distribution information and the multiple processed hardware platform adaptation posterior probability distribution information to generate multiple aligned hardware platform adaptation distribution information.
[0049] In this embodiment, the maximum mean difference can be used to perform distribution alignment processing on the prior probability distribution information and the posterior probability distribution information of the multiple processed hardware platform adaptations, thereby generating multiple aligned hardware platform adaptation distribution information.
[0050] In this embodiment, the maximum mean difference is introduced as a manifold alignment constraint. Mathematically, this constraint is defined as minimizing the distance difference between the posterior distribution samples generated by the inference encoder and the prior distribution samples constructed by the reference encoder within the reproducing kernel Hilbert space. The core objective is to train the inference encoder to supplement missing feature information, enabling it to infer a manifold structure consistent with that obtained with assistance, even without prior conditions. Through this constraint, the model achieves a robust mapping from incomplete features to the complete manifold in the latent space.
[0051] Step S404: Generate multiple hardware platform model feature reconstruction information based on the multiple aligned hardware platform adaptation distribution information and the initial hardware platform model feature reconstruction sub-model.
[0052] In this embodiment, multiple aligned hardware platform adaptation distribution information are input into the initial hardware platform model feature reconstruction sub-model. Then, reparameterized sampling and feature inverse mapping calculations are performed to generate multiple hardware platform model feature reconstruction information. It is understood that simply aligning the distribution in the probability space is insufficient to guarantee that the features learned by the target hardware platform model have sufficient physical semantics. To verify whether the latent manifold features truly preserve the global topological structure of the model's inference features and form an effective self-supervised learning loop, a feature reconstruction mechanism needs to be introduced. This mechanism calculates the physical error by inverse mapping the latent features back to the original feature space to drive the joint optimization of the entire network.
[0053] Step S405: Based on the feature reconstruction information of the multiple hardware platform models and the content information generated by the multiple models to be transferred, calculate the feature reconstruction loss information of the hardware platform models.
[0054] In this embodiment, point-by-point error calculation is performed on the feature reconstruction information of multiple hardware platform models and the content information generated by multiple models to be transferred, thereby calculating the feature reconstruction loss information of the hardware platform models.
[0055] In this embodiment, it is understood that during the training phase, the core objective is to optimize the inference encoder, enabling it to independently resist hardware feature shifts. Therefore, sampling is performed from the variational posterior distribution generated by the inference encoder. This process is no longer considered a non-differentiable random sampling operation but is modeled as a deterministic transformation: first, an auxiliary noise variable is sampled from a standard normal distribution, and then it is linearly transformed to the target distribution space. In this way, randomness is transferred to the auxiliary variable, allowing the subsequent reconstruction error gradient to smoothly pass through the sampling layer and propagate back to the parameters of the inference encoder. The generated latent vector at this point highly condenses the feature geometry across hardware adaptations and removes redundant hardware noise.
[0056] Step S406: Based on the initial hardware platform model, the hardware platform model feature reconstruction loss information, and the preset hardware platform model feature reconstruction loss threshold, the target hardware platform model is obtained.
[0057] In this embodiment, the preset hardware platform model feature reconstruction loss threshold can be preset manually. The hardware platform model feature reconstruction loss threshold is set to 0.08. When the hardware platform model feature reconstruction loss information is less than or equal to the preset hardware platform model feature reconstruction loss threshold, the training of the initial hardware platform model is stopped, thereby obtaining the target hardware platform model.
[0058] The AI model cross-hardware ontology migration and adaptation method provided in this application standardizes the potential manifold space structure of the target hardware platform model, effectively suppresses feature aliasing and model overfitting, and improves the feature decoupling ability and cross-hardware migration stability of the target hardware platform model in a heterogeneous hardware strong perturbation environment.
[0059] Figure 6 The flowchart illustrating the implementation of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 5 of this application is shown. The difference between this method and Embodiment 4 above is that step S402 specifically includes: Step S501: Generate sub-models based on the content feature sequence information generated by the multiple models to be transferred and the initial hardware platform adaptation prior probability distribution, and generate multiple processed hardware platform adaptation prior probability distribution information.
[0060] In this embodiment, the initial hardware platform adaptation prior probability distribution generation sub-model can be a pre-set reference encoder. Multiple content feature sequence information generated by the models to be transferred are individually input into the initial hardware platform adaptation prior probability distribution generation sub-model to complete the latent manifold projection calculation and then generate multiple processed hardware platform adaptation prior probability distribution information.
[0061] Step S502: Generate a sub-model based on the feature sequence representation information of the multiple processed models and the initial hardware platform adaptation posterior probability distribution, and generate multiple processed hardware platform adaptation posterior probability distribution information.
[0062] In this embodiment, the initial hardware platform adaptation posterior probability distribution generation sub-model can be a pre-defined inference encoder. Multiple processed model feature sequence representation information are individually input into the initial hardware platform adaptation posterior probability distribution generation sub-model to complete the latent manifold projection calculation and then generate multiple processed hardware platform adaptation posterior probability distribution information.
[0063] The AI model cross-hardware ontology transfer and adaptation method provided in this application embodiment enables the prior probability distribution and the posterior probability distribution to independently learn the corresponding model inference features, thereby improving the accuracy of distribution alignment and the stability of model training, and thus enhancing the global feature inference capability of the target hardware platform model under incomplete model inference features.
[0064] Figure 7 The flowchart illustrating the implementation of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment Six of this application is shown. The difference between this method and Embodiment One is that step S102 specifically includes: Step S601: Filter the content information generated by the multiple source hardware platform models to obtain filtered content information generated by the source hardware platform models.
[0065] In this embodiment, spatial filtering processing of second-order statistical isomorphism and feature domain whitening can be sequentially performed on the content information generated by multiple source hardware platform models. The preset second-order statistical isomorphism and feature domain whitening parameters can be preset manually, thereby eliminating the edge distribution offset of the content information generated across hardware platform models, and thus generating multiple filtered content information generated by source hardware platform models.
[0066] Step S602: Based on the content information generated from the filtered source hardware platform model, perform parameter optimization processing on the target hardware platform model to obtain the optimized target hardware platform model.
[0067] In this embodiment, a low-rank adaptation hardware platform task fine-tuning method can be adopted. The preset low-rank adaptation rank parameter can be preset manually and has a value of 8. The content information generated by multiple filtered source hardware platform models is input into the target hardware platform model, and then the parameters of the visual transformer backbone network are frozen and the bypass low-rank adaptation parameters are trained. Finally, the optimized target hardware platform model is generated.
[0068] In this embodiment, the parameter optimization process adopts the hardware platform task fine-tuning principle of low-rank adaptation. First, all parameters of the visual transformer backbone network in the pre-trained target hardware platform model are frozen. Only the low-rank adaptation side-path matrix is connected in parallel on the side of the multi-head self-attention layer of the target hardware platform model. The side-path lightweight parameters are trained using a small amount of intermediate feature data from the labeled model in heterogeneous hardware scenarios. This avoids the full parameter fine-tuning from destroying the noise-resistant manifold representation and global spatiotemporal topological features learned in the pre-training stage. At the same time, it reduces the computing power consumption of the UAV end-side hardware device. High-dimensional semantic features are mapped to cross-hardware feature adaptation category probability distribution through global average pooling and lightweight feature adaptation head. The side-path parameters are updated with cross-entropy loss supervision, allowing the model to quickly adapt to the inference feature distribution of personalized models on heterogeneous hardware. While retaining strong noise resistance, it improves the accuracy and generalization of cross-hardware model transfer adaptation.
[0069] Step S603: Generate target hardware platform model generation content information based on the multiple source hardware platform models and the optimized target hardware platform model.
[0070] In this embodiment, multiple source hardware platform model generated content information can be input into the optimized target hardware platform model, thereby completing the calculation process of feature slicing, global feature topology extraction, latent manifold projection and distribution alignment, and then generating target hardware platform model generated content information adapted to the target hardware platform.
[0071] The AI model cross-hardware ontology migration and adaptation method provided in this application improves the cross-hardware generalization capability of the target hardware platform model, making the target hardware platform model more adaptable to the heterogeneous hardware personalized model inference features in real drone inspection scenarios, thereby outputting more stable and accurate target hardware platform model generated content information.
[0072] Figure 8 The flowchart illustrating the implementation of the AI model cross-hardware ontology migration and adaptation method provided in Embodiment 7 of this application is shown. Its difference from Embodiment 6 above lies in: The target hardware platform model includes a target hardware platform feature extraction sub-model and a target hardware platform content generation sub-model. Step S602 specifically includes: Step S701: Generate multiple source-end model content feature information based on the content information generated by the filtered source hardware platform model and the target hardware platform feature extraction sub-model.
[0073] In this embodiment, the target hardware platform feature extraction sub-model can be a pre-defined feature extraction network based on a visual transformer. It can input the content information generated by multiple filtered source hardware platform models into the target hardware platform feature extraction sub-model, thereby completing global feature topology extraction and nonlinear decoupling abstraction, and then generating multiple source model content feature information.
[0074] Step S702: Generate sub-models based on the content feature information of the multiple source models and the content of the target hardware platform, and generate content adaptation information for the target hardware platform.
[0075] In this embodiment, the target hardware platform content generation sub-model can be a lightweight feature reconstruction decoder that is preset by the user. It can input the content feature information of multiple source models into the target hardware platform content generation sub-model, and then perform global average pooling and feature adaptation probability classification calculation to generate target hardware platform content adaptation information.
[0076] Step S703: Based on the target hardware platform content adaptation information and the preset target hardware platform adaptation truth value annotation information, perform parameter optimization processing on the target hardware platform model to obtain the optimized target hardware platform model.
[0077] In this embodiment, the preset target hardware platform adaptation ground truth annotation information can be preset manually. The feature adaptation classification loss can be calculated based on the target hardware platform content adaptation information and the preset target hardware platform adaptation ground truth annotation information. Then, the low-rank adaptation bypass parameters of the model are updated based on the feature adaptation classification loss and the core parameters of the visual transformer are frozen, thereby generating the optimized target hardware platform model.
[0078] The AI model cross-hardware ontology migration and adaptation method provided in this application enhances the target hardware platform model's ability to make targeted judgments on cross-hardware migration tasks for UAV building facade inspection, and effectively improves the accuracy and noise resistance stability of cross-hardware feature adaptation.
[0079] Corresponding to the method in the above embodiments, Figure 9 The diagram shows a structural block diagram of the AI model cross-hardware ontology migration and adaptation device provided in the embodiments of this application. For ease of explanation, only the parts related to the embodiments of this application are shown. Figure 9 The example AI model cross-hardware ontology migration and adaptation device can be the execution subject of the AI model cross-hardware ontology migration and adaptation method provided in the aforementioned embodiment 1.
[0080] Reference Figure 9 The AI model's cross-hardware ontology migration and adaptation device includes: The source hardware platform model generated content information acquisition module 810 is used to acquire multiple source hardware platform model generated content information. The target hardware platform model generation content information generation module 820 is used to generate target hardware platform model generation content information based on the multiple source hardware platform model generation content information and the target hardware platform model. The target hardware platform model is obtained through the following steps: Obtain content information generated from multiple models to be migrated, as well as the initial hardware platform model; Based on the content information generated by the multiple models to be transferred, feature transformation and dimension mapping are performed to generate multiple content feature sequence information of the models to be transferred. Based on multiple preset content feature deletion ratios and preset content feature deletion rules for the models to be migrated, the sequence information of the multiple content feature generated by the models to be migrated is processed to generate multiple processed content feature sequence information of the models to be migrated. Based on the content feature sequence information generated from the multiple processed models to be migrated and the initial hardware platform model, a target hardware platform model is generated.
[0081] The process by which each module in the AI model cross-hardware ontology migration and adaptation device provided in this application implements its respective function can be specifically referred to the foregoing. Figure 1 The description of Embodiment 1 shown will not be repeated here.
[0082] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0083] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0084] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0085] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0086] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance. It should also be understood that although the terms "first," "second," etc., are used in the text to describe various elements in some embodiments of this application, these elements should not be limited by these terms. These terms are merely used to distinguish one element from another. For example, a first table may be named a second table, and similarly, a second table may be named a first table, without departing from the scope of the various described embodiments. Both the first table and the second table are tables, but they are not the same table.
[0087] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0088] The AI model cross-hardware ontology migration and adaptation method provided in this application embodiment can be applied to terminal devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality / virtual reality devices, laptops, super mobile personal computers, netbooks, and personal digital assistants. This application embodiment does not impose any restrictions on the specific type of terminal device.
[0089] For example, the terminal device may be a station in a WLAN, a cellular phone, a cordless phone, a session initiation protocol phone, a wireless local loop station, a personal digital processing device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a set-top box, a user premises equipment, and / or other devices for communication over a wireless system, as well as next-generation communication systems, such as mobile terminals in 5G networks or mobile terminals in future evolved public terrestrial mobile networks, etc.
[0090] As an example and not a limitation, when the terminal device is a wearable device, the term "wearable device" can also refer to any device that utilizes wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices worn directly on the body or integrated into a user's clothing or accessories. Wearable devices are not merely hardware devices; they achieve powerful functions through software support, data interaction, and cloud interaction. Broadly defined, wearable smart devices include those with comprehensive functions, large sizes, and the ability to perform complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those focused on a specific application function that require interaction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0091] Figure 10 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. For example... Figure 10 As shown, the terminal device 9 of this embodiment includes: at least one processor 90 ( Figure 10 (Only one is shown in the image) A memory 91 stores a computer program 92 that can run on the processor 90. When the processor 90 executes the computer program 92, it implements the steps in the above embodiments of the AI model cross-hardware ontology migration and adaptation methods, for example... Figure 1 Steps S101 to S102 are shown. Alternatively, when the processor 90 executes the computer program 92, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 9The functions of the source hardware platform model generation content information acquisition module 810 to the target hardware platform model generation content information generation module 820 are shown.
[0092] The terminal device 9 can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor 90 and a memory 91. Those skilled in the art will understand that... Figure 10 This is merely an example of terminal device 9 and does not constitute a limitation on terminal device 9. It may include more or fewer components than shown, or combine certain components, or different components. For example, the terminal device may also include input transmission devices, network access devices, buses, etc.
[0093] The processor 90 may be a central processing unit, or it may be other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0094] In some embodiments, the memory 91 may be an internal storage unit of the terminal device 9, such as a hard disk or memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, smart memory card, secure digital card, flash memory card, etc., equipped on the terminal device 9. Furthermore, the memory 91 may include both internal and external storage units of the terminal device 9. The memory 91 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of computer programs. The memory 91 can also be used to temporarily store data that has been sent or will be sent.
[0095] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0096] This application also provides a terminal device, which includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor. When the processor executes the computer program, it causes the terminal device to implement the steps in any of the above method embodiments.
[0097] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0098] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments above.
[0099] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0100] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0101] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0103] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for AI model cross-hardware ontology migration and adaptation, characterized in that, include: Obtain content information generated from multiple source hardware platform models; Based on the multiple source hardware platform models, generate content information and target hardware platform models, and generate target hardware platform model content information. The target hardware platform model is obtained through the following steps: Obtain content information generated from multiple models to be migrated, as well as the initial hardware platform model; Based on the content information generated by the multiple models to be transferred, feature transformation and dimension mapping are performed to generate multiple content feature sequence information of the models to be transferred. Based on multiple preset content feature deletion ratios and preset content feature deletion rules for the models to be migrated, the sequence information of the multiple content feature generated by the models to be migrated is processed to generate multiple processed content feature sequence information of the models to be migrated. Based on the content feature sequence information generated from the multiple processed models to be migrated and the initial hardware platform model, a target hardware platform model is generated.
2. The AI model cross-hardware ontology migration and adaptation method as described in claim 1, characterized in that, The step of performing feature transformation and dimension mapping processing on the content information generated by the multiple models to be transferred, to generate multiple feature sequence information of the content generated by the multiple models to be transferred, specifically includes: Based on the content information generated by the multiple models to be transferred and the preset content segmentation size information of the models to be transferred, multiple content fragment information of the models to be transferred are generated. Based on the multiple content fragment information generated by the multiple models to be transferred and the preset feature mapping operator for the content generated by the models to be transferred, multiple content feature sequence information generated by the models to be transferred is generated.
3. The AI model cross-hardware ontology migration and adaptation method as described in claim 1, characterized in that, Multiple preset deletion ratios for content features generated by models to be transferred include a first preset deletion ratio for content features generated by models to be transferred and a second preset deletion ratio for content features generated by models to be transferred. Among them, the preset deletion ratio of content features generated by the first model to be migrated is less than the preset deletion ratio of content features generated by the second model to be migrated. The content feature sequence information generated by the multiple models to be transferred includes the content feature sequence information generated by the first model to be transferred and the content feature sequence information generated by the second model to be transferred. The multiple processed content feature sequence information generated by the model to be transferred includes the first processed content feature sequence information generated by the model to be transferred and the second processed content feature sequence information generated by the model to be transferred. The step of processing the content feature sequence information generated by the multiple models to be migrated according to multiple preset content feature deletion ratios and preset content feature deletion rules of the models to be migrated, and generating multiple processed content feature sequence information of the models to be migrated, specifically includes: Based on the preset deletion ratio of the first content feature generated by the first model to be migrated and the preset deletion rules of the content feature generated by the first model to be migrated, the content feature sequence information of the first model to be migrated is processed to generate the first processed content feature sequence information of the model to be migrated. Based on the preset deletion ratio of the content features generated by the second model to be migrated and the preset deletion rules of the content features generated by the second model to be migrated, the content feature sequence information generated by the second model to be migrated is processed to generate the second processed content feature sequence information generated by the second model to be migrated.
4. The AI model cross-hardware ontology migration and adaptation method as described in claim 1, characterized in that, The initial hardware platform model includes an initial hardware platform feature extraction sub-model, an initial hardware platform adaptation prior probability distribution generation sub-model, an initial hardware platform adaptation posterior probability distribution generation sub-model, and an initial hardware platform model feature reconstruction sub-model. The step of generating a target hardware platform model based on the content feature sequence information generated from the multiple processed models to be transferred and the initial hardware platform model specifically includes: Based on the content feature sequence information generated by the multiple processed models to be transferred and the initial hardware platform feature extraction sub-model, multiple processed model feature sequence representation information is generated. Based on the multiple processed model feature sequence representation information, the multiple model to be transferred generated content feature sequence information, the initial hardware platform adaptation prior probability distribution generating sub-model and the initial hardware platform adaptation posterior probability distribution generating sub-model, multiple processed hardware platform adaptation prior probability distribution information and multiple processed hardware platform adaptation posterior probability distribution information are generated. Alignment processing is performed based on the multiple processed hardware platform adaptation prior probability distribution information and the multiple processed hardware platform adaptation posterior probability distribution information to generate multiple aligned hardware platform adaptation distribution information. Based on the multiple aligned hardware platform adaptation distribution information and the initial hardware platform model features, a sub-model is reconstructed to generate multiple hardware platform model feature reconstruction information. Based on the feature reconstruction information of the multiple hardware platform models and the content information generated by the multiple models to be transferred, the feature reconstruction loss information of the hardware platform models is calculated. The target hardware platform model is obtained based on the initial hardware platform model, the hardware platform model feature reconstruction loss information, and the preset hardware platform model feature reconstruction loss threshold.
5. The AI model cross-hardware ontology migration and adaptation method as described in claim 4, characterized in that, The step of generating multiple processed hardware platform adaptation prior probability distribution information and multiple processed hardware platform adaptation posterior probability distribution information based on the multiple processed model feature sequence representation information, multiple content feature sequence information generated by the multiple models to be transferred, the initial hardware platform adaptation prior probability distribution generating sub-model, and the initial hardware platform adaptation posterior probability distribution generating sub-model specifically includes: Based on the content feature sequence information generated by the multiple models to be transferred and the initial hardware platform adaptation prior probability distribution, a sub-model is generated, and multiple processed hardware platform adaptation prior probability distribution information is generated. Based on the feature sequence representation information of the multiple processed models and the initial hardware platform adaptation posterior probability distribution, a sub-model is generated, and multiple processed hardware platform adaptation posterior probability distribution information is generated.
6. The AI model cross-hardware ontology migration and adaptation method as described in claim 1, characterized in that, The step of generating content information based on the multiple source hardware platform models and the target hardware platform model, and generating content information based on the target hardware platform model, specifically includes: The content information generated by the multiple source hardware platform models is filtered to obtain filtered content information generated by the source hardware platform models. Based on the content information generated from the filtered source hardware platform model, the target hardware platform model is subjected to parameter optimization processing to obtain the optimized target hardware platform model. Based on the multiple source hardware platform models, generate content information and the optimized target hardware platform model, and generate target hardware platform model content information.
7. The AI model cross-hardware ontology migration and adaptation method as described in claim 6, characterized in that, The target hardware platform model includes a target hardware platform feature extraction sub-model and a target hardware platform content generation sub-model. The step of generating content information based on the filtered source hardware platform model and performing parameter optimization processing on the target hardware platform model to obtain the optimized target hardware platform model specifically includes: Based on the content information generated by the filtered source hardware platform model and the target hardware platform feature extraction sub-model, multiple source-end model content feature information are generated. Based on the content feature information of the multiple source models and the target hardware platform content, a sub-model is generated to generate target hardware platform content adaptation information. Based on the target hardware platform content adaptation information and the preset target hardware platform adaptation truth value annotation information, the target hardware platform model is subjected to parameter optimization processing to obtain the optimized target hardware platform model.
8. An AI model cross-hardware ontology migration and adaptation device, characterized in that, include: The source hardware platform model generated content information acquisition module is used to acquire the generated content information of multiple source hardware platform models; The target hardware platform model generating content information generation module is used to generate target hardware platform model generating content information based on the multiple source hardware platform model generating content information and the target hardware platform model. The target hardware platform model is obtained through the following steps: Obtain content information generated from multiple models to be migrated, as well as the initial hardware platform model; Based on the content information generated by the multiple models to be transferred, feature transformation and dimension mapping are performed to generate multiple content feature sequence information of the models to be transferred. Based on multiple preset content feature deletion ratios and preset content feature deletion rules for the models to be migrated, the sequence information of the multiple content feature generated by the models to be migrated is processed to generate multiple processed content feature sequence information of the models to be migrated. Based on the content feature sequence information generated from the multiple processed models to be migrated and the initial hardware platform model, a target hardware platform model is generated.
9. A terminal device, characterized in that, The terminal device includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.
