<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    jcc
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Computer and Communications
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2327-5219
   </issn>
   <issn publication-format="print">
    2327-5227
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jcc.2025.134018
   </article-id>
   <article-id pub-id-type="publisher-id">
    jcc-142343
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Computer Science 
     </subject>
     <subject>
       Communications
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    BERT-Prompt Based Equipment to Support Domain Sentence Vector Training
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Wenjuan
      </surname>
      <given-names>
       Guo
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Haifeng
      </surname>
      <given-names>
       Ling
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Lijun
      </surname>
      <given-names>
       Pan
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
   </contrib-group> 
   <aff id="aff1">
    <addr-line>
     aArmy Engineering University of PLA, Nanjing, China
    </addr-line> 
   </aff> 
   <aff id="aff2">
    <addr-line>
     aUnit 31121 of the Chinese People’s Liberation Army, Nanjing, China
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     16
    </day> 
    <month>
     04
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    13
   </volume> 
   <issue>
    04
   </issue>
   <fpage>
    289
   </fpage>
   <lpage>
    310
   </lpage>
   <history>
    <date date-type="received">
     <day>
      18,
     </day>
     <month>
      March
     </month>
     <year>
      2025
     </year>
    </date>
    <date date-type="published">
     <day>
      26,
     </day>
     <month>
      March
     </month>
     <year>
      2025
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      26,
     </day>
     <month>
      April
     </month>
     <year>
      2025
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    In the field of equipment support, the method of generating equipment support sentence vectors based on word vectors is simple and effective, but it ignores the order and dependency relationships between words in the sentence, thus failing to capture the overall semantic information of the sentence. In contrast, using deep learning models (such as RNN, LSTM, Transformer, etc.) to directly generate sentence vectors can better capture the order and dependency relationships between words in the sentence, and thus better represent the overall semantic information of the sentence, avoiding the loss of information by simplifying the sentence to the average or concatenation of word vectors. To address the characteristics of equipment support, a method for training equipment support domain sentence vectors based on Bert-Prompt is proposed to improve the semantic understanding and representation capabilities of equipment failure texts. Specifically, the pre-trained BERT model is applied to sentence vector training, and the concept of prompt learning is combined. By designing effective Prompt sentence vector templates and the InfoNCE Loss function, the representation effect of equipment support sentence vectors is further improved. Based on BERT-Prompt, the training of equipment support domain sentence vectors is explored. This includes an overview of BERT sentence vector models, the development of sentence vector models, common BERT sentence vector model introductions, an introduction to Bert-Prompt, the main achievements and innovations of Bert-Prompt, its core ideas, common strategies and methods of Bert-Prompt, template-based Prompt sentence vector representation, continuous Prompt templates, the InfoNCE Loss function, training and optimization processes. The experimental analysis section covers data preparation, evaluation metrics, experimental preparations, comparative experimental methods, and analysis of experimental results.
   </abstract>
   <kwd-group> 
    <kwd>
     BERT-Prompt
    </kwd> 
    <kwd>
      Equipment Support
    </kwd> 
    <kwd>
      Sentence Vector
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>In the domain of equipment support, methods for generating sentence vectors based on word embeddings are straightforward and effective, yet they overlook the sequential and dependency relationships among words within sentences, thereby failing to capture the overall semantic information of sentences. In contrast, deep learning models (e.g., RNN, LSTM, Transformer) that directly generate sentence vectors can better capture sequential and dependency relationships among words, enabling more accurate representations of the holistic semantic information of sentences. This approach avoids the information loss associated with simplifying sentences into averaged or concatenated word vectors.</p>
   <p>To address the unique characteristics of the equipment support domain, this study proposes a BERT-Prompt-based sentence vector training method <xref ref-type="bibr" rid="scirp.142343-1">
     [1]
    </xref>, to enhance semantic comprehension and representation capabilities for equipment fault texts. Specifically, the pre-trained BERT model is integrated into sentence vector training, combined with the concept of prompt learning. By designing effective prompt templates for sentence vectors and employing the InfoNCE Loss function, the proposed method further improves the representational effectiveness of sentence vectors in equipment support applications.</p>
  </sec><sec id="s2">
   <title>
    <xref ref-type="bibr" rid="scirp.142343-"></xref>2. Overview of BERT Sentence Embedding Models</title>
   <sec id="s2_1">
    <title>2.1. Evolution of Sentence Embedding Models</title>
    <p>Training sentence embeddings directly at the sentence level has demonstrated promising results in various tasks. This approach, often termed “global vectors” or “sentence embeddings,” captures semantic and contextual information more accurately than methods that derive sentence vectors from word embeddings. Directly trained sentence embeddings provide comprehensive representations, effectively handling complex semantic and syntactic structures while incorporating word order and contextual dependencies, thereby enhancing semantic expressiveness.</p>
    <p>The development of sentence embedding models has been driven by the following key advancements:</p>
    <p>2011: Mikolov et al. proposed Word2Vec <xref ref-type="bibr" rid="scirp.142343-2">
      [2]
     </xref>, which trains word embeddings on large corpora to capture rich semantic relationships. Although primarily designed for word-level embeddings, Word2Vec can be extended to sentence-level representations via averaging or concatenation.</p>
    <p>2014: Building on Word2Vec, Mikolov et al. introduced Paragraph Vector (Doc2Vec) <xref ref-type="bibr" rid="scirp.142343-3">
      [3]
     </xref>, which learns embeddings for sentences or paragraphs by predicting words within their contexts.</p>
    <p>2015: Ryan Kiros et al. proposed Skip-Thought Vectors <xref ref-type="bibr" rid="scirp.142343-4">
      [4]
     </xref>, a recurrent neural network (RNN)-based model that learns sentence embeddings by predicting adjacent sentences, capturing inter-sentence semantic relationships.</p>
    <p>2017: Conneau et al. developed InferSent <xref ref-type="bibr" rid="scirp.142343-5">
      [5]
     </xref>, which employs a bidirectional LSTM (BiLSTM) to encode sentences into fixed-dimensional vectors, outperforming traditional methods through supervised and unsupervised training.</p>
    <p>2017: Dai et al. introduced the Transformer-based Universal Sentence Encoder <xref ref-type="bibr" rid="scirp.142343-6">
      [6]
     </xref>, trained via large-scale supervised and unsupervised learning, achieving state-of-the-art performance on multiple sentence-level tasks.</p>
    <p>2018: Cer et al. proposed the Universal Sentence Encoder <xref ref-type="bibr" rid="scirp.142343-7">
      [7]
     </xref>, a Transformer-based model utilizing unsupervised multi-task learning to generate versatile sentence embeddings for diverse NLP tasks.</p>
    <p>2018: Devlin et al. introduced BERT (Bidirectional Encoder Representations from Transformers) <xref ref-type="bibr" rid="scirp.142343-8">
      [8]
     </xref>, a Transformer-based pretrained model that learns deep contextualized word and sentence representations through unsupervised pretraining. BERT achieves superior performance in tasks such as sentence classification and similarity, validating the efficacy of direct sentence embedding training.</p>
    <p>These models are broadly applicable to multiple languages, including Chinese. For Chinese-specific sentence embeddings, HanLP provides methods based on Word2Vec, BERT, and ELMo. In 2019, Baidu Research introduced ERNIE (Enhanced Representation through Knowledge Integration), a Chinese sentence embedding model pretrained on large-scale data with integrated knowledge fusion tasks, yielding semantically rich representations.</p>
    <p>By leveraging contextual information, auxiliary vector representations, and attention mechanisms, these approaches achieve holistic sentence modeling and significant progress in sentence-level tasks. Compared to other methods, BERT exhibits distinct advantages:</p>
    <p>1) Contextual Modeling Capability: BERT-based sentence embeddings capture bidirectional contextual relationships via Transformer architecture, whereas Word2Vec and Doc2Vec rely on bag-of-words models, ignoring word order and context.</p>
    <p>2) Pretraining Benefits: BERT inherits semantic knowledge from large-scale unsupervised pretraining, enabling superior representation quality. In contrast, Word2Vec and Doc2Vec depend on labeled data, limiting scalability and robustness.</p>
    <p>3) Fine-Tuning Flexibility: BERT embeddings can be fine-tuned for specific tasks or datasets, while Word2Vec and Doc2Vec produce static, task-agnostic embeddings.</p>
    <p>4) Multi-Task Learning: BERT’s pretraining integrates multiple objectives (e.g., masked language modeling, next sentence prediction), enriching training signals and enhancing embedding expressiveness. Word2Vec and Doc2Vec focus on single-task learning.</p>
    <p>Given these advantages, this study adopts BERT as the foundation for sentence embedding research in military equipment support applications.</p>
   </sec>
   <sec id="s2_2">
    <title>2.2. BERT Sentence Embedding Models</title>
    <p>BERT has achieved remarkable performance in natural language processing (NLP) tasks. Subsequent research has focused on optimizing and enhancing the BERT framework through two primary avenues.</p>
    <p>2019:</p>
    <p>RoBERTa <xref ref-type="bibr" rid="scirp.142343-9">
      [9]
     </xref> (Robustly Optimized BERT Pretraining Approach): Proposed by Facebook AI Research, RoBERTa improves upon BERT through extended pretraining, larger datasets, and dynamic masking techniques, achieving superior results across multiple NLP tasks.</p>
    <p>XLNet <xref ref-type="bibr" rid="scirp.142343-10">
      [10]
     </xref> (Generalized Autoregressive Pretraining for Language Understanding): Developed by Carnegie Mellon University and Google Research, XLNet addresses BERT’s permutation bias by modeling all possible contextual permutations, delivering state-of-the-art performance.</p>
    <p>ALBERT <xref ref-type="bibr" rid="scirp.142343-11">
      [11]
     </xref> (A Lite BERT): Introduced by Google Research and Toyota Technological Institute at Chicago, ALBERT reduces BERT’s parameter count via parameter sharing and embedding factorization while maintaining comparable performance.</p>
    <p>2020:</p>
    <p>ELECTRA <xref ref-type="bibr" rid="scirp.142343-12">
      [12]
     </xref> (Efficiently Learning an Encoder that Classifies Token Replacements Accurately): Proposed by Stanford researchers, ELECTRA employs a token replacement task inspired by generative adversarial networks (GANs), training a more efficient sentence embedding model with strong downstream task performance.</p>
    <p>RoBERTa, XLNet, ALBERT, and ELECTRA represent significant advancements in pre-training optimization for BERT-based models.</p>
    <p>2019:</p>
    <p>Sentence-BERT <xref ref-type="bibr" rid="scirp.142343-13">
      [13]
     </xref>: Introduced by Reimers and Gurevych, SBERT generates high-quality sentence embeddings using a Siamese network architecture to compare sentence pairs and compute similarity scores.</p>
    <p>2020:</p>
    <p>BERT-Whitening <xref ref-type="bibr" rid="scirp.142343-14">
      [14]
     </xref>: Proposed by Su et al., this method applies whitening transformations to BERT embeddings, removing redundant information and enhancing representation quality.</p>
    <p>2021:</p>
    <p>PromptBERT <xref ref-type="bibr" rid="scirp.142343-15">
      [15]
     </xref>: Developed by Jiang et al., PromptBERT integrates task-specific prompts into input text, guiding BERT to adaptively learn task-oriented representations and improve performance on specialized tasks.</p>
    <p>SBERT, BERT-Whitening, and PromptBERT refine BERT through post-pretraining adjustments tailored to specific tasks.</p>
    <p>Application in Military Equipment Support:</p>
    <p>Given the domain’s limited data and specialized requirements, SBERT, BERT-Whitening, and PromptBERT offer viable solutions for sentence embedding generation:</p>
    <p>1) SBERT: Focuses on sentence-level semantic similarity, ideal for text matching and clustering tasks in equipment support. Fine-tuning BERT with a Siamese structure enables robust embeddings even with sparse data.</p>
    <p>2) BERT-Whitening: Enhances embedding quality by whitening transformations, mitigating redundancy and improving adaptability to domain-specific semantics.</p>
    <p>3) PromptBERT: Leverages domain-specific prompts to guide BERT’s learning, optimizing performance for specialized tasks in equipment support.</p>
    <p>Combining these models enables the generation of semantically rich, domain-adaptive embeddings, enhancing task performance in data-scarce, specialized military contexts.</p>
    <p>1. BERT</p>
    <p>BERT is a Transformer-based pretrained language model that learns contextualized semantic representations of sentences. Its key innovation lies in bidirectional context modeling via masked language modeling (MLM) and next sentence prediction (NSP) tasks. As illustrated in <xref ref-type="fig" rid="fig1">
      Figure 1
     </xref>, BERT-generated sentence embeddings effectively capture semantic and contextual relationships, establishing a foundation for advanced NLP applications.</p>
    <fig id="fig1" position="float">
     <label>Figure 1</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Figure 1. BERT Model Architecture.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733129-rId14.jpeg?20250429114605" />
    </fig>
    <p>2. Sentence-Bert (SBERT)</p>
    <p>Sentence-BERT (SBERT) proposes a fine-tuning method tailored for sentence-level tasks, building upon the BERT framework. It processes sentence pairs as input, employing BERT-style training and encoding to learn sentence-level semantic representations. During training, a Siamese network architecture is introduced to predict similarities between sentence pairs.</p>
    <p>Key features of SBERT include:</p>
    <p>1) Semantic Learning: The model utilizes a pre-trained Transformer to automatically capture semantic information and contextual relationships within sentences.</p>
    <p>2) Large-Scale Pretraining: Pretraining on extensive datasets enables the extraction of deep semantic features.</p>
    <p>3) Task-Specific Fine-Tuning: The pretrained model is fine-tuned for end-to-end optimization on target tasks, as illustrated in <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref>.</p>
    <fig id="fig2" position="float">
     <label>Figure 2</label>
     <caption>
      <title>Figure 2. Sentence-BERT Network Architecture.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733129-rId15.jpeg?20250429114605" />
    </fig>
    <p>3. Bert-whitening</p>
    <p>BERT-Whitening introduces a linear transformation technique—whitening—to BERT-generated sentence embeddings, aiming to eliminate redundant information in the semantic space, reduce vector dimensionality, and enhance discriminative power in the representation space. The method comprises two steps:</p>
    <p>1) Raw Vector Extraction: Obtain raw sentence vectors from the BERT model.</p>
    <p>2) Whitening Transformation: Perform whitening by computing and decorrelating the covariance matrix of sentence vectors. This process reduces inter-feature correlations and projects embeddings into a more efficient representation space.</p>
    <p>As illustrated in <xref ref-type="fig" rid="fig3">
      Figure 3
     </xref>, whitening improves sentence representation quality and boosts performance in similarity computation tasks.</p>
    <fig id="fig3" position="float">
     <label>Figure 3</label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Figure 3. Bert-whitening architecture.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733129-rId16.jpeg?20250429114605" />
    </fig>
    <p>Comparative Analysis:</p>
    <p>BERT: During pretraining, BERT learns rich semantic representations with contextual awareness, enabling comprehensive sentence understanding across diverse tasks.</p>
    <p>BERT-Whitening vs. Sentence-BERT: While BERT-Whitening enhances embedding distinctiveness, its whitening process may incur partial information loss. Conversely, Sentence-BERT excels in similarity-focused tasks through its Siamese architecture. However, neither method surpasses BERT’s generalizability and holistic semantic modeling capabilities.</p>
    <p>Thus, despite task-specific advantages of Sentence-BERT or BERT-Whitening, BERT remains superior in balancing versatility and performance for broad applications.</p>
   </sec>
  </sec><sec id="s3">
   <title>
    <xref ref-type="bibr" rid="scirp.142343-"></xref>3. Bert-Prompt Sentence Embedding Model</title>
   <sec id="s3_1">
    <title>3.1. Overview of Prompt Learning</title>
    <p>Bert-Prompt, formally termed “BERT with Prompting,” builds upon the conceptual framework introduced by Alex Wang et al. in their 2020 paper “Language Models are Few-Shot Learners” <xref ref-type="bibr" rid="scirp.142343-16">
      [16]
     </xref>, further elaborated by Tom B. Brown et al. in 2021.</p>
    <p>Prompt Learning is a methodology that leverages task-specific prompts—short textual cues integrated into input sequences—to guide pre-trained language models (e.g., BERT) in generating task-oriented outputs or inferences. By embedding domain-relevant prompts, the model is steered to focus on task-critical information, thereby enhancing its performance and adaptability.</p>
    <p>In BERT, the standard input is a text sequence. Prompt learning augments this by prepending a prompt statement—such as a question, instruction, or task description—to the input. This prompt directs the model’s processing of the subsequent text, aligning its representations with the target task. Jointly feeding the prompt and input into BERT enables the model to better adapt to specialized tasks by emphasizing task-relevant patterns while suppressing irrelevant noise.</p>
    <p>Integrating prompt learning with BERT significantly improves the model’s performance on specific tasks. By designing task-specific prompts, the model prioritizes pertinent features, enhancing its generalization capability and accuracy.</p>
    <p>Prompt learning is applicable to diverse NLP tasks, including text classification, named entity recognition, and semantic similarity computation. Its flexibility allows optimization across tasks by adjusting prompt design and integration strategies.</p>
   </sec>
   <sec id="s3_2">
    <title>3.2. Advantages and Innovations of Bert-Prompt</title>
    <p>The key advantages and innovations of Bert-Prompt are summarized as follows:</p>
    <p>1) Enhanced Performance in Downstream Tasks</p>
    <p>Bert-Prompt improves the performance of pre-trained BERT models on downstream tasks by incorporating task-specific prompts. Compared to conventional fine-tuning approaches, Bert-Prompt provides more precise guidance for model learning, enabling better adaptation to task-specific requirements and superior performance across diverse applications.</p>
    <p>2) Reduced Dependency on Annotated Data</p>
    <p>By leveraging large-scale unlabeled text data during pre-training, Bert-Prompt minimizes the need for extensive annotated datasets in downstream tasks. Task-specific prompts are integrated during fine-tuning, significantly lowering the cost of data annotation and accelerating model iteration and deployment.</p>
    <p>3) Flexibility and Scalability</p>
    <p>Bert-Prompt allows for the design and customization of prompts tailored to specific tasks and domains, enhancing adaptability across scenarios. Prompts—such as questions, instructions, or task descriptions—can be freely combined or extended, offering versatile solutions for heterogeneous NLP challenges.</p>
    <p>4) Improved Model Interpretability</p>
    <p>Bert-Prompt enhances the controllability and interpretability of model behavior through explicit prompts. These prompts direct the model to focus on task-critical information or reasoning pathways, rendering decision-making processes more transparent. This feature is particularly valuable for tasks requiring high interpretability, such as healthcare or legal applications.</p>
    <p>Bert-Prompt advances pre-trained BERT models by integrating task-specific prompts, achieving superior downstream task performance while reducing reliance on annotated data. Its flexibility, scalability, and interpretability make it a pivotal innovation in natural language processing, driving significant research advancements and practical improvements.</p>
   </sec>
   <sec id="s3_3">
    <title>3.3. Core Principles of Bert-Prompt</title>
    <p>The central idea of Bert-Prompt involves prepending a task-specific prompt—a textual cue such as a question, instruction, or task description—to the input text sequence. This prompt explicitly defines the target task or desired output, guiding the model to better comprehend and process the input, thereby improving performance on specialized tasks.</p>
    <p>Key Mechanisms</p>
    <p>Task Adaptation via Prompts: By embedding diverse prompts tailored to specific applications, Bert-Prompt dynamically adapts to varying tasks. Prompts can be either prepended to the input sequence or concatenated with it, enabling BERT to model inputs in a task-aware manner. This targeted modeling enhances the model’s generalization capability and accuracy.</p>
    <p>Extension of Pre-trained BERT: Bert-Prompt extends the pre-trained BERT framework by integrating task-relevant prompts, allowing the model to better align with domain-specific requirements. Compared to conventional fine-tuning, this approach offers greater flexibility in steering the learning process, reduces reliance on large-scale annotated datasets, and improves interpretability by constraining model behavior through explicit task signals.</p>
    <p>Advantages</p>
    <p>Enhanced Task Performance: Task-specific prompts refine the model’s focus, optimizing feature extraction for downstream applications.</p>
    <p>Reduced Annotation Dependency: Leveraging prompts minimizes the need for exhaustive labeled data, lowering deployment costs.</p>
    <p>Controlled Interpretability: Explicit prompts render model decisions more transparent, critical for high-stakes domains.</p>
    <p>In summary, Bert-Prompt redefines task adaptation in pre-trained language models by strategically integrating prompts, balancing performance, efficiency, and interpretability in NLP applications.</p>
   </sec>
  </sec><sec id="s4">
   <title>4. Bert-Prompt-Based Sentence Embedding Training for Military Equipment Support</title>
   <p>Sentence embeddings, derived from neural network-based encoding of sentences into fixed-length vectors, aim to capture semantic information. However, raw BERT-generated embeddings exhibit anisotropy—a phenomenon where vector distributions are non-uniform, concentrated within narrow conical regions, with low-frequency word vectors sparsely distributed far from the origin and high-frequency vectors densely clustered nearby, as illustrated in <xref ref-type="fig" rid="fig4">
     Figure 4
    </xref>.</p>
   <p>
    <xref ref-type="bibr" rid="scirp.142343-"></xref></p>
   <fig id="fig4" position="float">
    <label>Figure 4</label>
    <caption>
     <title>Figure 4. Distribution of Raw BERT Word Embeddings.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733129-rId17.jpeg?20250429114607" />
   </fig>
   <p>Existing Methods and Limitations</p>
   <p>Sentence-BERT: Fine-tunes BERT to produce sentence-level semantic representations by normalizing embeddings into unit vectors and measuring similarity via cosine similarity. While this mitigates scaling issues, it fails to resolve anisotropy.</p>
   <p>BERT-Whitening: Applies PCA-based whitening to decorrelate embeddings and reduce redundancy. However, linear transformations like whitening lack the capacity to address nonlinear distributional distortions.</p>
   <p>Proposed Approach</p>
   <p>Bert-Prompt integrates BERT with prompt engineering, reformulating downstream tasks via human-designed templates to align them with pretraining objectives. This strategy enhances the consistency and comparability of sentence representations, addressing anisotropy through task-aware alignment. Specifically:</p>
   <p>Template Construction: Domain-specific prompts (e.g., equipment maintenance contexts) are embedded into inputs, guiding BERT to generate semantically coherent embeddings.</p>
   <p>Anisotropy Mitigation: By aligning embedding spaces with task-specific prompts, Bert-Prompt reduces distributional skewness and improves linear separability.</p>
   <p>Advantages</p>
   <p>Consistency: Prompts enforce structural alignment between pretraining and downstream tasks, enhancing embedding generalizability.</p>
   <p>Nonlinear Adaptation: Unlike whitening, prompt-driven fine-tuning adaptively models nonlinear semantic relationships.</p>
   <p>This framework advances sentence embedding quality in data-scarce, domain-specific scenarios like military equipment support, offering a robust solution to anisotropy and representation sparsity.</p>
   <p>By adding prompts to guide the BERT model in learning domain-specific sentence representations, the prompt mechanism enables the integration of domain-related prior knowledge into the BERT model, thereby enhancing its performance on domain-specific tasks. In sentence vector training for the equipment support domain, domain-specific prompts (e.g., predefined equipment maintenance-related cues) are concatenated with input sentences as model inputs. This approach aims to focus the model’s attention on semantic patterns and features unique to the equipment support domain during training, ultimately improving its representational capability within this specialized context.</p>
   <sec id="s4_1">
    <title>4.1. Common Strategies and Methods in Bert-Prompt</title>
    <p>1. Masked Language Modeling (MLM) Prompt</p>
    <p>This strategy inserts special masked tokens (e.g., [MASK]) into the input sequence and requires the model to predict the original words. Such prompts enhance the model’s ability to learn contextual dependencies and lexical prediction capabilities.</p>
    <p>2. Sentence Classification Prompt</p>
    <p>A task-specific classification token (e.g., [CLS] Classify sentence:) is prepended to the input sequence, followed by task-relevant descriptive text. This approach guides the model to focus on task-critical information and perform sentence-level classification.</p>
    <p>3. Sentence Pair Classification Prompt</p>
    <p>Similar to sentence classification, this strategy incorporates two sentences in the input sequence, separated by a special delimiter token (e.g., [SEP]). It is designed for sentence pair classification tasks, such as natural language inference (NLI) and textual entailment.</p>
    <p>4. Sentence Ordering Prompt</p>
    <p>Special ordering tokens (e.g., [S1] and [S2]) are added to the input sequence, requiring the model to determine the correctness of sentence order. This method is effective for tasks like document summarization or coherence evaluation.</p>
    <p>5. Question-Answering Prompt</p>
    <p>A question token (e.g., Question: ) is inserted into the input sequence, followed by the question text. This strategy is tailored for question-answering tasks, where the model generates accurate responses by interpreting the context relative to the posed question.</p>
   </sec>
   <sec id="s4_2">
    <title>4.2. Prompt-Based Sentence Embedding Representations via Designed Templates</title>
    <p>Traditional pretrained language models (PLMs) typically adopt a PLM + fine-tuning paradigm for tasks such as text similarity and classification. For BERT-based models, sentence vectors are commonly derived using methods like the CLS token or pooling operations:</p>
    <p>CLS Token: A special [CLS] token is prepended to the input sequence, and its corresponding hidden state is used as the sentence embedding, encapsulating global semantic information.</p>
    <p>Pooling Operations: Fixed-length embeddings are generated by aggregating hidden states of all tokens via average or max pooling.</p>
    <p>However, these methods often result in anisotropic distributions, where semantically similar sentences cluster closely in vector space, leading to inflated similarity scores and reduced sensitivity to nuanced semantic differences.</p>
    <p>Prompt Learning reframes downstream tasks by integrating human-designed prompts into the input text, transforming the original task into a masked language modeling (MLM) objective. This approach leverages task-specific templates to align inputs with pretraining objectives, enhancing the model’s ability to generate fluent and linguistically coherent outputs. Designed with linguistic expertise, these templates incorporate common phrases, syntactic structures, and domain-specific patterns <xref ref-type="bibr" rid="scirp.142343-17">
      [17]
     </xref>, ensuring generated text adheres to natural language conventions.</p>
    <p>By reformulating downstream tasks through prompts (see <xref ref-type="table" rid="table1">
      Table 1
     </xref> for task-specific designs), the model is guided to produce contextually appropriate predictions, effectively bridging the gap between pretraining and task-specific fine-tuning.</p>
    <p>
     <xref ref-type="bibr" rid="scirp.142343-"></xref></p>
    <table-wrap id="table1">
     <label>
      <xref ref-type="table" rid="table1">
       Table 1
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Table 1. Diverse prompt designs.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="acenter"><p style="text-align:center"></p></td> 
       <td class="acenter"><p style="text-align:center">Original Task</p></td> 
       <td class="acenter"><p style="text-align:center">Prompt-Reformulated Task</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Machine Translation</p></td> 
       <td class="acenter"><p style="text-align:center">“I love flower.”</p></td> 
       <td class="acenter"><p style="text-align:center">“Translate the following English sentence into Chinese: [Q]”</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Sentiment Classification</p></td> 
       <td class="acenter"><p style="text-align:center">“This movie is fantastic!”</p></td> 
       <td class="acenter"><p style="text-align:center">“Classify the sentiment of the following sentence: [Q]”</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Named Entity Recognition (NER)</p></td> 
       <td class="acenter"><p style="text-align:center">“Identify person and location names in the text.”</p></td> 
       <td class="acenter"><p style="text-align:center">“Identify person and location names in the following text: [Q]”</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Question Answering</p></td> 
       <td class="acenter"><p style="text-align:center">“What causes the engine to emit black smoke?”</p></td> 
       <td class="acenter"><p style="text-align:center">“Answer the following question: [Q]”</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>The manually designed Masked Sentence Embedding (HMSE) method in this study constructs a cloze-style framework to align model predictions with labels from a sentence comprehension perspective. It models the probability P = (n│m, θ) of predicting the masked token n given the original text m. For an input sentence formatted as [cls][M][sep], a hand-crafted template (e.g., 该句意为：(“The sentence means:”)) is appended, resulting in the reformatted input [cls][M] 该句意为：[mask] [sep]. The output vector corresponding to the [MASK] token is extracted as the sentence representation. This approach, termed HMSE (Hand-crafted Mask Sentence Embedding) and proposed in <xref ref-type="bibr" rid="scirp.142343-18">
      [18]
     </xref>, leverages domain-specific mask templates and prompt learning to dynamically inject learnable parameters, guiding the BERT model to prioritize critical semantic components. By jointly optimizing contrastive loss and masked language modeling (MLM) loss, HMSE significantly enhances both discriminability and task adaptability of sentence vectors. In low-resource scenarios, it achieves a 6.2% improvement in Spearman correlation on the LCQMC dataset while reducing training time by 40%, as illustrated in <xref ref-type="fig" rid="fig5">
      Figure 5
     </xref>.</p>
    <fig id="fig5" position="float">
     <label>Figure 5</label>
     <caption>
      <title>Figure 5. Schematic diagram of HMSE template design.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733129-rId18.jpeg?20250429114608" />
    </fig>
    <p>To further validate the efficacy of HMSE-generated embeddings, whitening operations were applied to analyze distributional transformations and quantify anisotropy. However, empirical observations revealed negligible performance improvements from whitening. Consequently, the experiments in this study focus on comparative analyses among four methods: BERT, Sentence-BERT, BERT-Whitening, and BERT with prompt-based embeddings.</p>
   </sec>
   <sec id="s4_3">
    <title>4.3. Continuous Prompt Templates</title>
    <p>In text generation using prompts, two types of prompt templates are typically employed: discrete templates and continuous templates. For sentence embedding training, continuous templates are more advantageous due to their flexibility in accommodating diverse input samples, enabling models to better capture heterogeneous sentence structures and contextual patterns. This enhances the model’s adaptability and expressive power.</p>
    <p>This study adopts continuous prompt templates, integrating conventional prompt engineering with P-tuning <xref ref-type="bibr" rid="scirp.142343-19">
      [19]
     </xref>. This hybrid approach introduces task-specific dynamic information during fine-tuning, aligning the model more closely with target task requirements and generating outputs tailored to specialized objectives.</p>
    <p>Limitations of Discrete Prompts</p>
    <p>Discrete prompts serve as suboptimal solutions for continuous neural networks, as their constituent tokens exhibit rigid interdependencies.</p>
    <p>P-tuning Methodology</p>
    <p>P-tuning addresses this by feeding pseudo-prompts into a Long Short-Term Memory (LSTM) network <xref ref-type="bibr" rid="scirp.142343-20">
      [20]
     </xref>. The LSTM’s output vectors replace the original discrete prompt tokens, which are then jointly input into the pretrained model. This process, illustrated in <xref ref-type="fig" rid="fig6">
      Figure 6
     </xref>, enables dynamic prompt optimization through gradient-based learning.</p>
    <p>
     <xref ref-type="bibr" rid="scirp.142343-"></xref></p>
    <fig id="fig6" position="float">
     <label>Figure 6</label>
     <caption>
      <title>Figure 6. P-tuning.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733129-rId19.jpeg?20250429114608" />
    </fig>
    <p>As illustrated in the figure, P-tuning generates prompts through a Prompt Encoder, which utilizes pseudo-prompts and backpropagation to iteratively update the encoder. The network architecture comprises an embedding layer followed by a two-layer LSTM and a multi-layer perceptron (MLP) with ReLU activation. While the LSTM <xref ref-type="bibr" rid="scirp.142343-21">
      [21]
     </xref> is employed during training to model sequential dependencies, it is removed during inference to streamline computational efficiency.</p>
    <p>The generated prompts are initialized using vectors processed by HMSE, followed by feeding template vectors into a bidirectional GRU network. This design mitigates the risk of converging to local minima during optimization. The GRU network, proposed by Cho et al. as a simplified variant of LSTM, extends the capabilities of recurrent neural networks (RNNs). A GRU unit incorporates only two gating mechanisms: a reset gate and an update gate. When the reset gate is deactivated, historical information is disregarded, ensuring that irrelevant past states do not influence future outputs. By integrating the input gate and forget gate of LSTM into a unified update gate, the GRU dynamically regulates the impact of historical information on the current hidden state. Specifically, if the update gate approaches a value of 1, historical information is preserved and propagated through subsequent time steps.</p>
   </sec>
   <sec id="s4_4">
    <title>
     <xref ref-type="bibr" rid="scirp.142343-"></xref>4.4. InfoNCE Loss Function</title>
    <p>The selection of an appropriate loss function is critical during sentence vector training, as it directly influences model convergence and the quality of vector representations. Commonly used loss functions include Triplet Loss, Noise-Contrastive Estimation (NCE) Loss, Circle Loss, and InfoNCE Loss. This study adopts InfoNCE Loss due to its capability to maximize mutual information between positive and negative samples, thereby learning more discriminative and robust sentence vector representations. Specifically, the loss function minimizes the distance between semantically similar sentence pairs while maximizing the distance between dissimilar pairs. When two sentences share semantic similarity, their vector representations are pulled closer in the embedding space, whereas representations of semantically dissimilar sentences are pushed apart. This principle aligns with downstream tasks such as semantic text matching and vector retrieval, offering significant potential to advance research in case retrieval applications.</p>
    <p>Let the set of positive sample pairs be defined as 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         M 
       </mi> 
       <mo>
         = 
       </mo> 
       <msubsup> 
        <mrow> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                u 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
             <mo>
               , 
             </mo> 
             <msubsup> 
              <mi>
                u 
              </mi> 
              <mi>
                i 
              </mi> 
              <mo>
                + 
              </mo> 
             </msubsup> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            } 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msubsup> 
      </mrow> 
     </math>, For the i-th sample in a batch of size N, the InfoNCE loss is formulated as:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          L 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mo>
         − 
       </mo> 
       <mi>
         log 
       </mi> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mtext>
            e 
          </mtext> 
          <mrow> 
           <mi>
             s 
           </mi> 
           <mi>
             i 
           </mi> 
           <mi>
             m 
           </mi> 
           <mrow> 
            <mrow> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mi>
                  v 
                </mi> 
                <mi>
                  i 
                </mi> 
               </msub> 
               <mo>
                 , 
               </mo> 
               <msubsup> 
                <mi>
                  v 
                </mi> 
                <mi>
                  i 
                </mi> 
                <mo>
                  + 
                </mo> 
               </msubsup> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mo>
              / 
            </mo> 
            <mi>
              τ 
            </mi> 
           </mrow> 
          </mrow> 
         </msup> 
        </mrow> 
        <mrow> 
         <mstyle displaystyle="true"> 
          <msubsup> 
           <mo>
             ∑ 
           </mo> 
           <mrow> 
            <mi>
              j 
            </mi> 
            <mo>
              = 
            </mo> 
            <mn>
              1 
            </mn> 
           </mrow> 
           <mi>
             N 
           </mi> 
          </msubsup> 
          <mrow> 
           <msup> 
            <mtext>
              e 
            </mtext> 
            <mrow> 
             <mi>
               s 
             </mi> 
             <mi>
               i 
             </mi> 
             <mi>
               m 
             </mi> 
            </mrow> 
           </msup> 
          </mrow> 
         </mstyle> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              v 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
           <mo>
             , 
           </mo> 
           <msubsup> 
            <mi>
              v 
            </mi> 
            <mi>
              j 
            </mi> 
            <mo>
              + 
            </mo> 
           </msubsup> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           / 
         </mo> 
         <mi>
           τ 
         </mi> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math>(1)</p>
    <p>
     <xref ref-type="bibr" rid="scirp.142343-"></xref>Here, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          u 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
      </mrow> 
     </math>and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mi>
          i 
        </mi> 
        <mo>
          + 
        </mo> 
       </msubsup> 
      </mrow> 
     </math>constitute a positive sample pair; and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          v 
        </mi> 
        <mi>
          i 
        </mi> 
        <mo>
          + 
        </mo> 
       </msubsup> 
      </mrow> 
     </math> represent the model-encoded vectors of and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mi>
          i 
        </mi> 
        <mo>
          + 
        </mo> 
       </msubsup> 
      </mrow> 
     </math> respectively. The symbol 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        τ 
      </mi> 
     </math>denotes the temperature hyperparameter, which scales the similarity distribution. The operator 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         s 
       </mi> 
       <mi>
         i 
       </mi> 
       <mi>
         m 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow></mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>quantifies the cosine similarity between vectors, defined as 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         sin 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           a 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           b 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mi>
           a 
         </mi> 
         <mo>
           ⋅ 
         </mo> 
         <mi>
           b 
         </mi> 
        </mrow> 
        <mrow> 
         <mrow> 
          <mo>
            ‖ 
          </mo> 
          <mi>
            a 
          </mi> 
          <mo>
            ‖ 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ‖ 
          </mo> 
          <mi>
            b 
          </mi> 
          <mo>
            ‖ 
          </mo> 
         </mrow> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math>, where indicates the dot product.</p>
    <p>As evident from the equation above, the loss function resembles a cross-entropy formulation, aiming to maximize the mutual information between positive sample pairs. Consequently, the construction of positive and negative samples becomes pivotal. While negative sample pairs can be relatively straightforward to generate, creating robust positive pairs—through methods such as word replacement, addition, or deletion—introduces challenges. Specifically, such transformations risk injecting noise or inadvertently altering the original semantic meaning of the text. For instance, replacing the phrase “主离合器分离不彻底” (incomplete disengagement of the main clutch) with “主离合器打滑” (slippage of the main clutch) modifies the semantic intent, potentially leading to erroneous matches in fault cause retrieval applications.</p>
    <p>Inspired by <xref ref-type="bibr" rid="scirp.142343-22">
      [22]
     </xref>, this study adopts the method proposed in the SimCSE framework, where positive sample pairs are constructed via dropout twice as a data augmentation strategy. This approach enhances training data diversity, thereby improving the model’s capacity to capture semantic relationships between sentences and strengthening its robustness to perturbations. The supervised SimCSE framework is employed in experiments due to its synergistic integration with prompt learning, which significantly enhances learning efficiency, reinforces semantic representation learning, and strengthens activation capacity. The specific architecture is illustrated in <xref ref-type="fig" rid="fig7">
      Figure 7
     </xref>.</p>
    <fig id="fig7" position="float">
     <label>Figure 7</label>
     <caption>
      <title>Figure 7. SimCSE architecture diagram.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733129-rId38.jpeg?20250429114608" />
    </fig>
   </sec>
   <sec id="s4_5">
    <title>4.5. Training and Optimization Process</title>
    <p>The objective of deep learning is to iteratively adjust network parameters such that these parameters can perform nonlinear transformations on the input data to closely approximate the output. Fundamentally, this process seeks to identify the optimal solution for the target function. Algorithms designed to update parameters are commonly referred to as optimizers, which are employed to refine the parameters of neural network models. Widely used optimizers include Stochastic</p>
    <table-wrap id="table2">
     <label>
      <xref ref-type="table" rid="table2">
       Table 2
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Table 2. Training and optimization process.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">Input: Positive-Negative Sentence Pair Training Set</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">Output: Spearman Score</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">① Training Set Preparation: Select a training set for input into BERT, comprising a large number of sentence pairs. Positive sample pairs are constructed following the SimCSE framework, where two semantically similar positive samples are generated by applying dropout twice to the same sentence.</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">② Sentence Transformation via Prompt Templates: Process input sentences using manually crafted prompt templates to generate modified sentences Both the modified sentences and original sentences are then fed into the BERT model. The pretrained model encodes these sentences to produce corresponding vector representations.</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">③ Mutual Information and Loss Calculation: For each positive sample pair and its corresponding negative pair, compute the mutual information between them. The InfoNCE loss function is employed to quantify the discrepancy between positive and negative pairs.</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">④ Parameter Optimization with Adam: Apply the computed loss to the adaptive Adam optimizer. Parameters of the BERT model are updated via backpropagation, enabling the model to refine its ability to learn high-quality sentence vector representations.</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">⑤ Iterative Training: Repeat the above steps iteratively, progressively enhancing the quality of sentence embeddings through multiple training epochs.</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">⑥ Spearman Score Evaluation: After each training epoch, evaluate the model’s performance on the test set using the Spearman correlation score to measure alignment between predicted and human-annotated rankings.</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="100.00%"><p style="text-align:left">⑦ Model Checkpointing: Save the model parameters and training results after each epoch to facilitate subsequent fine-tuning and analysis.</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Gradient Descent (SGD), momentum-based methods, and adaptive gradient techniques such as AdaGrad.</p>
    <p>In this study, we employ the Adam optimizer from the Transformer library, an algorithm based on Adaptive Moment Estimation (Adam). This optimizer integrates the principles of momentum methods and RMSProp, dynamically adjusting the learning rate and utilizing estimates of the first-order moment (mean) and second-order moment (uncentered variance) of gradients to adaptively regulate parameter update magnitudes during training. Compared to traditional Stochastic Gradient Descent (SGD), the Adam optimizer demonstrates faster convergence and enhanced generalization capabilities.</p>
    <p>The comprehensive training procedure is summarized in <xref ref-type="table" rid="table2">
      Table 2
     </xref>.</p>
   </sec>
  </sec><sec id="s5">
   <title>5. Experimental Analysis</title>
   <sec id="s5_1">
    <title>5.1. Dataset Preparation</title>
    <p>1) Data Sources</p>
    <p>The datasets used in this study include publicly available benchmarks and domain-specific corpora from military equipment support and internal military journals. Public datasets comprise LCQMC and Chinese STS-B, while domain-specific corpora are compiled from military equipment maintenance materials, Liberation Army Daily articles, internal military journals, and military encyclopedias.</p>
    <p>LCQMC: A multi-domain question-matching dataset developed by Harbin Institute of Technology, designed to evaluate semantic similarity between question pairs. Each pair is labeled as either dissimilar (0) or similar (1).</p>
    <p>Chinese STS-B: A sentence similarity benchmark containing 5,749 sentence pairs, each annotated with a similarity score ranging from 0 (dissimilar) to 5 (similar).</p>
    <p>Equipment support domain data primarily comprises textual data from equipment maintenance manuals, fault and repair experience records in equipment service logs, as well as fault data collected from equipment management information systems. Military journal-related corpora consist of curated materials from internal military journals, military encyclopedias, and news articles from the Liberation Army Daily published over the past five years(2018 - 2023).</p>
    <p>2) Data Preprocessing</p>
    <p>Public datasets (LCQMC, STS-B) were used as-is, while domain-specific corpora (EM.etc_data) underwent the following preprocessing:</p>
    <p>1. Cleaning and Normalization:</p>
    <p>Special Character Removal: Regular expressions (e.g., re.sub()) eliminated unwanted characters, punctuation, emojis, and HTML tags (via BeautifulSoup).</p>
    <p>Text Segmentation: The Chinese tokenizer pkuseg performed word segmentation, with sentences split based on punctuation.</p>
    <p>2. Similarity Annotation:</p>
    <p>A conversational QA framework was designed, where human annotators acted as users posing queries, and ChatGPT generated responses.</p>
    <p>Annotators evaluated response relevance to queries, assigning similarity labels (0: dissimilar, 1: similar). Discrepancies triggered iterative revisions until consensus.</p>
    <p>3. Dataset Partitioning:</p>
    <p>Processed data were shuffled (via random.shuffle() or numpy.random.permutation()) and split into training (70%), validation (15%), and test sets (15%).</p>
    <p>The final dataset statistics are summarized in <xref ref-type="table" rid="table3">
      Table 3
     </xref>.</p>
    <p>
     <xref ref-type="bibr" rid="scirp.142343-"></xref></p>
    <table-wrap id="table3">
     <label>
      <xref ref-type="table" rid="table3">
       Table 3
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Table 3. Summary of sentence pair quantities in experimental datasets.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="24.99%"><p style="text-align:center"></p></td> 
       <td class="custom-bottom-td acenter" width="25.01%"><p style="text-align:center">Train</p></td> 
       <td class="custom-bottom-td acenter" width="24.99%"><p style="text-align:center">Valid</p></td> 
       <td class="custom-bottom-td acenter" width="25.01%"><p style="text-align:center">Test</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="24.99%"><p style="text-align:center">LCQMC</p></td> 
       <td class="custom-top-td acenter" width="25.01%"><p style="text-align:center">238,766</p></td> 
       <td class="custom-top-td acenter" width="24.99%"><p style="text-align:center">8,802</p></td> 
       <td class="custom-top-td acenter" width="25.01%"><p style="text-align:center">12,500</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="24.99%"><p style="text-align:center">STS-B</p></td> 
       <td class="acenter" width="25.01%"><p style="text-align:center">5,231</p></td> 
       <td class="acenter" width="24.99%"><p style="text-align:center">1,458</p></td> 
       <td class="acenter" width="25.01%"><p style="text-align:center">1,361</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="24.99%"><p style="text-align:center">EM.etc_data</p></td> 
       <td class="acenter" width="25.01%"><p style="text-align:center">6,356</p></td> 
       <td class="acenter" width="24.99%"><p style="text-align:center">1,543</p></td> 
       <td class="acenter" width="25.01%"><p style="text-align:center">1,181</p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
   <sec id="s5_2">
    <title>5.2. Evaluation Metrics</title>
    <p>The Spearman correlation coefficient is a statistical measure of the nonlinear dependence between two variables. In sentence embedding training and similarity evaluation, it is commonly employed to quantify the association between learned sentence embeddings and human-annotated similarity scores, i.e., the correlation between predicted label set A and ground truth label set B. The formula is defined as:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         ρ 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         − 
       </mo> 
       <mfrac> 
        <mrow> 
         <mn>
           6 
         </mn> 
         <mstyle displaystyle="true"> 
          <msub> 
           <mo>
             ∑ 
           </mo> 
           <mi>
             i 
           </mi> 
          </msub> 
          <mrow> 
           <msubsup> 
            <mi>
              d 
            </mi> 
            <mi>
              i 
            </mi> 
            <mn>
              2 
            </mn> 
           </msubsup> 
          </mrow> 
         </mstyle> 
        </mrow> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msup> 
            <mi>
              n 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math>(2)</p>
    <p>Here, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ρ 
      </mi> 
     </math>ranges between 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          d 
        </mi> 
        <mi>
          i 
        </mi> 
        <mn>
          2 
        </mn> 
       </msubsup> 
      </mrow> 
     </math>denotes the squared difference in ranks between variables A and B, and represents the number of sentence pairs in the test set. A Spearman coefficient closer to 1 indicates a stronger monotonic correlation.</p>
   </sec>
   <sec id="s5_3">
    <title>5.3. Experimental Setup</title>
    <p>The experimental code was implemented using Python-based natural language processing (NLP) libraries, primarily relying on the following frameworks:</p>
    <p>Transformers Library: An open-source NLP library led by Hugging Face, providing implementations of pretrained models (e.g., BERT, GPT) and supporting diverse NLP tasks and model architectures. It streamlines the utilization of pretrained models for downstream applications.</p>
    <p>PyTorch Library: A deep learning framework for constructing, training, and optimizing neural network models.</p>
    <p>The specific parameter configurations for the models are detailed in <xref ref-type="table" rid="table4">
      Table 4
     </xref>.</p>
    <table-wrap id="table4">
     <label>
      <xref ref-type="table" rid="table4">
       Table 4
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Table 4. Partial model parameter configurations.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="50.00%"><p style="text-align:center">Parameter Name</p></td> 
       <td class="custom-bottom-td acenter" width="50.00%"><p style="text-align:center">Configuration</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="50.00%"><p style="text-align:center">Batch Size</p></td> 
       <td class="custom-top-td acenter" width="50.00%"><p style="text-align:center">64</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Hidden Size</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">512</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Regularization Coefficient</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">0.001</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Output Dimension</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">768</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Max_length</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Variable (longest sample)</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Dropout</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">0.2</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Learning Rate</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">2e-5</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Optimizer</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Adam</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="50.00%"><p style="text-align:center">Sampled Sentences Count</p></td> 
       <td class="acenter" width="50.00%"><p style="text-align:center">1000</p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
   <sec id="s5_4">
    <title>
     <xref ref-type="bibr" rid="scirp.142343-"></xref>5.4. Controlled Experiment Methodology</title>
    <p>Controlled experiments are designed to evaluate performance differences among distinct models or algorithms on specific tasks.</p>
    <p>In this study, we employ several models relevant to text similarity matching tasks—including Sentence-BERT, BERT-Whitening, and SimCSE—as baseline models for performance evaluation. The pretrained model chinese-roberta-wwm-ext is selected as the foundation for comparative analysis.</p>
    <p>Experimental Setup</p>
    <p>1. Datasets: Three datasets are utilized for evaluation: LCQMC, Chinese STS-B, and EM.etc_data.</p>
    <p>2. Performance Metrics: For each model, the Spearman correlation coefficient is computed on the test set to assess its performance in similarity matching. A higher Spearman score indicates stronger alignment between model predictions and human-annotated similarity scores.</p>
    <p>3. Result Presentation: Experimental results are organized in tabular format, with rows representing models, columns corresponding to datasets, and the final column displaying average scores across all datasets.</p>
    <p>Vector Representation Analysis</p>
    <p>To further evaluate model performance, diverse vector representations are examined. Specifically, for each model, we assess:</p>
    <p>¬The CLS token vector,</p>
    <p>¬The pooler output vector,</p>
    <p>¬Average-pooled vectors from the last hidden layer and first hidden layer.</p>
    <p>Comparative analysis of these representations elucidates performance disparities among models.</p>
    <p>Model Optimization</p>
    <p>To enhance performance, models are fine-tuned using the InfoNCE loss function. Post-training evaluations are conducted under full-sample conditions, and results are compared with baseline outcomes to quantify performance improvements.</p>
    <p>Conclusion</p>
    <p>Through this controlled experimental framework, the relative strengths and weaknesses of different models in text similarity matching tasks are systematically identified.</p>
   </sec>
   <sec id="s5_5">
    <title>
     <xref ref-type="bibr" rid="scirp.142343-"></xref>5.5. Analysis of Experimental Results</title>
    <p>
     <xref ref-type="table" rid="table5">
      Table 5
     </xref> presents a comparative analysis of the Spearman scores achieved by HMSE-prompted sentence vectors and baseline models on the test set.</p>
    <p>
     <xref ref-type="bibr" rid="scirp.142343-"></xref></p>
    <table-wrap id="table5">
     <label>
      <xref ref-type="table" rid="table5">
       Table 5
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Table 5. Results of few-shot learning.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="28.99%"><p style="text-align:center"></p></td> 
       <td class="custom-bottom-td acenter" width="17.74%"><p style="text-align:center">LCQMC</p></td> 
       <td class="custom-bottom-td acenter" width="17.76%"><p style="text-align:center">STS-B</p></td> 
       <td class="custom-bottom-td acenter" width="17.76%"><p style="text-align:center">EM.etc_data</p></td> 
       <td class="custom-bottom-td acenter" width="17.76%"><p style="text-align:center">Avg.</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="28.99%"><p style="text-align:center">RoBERTa<sub>base</sub>cls.</p></td> 
       <td class="custom-top-td acenter" width="17.74%"><p style="text-align:center">65.79</p></td> 
       <td class="custom-top-td acenter" width="17.76%"><p style="text-align:center">30.79</p></td> 
       <td class="custom-top-td acenter" width="17.76%"><p style="text-align:center">16.57</p></td> 
       <td class="custom-top-td acenter" width="17.76%"><p style="text-align:center">33.42</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="28.99%"><p style="text-align:center">RoBERTa<sub>base</sub>pooler.</p></td> 
       <td class="acenter" width="17.74%"><p style="text-align:center">12.99</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">23.99</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">12.99</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">19.60</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="28.99%"><p style="text-align:center">RoBERTa<sub>base</sub>first-last avg.</p></td> 
       <td class="acenter" width="17.74%"><p style="text-align:center">10.95</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">56.11</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">26.43</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">35.26</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="28.99%"><p style="text-align:center">Sentence-BERT<sub>base</sub></p></td> 
       <td class="acenter" width="17.74%"><p style="text-align:center">59.46</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">60.92</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">50.66</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">55.03</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="28.99%"><p style="text-align:center">BERT-whitening<sub>base</sub></p></td> 
       <td class="acenter" width="17.74%"><p style="text-align:center">69.53</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">67.72</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">54.62</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">60.76</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="28.99%"><p style="text-align:center">IMCSE BERT<sub>base</sub></p></td> 
       <td class="acenter" width="17.74%"><p style="text-align:center">71.18</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">77.72</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">58.08</p></td> 
       <td class="acenter" width="17.76%"><p style="text-align:center">65.05</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>The results demonstrate that HMSE-prompted sentence vectors outperform other models in evaluations based on the CLS token vector, pooler output vector, and first-last averaged vectors. This indicates that HMSE-prompted representations more effectively capture semantic similarity information in text similarity matching tasks.</p>
    <p>Subsequently, the outcomes after training with the InfoNCE loss function are summarized in <xref ref-type="table" rid="table6">
      Table 6
     </xref>.</p>
    <p>
     <xref ref-type="bibr" rid="scirp.142343-"></xref></p>
    <table-wrap id="table6">
     <label>
      <xref ref-type="table" rid="table6">
       Table 6
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.142343-"></xref>Table 6. Results across datasets in full-sample settings.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter"><p style="text-align:center"></p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center">LCQMC</p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center">STS-B</p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center">EM.etc_data</p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center">Avg.</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter"><p style="text-align:center">RoBERT<sub>abase</sub>cls.+SIMCSE</p></td> 
       <td class="custom-top-td acenter"><p style="text-align:center">79.61</p></td> 
       <td class="custom-top-td acenter"><p style="text-align:center">79.87</p></td> 
       <td class="custom-top-td acenter"><p style="text-align:center">62.76</p></td> 
       <td class="custom-top-td acenter"><p style="text-align:center">68.52</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">RoBERTa<sub>base</sub>pooler. +SIMCSE</p></td> 
       <td class="acenter"><p style="text-align:center">78.54</p></td> 
       <td class="acenter"><p style="text-align:center">73.95</p></td> 
       <td class="acenter"><p style="text-align:center">54.94</p></td> 
       <td class="acenter"><p style="text-align:center">64.85</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">RoBERTa<sub>base</sub>first-last avg. +SIMCSE</p></td> 
       <td class="acenter"><p style="text-align:center">78.89</p></td> 
       <td class="acenter"><p style="text-align:center">78.65</p></td> 
       <td class="acenter"><p style="text-align:center">58.82</p></td> 
       <td class="acenter"><p style="text-align:center">67.36</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">RoBERT<sub>base</sub> <sub>cls</sub></p></td> 
       <td class="acenter"><p style="text-align:center">76.53</p></td> 
       <td class="acenter"><p style="text-align:center">69.11</p></td> 
       <td class="acenter"><p style="text-align:center">46.55</p></td> 
       <td class="acenter"><p style="text-align:center">65.23</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Sentence-BERT<sub>base</sub></p></td> 
       <td class="acenter"><p style="text-align:center">78.82</p></td> 
       <td class="acenter"><p style="text-align:center">76.02</p></td> 
       <td class="acenter"><p style="text-align:center">56.73</p></td> 
       <td class="acenter"><p style="text-align:center">62.11</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">BERT-whitening<sub>base</sub></p></td> 
       <td class="acenter"><p style="text-align:center">79.65</p></td> 
       <td class="acenter"><p style="text-align:center">78.98</p></td> 
       <td class="acenter"><p style="text-align:center">49.36</p></td> 
       <td class="acenter"><p style="text-align:center">61.85</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">HMSE+SIMCSE<sub>base</sub></p></td> 
       <td class="acenter"><p style="text-align:center">82.23</p></td> 
       <td class="acenter"><p style="text-align:center">85.96</p></td> 
       <td class="acenter"><p style="text-align:center">81.52</p></td> 
       <td class="acenter"><p style="text-align:center">69.12</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>The results in <xref ref-type="table" rid="table6">
      Table 6
     </xref> demonstrate that, under full-sample conditions, the HMSE-prompted sentence vectors are evaluated using the CLS token vector, pooler output vector, and first-last averaged vectors. After training with the InfoNCE loss function, the proposed HMSE-prompted sentence vectors exhibit superior performance compared to the first-last averaged vectors. Furthermore, experiments reveal that leveraging HMSE-prompted vectors consistently outperforms scenarios where the template is not applied.</p>
    <p>Collectively, the experimental results validate the efficacy of the proposed HMSE-prompted sentence vectors in text similarity matching tasks. These vectors achieve better evaluation metrics than baseline models across CLS token vectors, pooler outputs, and first-last averaged representations. Training with the InfoNCE loss further enhances their performance, demonstrating robust generalization capabilities. The HMSE-prompted framework effectively improves the accuracy of text similarity matching and provides valuable insights for future research in semantic representation learning.</p>
   </sec>
  </sec><sec id="s6">
   <title>
    <xref ref-type="bibr" rid="scirp.142343-"></xref>6. Summary</title>
   <p>This study employs a sentence embedding model based on continuous human-crafted prompt templates and conducts comparative experiments against three established sentence embedding models. Evaluations are performed on both publicly available Chinese datasets and domain-specific datasets in the military equipment support domain. Experimental results indicate that the proposed method, which integrates prompt learning into a pretrained model, achieves superior performance in sentence vector representations compared to baseline approaches. Additionally, the contrastive loss function adopted in this framework demonstrates significant advantages in similarity matching tasks.</p>
   <p>However, the proposed methodology exhibits limitations: when the number of templates is limited, it struggles to capture domain-specific features and variations, necessitating a labor-intensive process of redesigning or modifying templates. Future work will focus on optimizing and refining the design of prompt templates based on specific application scenarios and iterative feedback. Through iterative updates and refinements to the templates, we aim to derive more accurate and domain-adaptive sentence embeddings for military equipment support applications.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.142343-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Duan, X., Zhang, Y. and Sun, Y. (2017) Research on Sentence Vector Representation and Similarity Calculation Method About Microblog Texts. Computer Engineering, 43, 143-148.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Mikolov, T., Chen, K., Corrado, G., et al. (2013) Efficient Estimation of Word Representations in Vector Space. arXiv: 1301.3781. &gt;https://doi.org/10.48550/arXiv.1301.3781 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Le, Q. and Mikolov, T. (2014) Distributed Representations of Sentences and Documents. Proceedings of the 31st International Conference on International Conference on Machine Learning, Beijing, 21-26 June 2014, 1188-1196.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kiros, R., Zhu, Y., Salakhutdinov, R.R., et al. (2015) Skip-Thought Vectors. arXiv: 1506.06726. &gt;https://doi.org/10.48550/arXiv.1506.06726 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Conneau, A., Kiela, D., Schwenk, H., Barrault, L. and Bordes, A. (2017) Supervised Learning of Universal Sentence Representations from Natural Language Inference Data. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Copenhagen, 7-11 September 2017, 670-680. &gt;https://doi.org/10.18653/v1/d17-1070
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., et al. (2017) Attention Is All You Need. Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, 4-9 December 2017, 6000-6010.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Cer, D., Yang, Y., Kong, S., Hua, N., Limtiaco, N., St. John, R., et al. (2018) Universal Sentence Encoder for English. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, Brussels, 31 October-4 November 2018, 169-174. &gt;https://doi.org/10.18653/v1/d18-2029
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Devlin, J., Chang, M.W., Lee, K., et al. (2019) BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding. Proceedings of NAACL-HLT 2019, Minneapolis, 2-7 June 2019, 4171-7186.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Liu, Y., Ott, M., Goyal, N., et al. (2019) RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv: 1907.11692. &gt;https://doi.org/10.48550/arXiv.1907.11692 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Yang, Z., Dai, Z., Yang, Y., et al. (2020) XLNet: Generalized Autoregressive Pretraining for Language Understanding. arXiv: 1906.08237. &gt;https://doi.org/10.48550/arXiv.1906.08237 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Lan, Z., Chen, M., Goodman, S., et al. (2020) ALBERT: A Lite BERT for Self-Supervised Learning of Language Representations. arXiv: 1909.11942. &gt;https://doi.org/10.48550/arXiv.1909.11942 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Clark, K., Luong, M.T., Le, Q.V., et al. (2020) ELECTRA: Pre-Training Text Encoders as Discriminators Rather Than Generators. arXiv: 2003.10555. &gt;https://doi.org/10.48550/arXiv.2003.10555 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Reimers, N. and Gurevych, I. (2019) Sentence-Bert: Sentence Embeddings Using Siamese Bert-networks. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, 3-7 November 2019, 3982-3992. &gt;https://doi.org/10.18653/v1/d19-1410
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Su, J., Cao, J., Liu, W., et al. (2021) Whitening Sentence Representations for Better Semantics and Faster Retrieval. arXiv: 2103.15316. &gt;https://doi.org/10.48550/arXiv.2103.15316 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Jiang, T., Jiao, J., Huang, S., Zhang, Z., Wang, D., Zhuang, F., et al. (2022) PromptBERT: Improving BERT Sentence Embeddings with Prompts. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Abu Dhabi, 7-11 December 2022, 8826-8837. &gt;https://doi.org/10.18653/v1/2022.emnlp-main.603
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Brown, T.B., Mann, B., Ryder, N., et al. (2020) Language Models Are Few-Shot Learners. Proceedings of the 34th International Conference on Neural Information Processing System, Vancouver, 6-12 December 2020, 1877-1901.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Yu, B., Cai, X. and Wei, J. (2023) Few-Shot Text Classification Method Based on Prompt Learning. Journal of Computer Applications, 43, 2735-2740.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Li, N. (2022) Improved Sentence Embedding Based on BERT and Prompt-Learning. Shantou University.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Liu, X., Zheng, Y., Du, Z., et al. (2023) GPT Understands, Too. arXiv: 2103.10385. &gt;https://doi.org/10.48550/arXiv.2103.10385 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Chen, X., Zhang, N., Xie, X., et al. (2022) KnowPrompt Knowledge-Aware Prompt-tuning with Synergistic Optimization for Relation Extraction. Proceedings of the ACM Web Conference 2022, Virtual, 25-29 April 2022, 2778-2788. &gt;https://doi.org/10.1145/3485447.3511998 
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref21">
    <label>21</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Cho, K., van Merrienboer, B., Gulcehre, C., et al. (2014) Learning Phrase Representations Using RNNEncoder-Decoder for Statistical Machine Translation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, 25-29 October 2014, 1724-1734.
    </mixed-citation>
   </ref>
   <ref id="scirp.142343-ref22">
    <label>22</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Gao, T., Yao, X. and Chen, D. (2021) SimCSE: Simple Contrastive Learning of Sentence Embeddings. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Punta Cana, 7-11 November 2021, 6894-6910. &gt;https://doi.org/10.18653/v1/2021.emnlp-main.552
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>