A semi-supervised multilingual text classification method based on meta-co-evolutionary teacher-student framework
By constructing a two-way closed-loop training process for teacher and student models, and utilizing masked language modeling and pseudo-label correctors, the problems of semantic consistency decline and pseudo-label noise in multilingual text classification are solved, achieving efficient classification and improved multilingual understanding capabilities in low-resource scenarios.
Patent Information
- Application Number
- CN202611584057.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-13
- Publication Date
- 2026-11-20
AI Technical Summary
Existing multilingual text classification methods conflict with the multilingual understanding objective and the classification training objective, leading to a decrease in multilingual semantic consistency. Furthermore, pseudo-label noise is severe in low-resource languages. Traditional teacher-student semi-supervised frameworks are prone to accumulating errors due to one-way knowledge transfer, making it difficult to improve classification accuracy and multilingual understanding capabilities in low-resource scenarios.
We adopt a meta-co-evolutionary teacher-student framework, construct teacher and student models, use masked language modeling objectives and knowledge distillation loss for basic ability training, and combine multilingual pseudo-label correctors and feedback-based two-layer meta-learning optimization to form a two-way closed-loop training process between teachers and students, which simultaneously improves classification accuracy and multilingual semantic representation capabilities.
It effectively alleviates the problem of multilingual semantic representation degradation, significantly improves the reliability of pseudo-labels in low-resource scenarios, constructs a virtuous cycle mechanism, improves classification accuracy and multilingual understanding ability, adapts to environments with few labels, and its lightweight design improves training efficiency.
Smart Images

Figure CN123138934A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of natural language processing technology, specifically a semi-supervised multilingual text classification method based on a meta-co-evolutionary teacher-student framework. Background Technology
[0002] Multilingual text classification aims to categorize texts in different languages using a unified classification standard. It is one of the core tasks in the field of natural language processing and is widely used in practical scenarios such as public opinion analysis, industry intelligence analysis, and cross-border content moderation. With the increasing frequency of global information exchange, efficient and accurate multilingual text classification technology has significant application value.
[0003] Existing multilingual text classification methods typically use pre-trained multilingual language models as the base encoder, fine-tuning them with labeled data to complete the classification task. However, these methods have significant limitations in practical applications:
[0004] First, there is an inherent conflict between the classification training objective and the language understanding objective. During the optimization process for classification tasks, the model's multilingual understanding ability is prone to degradation, leading to a decrease in multilingual semantic consistency and consequently affecting classification accuracy. This problem is particularly prominent in scenarios involving mixed high- and low-resource languages. Low-resource languages inherently have weaker language understanding foundations, and the representational degradation caused by classification optimization further widens the performance gap between different languages.
[0005] Secondly, the scarcity of labeled data limits model performance improvement. In multilingual scenarios, acquiring large-scale, high-quality labeled data is costly, and some low-resource languages even lack available labeled resources. Although semi-supervised learning can utilize unlabeled data through pseudo-label mechanisms, pseudo-label noise is severe in low-resource languages, and the accumulation of incorrect labels will conversely impair the model's classification performance and language representation ability.
[0006] Third, most existing teacher-student semi-supervised frameworks are one-way knowledge transfer models. The teacher model generates pseudo-labels to guide student training, but the students' training results cannot be fed back to the teacher model. The quality of the teacher's pseudo-label generation is difficult to dynamically optimize with the training process, which easily leads to the continuous accumulation of errors and limits the performance ceiling of semi-supervised training.
[0007] To address these issues, existing technologies attempt to improve the reliability of pseudo-labels through consistency regularization, dynamic threshold filtering, or by introducing meta-learning to optimize pseudo-label generation strategies. However, most of these methods fail to deeply integrate multilingual representation learning with semi-supervised classification optimization, nor do they establish a closed-loop evolutionary mechanism for two-way feedback between teachers and students. Consequently, they struggle to simultaneously improve classification accuracy and maintain multilingual comprehension capabilities, resulting in unsatisfactory performance in low-resource language scenarios. Summary of the Invention
[0008] To address the problems existing in the prior art, this invention proposes a semi-supervised multilingual text classification method based on a meta-co-evolutionary teacher-student framework. The aim is to simultaneously improve the classification accuracy and multilingual semantic representation capabilities of the model through a two-way closed-loop co-evolutionary mechanism between teachers and students, effectively alleviating the language understanding degradation problem caused by classification optimization and the pseudo-label noise problem in low-resource scenarios, and providing an efficient and stable technical solution for semi-supervised multilingual text classification tasks.
[0009] The technical solution adopted in this invention is as follows:
[0010] A semi-supervised multilingual text classification method based on a meta-co-evolutionary teacher-student framework includes the following steps:
[0011] Step 1 Basic Capability Training: Construct teacher and student models, and train the two models on classification tasks based on labeled data. At the same time, incorporate mask language modeling objectives and knowledge distillation loss to complete the initialization of the model's basic capabilities.
[0012] Step 2 Pseudo-label correction and collaborative training: The teacher model generates initial pseudo-labels for the unlabeled data. After noise perception correction and confidence filtering by a multilingual pseudo-label corrector, the student model is trained using the corrected pseudo-labels. Mask language modeling objectives are continuously incorporated into the training process.
[0013] Step 3 Feedback-based two-layer meta-learning optimization: The classification performance of the student model on the labeled data is used as a feedback signal to construct a two-layer optimization structure; the inner loop optimizes the student model parameters, and the outer loop uses the student model's validation performance on the labeled validation set as a meta-signal to calculate the meta-gradient, and updates the teacher model parameters in reverse, forming a closed-loop training process of teacher-student co-evolution.
[0014] Furthermore, in step 1, both the teacher model and the student model are based on multilingual pre-trained language models as encoders; the teacher model retains the complete hidden dimensions and enhances the multilingual semantic representation ability through masked language modeling objectives; the student model uses a dimensionality reduction feature transformation layer to compress the feature dimensions, focusing on classification task efficiency, while transferring the teacher's multilingual knowledge through knowledge distillation loss.
[0015] Furthermore, in step 2, the multilingual pseudo-label corrector uses the deep semantic features output by the teacher model and the initial pseudo-label distribution as concatenated inputs, completes noise probability estimation and candidate label prediction through a multilayer perceptron, and outputs the interpolated pseudo-label distribution.
[0016] Furthermore, the correction process of the multilingual pseudo-tag corrector is calculated using the following formula:
[0017]
[0018] In the formula, This represents the corrected pseudo-label distribution of the j-th sample; This represents the pseudo-label noise probability of the j-th sample; This represents the initial pseudo-label distribution generated by the teacher model; This represents the predicted distribution of candidate labels generated by the corrector; This represents the concatenated feature vector of deep semantic features and initial pseudo-labels.
[0019] Furthermore, in step 3, the semi-supervised total loss of the student model optimized by the inner loop is calculated using the following formula:
[0020]
[0021] In the formula, This represents the classification cross-entropy loss; This represents the knowledge distillation loss on unlabeled data; This represents the loss in masked language modeling; Weighting the loss for knowledge distillation; Loss weights are used for modeling masking language in the semi-supervised stage.
[0022] Further, in step 3, the meta-gradient of the outer loop feedback optimization is calculated using the following formula:
[0023]
[0024] In the formula, Metagradient representing the teacher model parameters; This represents the validation loss of the student model on labeled data, i.e., the feedback evaluation signal; This represents the student model parameters after the inner loop update; This represents the parameters of the teacher model.
[0025] Furthermore, in step 2, a dynamic confidence threshold is used to filter the corrected pseudo-labels. The threshold is gradually increased with training iterations, and only samples with confidence scores higher than the current threshold are retained to participate in the semi-supervised training of the student model.
[0026] Furthermore, the mask language modeling loss weights throughout the training process are dynamically configured in stages: during the basic training stage, the mask language modeling weights of the student model are lower than those of the teacher model; during the semi-supervised collaborative training stage, the mask language modeling weights of the student model are increased to enhance the semantic representation stability in pseudo-label noise scenarios.
[0027] Furthermore, the consistency regularization loss of the multilingual pseudo-label corrector is calculated using the following formula:
[0028]
[0029] In the formula, This represents the consistency regularization loss; Represents the KL divergence function; This represents the log-odds ratio of the teacher model's output for unlabeled samples; This represents the temperature parameter, used to scale the teacher prediction distribution.
[0030] Furthermore, during the semi-supervised training process in step 2, when the proportion of pseudo-label noise exceeds a set threshold, label smoothing is applied to the corrected pseudo-label distribution, and the consistency regularization loss weight of the pseudo-label corrector in the total loss is progressively increased to reduce the risk of noise amplification and maintain the stability of multilingual training.
[0031] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework.
[0032] The beneficial effects of this invention are:
[0033] 1. Simultaneously improve classification accuracy and multilingual understanding capabilities, effectively mitigating representation degradation. By incorporating masked language modeling objectives throughout the training process, semantic representation learning and classification optimization are deeply integrated, avoiding the degradation of multilingual semantic representations during classification fine-tuning. This allows the model to continuously enhance multilingual semantic understanding capabilities while improving classification accuracy.
[0034] 2. Significantly improves the reliability of pseudo-labels in low-resource scenarios and adapts to environments with few annotations. Through a noise-aware multilingual pseudo-label corrector and a dynamic confidence screening mechanism, low-quality pseudo-labels can be identified and corrected at the feature level, reducing the impact of label noise in low-resource languages and effectively narrowing the performance gap between high- and low-resource languages. It is suitable for application scenarios where labeled data is scarce.
[0035] 3. Constructing a bidirectional closed-loop evolution mechanism to break through the performance limit of the unidirectional framework. Through a feedback-based two-layer meta-learning structure, student validation performance is transformed into meta-signals to back-optimize the teacher model, forming a virtuous cycle of bidirectional collaborative evolution between teachers and students. This breaks through the performance bottleneck of error accumulation in the traditional unidirectional teacher-student framework and significantly improves the final effect of semi-supervised training.
[0036] 4. High versatility and high deployment efficiency. This method can be adapted to various multilingual pre-trained encoders and can stably deliver performance improvements under different model architectures. At the same time, it adopts a lightweight student structure design, which has lower memory usage and faster training speed with the same number of parameters, thus balancing classification performance and engineering application value. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0038] Figure 1 This is a flowchart of the semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework of this invention. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0040] Therefore, the following detailed description of the present invention is not intended to limit the scope of the claimed invention, but merely illustrates some embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention. It should be noted that, unless otherwise specified, the embodiments and features and technical solutions in the embodiments of the present invention can be combined with each other; it should be noted that the same reference numerals in the drawings represent the same technical modules, and once a module in the drawings is defined, it does not need to be explained again in the subsequent description.
[0041] To address the technical shortcomings of semi-supervised multilingual text classification, such as scarce labeled data, severe pseudo-label noise, classification optimization leading to degradation of multilingual semantic representation, and the accumulation of errors due to the one-way knowledge transfer in traditional teacher-student frameworks, this embodiment provides a semi-supervised multilingual text classification method based on a meta-co-evolutionary teacher-student framework. This method aims to construct a two-way closed-loop co-evolutionary mechanism between teachers and students, simultaneously improving the model's classification accuracy and multilingual semantic representation capabilities, and providing stable and efficient technical support for low-resource, low-label multilingual text processing scenarios.
[0042] Specifically, as shown in Figure 1, this semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework includes the following steps:
[0043] Step 1: Basic Capability Training. Construct teacher and student models, and train both models on classification tasks using labeled data. Simultaneously, incorporate masked language modeling objectives and knowledge distillation loss to initialize the models' basic capabilities. The purpose of this step is to ensure that both teacher and student models possess basic multilingual text classification and semantic representation capabilities, laying the foundation for subsequent co-evolutionary training.
[0044] Step 1.1 Teacher Model Building and Basic Training:
[0045] The teacher model uses a multilingual pre-trained language model as its base encoder, employing the mBERT architecture to extract contextual semantic representations of the input text. A language feature transformation layer, consisting of a linear layer and a tanh activation function, is placed above the encoder to preserve the complete hidden dimensions and enhance language feature extraction capabilities. A linear classifier is then connected after the transformation layer to output classification prediction results.
[0046] For the input labeled text sequence, the contextual hidden representation is first obtained through the basic encoder, and the hidden state corresponding to the [CLS] tag is taken as the sentence aggregation representation; the language feature transformation layer outputs the language-aware feature vector, which is finally input into the classifier to obtain the classification log odds.
[0047] The total training loss of the teacher model consists of the classification cross-entropy loss and the masked language modeling loss, calculated as follows:
[0048]
[0049] In the formula, This represents the classification cross-entropy loss; This represents the loss in masked language modeling; The loss weight for masked language modeling is used to balance classification optimization and language understanding enhancement. Preferably, in this embodiment, the weight is set to 0.5.
[0050] Step 1.2 Student Model Construction and Training;
[0051] The student and teacher models use the same basic encoder. A dimensionality reduction feature transformation layer, consisting of a linear layer and a ReLU activation function, is set on top of the encoder to compress the original hidden dimension to half of its original dimension, forming a lightweight classification feature representation and improving the execution efficiency of the classification task. After the transformation layer, a linear classifier is connected to output the classification result. The student model also retains an independent masked language modeling head to maintain multilingual semantic representation capabilities.
[0052] The total training loss of the student model consists of classification cross-entropy loss, knowledge distillation loss, and masked language modeling loss, calculated as follows:
[0053]
[0054] In the formula, This represents the classification cross-entropy loss; The knowledge distillation loss is used to transfer multilingual knowledge from the teacher model, and KL divergence is used to calculate the difference between the teacher and student output distributions. This represents the loss in masked language modeling; Weighting the loss for knowledge distillation. Model loss weights for the student model using masked language.
[0055] Preferably, in this embodiment, the knowledge distillation loss weight is set to 0.5, the masked language modeling loss weight is set to 0.3, with classification optimization as the core objective, and masked language modeling is used as a regularization term to improve the consistency of multilingual representations; the temperature parameter of knowledge distillation is set to 2.0.
[0056] Step 2: Pseudo-label correction and co-training;
[0057] The teacher model generates initial pseudo-labels for unlabeled data. After noise perception correction and confidence filtering by a multilingual pseudo-label corrector, the corrected pseudo-labels are used to train the student model. During training, masked language modeling objectives are continuously incorporated. The purpose of this step is to expand the training sample size using unlabeled data, while reducing the negative impact of pseudo-label noise on the model through a noise correction mechanism.
[0058] Step 2.1 Initial pseudo-tag generation;
[0059] The parameters of the teacher model are frozen, and batch inference is performed on the unlabeled dataset to generate the initial pseudo-label distribution and deep semantic features of each sample, which serve as input for the subsequent correction module.
[0060] Step 2.2 Multilingual pseudo-tag correction;
[0061] The multilingual pseudo-label corrector takes as input a feature vector formed by concatenating the deep semantic features output by the teacher model with the initial pseudo-label distribution. It employs a two-branch multilayer perceptron structure: one branch outputs the noise probability of the pseudo-labels, and the other outputs the predicted distribution of candidate labels. Finally, the initial pseudo-labels and candidate labels are weighted and interpolated based on the noise probability to obtain the corrected pseudo-label distribution. The calculation formula is as follows:
[0062]
[0063] In the formula, This represents the corrected pseudo-label distribution of the j-th sample; This represents the pseudo-label noise probability of the j-th sample; This represents the initial pseudo-label distribution generated by the teacher model; This represents the predicted distribution of candidate labels generated by the corrector; This represents the concatenated feature vector of deep semantic features and initial pseudo-labels.
[0064] The multilingual pseudo-label corrector is trained using consistency regularization loss to constrain the difference between the corrected label distribution and the teacher's original prediction distribution, thus avoiding over-correction of high-confidence samples. The loss calculation formula is as follows:
[0065]
[0066] In the formula, This represents the consistency regularization loss; Represents the KL divergence function; This represents the log-odds ratio of the teacher model's output for unlabeled samples; This represents the temperature parameter, used to scale the teacher prediction distribution.
[0067] Preferably, in this embodiment, the balance weight of consistency loss is set to 1.0.
[0068] Preferably, when the proportion of pseudo-label noise exceeds a set threshold during training, label smoothing is applied to the corrected pseudo-label distribution, with the smoothing coefficient set to 0.1; at the same time, the weight of the pseudo-label corrector is gradually increased in the early stage of training to avoid training oscillations caused by inaccurate correction and reduce the risk of noise amplification.
[0069] Step 2.3 Dynamic confidence screening and semi-supervised training for students;
[0070] A dynamic confidence threshold is used to filter the corrected pseudo-labels, and the threshold is gradually increased with training iterations. Preferably, the initial threshold is set to 0.7, and gradually increased to 0.9 as the training progresses. An upper limit is set for the number of pseudo-label samples retained in each training round, and only samples with a confidence level higher than the current threshold are retained to participate in the semi-supervised training of the student model.
[0071] The formula for calculating the total loss of the student model in the semi-supervised stage is as follows:
[0072]
[0073] In the formula, This represents the classification cross-entropy loss; This represents the knowledge distillation loss on unlabeled data; This represents the loss in masked language modeling; Weighting the loss for knowledge distillation; Loss weights are used for modeling masking language in the semi-supervised stage.
[0074] Preferably, in this embodiment, the loss weight of mask language modeling in the semi-supervised stage is increased to 3.0, which enhances the stability of multilingual semantic representation in the context of pseudo-label noise and suppresses confirmation bias.
[0075] Step 3: Feedback-based two-layer meta-learning optimization;
[0076] The classification performance of the student model on labeled data is used as a feedback signal to construct a two-layer optimization structure. The inner loop optimizes the student model parameters, while the outer loop uses the classification performance of the student model on the labeled validation set as a meta-signal to calculate the meta-gradient and update the teacher model parameters in reverse, forming a closed-loop training process of teacher-student co-evolution. The purpose of this step is to establish a two-way feedback mechanism between teachers and students, enabling the teacher model to continuously optimize the quality of pseudo-label generation as the training progresses, forming a virtuous cycle of co-evolution.
[0077] Step 3.1 Optimize the inner loop of students;
[0078] Based on the corrected pseudo-labels after filtering, and combining the masked language modeling loss and knowledge distillation loss, all parameters of the student model are updated according to the total loss function in step 2.3 to complete the inner loop optimization. Preferably, the learning rate of the inner loop is set to 3e-5.
[0079] Step 3.2 Optimize the outer loop teacher element;
[0080] The classification loss of the student model updated in the inner loop on the labeled data is used as the meta-validation loss. The gradient of the meta-validation loss with respect to the teacher model parameters, i.e., the meta-gradient, is calculated through the inner loop update process using the chain rule. The calculation formula is as follows:
[0081]
[0082] In the formula, Metagradient representing the teacher model parameters; This represents the validation loss of the student model on labeled data, i.e., the feedback evaluation signal; This represents the student model parameters after the inner loop update; This represents the parameters of the teacher model.
[0083] The teacher model parameters are updated based on the calculated meta-gradient. Preferably, the learning rate of the outer loop teacher model is set to half of the learning rate in the basic training phase of step 1 to ensure the stability of the meta-update process. After each meta-update, the student model parameters are updated using a partial retention strategy, with the retention ratio preferably being 0.7, to maintain the stability of the training process.
[0084] Repeat steps 2 and 3 until the student model's performance on the validation set converges, finally obtaining the trained multilingual text classification model.
[0085] Based on the above steps, this embodiment effectively alleviates the problems of language representation degradation and pseudo-label noise in semi-supervised multilingual text classification through closed-loop co-evolution of teacher-student models, and can stably improve classification performance, especially in low-resource language scenarios.
[0086] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework.
[0087] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework.
[0088] To further verify the effectiveness of the semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework described in this embodiment, a systematic comparative experiment and analysis were conducted on the experimental platform built in this embodiment.
[0089] 1. Experimental Dataset and Preprocessing
[0090] This embodiment uses a custom multilingual industry dataset and a publicly available multilingual dataset for experimental verification:
[0091] A custom multilingual industry dataset was created, collecting news texts in four languages: Chinese (ZH), English (EN), Vietnamese (VI), and Burmese (MY). The dataset includes classification standards for nine industry sectors: agriculture, forestry, animal husbandry and fisheries, mining, manufacturing, real estate, power and heat, transportation, finance, education, and healthcare. For each language, 10% was randomly selected as the labeled dataset, and the remaining 90% was used as the unlabeled dataset. The specific data distribution is shown in Table 1.
[0092] Public multilingual dataset: The generalization and universality of the present invention are verified using the Amazon Reviews Multi evaluation dataset (containing 6 languages: English, Japanese, German, French, Chinese, and Spanish, and 5 classification tasks).
[0093] Table 1: Statistics of Multilingual Text Classification Datasets
[0094]
[0095] 2. Experimental Environment and Evaluation Indicators
[0096] This experiment was conducted on a single NVIDIA RTX 4090 GPU and strictly followed the hyperparameter configuration scheme in the original study to ensure the reliability of the experimental results.
[0097] This experiment sets up two types of core evaluation indicators to verify the two core optimization objectives of this invention:
[0098] Classification performance metrics: The accuracy and F1 score of each language classification are used to measure the model's text classification ability;
[0099] Semantic representation capability index: Perplexity Probability (PPL) is used, and the values are statistically analyzed in three stages. The lower the PPL value, the better the multilingual semantic representation quality of the model and the less the degree of representation degradation.
[0100] The three-stage division is defined as follows:
[0101] Initial stage: The student model is in its initial state before undergoing the basic ability training in step 1. It is equivalent to the original pre-trained multilingual model, without task fine-tuning, and serves as the global performance baseline.
[0102] Basic stage: The student model completes step 1, basic ability training, but has not yet entered the intermediate state of step 2 and step 3, co-evolutionary loop. It is used to separately demonstrate the performance gain brought by basic training.
[0103] Final stage: The student model completes the entire process (steps 1, 2, and 3) of the complete meta-co-evolutionary teacher-student framework, and reaches the final convergence state, which is the model effect corresponding to the complete scheme of this invention.
[0104] 3. Setting the Comparison Scheme
[0105] To highlight the advanced nature of the technical solution of this invention, the following three types of comparative examples are provided:
[0106] Baseline model: Construct a traditional single-model pseudo-label baseline based on mBERT.
[0107] Mainstream semi-supervised and meta-learning methods: MAML, UDA, MixText, JointMatch, DML.
[0108] Large language models: Sailor2-8B, Llama3-8B, DeepSeek-R1.
[0109] 4. Analysis of Experimental Results
[0110] Performance Verification 1: Multilingual Text Classification Performance
[0111] Under the same experimental conditions, the classification accuracy (Acc) and F1 score of the MCE-TSF (this invention) method and each comparative example on four language datasets are compared as shown in Table 2:
[0112] Table 2: Performance Comparison of Multilingual Text Classification (Accuracy (Acc) and F1 Score %)
[0113]
[0114] As shown in Table 2, the MCE-TSF method of this invention achieves an accuracy of 96.26% and an F1 score of 96.21% on high-resource Chinese datasets, representing an accuracy improvement of 13.74% and 8.52% respectively compared to traditional semi-supervised methods such as UDA and MAML. For low-resource languages with scarce annotations, such as Vietnamese and Burmese, the performance advantage of this invention is further amplified, with an F1 score of 93.26% for Vietnamese and 86.38 for Burmese, while existing solutions such as MixText and JointMatch achieve F1 scores below 70 for Burmese. Even compared to large-scale general models such as DeepSeek-R1 and Llama3-8B, this invention still has a significant advantage in low-resource languages, with a higher F1 score for Vietnamese than DeepSeek-R1. The scores are 6.34% higher for English and 9.35% higher for Burmese. Although some large models have a slight advantage in metrics on high-resource English data, the present invention is a lightweight architecture. The memory, time and computing power required for training and inference are far lower than those of large models. It balances classification accuracy and engineering implementation costs, fully demonstrating the unique advantages and advanced nature of the present invention in adapting to a small number of annotations and optimizing low-resource multilingual modeling.
[0115] Performance Verification 2: Performance of Multilingual Semantic Understanding Capability
[0116] To verify whether this invention effectively preserves the model's original multilingual semantic understanding ability while optimizing classification capabilities, the perplexity level (PPL) of the student model at different training stages was calculated; a lower PPL value indicates stronger semantic understanding and expression capabilities. It is worth noting that due to differences in model architecture, PPL values between different models cannot be directly compared. Therefore, we focus on the evolution of PPL within the MCE-TSF (this invention) framework, and only use the baseline PPL value as a rough reference. The experimental results are shown in Table 3.
[0117] Table 3: Perplexity (PPL) of the student model at different training stages
[0118]
[0119] The experimental results are shown in Table 3. As the complete training process of steps one, two, and three of this invention is gradually advanced, the perplexity index of the student model in Chinese, English, Vietnamese, and Burmese all show a continuous downward trend. Specifically, the PPL for English decreased from 15.69 to 11.86, the PPL for Chinese decreased from 9.48 to 6.53, the PPL for Vietnamese decreased from 13.82 to 12.28, and the PPL for Burmese decreased from 2.85 to 2.59. For mBERT and Sailor2-8B, only the final PPL values after training are statistically analyzed for horizontal comparison with the final performance of the model after convergence. The above experimental phenomena indicate that this invention can continuously optimize the multilingual semantic representation ability of the model, effectively overcome the problem of multilingual semantic representation degradation that easily occurs in traditional semi-supervised text classification models during continuous classification fine-tuning, and avoid the defect of decreased language understanding ability caused by overfitting the classification task.
[0120] Validation 3: Generalization and universality validation on public datasets
[0121] To demonstrate that this invention is effective not only in specific news fields but also possesses technical advantages in cross-domain and multilingual general scenarios, this embodiment underwent semi-supervised verification on the Amazon Reviews Multi rating dataset (5-class classification task). The experimental results are shown in Table 4:
[0122] Table 4: Classification performance comparison of the Amazon Reviews Multi public dataset (accuracy %)
[0123]
[0124] The experimental results are shown in Table 4. In the Amazon Reviews Multi public dataset, which includes six cross-lingual text classification tasks (English, Japanese, German, French, Chinese, and Spanish), compared with the DML method, the MCE-TSF method of this invention achieves comprehensive improvements in accuracy and F1 score across all languages. Specifically, the accuracy improvement is 14.64% for English, 11.72% for Japanese, 12.57% for German, 15.28% for French, 14.02% for Chinese, and 11.36% for Spanish. These experimental results fully demonstrate that the meta-co-evolutionary teacher-student framework of this invention can adapt to various types of languages, including Asian and Indo-European languages, and has excellent generalization ability in sentiment evaluation tasks, verifying that the technical solution of this invention is not limited to specific languages or specific task scenarios.
[0125] All the above experimental results, from two scenarios—a self-built multilingual industry dataset and a multilingual public sentiment dataset—verify the dual optimization effect of this invention in terms of classification accuracy and multilingual semantic representation, fully demonstrating the unexpected technical advantages brought about by the synergistic effect of the core technical features described in this invention.
[0126] It should be noted that the above are merely preferred embodiments of the present invention, and the scope of protection of the present invention is not limited to the experimental environment, model encoder, hyperparameters and dataset described in this embodiment; any modifications, substitutions or equivalent transformations made to the step order, loss weights, screening thresholds and basic pre-trained models without departing from the core technical ideas of the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A semi-supervised multilingual text classification method based on a meta-co-evolutionary teacher-student framework, characterized in that, Includes the following steps: Step 1: Construct teacher and student models, and train the two models on classification tasks based on labeled data. At the same time, incorporate mask language modeling objectives and knowledge distillation loss to complete the initialization of the basic capabilities of the models. Step 2: The teacher model generates initial pseudo-labels for the unlabeled data. After noise perception correction and confidence filtering by the multilingual pseudo-label corrector, the corrected pseudo-labels are used to train the student model. Mask language modeling objectives are continuously incorporated into the training process. Step 3: Use the classification performance of the student model on labeled data as a feedback signal to construct a two-layer optimization structure; The inner loop optimizes the student model parameters, while the outer loop uses the student validation performance as the meta-signal to calculate the meta-gradient and updates the teacher model parameters in reverse, forming a closed-loop training process of teacher-student co-evolution.
2. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 1, characterized in that: In step 1, both the teacher model and the student model are based on a multilingual pre-trained language model as the encoder. The teacher model retains the complete hidden dimensions and enhances the multilingual semantic representation capability by masking the language modeling objective. The student model uses a dimensionality reduction feature transformation layer to compress the feature dimensions and focuses on classification.
3. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 1, characterized in that: In step 2, the multilingual pseudo-label corrector uses the deep semantic features output by the teacher model and the initial pseudo-label distribution as concatenated inputs, completes noise probability estimation and candidate label prediction through a multilayer perceptron, and outputs the interpolated pseudo-label distribution.
4. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 3, characterized in that: The correction process of the multilingual pseudo-tag corrector is calculated using the following formula: ; In the formula, This represents the corrected pseudo-label distribution of the j-th sample; This represents the pseudo-label noise probability of the j-th sample; This represents the initial pseudo-label distribution generated by the teacher model; This represents the predicted distribution of candidate labels generated by the corrector; This represents the concatenated feature vector of deep semantic features and initial pseudo-labels.
5. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 1, characterized in that: In step 3, the semi-supervised total loss of the student model optimized by the inner loop is calculated using the following formula: ; In the formula, This represents the classification cross-entropy loss; This represents the knowledge distillation loss on unlabeled data; This represents the loss in masked language modeling; Weighting the loss for knowledge distillation; Loss weights for masking language modeling in the semi-supervised stage; The meta-gradient of the outer loop feedback optimization is calculated using the following formula: ; In the formula, Metagradient representing the teacher model parameters; This represents the validation loss of the student model on labeled data, i.e., the feedback evaluation signal; This represents the student model parameters after the inner loop update; This represents the parameters of the teacher model.
6. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 1, characterized in that: In step 2, a dynamic confidence threshold is used to filter the corrected pseudo-labels. The threshold is gradually increased with training iterations, and only samples with confidence scores higher than the current threshold are retained to participate in the semi-supervised training of the student model.
7. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 1, characterized in that: The mask language modeling loss weights throughout the training process are dynamically configured in stages: during the basic training stage, the mask language modeling weights of the student model are lower than those of the teacher model; during the semi-supervised collaborative training stage, the mask language modeling weights of the student model are increased to enhance the semantic representation stability in noisy pseudo-label scenarios.
8. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 4, characterized in that: The consistency regularization loss of the multilingual pseudo-label corrector is calculated using the following formula: ; In the formula, This represents the consistency regularization loss; Represents the KL divergence function; This represents the log-odds ratio of the teacher model's output for unlabeled samples; This represents the temperature parameter, used to scale the teacher prediction distribution.
9. The semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework according to claim 8, characterized in that: In the semi-supervised training process of step 2, when the proportion of pseudo-label noise is higher than the set threshold, label smoothing is applied to the corrected pseudo-label distribution, and the consistency regularization loss weight of the pseudo-label corrector in the total loss is gradually increased to reduce the risk of noise amplification and maintain the stability of multilingual training.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the steps of the semi-supervised multilingual text classification method based on the meta-co-evolutionary teacher-student framework as described in any one of claims 1 to 9.
