Knowledge distillation method, single-target domain evaluation method, and electronic device

By employing a knowledge distillation method based on multi-language model trust-weighted ensemble and low-rank adaptive adapter, this approach addresses the issues of insufficient robustness and high deployment costs in existing single-objective domain processing models. It achieves efficient and accurate single-objective domain evaluation, significantly reduces inference costs, and demonstrates superior model performance.

CN123140146APending Publication Date: 2026-11-20ZHIYUCHENTU (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610942988.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing knowledge distillation and parameter fine-tuning techniques suffer from insufficient robustness, lack of integration advantages, output format differences, high deployment costs, excessive inference latency, and failure of multimodal base models to achieve structured output in minimal context in high-dimensional structured scoring tasks, making it difficult to achieve efficient and accurate single-objective domain processing.

Method used

We employ a knowledge distillation method that integrates multiple large language models with a trust-weighted ensemble, combined with a low-rank adaptive adapter (LoRA) for efficient parameter fine-tuning on a single-objective domain processing model. Through precise path constraint and weight verification mechanisms, we ensure that the model generates structured outputs in the minimum context. We also use the AdamW optimizer and cosine annealing learning rate scheduling strategy for training.

Benefits of technology

It achieves high-fidelity reproduction of the evaluation quality of multi-model ensemble while significantly reducing inference costs. The inference cost is reduced by 150 times, the latency is reduced from 30 seconds to 1 to 5 seconds, the model performs well in specific scenarios, and has cross-system generalization ability and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140146A_ABST
    Figure CN123140146A_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a knowledge distillation method, a single-target domain evaluation method and an electronic device. The knowledge distillation method comprises: obtaining an evaluation result of a sample object in an evaluation target domain, the evaluation result being obtained based on integration of a plurality of large language model output results; wherein the plurality of large language model output results are obtained by respectively inputting sample data of the sample object into a plurality of large language models; the sample data comprises a text description for the sample object; a training pair is constructed; the training pair comprises an input and an output, the input being minimum context information of the sample object, and the output being the evaluation result; the minimum context information comprises identification information of the sample object; and a single-target domain processing model is trained using the training pair, wherein the single-target domain processing model comprises a language module, and at least a part of the language module is pre-configured with a low-rank adaptive adapter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, specifically to a knowledge distillation method, a single-objective domain evaluation method, and an electronic device. Background Technology

[0002] Knowledge distillation (KD) was proposed by Hinton et al. in 2015. Its core idea is to use the output distribution (i.e., "soft targets") of a high-performance "teacher model" to guide the training of a "student model," thereby enabling the student model, with fewer parameters and faster inference speed, to approximate the performance of the teacher model. With the development of Large Language Models (LLM), knowledge distillation has become a key method for model compression and transfer learning. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a knowledge distillation method, a single-objective domain evaluation method, and an electronic device.

[0004] In a first aspect, this disclosure provides a knowledge distillation method, comprising the following steps: The evaluation results of the sample object in the evaluation target domain are obtained, and the evaluation results are obtained by integrating the output results of multiple large language models; wherein, the output results of the multiple large language models are obtained by inputting the sample data of the sample object into the multiple large language models respectively; the sample data includes a text description of the sample object; Construct training pairs; each training pair includes input and output, the input being the minimum context information of the sample object, and the output being the evaluation result; the minimum context information includes the identification information of the sample object. The training pair is used to train a single-objective domain processing model, wherein the single-objective domain processing model includes a language module, and at least a portion of the language module is pre-configured with a low-rank adaptive adapter.

[0005] Furthermore, the multiple large language models are independent large language models with different training lineages, consisting of pre-trained data and / or reinforcement learning training based on human feedback.

[0006] Furthermore, the language module is a Transformer architecture, and at least a portion of the language module configured with a low-rank adaptation adapter includes the attention projection layer and feedforward network gating layer of the Transformer architecture.

[0007] Furthermore, the method also includes: Before training begins, the single-objective domain processing model extracts the initial weight matrix of the configured low-rank adaptive adapter and verifies whether the L2 norm of the initial weight matrix is ​​0. After training, the single-target domain processing model extracts the updated weight matrix of the configured low-rank adaptive adapter and verifies whether the L2 norm of the updated weight matrix is ​​not 0.

[0008] Furthermore, the method also includes: After the single-objective domain processing model is trained, the weight matrix of the low-rank adaptive adapter obtained from the training is saved. When deploying the single-target domain processing model, the weight matrix of the saved low-rank adaptive adapter is loaded using a parameter-efficient fine-tuning framework.

[0009] Furthermore, the method also includes: Obtain test samples; After calling the PEFT framework and temporarily disabling the low-rank adaptation adapter of the trained single-objective domain processing model, the first model prediction result is obtained based on the test samples. The test sample is input into a single-objective domain processing model that has been trained and whose low-rank adaptation adapter has not been disabled, to obtain the prediction result of the second model. The effectiveness of the low-rank adaptive adapter is verified by comparing the prediction results of the first model and the prediction results of the second model.

[0010] Furthermore, the training is used to train a single-target domain processing model, including: During training, a partial loss masking mechanism is used to backpropagate and calculate the cross-entropy loss.

[0011] Furthermore, the training is used to train a single-target domain processing model, including: During training, the AdamW optimizer, combined with a cosine annealing learning rate scheduling strategy, is used to train the single-objective domain processing model.

[0012] Furthermore, the single-objective domain processing model uses a pure language modality model or a multimodal model including language modality as the base model.

[0013] Furthermore, the parameter magnitude of the single-target domain processing model is within a set range.

[0014] Furthermore, the sample objects include occupations or products; the evaluation results include occupational interest scores, occupational ability scores, or product multi-attribute scores.

[0015] Secondly, embodiments of this disclosure provide a single-target domain evaluation method, comprising the following steps: Obtain the minimum context information of the target object; the minimum context information includes the identification information of the target object; The minimum context information is input into a single-objective domain processing model to obtain the structured data of the target object. The single-objective domain processing model is trained based on the method described in the first aspect.

[0016] Thirdly, embodiments of this disclosure provide an electronic device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in any of the above aspects.

[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0018] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which: Figure 1 This is a schematic flowchart of the knowledge distillation method proposed in an embodiment of the present invention; Figure 2 This is a schematic flowchart illustrating an example of the knowledge distillation method proposed in an embodiment of the present invention. Figure 3 This is a flowchart illustrating the single-target domain evaluation method proposed in this embodiment of the invention; Figure 4 This is a simplified block diagram applicable to an electronic device 400 implementing embodiments of the present disclosure. Detailed Implementation

[0019] The present application is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present application below, certain specific details are described in detail. Those skilled in the art can fully understand the present application without these details. To avoid obscuring the substance of the present application, well-known methods, processes, flows, elements, and circuits are not described in detail.

[0020] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.

[0021] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".

[0022] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0023] Through in-depth research, the inventors of this invention have discovered that existing knowledge distillation (KD) and parameter efficient fine-tuning (PEFT) techniques still have significant technical bottlenecks and blind spots when applied to high-dimensional structured scoring tasks (such as career assessments). Specifically, existing technologies have at least the following five key shortcomings: (1) The gap between single-teacher knowledge distillation and multi-LLM trust-weighted integration Existing knowledge distillation methods are limited to using the output of a single teacher model as the supervision signal. This single-point supervision signal has inherent limitations: Insufficient robustness: A single model is susceptible to biases in its specific training data, specific architectural defects, or specific illusion patterns, resulting in the "knowledge" distilled onto a single-objective domain processing model being inherently noisy or biased.

[0024] Lack of integration advantages: Currently, there is no method that uses "multi-LLM ensemble based on trust weights" as a teacher. The existing single-teacher paradigm cannot take advantage of the "collective intelligence" brought by multi-model ensemble, nor can it dynamically filter the output of low-quality models through the trust-weighted mechanism, thus limiting the upper limit of the performance of single-objective domain processing models.

[0025] (2) The difference between instruction-based fine-tuning distillation and structured scoring regression Current mainstream instruction distillation methods (such as Stanford Alpaca) primarily focus on learning "how to follow natural language instructions" or "how to generate fluent natural language responses." This fundamentally misaligns with the "K-Dimensional Continuous Rating Regression" task targeted by this invention. Output format differences: Instruction fine-tuning typically generates free-form text, while rating regression tasks require the model to output strictly defined, high-precision structured JSON data.

[0026] Semantic space differences: Instruction data often contains rich descriptive language, while rating regression requires the model to understand and map it to specific psychometric dimensions (such as RIASEC or CAP). Existing instruction distillation methods cannot effectively guide single-objective domain processing models to learn an accurate nonlinear mapping from the semantic space to a high-dimensional continuous numerical space.

[0027] (3) Deployment cost of multi-LLM integrated systems While multi-LLM integration (Ensemble) can theoretically provide high-quality scores, its direct deployment in a production environment faces significant engineering challenges: Hardware resource consumption: An integrated system consisting of five large language models (each with parameters ranging from 10B to 122B) requires approximately 800 GB of GPU memory and about 5 kW of power consumption during concurrent inference. This resource requirement is unacceptable for most consumer-facing real-time applications (such as online career assessment platforms).

[0028] Excessive inference latency: Under this integrated architecture, the end-to-end latency for a single occupational assessment is as high as 30 to 60 seconds. This level of latency is completely unacceptable for the user experience requirements of real-time interactive scenarios, severely hindering the widespread application of high-precision assessment technology.

[0029] (4) The single-objective domain processing model failed to provide structured output in the minimum context. When attempting to replace the ensemble system with a single-objective domain processing model (Compact Student Model) with fewer parameters (≤15B), the inventors of this invention discovered a key "capability gap" phenomenon: Failure of specific pedestals: Experimental data shows that some advanced pedestal models (such as Gemma-4-E4B-it) are completely unable to output structured K-dimensional JSON data when only a minimal context hint of "NOC code + job title" is provided.

[0030] Quantitative data supports this: In a test set containing 1016 Standard Occupational Classifications (SOCs), the parsing success rate of the above base model was 0 / 1016.

[0031] Limitations of existing methods: Existing fine-tuning methods cannot solve this problem because they often rely on redundant contextual information or fail to activate the base model's structured generative capabilities under minimal signals. This constitutes a key "enabler" problem—that is, how to enable small models to "learn" complex scoring logic based solely on code and titles without the aid of long text descriptions.

[0032] (5) Blind spots in PEFT target module path matching on multimodal base models When using PEFT (Parameter-Efficient Fine-Tuning) techniques such as LoRA to adapt multimodal base models, existing common practices have serious security vulnerabilities: Ambiguity in path matching: The documentation of mainstream PEFT libraries (such as HuggingFace PEFT) does not warn developers that in multimodal architectures, there are often layers with the same names as the language model decoder (such as q_proj, up_proj, etc.) in the vision encoder and audio encoder.

[0033] Risk of incorrect attachment: If a simple "endswith matching" strategy is used, the LoRA adapter is very likely to be incorrectly attached to the visual or audio encoder, rather than the language understanding part that really needs fine-tuning.

[0034] Consequences: This incorrect attachment can render LoRA training completely ineffective (i.e., gradients do not flow along the correct path), resulting in no improvement in model performance and making it difficult for developers to troubleshoot the cause. Current technologies lack "Exact Path Limitation" configuration strategies for multimodal pedestals, making this process highly uncertain.

[0035] To address the aforementioned issues, this invention provides a distillation scheme for the output of multiple large language model ensembles based on Low-Rank Adaptive Relationship (LoRA). This method uses the multidimensional continuous score obtained by ensembles multiple large language models according to dimensional trust weights as a soft target. LoRA is then applied to a single-target domain processing model with no more than 15 billion (≤15B) parameters for efficient parameter fine-tuning. This allows the single-target domain processing model to faithfully reproduce the evaluation quality of the multi-model ensemble while significantly reducing inference costs.

[0036] Meanwhile, addressing the engineering blind spots of existing technologies in specific scenarios, this invention also provides targeted solutions: on the one hand, it overcomes the capability gap problem of multimodal base models failing to generate structured outputs under minimal context information, achieving the crucial pre-enabling; on the other hand, it resolves the hidden danger of adapter misattachment caused by fuzzy target module path matching during efficient parameter fine-tuning (PEFT), ensuring the effectiveness of fine-tuning. Through the above technical solutions, this invention successfully constructs an end-to-end closed-loop path from "high-cost multi-model integration" to "low-cost single-model deployment".

[0037] Based on the above description, this invention proposes a knowledge distillation method, see [link to relevant documentation]. Figure 1 As shown, the method includes the following steps: In step S101, the evaluation results of the sample object in the evaluation target domain are obtained. The evaluation results are obtained by integrating the output results of multiple large language models. The output results of the multiple large language models are obtained by inputting the sample data of the sample object into the multiple large language models respectively. The sample data includes a text description of the sample object. In step S102, a training pair is constructed; the training pair includes an input and an output, the input being the minimum context information of the sample object, and the output being the evaluation result; the minimum context information includes the identification information of the sample object; In step S103, a single-target domain processing model is trained using the training pair, wherein the single-target domain processing model includes a language module, and at least a portion of the language module is pre-configured with a low-rank adaptive adapter.

[0038] In this embodiment, the sample objects include occupations, medical images, or products; the evaluation results include occupational interest scores, occupational ability scores, or product multi-attribute scores.

[0039] It should be noted that the evaluation results in knowledge distillation refer to "soft labels" or "teacher supervision signals." In this embodiment, the evaluation results can be standardized outputs after weighted fusion, including multi-dimensional data. Each dimension can be, for example, the evaluation result of a sample object in a certain aspect of the evaluation target domain. Minimal contextual information can be the simplified data obtained after desensitizing, summarizing, or extracting features from the sample data of the sample object during training pair construction, or it can be the identifier of the sample object extracted from the defined system. This identifier can include the code and / or name that identifies the sample object in the defined system. The main function of minimal contextual information is to identify the sample object while removing redundant noise from the original sample data, so that the distilled model, i.e., the single-target domain processing model, focuses on the core features. The single-target domain processing model refers to the student model to be trained, which can include a language module. The architecture of the language module can be based on Transformer, BERT, LLaMA, etc. It should be noted that the language module of a single-objective domain processing model is the model part used for language processing. Some multimodal models may include not only a language module, but also an audio module, a video module, etc. It can be understood that the audio module is the model part used for audio processing, and the video module is the model part used for video processing.

[0040] For ease of description, the following example uses occupations as the sample objects.

[0041] First, obtain the assessment results of the occupational samples within the target assessment domain. This target assessment domain can be a domain related to occupational psychology, such as the RIASEC-30 (Holland Occupational Interest Scale) or the CAP-25 (Occupational Competency Assessment Scale). The assessment results can be obtained by integrating multiple Large Language Models (LLMs) with dimensional trust weights; for example, the RIASEC-30 score is obtained by integrating 5 LLMs with trust weights, and the CAP-25 score is obtained by integrating 4 LLMs with trust weights.

[0042] In some embodiments, the sample data of the sample objects input to the large language model may include, but is not limited to, textual descriptions, such as operational definitions of each evaluation dimension and grading conditions. It may also include positive and negative anchor samples for calibration. Taking a profession as an example, in a job evaluation scenario, assuming one dimension of the evaluation result is remote work adaptability, the sample data may include operational definitions such as "whether the position supports completing core business entirely outside the physical office," grading conditions such as "the rating level is set to 0-3," positive anchor samples such as "software engineer (can deliver code entirely online)," and negative anchor samples such as "assembly line worker (must be on-site to operate machines)."

[0043] Subsequently, after obtaining the evaluation results under the target evaluation domain, training pairs can be constructed. Each training pair includes input and output, with the minimum contextual information of the occupational sample used as input and the evaluation result as output. In some embodiments, the minimum contextual information includes the identification information of the sample object, which can be used to identify the sample object. For example, the identification information of an occupational sample may include an occupational identifier (such as a NOC code) and an occupational title. In some embodiments, the occupational identifier can be a standardized uniform occupational identifier, and the occupational title is also a standardized uniform occupational title. It is understood that the evaluation result and minimum contextual information corresponding to one occupational sample under the target evaluation domain can constitute a set of training pairs. To achieve a certain training effect, multiple sets of training pairs corresponding to multiple occupational samples can be obtained.

[0044] Finally, the training described above is used to train a single-objective domain processing model. In some embodiments, the base model of the single-objective domain processing model can be a pure language modality model or a multimodal model including a language modality. This single-objective domain processing model is a compact model, with its parameter magnitude within a set range, such as within the 15B range. For example, the base model of the single-objective domain processing model can be the vision-language multimodal base model Gemma-4-E4B-it, with its parameter magnitude within a set range. In addition, the language module included in the base model of the single-objective domain processing model can be configured with a low-rank adaptation adapter (LoRA). For example, when the base model includes a Transformer architecture, the low-rank adaptation adapter (LoRA) can be configured in the attention projection layer and feedforward gating layer of the Transformer architecture to achieve efficient fine-tuning for the given task.

[0045] In some embodiments, the single-target domain processing model can be selected from at least one of the Llama family, Qwen family, Gemma family, and Mistral family; and when the single-target domain processing model is a vision-language or audio-language multimodal base model, the precise path of the LoRA adapter is explicitly defined to include only the language model part and exclude the vision module and audio module.

[0046] In some embodiments, the number of trainable parameters of the LoRA adapter is 0.1% to 1% of the number of parameters of the pedestal model, and the rank of the LoRA adapter is between 4 and 64.

[0047] In some optional embodiments, the evaluation results corresponding to the evaluation target domain are multidimensional data.

[0048] In this embodiment, the evaluation results can be multidimensional data, with each dimension including a dimension identifier and evaluation information such as a score. For the same target psychological profession, the evaluation results under different evaluation target domains are all multidimensional data. For example, the evaluation result under the RIASEC-30 domain is a vector containing 30 dimensions, while the evaluation result under the CAP-25 domain is a vector containing 25 dimensions. This multidimensional data can comprehensively and meticulously depict the characteristic distribution of the target profession from different psychological perspectives.

[0049] In some alternative embodiments, the plurality of large language models are mutually independent large language models with different lineages, consisting of pre-trained data and / or reinforcement learning training based on human feedback.

[0050] To ensure the objectivity and diversity of the integrated evaluation results, this embodiment employs a heterogeneous configuration for multiple large language models. For example, the three selected models are: the Llama-3 model pre-trained on a pure English professional corpus, the Qwen-72B model pre-trained on a Chinese-English bilingual general corpus, and the ChatGLM3 model, deeply aligned using Human Feedback Reinforcement Learning (RLHF). Because their pre-training data composition is completely different from their RLHF training lineage and they are independent of each other, the inductive bias of a single model can be effectively avoided, making the integrated evaluation results more generalizable and authoritative.

[0051] In some embodiments, the language module is a Transformer architecture, and at least a portion of the language module configured with a low-rank adaptation adapter includes the attention projection layer and feedforward network gating layer of the Transformer architecture.

[0052] In this embodiment, the base model of the single-objective domain processing model can be a pure language modality model or a multimodal model including language modalities. For example, the base model of the single-objective domain processing model can be the vision-language multimodal base model Gemma-4-E4B-it, whose parameter count is within a set range. In addition, the language module included in the base model of the single-objective domain processing model can be configured with a low-rank adaptive adapter (LoRA).

[0053] In this embodiment, the language module of the single-target domain processing model adopts the standard Transformer architecture. To achieve efficient target domain fine-tuning with extremely low computational cost, the system precisely configures the low-rank adaptation (LoRA) adapter on the key parameter layers of the Transformer architecture. Specifically, this includes the Query and Value projection layers in the self-attention mechanism, and the gate projection layer in the feedforward network (FFN). This configuration retains the original general language capabilities of the base model while endowing the model with specialized reasoning capabilities in specific target domains (such as medical consultation).

[0054] In some optional embodiments, the method further includes: Before training begins, the single-objective domain processing model extracts the initial weight matrix of the configured low-rank adaptive adapter and verifies whether the L2 norm of the initial weight matrix is ​​0. After training, the single-target domain processing model extracts the updated weight matrix of the configured low-rank adaptive adapter and verifies whether the L2 norm of the updated weight matrix is ​​not 0.

[0055] In this embodiment, a weight verification mechanism is introduced to prevent adapter failure due to anomalies or code errors during training. Before training begins, the system automatically extracts the initial weight matrix of the LoRA adapter and calculates its L2 norm, confirming that it is 0 (i.e., the behavior of the base model does not change in the initial state). After training is completed, the updated weight matrix obtained from the final training is extracted again, and its L2 norm is calculated to confirm that it is not 0. If the initial weight matrix is ​​not 0 or the updated weight matrix is ​​0, an error can be directly reported and the process terminated to ensure the mathematical rigor of the training process.

[0056] In some embodiments, the method further includes: After the single-objective domain processing model is trained, the weight matrix of the low-rank adaptive adapter obtained from the training is saved. When deploying the single-target domain processing model, the weight matrix of the saved low-rank adaptive adapter is loaded using a parameter-efficient fine-tuning framework.

[0057] This embodiment optimizes the engineering deployment process for single-target domain processing models. After training, a LoRA adapter weight matrix file (such as adapter_model.bin) with a size of only tens of megabytes can be saved. During actual deployment, a general base model is loaded first, and then the saved LoRA weight matrix is ​​dynamically loaded through the PEFT framework. This approach not only significantly reduces storage costs but also allows for second-level hot switching of multiple target domain processing models on the same server by switching different LoRA weights.

[0058] In some optional embodiments, the method further includes: Obtain test samples; After calling the PEFT framework and temporarily disabling the low-rank adaptation adapter of the trained single-objective domain processing model, the first model prediction result is obtained based on the test samples. The test sample is input into a single-objective domain processing model that has been trained and whose low-rank adaptation adapter has not been disabled, to obtain the prediction result of the second model. The effectiveness of the low-rank adaptive adapter is verified by comparing the prediction results of the first model and the prediction results of the second model.

[0059] To confirm that the trained LoRA adapter is indeed effective and that no data leakage has occurred, this embodiment employs an automated verification mechanism. In this embodiment, after acquiring a batch of test samples, the system first temporarily disables the LoRA adapter by calling the `disable_adapter_layers()` method of the PEFT framework, and runs the test samples to obtain the "first model prediction result" (i.e., the result of the bare pedestal model). Subsequently, the LoRA adapter is re-enabled, and the same samples are used to obtain the "second model prediction result." The system compares the differences between the two results (e.g., by calculating KL divergence or cosine similarity). If the difference is significant and the second model result better matches the target domain expectations, the LoRA adapter is verified as effective, and deployment is permitted.

[0060] In some embodiments, the training is used to train a single-objective domain processing model, including: During training, a partial loss masking mechanism is used to backpropagate and calculate the cross-entropy loss.

[0061] In this embodiment, a completion-only loss masking mechanism can be used to calculate the cross-entropy loss during backpropagation. Specifically, when using the complete sequence concatenated with minimal contextual information and evaluation results as training input to the single-objective domain processing model, the token in the prompt part is masked to prevent it from participating in gradient calculation; the cross-entropy loss is calculated only for the prediction results generated by the autoregression of the single-objective domain processing model and backpropagation is performed. This mechanism effectively avoids overfitting the model to fixed prompts, forcing the single-objective domain processing model to focus on learning the logical generation ability from target domain description to complex multi-dimensional scoring.

[0062] In some embodiments, the training is used to train a single-objective domain processing model, including: During training, the AdamW optimizer, combined with a cosine annealing learning rate scheduling strategy, is used to train the single-objective domain processing model.

[0063] To ensure the convergence speed and stability of the single-objective domain processing model during efficient parameter fine-tuning, this embodiment employs optimized configuration. Specifically, the AdamW optimizer is selected during training, utilizing its decoupled weight decay characteristics to enhance the model's regularization effect and prevent overfitting on the target domain samples. Simultaneously, a cosine annealing learning rate scheduling strategy is used, ensuring the learning rate smoothly decreases with training steps according to a cosine function curve. This combined strategy allows the model to quickly explore the loss surface in the early stages of training and finely converge to local optima in the later stages, avoiding performance fluctuations caused by learning rate oscillations.

[0064] In some embodiments, the evaluation results can be obtained by integrating the outputs of multiple large language models using a trust-weighted approach. Because different large language models perform differently across various dimensions, simple averaging can introduce noise. Therefore, this embodiment measures the reliability of each large language model by calculating its Spearman rank correlation coefficient ρ on the validation set and uses a non-negative weighting transformation function (e.g., f(ω) = max(0, ω)^β) for weight allocation. This mechanism automatically amplifies the weights of high-reliability models and suppresses interference from low-quality models. For example, when generating a soft objective of "career interest rating," large model A has a Spearman coefficient of 0.85 in dimension a, while large model B has a Spearman coefficient of only 0.4 in dimension a. After a non-negative weighting transformation (β=2), the weight of large model A in the user experience dimension is significantly amplified. This ensures that the final integrated career psychological assessment soft label is closer to the actual evaluation standards of human experts, providing a high-quality "teacher" for the student models.

[0065] In some embodiments, a routing deployment strategy based on cross-student complementary failure mode analysis can be implemented. In practical applications, a single student model may perform poorly in certain categories. By training multiple student models based on different pedigrees and analyzing their error distribution on the validation set, a dynamic routing gateway can be built at deployment time to distribute requests to the model that performs best, thereby improving overall performance. Taking a career psychological assessment scenario as an example, two single-objective domain processing models for "career interest rating" can be pre-trained based on Llama and Qwen, respectively. Analysis shows that the Llama single-objective domain processing model is more accurate in "art / design" career ratings, while the Qwen single-objective domain processing model performs better in "engineering / technology" careers. During deployment, the routing gateway dynamically distributes the input career categories, assigning art-related careers to the Llama single-objective domain processing model and engineering-related careers to the Qwen single-objective domain processing model. This complementary mechanism improves the overall accuracy of the career assessment system by 6% compared to a single model without adding additional inference latency.

[0066] The following specific examples further illustrate the solution disclosed herein.

[0067] The technical solution of this invention provides a single-target domain distillation method, see [link to relevant documentation]. Figure 2 As shown, the specific steps include S201 to S206: Step S201: Training Pair Construction. Obtain a K-dimensional continuous score matrix (score ∈ N) for N sample objects through a trust-weighted ensemble of multiple large language models. The algorithm uses a set of parameters (N × K) to construct structured training pairs (input, target). The input is limited to minimal contextual information; for example, if the sample object is a profession, this minimal contextual information can be in the form of "professional code + job title" (e.g., "NOC21203: Land Surveyor"), without any redundant descriptive text. The output (target) is the K-dimensional structured data corresponding to the profession (e.g., expressed in JSON). Each dimension in this K-dimensional structured data includes a key and a key value. The key corresponds to a specific evaluation dimension, and the key value is the score corresponding to that evaluation dimension. This score is the weighted ensemble result of the scores output by multiple large language models for that evaluation dimension, weighted by trust. For example, each large language model predetermines its corresponding trust weight, which is then weighted and averaged to obtain the weighted ensemble result of the multiple language models. This technical solution forces single-target domain processing models to learn deep semantic relationships rather than simple text matching through this mapping from minimal input to complex structured output.

[0068] Step S202: Single-objective domain processing model selection. In some embodiments, a pre-trained large language model with no more than a set threshold, such as 15 billion (15B), can be selected as the student base model to ensure both inference efficiency and knowledge capacity. For example, the single-objective domain processing model can be a pure language modality model or a multimodal model including language modality models, such as including but not limited to the following model families: Llama-3.1-8B-Instruct, Gemma-4-E4B-it (visual-language multimodal base), Llama-3.2-3B, and Qwen-2.5-7B, etc.

[0069] Step S203: LoRA Adapter Configuration and Defensive Path Limitation. A LoRA adapter is configured on the single-target domain processing model, covering the attention projection layers (q_proj, k_proj, v_proj, o_proj) and feedforward network gating layers (gate_proj, up_proj, down_proj) of the language model portion of the single-target domain processing model, keeping the number of trainable parameters to approximately 0.5% of the total parameters of the base model.

[0070] To prevent parameter contamination on the multimodal base model, this step introduces a key defensive technique: employing a "precise path constraint" strategy (such as explicit specification). Instead of traditional string suffix matching (endswith), LoRA uses a precise path constraint strategy to configure the target module covered by the LoRA adapter. This target module can be at least a part of the language module in a single-target domain processing model, such as the attention projection layer (q_proj, k_proj, v_proj, o_proj) and the feedforward network gate layer (gate_proj, up_proj, down_proj) in the language model. One implementation method is to specify the complete structural path containing hierarchical wildcards, for example, by configuring... The LoRA matrix is ​​explicitly restricted to operating only on the attention projection layer of the language model backbone network, thereby completely preventing LoRA from being incorrectly attached to non-language modules such as the vision encoder (vision_tower) or audio encoder (audio_tower). Furthermore, the LoRA_B matrix is ​​audited and validated before and / or after training.

[0071] Step S204: Loss Masking Training Mechanism. The AdamW optimizer and cosine annealing learning rate scheduling strategy are employed, along with a brief warmup phase. During training, the core application is the "completion-only loss masking" mechanism—that is, the cross-entropy loss gradient is calculated only on the tokens of the generated structured output data (i.e., the JSON answer), while no gradient is calculated on the smallest contextual prompt token of the input. Combined with mixed-precision training (BF16), an effective batch size in the low tens digit, and training epochs of 3 to 5, efficient and stable knowledge transfer is achieved.

[0072] Step S205: Multidimensional Evaluation and Lightweight Storage. After each training epoch, a custom callback function is triggered on the retained validation set for evaluation. Evaluation metrics include K-dimensional JSON parsing success rate, mean squared error (MSE) split by dimension, and Spearman rank correlation coefficient. After training, only a lightweight LoRA adapter file (typically only tens of megabytes) is saved, greatly reducing storage overhead.

[0073] Step S206: Low-cost deployment and gain verification. During the inference deployment phase, the complete model can be restored by loading the adapter or directly merging and unloading it into the base model. Compared to existing multi-model integration schemes, this invention reduces the single-scoring latency from approximately 30 seconds to 1-5 seconds, lowering inference costs by at least 100 times. Simultaneously, to ensure the authenticity of the fine-tuning effect, a comparative evaluation mechanism based on the disable_adapter_layers() interface is provided: testing the "bare base model" and the "LoRA-enhanced model" separately under the same forward interface to definitively verify the real performance gain brought by LoRA and eliminate interference factors such as dataset leakage.

[0074] Compared with the prior art, the present invention, through the above technical solution, achieves the following significant beneficial effects: (1) Reduced inference costs enable consumer-grade hardware deployment This invention transfers the capability of multi-model integration to a single-objective domain processing model through knowledge distillation, achieving a significant improvement in inference efficiency. Specifically, compared to the original solution of integrating multiple large language models (with a single scoring latency of approximately 30 seconds and requiring approximately 800GB of GPU memory), the single-objective domain processing model solution of this invention reduces the single scoring latency to 1 to 5 seconds and the inference cost to be reduced by approximately 150 times. At the same time, the GPU memory requirement is reduced from the cluster level to a single 24GB consumer-grade graphics card, greatly lowering the threshold for real-time business deployment for consumers.

[0075] (2) High-fidelity reproduction within the domain, accurately inheriting and integrating quality The LoRA-based fine-tuning method proposed in this invention enables single-objective domain processing models to reproduce the scoring capabilities of multi-model ensembles with high fidelity. Experimental data show that, using Llama-3.1-8B and Gemma-4-E4B-it as student bases, the average Spearman correlation coefficient (ρ) on the RIASEC-30 domain test set is significantly higher. The values ​​reached 0.706 and 0.736 respectively. This indicates that the single-objective domain processing model can still effectively learn and retain the multi-model trust-weighted ensemble (teacher model self-reference ρ) even with a significant reduction in the number of parameters. =1.000) core evaluation logic and quality.

[0076] (3) Possesses excellent cross-system generalization ability The single-objective domain processing model trained by this invention not only performs excellently within the training domain but also exhibits strong cross-system generalization ability. In cross-system testing, the Llama single-objective domain processing model achieved a Top-1 hit rate of 31.6%, while the Gemma single-objective domain processing model achieved an even higher Top-1 hit rate of 57.6%. This demonstrates that the method of this invention can effectively extract general features of object evaluation, rather than simply memorizing training data, thus maintaining high prediction accuracy when facing different occupational classification standards.

[0077] (4) Overcome the challenges of secure PEFT implementation on multimodal base models and achieve key pre-empowerment. To address the issue of structured output failure in multimodal base models under minimal context, this invention employs a triple defense mechanism—"precise path constraint + LoRA_B norm auditing + disable_adapter_layers() evaluation"—to successfully resolve the erroneous attachment problem of LoRA in multimodal architectures. This technological breakthrough achieves crucial "pre-empowerment," enabling multimodal base models such as Gemma-4-E4B-it to leapfrog from "0 / 1016 successful parsing" to "657 / 1016 Top-1 hits" in NOC parsing tasks, fully activating the structured generation potential of small-parameter multimodal models under minimal input.

[0078] (5) Construct a dual-student complementary mechanism to provide a robust fallback strategy. This invention reveals the differentiated failure modes of single-objective domain processing models with different architectures and constructs a complementary strategy accordingly. Taking occupational psychology assessment as an example, experiments show that the Llama single-objective domain processing model has a weakness in generating all-zero structured outputs in the R (Realistic) / S (Social) dimensions, while the Gemma single-objective domain processing model has a bias in the routing from E (Enterprising) to C (Conventional). Utilizing this complementarity, this invention can employ a dual-student voting or optimal selection mechanism during the deployment phase, effectively avoiding the specific blind spots of a single model and significantly improving the robustness and fault tolerance of the overall system.

[0079] In practical tests on the RIASEC-30 dimension, the Llama-3.1-8B single-objective domain processing model achieved an intra-domain Spearman correlation coefficient of 0.706, reducing inference costs by approximately 150 times. For the Gemma-4-E4B-it multimodal base, this method achieved an enabler effect, going from "completely unable to parse JSON" to "65.7% Top-1 accuracy".

[0080] This invention also proposes a single-objective domain evaluation method, see [link to relevant documentation]. Figure 3 As shown, the method includes the following steps: In step S301, the minimum context information of the target object is obtained; the minimum context information includes the identification information of the target object; In step S302, the minimum context information is input into the single-target domain processing model to obtain the evaluation result of the target object. The single-target domain processing model is trained based on the knowledge distillation method described above.

[0081] In this embodiment, the target object is the object to be evaluated, which is similar to the sample object described above, and will not be repeated here. Details of this embodiment can be found in the description of the knowledge distillation method above, and will not be repeated here.

[0082] It should be noted that after the single-target domain processing model is deployed, inputting the minimum context information into the single-target domain processing model will yield the evaluation results of the target object. The evaluation results are multi-dimensional data, with each dimension corresponding to the evaluation results of a certain dimension under the evaluation target domain. For example, if the target object is a profession and the evaluation target domain is the profession interest domain, then the evaluation results include the multi-dimensional ability evaluation results corresponding to that profession.

[0083] The present invention will be further described below through experiments.

[0084] Example 1: LoRA distillation on RIASEC-30 by Llama-3.1-8B student (multi-component validation version) This embodiment aims to verify the stability and effectiveness of the method of the present invention on a pure language modality compact model, and to eliminate random interference through multiple sub-experiments.

[0085] 1. Experimental Setup Teacher monitoring signals: Trust-weighted integrated scores from 5 large language models (5 LLMs), covering 491 NOC occupations × 30-dimensional RIASEC scores.

[0086] The student base, also known as the base model of the single-objective domain processing model, is Llama-3.1-8B-Instruct (pure language modality with approximately 8 billion parameters).

[0087] Training pair construction: The 491 occupational samples were divided into training, validation, and test sets in a ratio of 70% / 15% / 15%. Input was strictly limited to the minimal contextual form of "NOC code + title".

[0088] LoRA configuration: Rank = 16, Alpha = 32; Target module = Precise path-defined attention projection layer (q_proj, k_proj, v_proj, o_proj) and feedforward network gate layer (gate_proj, up_proj, down_proj); Dropout = 0.05, with trainable parameters accounting for approximately 0.2% of the base model.

[0089] Training strategy: Optimizer: AdamW, initial learning rate (lr) = 8e-4.

[0090] Scheduling strategy: Cosine annealing learning rate scheduling, which includes a short warmup phase (50 steps).

[0091] Batch settings: Effective Batch Size = 16.

[0092] Loss mask: "Completion-only loss masking" is used, which means that the cross-entropy loss is calculated only on the JSON answer part, that is, the token of the output label, and the gradient of the Prompt part, that is, the gradient of the minimum context information of the input, is ignored.

[0093] Precision and epochs: Mixed precision training (BF16), maximum training steps of 600 steps (approximately 3 epochs).

[0094] 2. Multiple Sub-Verification Processes To ensure the scientific validity of the experimental conclusions, this embodiment implemented multiple sub-validation protocols. The above configuration was independently and repeatedly trained and evaluated using three different global random seeds (Seeds = 21, 42, 99).

[0095] 3. Experimental Results Intra-domain fidelity: The Llama-3.1-8B single-objective domain processing model achieves an intra-domain Spearman correlation coefficient of 0.706 (multiple submeans) on the RIASEC-30 dimension.

[0096] Cross-system generalization: In In cross-system mapping evaluation, the Top-1 accuracy reached 31.6%.

[0097] Inference efficiency: The adapter size is approximately 67 MB, and the inference time is reduced from 30 seconds per job for integrated systems to 2 seconds per job for single-objective domain models.

[0098] Comparative evaluation: Through comparison using the disable_adapter_layers() interface, it was found that the bare base model without the LoRA adapter performed extremely poorly on this task, proving that the gains brought by LoRA are real and significant.

[0099] Example 2: Multimodal Gemma-4-E4B-it Student and Safe PEFT Implementation (Enabler Validation) This embodiment focuses on verifying the "enabler" effect of the present invention on the visual-language multimodal base model, as well as the necessity of the "precise path limitation" technology.

[0100] 1. Experimental Setup Student base: Gemma-4-E4B-it (visual-language multimodal base model, with approximately 4 billion parameters).

[0101] Input constraints: Test its performance in a “minimal context” (NOC code + title only, no long text description).

[0102] Implementation of key defense technologies: Precise path constraint: When configuring the LoRA adapter, explicitly specify the LoRA adapter configuration path as... (Corresponding layers in the language module), etc., strictly avoid layers with the same name in vision_tower (video module) and audio_tower (audio module). This contrasts sharply with HuggingFace PEFT's default "suffix matching" method, preventing parameter pollution.

[0103] LoRA_B norm audit: Pre-training audit: Verify that the B matrix weight norm of all LoRA modules is initialized to 0 to ensure that zero-initialization is correct.

[0104] Post-training audit: Verify that the B matrix weight norm of all LoRA modules is non-zero, confirming that the gradients actually flow through and the parameters have been updated.

[0105] 2. Experimental Results (Enabler Effect) Base model performance: Before LoRA fine-tuning, the Gemma-4-E4B-it base model was completely unable to parse structured multidimensional data (JSON format) under minimal context conditions, with a parsing success rate of 0 / 1016 for 1016 SOC samples.

[0106] Performance of the single-objective domain processing model: After training with LoRA distillation using the method of this invention, the model successfully outputs high-quality multidimensional structured evaluation results.

[0107] Top-1 accuracy: 657 / 1016 (approximately 65%).

[0108] Scoring quality: The Spearman correlation coefficient on the RIASEC-30 dimension reached 0.736.

[0109] 3. Key Conclusions This embodiment fully demonstrates that for multimodal base models, the present invention is not merely an "incremental improvement" in performance, but also an enabler that transforms them from "completely incapable (0%)" to "highly available (65%)". Without the precise path limitation and structured distillation strategy of the present invention, multimodal base models would be unable to complete this specific task.

[0110] Example 3: Failure Mode Analysis of Dual-Student Complementarity (Combined Deployment Strategy) 1. Comparison of Failure Modes Llama students (Llama-3.1-8B): performed relatively weakly on the R (Realistic) and S (Social) dimensions of RIASEC, with some samples exhibiting a crash phenomenon of "all-zero JSON" output.

[0111] Gemma student (Gemma-4-E4B-it): There is a specific bias in the routing decision from E-type (enterprise type) to C-type (conventional type), which is prone to confusion.

[0112] 2. Complementary Strategies By analyzing the aforementioned complementary failure modes, this invention proposes constructing a "router layer" during deployment. When an input occupation bias towards the R / S class is detected, the Gemma single-objective domain processing model is invoked first; when an input occupation bias towards the E / C class is detected, the Llama single-objective domain processing model is invoked first. This combined strategy can further improve the robustness of the overall system.

[0113] In summary, this invention discloses a knowledge distillation method based on Low-Rank Adaptation (LoRA) for multi-language model trust-weighted ensemble output to a single-target domain processing model. This method uses the K-dimensional continuous score of multi-LLM trust-weighted ensemble as the soft objective, constructing training pairs (minimum context input, K-dimensional JSON target); configuring a LoRA adapter on a single-target domain processing model with no more than 15B parameters, where the target modules are configured using precise path constraints to avoid incorrect attachment to the vision_tower / audio_tower on the multimodal base; and using completion-only loss masking to compute gradients only on the JSON answer token. Simultaneously, two defensive techniques are provided: lora_B norm auditing and disable_adapter_layers comparative evaluation, ensuring that LoRA truly works and the gains are real. This method is tested on RIASEC-30 with Llama-3.1-8B student in-domain ρ. =0.706, Gemma-4-E4B-it student ρ =0.736; inference cost reduced by ~150 times; for Gemma multimodal base, this method enables instead of incremental (base 0 / 1016 parse → LoRA 657 / 1016 top-1).

[0114] The following examples illustrate the application of the single-target domain processing model proposed in the embodiments of this disclosure.

[0115] 1. Application in the career interest rating domain Input the minimal contextual information "NOC 21203: LandSurveyor" into the trained single-object domain processing model, and the model outputs a 30-dimensional structured evaluation result in a single feed. {“R1”: 0.87, “R2”: 0.74, “R3”: 0.41, …, “I1”: 0.69, “I5”: 0.62, …, “A2”: 0.18, …, “C5”: 0.33} Among them, the scores of realistic dimensions such as R1 (mechanical-physical operation) and R2 (outdoor-natural environment) were significantly higher than those of all dimensions of A (artistic), which is consistent with the expert-anchored scoring direction of this profession.

[0116] 2. Application in the occupational competency scoring domain Inputting minimal contextual information "NOC 21232: Software developers and programmers" into the trained single-objective domain processing model, the model outputs a 25-dimensional structured evaluation result: {“C1”: 0.71, “C2”: 0.88, “C3”: 0.64, “C4”: 0.82, “C5”: 0.69, “L1”: 0.85, …, “S1”: 0.38, …, “P3”: 0.08, …} Among them, the scores of the cognitive C2 (mathematical-logical reasoning), C4 (working memory), and active learning L1 (continuous learning) dimensions were significantly higher than those of the psychomotor-physical P dimension, which is consistent with the competency requirements of this profession.

[0117] 3. Application in the multi-attribute scoring domain of products This embodiment describes the application of the method of the present invention in a product evaluation scenario.

[0118] The sample objects are products sold on e-commerce platforms. The evaluation target domain is the product multi-attribute domain, for example, 12 evaluation dimensions are set: cost performance, durability, ease of use, portability, battery life, appearance and craftsmanship, safety, compatibility, after-sales guarantee, environmental protection, innovation, and target audience suitability. The score for each dimension is a continuous value from 0 to 1.

[0119] Sample data (input to the teacher model): product detail page text descriptions, specification tables, and user review texts obtained with compliant authorization. Operational definitions and positive / negative anchor samples for each evaluation dimension are provided to multiple large language models; for example, the operational definition of the "durability" dimension is "the ability of a product to resist wear and tear and failure under nominal usage conditions," with positive anchor samples being "military-grade rugged mobile phones (IP68, drop-resistant certification)" and negative anchor samples being "disposable paper tableware." The outputs of multiple large language models are integrated by dimension-weighted synergy to obtain 12-dimensional evaluation results for each product as soft objectives.

[0120] Minimal contextual information (input student model): Identification information extracted from the standardized product classification system, such as "standard product classification code (such as GPC code or platform SKU code) + standard product title", excluding long text from the details page and user reviews.

[0121] Example training pair: Input "GPC 10001874: A certain brand of wireless noise-canceling headphones Pro 2", output {"cost-effectiveness": 0.74, "durability": 0.62, "ease of use": 0.91, "portability": 0.95, "battery life": 0.71, "appearance and craftsmanship": 0.83, "safety": 0.88, "compatibility": 0.79, "after-sales service": 0.66, "environmental friendliness": 0.41, "innovation": 0.72, "target audience suitability": 0.85}.

[0122] After training, the single-objective domain processing model can output a 12-dimensional structured score based solely on the product code and title, which can be used for horizontal comparison of products, recommendation ranking, or product selection assistance. The inference cost is significantly reduced compared to multi-model ensemble solutions.

[0123] 4. Applications in the field of medical image evaluation Evaluation target domain: Medical imaging multisymptom assessment domain (K = 15 dimensions), with 15 symptom dimensions set for chest CT: pulmonary nodules, ground-glass opacities, consolidation, linear opacities, cavitation, calcifications, pleural effusion, mediastinal lymphadenopathy, bronchiectasis, emphysema, interstitial changes, pleural thickening, cardiomegaly, bone abnormalities, and other space-occupying lesions. Each dimension is rated on a four-level severity scale of 0-3 (0 = not seen, 1 = mild, 2 = moderate, 3 = severe).

[0124] Sample data (input by the teacher): A desensitized complete imaging report text (including both imaging findings and imaging diagnosis). Operational definitions and grading criteria for each symptom dimension are provided to multiple large language models—for example, the grading criteria for the "pulmonary nodule sign" dimension are: "0 = no nodules seen; 1 = single nodule with a maximum diameter <6mm; 2 = single nodule 6-8mm or multiple nodules <6mm; 3 = any nodule ≥8mm or multiple nodules ≥6mm." The outputs of multiple large language models are integrated using a dimensional trust-weighted approach to obtain a 15-dimensional symptom assessment for each case as a soft objective.

[0125] Minimal context (student input): Simplified data obtained after anonymizing and summarizing the sample data, such as "examination modality + location + key findings summary line" (e.g., "CT chest scan: right upper lung nodule 8mm, rough edges, other lung fields clear"), removing redundant descriptions and patient information from the report.

[0126] Training pair example: Input: "CT scan of the chest: 8mm nodule in the upper right lung with rough edges, the rest of the lung fields are clear." Output: {"Pulmonary nodule sign": 3, "Ground-glass opacity": 0, "Consolidation": 0, "Linear opacity": 0, "Cavity sign": 0, "Calcifications": 0, "Pleural effusion": 0, "Mediastinal lymphadenopathy": 0, "Bronchiectasis": 0, "Emphysema sign": 0, "Interstitial changes": 0, "Pleural thickening": 0, "Cardiac enlargement": 0, "Bone abnormalities": 0, "Other space-occupying lesions": 0} After training, the single-objective domain processing model can quickly output structured multi-symptom assessments based on concise summaries in primary healthcare or hierarchical medical treatment scenarios, serving as a reference signal to assist in triage and quality control review; however, this output is only a technical data processing result, and the clinical diagnosis is still made by licensed physicians.

[0127] Figure 4 This is a simplified block diagram applicable to an electronic device 400 implementing embodiments of the present disclosure. (See diagram below.) Figure 4 As shown, the electronic device 400 includes a processing unit 401, which can be implemented as a CPU, GPU, FPGA, NPU, or other processing unit. The processing unit 401 can execute various processes according to any of the methods described above in this disclosure, based on a program stored in the read-only memory (ROM) 402 or a program loaded from the storage portion 408 into the random access memory (RAM) 403. The RAM 403 also stores various programs and data required for the operation of the computer system 400. The processing unit 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0128] The following components are connected to I / O interface 405: an input section 406 including a keyboard, mouse, etc.; an output section 407 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, modem, etc. The communication section 409 performs communication processing via a network such as the Internet. Drive 410 is also connected to I / O interface 405 as needed. Removable media 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 410 as needed so that computer programs read from them can be installed into storage section 408 as needed.

[0129] In particular, according to embodiments of this disclosure, any of the methods described above in the embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing any of the methods in the embodiments of this disclosure. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411.

[0130] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus (devices), or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0131] This application is described with reference to flowchart illustrations of methods, apparatus (devices), and computer program products according to embodiments of this application. It should be understood that each step in the flowchart can be implemented by computer program instructions.

[0132] These computer program instructions may be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction means, the implementation process of which is described in the instruction means. Figure 1 The function specified in one or more processes.

[0133] These computer program instructions may also be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, produce instructions for implementing processes. Figure 1 A device for a function specified in one or more processes.

[0134] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program for use by a computer to execute some or all of the above-described method embodiments.

[0135] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program specifying the relevant hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0136] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A knowledge distillation method, characterized in that, Includes the following steps: The evaluation results of the sample object in the evaluation target domain are obtained, and the evaluation results are obtained by integrating the output results of multiple large language models; wherein, the output results of the multiple large language models are obtained by inputting the sample data of the sample object into the multiple large language models respectively; the sample data includes a text description of the sample object; Construct training pairs; each training pair includes input and output, the input being the minimum context information of the sample object, and the output being the evaluation result; the minimum context information includes the identification information of the sample object. The training pair is used to train a single-objective domain processing model, wherein the single-objective domain processing model includes a language module, and at least a portion of the language module is pre-configured with a low-rank adaptive adapter.

2. The method according to claim 1, characterized in that, The multiple large language models are independent large language models with different training lineages, consisting of pre-trained data and / or reinforcement learning training based on human feedback.

3. The method according to claim 1, characterized in that, The language module is based on the Transformer architecture, and at least a portion of the language module configured with a low-rank adaptive adapter includes the attention projection layer and the feedforward network gating layer of the Transformer architecture.

4. The method according to claim 1, characterized in that, The method further includes: Before training begins, the single-objective domain processing model extracts the initial weight matrix of the configured low-rank adaptive adapter and verifies whether the L2 norm of the initial weight matrix is ​​0. After training, the single-target domain processing model extracts the updated weight matrix of the configured low-rank adaptive adapter and verifies whether the L2 norm of the updated weight matrix is ​​not 0.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: After the single-objective domain processing model is trained, the weight matrix of the low-rank adaptive adapter obtained from the training is saved. When deploying the single-target domain processing model, the weight matrix of the saved low-rank adaptive adapter is loaded using a parameter-efficient fine-tuning framework.

6. The method according to any one of claims 1-4, characterized in that, The method further includes: Obtain test samples; After calling the PEFT framework and temporarily disabling the low-rank adaptation adapter of the trained single-objective domain processing model, the first model prediction result is obtained based on the test samples. The test sample is input into a single-objective domain processing model that has been trained and whose low-rank adaptation adapter has not been disabled, to obtain the prediction result of the second model. The effectiveness of the low-rank adaptive adapter is verified by comparing the prediction results of the first model and the prediction results of the second model.

7. The method according to any one of claims 1-4, characterized in that, The training process is used to train a single-objective domain processing model, including: During training, a partial loss masking mechanism is used to backpropagate and calculate the cross-entropy loss.

8. The method according to any one of claims 1-4, characterized in that, The training process is used to train a single-objective domain processing model, including: During training, the AdamW optimizer, combined with a cosine annealing learning rate scheduling strategy, is used to train the single-objective domain processing model.

9. The method according to any one of claims 1-4, characterized in that, The single-objective domain processing model uses a pure language modality model or a multimodal model including language modality as the base model.

10. The method according to any one of claims 1-4, characterized in that, The parameter magnitude of the single-objective domain processing model is within a set range.

11. The method according to any one of claims 1-4, characterized in that, The sample objects include occupations or products; the evaluation results include occupational interest scores, occupational ability scores, or product multi-attribute scores.

12. A single-objective domain evaluation method, characterized in that, Includes the following steps: Obtain the minimum context information of the target object; the minimum context information includes the identification information of the target object; The minimum context information is input into the single-object domain processing model to obtain the evaluation result of the target object. The single-object domain processing model is trained based on the method of any one of claims 1-11.

13. A computer device, comprising a memory and a processor, characterized in that, When the processor executes the computer program in the memory, it implements the steps of the method according to any one of claims 1-11.