Term-level query expansion method based on collaborative enhancement

By combining the generative relevance feedback and pseudo-relevance feedback of the large language model, collaboratively enhanced relevance feedback is obtained, and the external knowledge base is used to significantly improve the query expansion word relevance and diversity of the information retrieval system, solving the corpus problems in the existing technology. The problem of insufficient relevance of search results caused by limited knowledge and low document quality.

CN118467708BActive Publication Date: 2024-09-10DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410924102.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-10
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

When the existing information retrieval system has limited corpus knowledge or low document quality, the pseudo-relevance feedback technology is difficult to identify enough new keywords, resulting in insufficient relevance of the retrieval results, and the inability to consider query and expansion from a deep semantic perspective. The relevancy of words leads to omissions and irrelevance of search results.

Method used

The term-level query expansion method based on collaborative enhancement is adopted, and the collaborative enhancement related feedback with richer semantics is obtained by combining the generative relevant feedback and pseudo-relevant feedback of the large language model, and the external vector knowledge base is used to obtain collaborative enhanced expansion words. Combined with the generative ranking model, the relevance and diversity of query expansion words are optimized.

Benefits of technology

Significantly improves the relevance and diversity of query expansion words, provides more accurate query expansion results, improves the quality of information retrieval, and avoids the insufficiency of pseudo-relevance feedback, especially when the corpus coverage is insufficient or the document quality is low .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467708B
    Figure CN118467708B
Patent Text Reader

Abstract

The present invention provides a term-level query expansion method based on collaborative enhancement, which belongs to the fields of information technology and artificial intelligence. The present invention obtains collaboratively enhanced relevant feedback with richer semantic information by using a generative and retrieval method of zero-sample prompts, and obtains query expansion terms that are more relevant to the query based on the same collaborative enhancement method; the present invention proves the effectiveness of these words as query expansion terms, and compared with the method of only pseudo-related documents, the query expansion terms obtained by the present invention are richer and more diverse; after obtaining a high-quality query expansion term list, an expansion term ranking model based on a general meaning thousand questions language model is developed to finely sort the query expansion term list to obtain a query expansion term list with a more accurate relevance ranking, which is used in the query expansion framework of the query end in the information retrieval pipeline, significantly improving the performance of the retrieval algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the fields of information technology and artificial intelligence, and relates to a term-level query expansion method based on collaborative enhancement. Background Art

[0002] Large language models represented by ChatGPT and GPT-4 are changing the processing mode of natural language processing tasks from discriminative to generative by using their powerful text understanding, generation and reasoning capabilities. Information retrieval, as a typical representative of natural language processing tasks, usually completes the user's retrieval needs by splicing multiple pipeline modules. The retrieval end often considers paragraph sorting and paragraph re-ordering tasks, while the query end considers query expansion and query extension tasks.

[0003] Query expansion is one of the classic techniques for improving the quality of information retrieval. It is widely used in a variety of search engines. Its goal is to reduce the lexical differences between queries and documents, so it is particularly suitable for sparse retrieval information retrieval systems. Query expansion mainly includes query rewriting, query expansion and other technologies, such as rewriting queries based on relevant feedback, or introducing external resources to expand queries from the perspective of query terms. Miller et al. introduced WordNet as a lexical resource in "WordNet: a lexical database for English", and Lin et al. introduced social annotations in social media as query expansion terms in "Social annotation in query expansion: a machine learning approach", which can provide more semantically rich term-level co-occurrence features. However, the external lexical resources introduced in this way are limited by the knowledge content of the corpus, and because the expansion word selection method is based on word frequency statistics, it is impossible to consider the relevance of the expansion word to the query from a deep semantic perspective.

[0004] Pseudo-Relevance Feedback (PRF) is an automated information retrieval technique used to improve the accuracy and relevance of query results. It is an unsupervised method that does not rely on user feedback, but instead automatically generates better queries by leveraging the results of the initial query. However, PRF is limited by a corpus of limited knowledge. If the corpus does not contain enough relevant documents, PRF cannot identify enough new keywords, and thus cannot effectively improve the relevance of the retrieval results. And when the quality of the documents contained in the corpus is not high, PRF may identify some keywords that are not relevant to the query, thereby reducing the relevance of the retrieval results. There is also a problem of knowledge blind spots. When the corpus cannot cover all the topics involved in the query, PRF cannot identify keywords related to these topics, resulting in omissions in the retrieval results.

[0005] Based on this, the present invention proposes a term-level query expansion method based on collaborative enhancement, which obtains collaboratively enhanced relevant feedback with richer semantic information by using a generative and retrieval method of zero-sample prompts, and obtains query expansion terms that are more relevant to the query based on the same collaborative enhancement method; the present invention proves the effectiveness of these words as query expansion terms, and compared with the method of only pseudo-related documents, the query expansion terms obtained by the present invention are richer and more diverse; after obtaining a high-quality query expansion term list, an expansion term ranking model based on the Tongyi Qianwen large language model is developed to finely rank the query expansion term list to obtain a query expansion term list with a more accurate relevance ranking, which is then used in the query expansion framework at the query end of the information retrieval pipeline. Summary of the invention

[0006] Aiming at the query expansion and re-ranking problems in information retrieval, the present invention proposes a term-level query expansion method based on collaborative enhancement. The method uses the Tongyi Qianwen large language model as the basic model, and uses LoRA fine-tuning training to enable the large language model to obtain generative relevant feedback and combine pseudo-relevant feedback to form collaboratively enhanced relevant feedback (Collaborative-Augumented Relevant Feedback, CARF); at the same time, generative expansion words are obtained in a fine-tuning manner, and external samples are obtained in combination with an external vector knowledge base to form collaboratively enhanced expansion words (Collaborative-Augumented Term, CAT). A generative expansion word ranking model based on the Tongyi Qianwen large language model is developed. Starting from the prompt instruction tuning, the model obtains the relevance score of the expansion word and the original query in a generative manner. Finally, the expansion words are re-ranked by sliding the sorting window, and the top P expansion words are selected as the result.

[0007] The technical solution of the present invention is:

[0008] A term-level query expansion method based on collaborative enhancement includes the following steps:

[0009] S1. Obtaining pseudo-relevant feedback document set through preliminary retrieval

[0010] Enter a raw query , in the corpus Conduct a preliminary search to obtain relevant documents, forming a pseudo-relevant feedback document set ,in is the number of pseudo-relevant feedback documents.

[0011] S2. Obtaining a Generative Relevant Feedback Document Set through a Large Language Model

[0012] S2.1. Use a series of queries (user questions or search terms) and their corresponding documents (text containing relevant information) to form a query-document pair dataset, and construct the query-document pair dataset into an instruction dataset that conforms to the instruction fine-tuning format specification; then, use the instruction dataset to fine-tune the Qwen1.5-7B large model using the efficient supervised fine-tuning algorithm LoRA, set the batch size to 8, and the learning rate to 5e-5. The fine-tuned model is called the Qwen4RF model. Compared with ordinary large models, Qwen4RF has better performance in query expansion tasks.

[0013] S2.2. Original query Input Qwen4RF model to generate relevant documents in Web long text format, and these relevant documents form a series of original query Generative relevance feedback document set with high semantic relevance ,in Represents the number of documents in the generated relevance feedback document set.

[0014] S3, obtain the Compared with the one obtained in S2 Splicing gets synergistically enhanced related feedback ,in .

[0015] S4. Obtaining synergistic enhancement extension words

[0016] S4.1. Obtaining search-formula expansion terms

[0017] A document-keyword dataset is constructed, which includes a document collection and a corresponding keyword collection. The keywords corresponding to each document are extracted from the document and can represent the main content or theme of the document. The document-keyword dataset is constructed as an instruction dataset that meets the fine-tuning specification. The BGE-Large-En model is used to perform vector embedding processing on each document and its corresponding keywords in the instruction dataset to obtain a vector representation of each document and its keywords. The FAISS library developed by Facebook AI, which is specifically used for efficient similarity search and vector database management, is then used to store the generated vector embeddings in the FAISS library to build a vector index database.

[0018] for Each document in , using BGE-Large-En to obtain document embedding; in the vector index database built using FAISS, the approximate nearest neighbor search algorithm (ANNS) is used to retrieve document embeddings. External documents, aggregate Keywords of external documents to obtain the search query expansion word list ;in .

[0019] S4.2. Obtaining Generative Expansion Words

[0020] Using the instruction data set in S4.1, the Qwen1.5-1.8B large model base is fine-tuned using LoRA, with Batchsize set to 4 and learning rate set to 2e-5. The fine-tuned Qwen1.5-1.8B model performs better than the ordinary large model in document keyword extraction tasks; using the fine-tuned model Each document in Extract keywords and get Keywords, thereby obtaining a list of generated expansion words ,in Because the generation of large language models is random and not fixed.

[0021] S4.3. and Concatenate to get a single document List of extended words , of which there are For a query, the set of expanded words obtained through collaborative enhancement is , the number of expanded words in the set is .

[0022] S5. Extended word sorting using a large language model

[0023] S5.1. Building a Dataset

[0024] Construct a query-expanded word dataset containing a series of queries and corresponding expanded word lists, and use the weight of each query expanded word as the basis for ranking to form the goal of ranking learning .

[0025] S5.2. Training the extended word ranking model

[0026] S5.2.1. Select the Qwen1.5-1.8B model as the base ranking model, construct a zero-shot context learning instruction that includes the query and candidate words, and requires the model to be evaluated based on relevance, specificity, and potential for improving the query.

[0027] S5.2.2. For each query in the dataset and obtained by synergistic enhancement Candidate expansion words , and the correct sorting result is recorded as ,in is an expansion word The Qwen1.5-1.8B model is recorded as ,in is the parameter of the Qwen1.5-1.8B model. The basic ranking model determines the relationship between each candidate expansion word in the expansion word list and the query according to the zero-shot context learning instruction. Whether it can be used as a valuable extension word, the probability of the model generating the Yes Token is used as the probability of the extension word Rating , as shown in the following formula, get each expanded word Rating Then, sort them according to the size of the score:

[0028]

[0029] in, Represents the original query The number of tokens in; It means The tth Token, Indicates training instructions.

[0030] Using S5.1 As the optimization target of ranking learning, the RankNet loss function is used to optimize the basic ranking model. The formula is as follows:

[0031]

[0032]

[0033] in, is the RankNet loss, which is used to measure the ranking error of the model; is the indicator function.

[0034] Finally, we obtain a pre-trained Qwen1.5-1.8B model, namely the extended word ranking model, called the Qwen4Rank model.

[0035] S5.3. Sliding sort window

[0036] For inquiries Acquired through collaborative enhancement The sliding sorting window is used to re-rank candidate expansion words from the back to the front. The result after sorting is that the candidate words with higher scores are ranked higher. Specifically, two hyper parameters need to be determined in advance for the sliding sorting window, namely the window length w and the step length s. Then, the Qwen4Rank model is used to re-rank the candidate expansion words from the back to the front. To Sort by the expanded words, and then by is the step length sliding sort window, To The extended words are sorted, and the sliding process is repeated until the 1st to wth extended words complete the re-sorting task. This sorting process will be repeated Second-rate.

[0037] S5.4. Select the hyperparameter P and select the first P expanded words after the sliding sort. The query expansion results obtained.

[0038] The present invention proposes a query expansion method for query expansion and re-ranking tasks, and demonstrates its significant effect. The specific beneficial effects are as follows:

[0039] 1) Introducing the generation and retrieval collaborative enhancement method: The present invention proposes a term-level query expansion method based on collaborative enhancement, which generates query expansion terms through generation and retrieval collaborative enhancement, thereby significantly improving the relevance and diversity of query expansion terms.

[0040] 2) Application of large language model in query term re-ranking task: This paper introduces large language model into the query expansion term re-ranking task and proposes a generative ranking method based on large language model. This method can generate expansion terms that are highly relevant to the query. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Capture processes for Collaboratively Enhanced Relevant Feedback (CARF).

[0042] Figure 2 Acquisition process for collaboratively enhanced extended terms (CAT).

[0043] Figure 3 Sorting example for sliding sort window. DETAILED DESCRIPTION

[0044] The following is a detailed description of the embodiments of the present invention in conjunction with the accompanying drawings and technical solutions.

[0045] The embodiment of the present invention proposes a term-level query expansion method based on collaborative enhancement, comprising the following steps:

[0046] S1. Obtaining pseudo-relevant feedback document set through preliminary retrieval

[0047] Enter a raw query , using the BM25 retrieval algorithm to search for Conduct a preliminary search to obtain relevant documents, forming a pseudo-relevant feedback document set ,in is the number of pseudo-relevant feedback documents.

[0048] S2. Obtaining a Generative Relevant Feedback Document Set through a Large Language Model

[0049] S2.1. Generate a dataset using pseudo documents based on the MS MARCO dataset and construct it into an instruction dataset containing 502939 data items that conforms to the instruction fine-tuning format specification. Then, use this instruction dataset to fine-tune the Qwen1.5-7B large model using the efficient supervised fine-tuning algorithm LoRA. Set the batch size to 8 and the learning rate to 5e-5. The fine-tuned model is called the Qwen4RF model.

[0050] S2.2. Original query Input Qwen4RF model to generate relevant documents in Web long text format, and these relevant documents form a series of original query Generative relevance feedback document set with high semantic relevance ,in Represents the number of documents in the generated relevance feedback document set.

[0051] S3, obtain the Compared with the one obtained in S2 Splicing gets synergistically enhanced related feedback ,in .

[0052] S4. Obtaining synergistic enhancement extension words

[0053] S4.1. Obtaining search-formula expansion terms

[0054] We chose to use the keyword extraction dataset OpenKP from the MSMARCO series. By cleaning and combing the data, we constructed instruction data that met the fine-tuning specifications, and finally obtained a training set containing 134,894 documents. We used the BGE-Large-En model to perform vector embedding processing on each document and its corresponding keywords in the training set to obtain a vector representation of each document and its keywords. We then used the FAISS library developed by Facebook AI to store the generated vector embeddings in the FAISS library to build an efficient vector index database.

[0055] for Each document in , using BGE-Large-En to obtain document embedding; in the vector index database built using FAISS, the approximate nearest neighbor search algorithm (ANNS) is used to retrieve document embeddings. External documents, aggregate Keywords of external documents to obtain the search query expansion word list ;in .

[0056] S4.2. Obtaining Generative Expansion Words

[0057] Using the OpenKP training set processed in S4.1, the Qwen1.5-1.8B large model base was fine-tuned using LoRA, with the batch size set to 4 and the learning rate set to 2e-5; Each document in Extract keywords and get Keywords, thereby obtaining a list of generated expansion words ,in Because the generation of large language models is random and not fixed.

[0058] S4.3. and Concatenate to get a single document List of extended words , of which there are For a query, the set of expanded words obtained through collaborative enhancement is , the number of expanded words in the set is .

[0059] S5. Extended word sorting using a large language model

[0060] S5.1. Building a Dataset

[0061] The delicious dataset is selected, and the title is used as the original query, the tags annotated by social media users are used as query expansion terms, and the weight of each query expansion term is used as the basis for ranking to form the goal of ranking learning. After screening, a total of 26,911 queries were obtained, each of which contained a candidate expansion word list consisting of at most 10 tags.

[0062] S5.2. Training the extended word ranking model

[0063] S5.2.1. Select the Qwen1.5-1.8B model as the base ranking model, construct a zero-shot context learning instruction that includes the query and candidate words, and requires the model to be evaluated based on relevance, specificity, and potential for improving the query.

[0064] S5.2.2. For each query in the dataset and obtained by synergistic enhancement Candidate expansion words , and the correct sorting result is recorded as ,in is an expansion word The Qwen1.5-1.8B model is recorded as ,in is the parameter of Qwen1.5-1.8B model. The basic ranking model determines the correspondence between each candidate expansion word in the expansion word list and the query according to the following instructions. Whether it can be used as a valuable extension word, the instructions are:

[0065] Analyze whether the candidate expansion words are suitable for the given query;

[0066] Query: {query}

[0067] Candidate expansion term: {term}

[0068] Please consider the following factors to justify your assessment: relevance, specificity, potential to refine the query without introducing irrelevant content;

[0069] Given these considerations, do you think this candidate expansion will add value to the query?

[0070] The probability of the model generating the Yes Token is used as the probability of the extended word Rating , as shown in the following formula, get each expanded word Rating Then, sort them according to the size of the score:

[0071]

[0072] in, Represents the original query The number of tokens in; It means The tth Token, Indicates training instructions.

[0073] Using S5.1 As the optimization target of ranking learning, the RankNet loss function is used to optimize the basic ranking model. The formula is as follows:

[0074]

[0075]

[0076] in, is the RankNet loss, which is used to measure the ranking error of the model; is the indicator function.

[0077] Finally, we obtain a pre-trained Qwen1.5-1.8B model, which is an extended ranking model and is called the Qwen4Rank model.

[0078] S5.3. Sliding sort window

[0079] For inquiries Acquired through collaborative enhancement The sliding sorting window is used to re-rank candidate expansion words from the back to the front. The result after sorting is that the candidate words with higher scores are ranked higher. Specifically, two hyper parameters need to be determined in advance for the sliding sorting window, namely the window length w and the step length s. Then, the Qwen4Rank model is used to re-rank the candidate expansion words from the back to the front. To Sort by the expanded words, and then by is the step length sliding sort window, To The extended words are sorted, and the sliding process is repeated until the 1st to wth extended words complete the re-sorting task. This sorting process will be repeated Second-rate.

[0080] S5.4, select the hyperparameter 10, select the first 10 expanded words after the sliding sort, that is, finally according to the original query The query expansion results obtained.

[0081] This embodiment conducts experiments on three paragraph re-ranking datasets, including MS-MARCO, TREC DL2019, and TREC DL 2020. MRR@10, nDCG@10, R@50, and R@1K on these three datasets are mainly considered as evaluation indicators. The paragraph re-ranking training set of MS-MARCO contains about 500K pairs of queries and related documents, and the development set and test set each contain about 6900 queries. Considering that the relevant labels of the test efficiency and the test set are not public, 65 queries in the development set are randomly selected for experiments. TREC is a benchmark dataset widely used in information retrieval research. The test sets of the deep learning track 2019 and 2020 are selected for experiments, of which TREC DL 2019 contains 43 queries and TREC DL 2020 contains 54 queries.

[0082] In the experiment, in order to simplify the writing, the method of the present invention is named CAGE. In order to analyze the expansion effect of CAGE on the first-stage retrieval algorithm, for lexical retrieval, BM25 and DPH are selected as the baseline method; for neural augmentation retrieval, DeepCT is selected as the baseline method; for sequence-to-sequence language model-based retrieval, doc2query is selected as the baseline method. At the same time, the effects of CAGE and other query expansion methods are compared. For the PRF-based query expansion method, RM3, Bo1 and KL are selected. Table 1 shows the experimental results:

[0083] Table 1 Experimental results

[0084]

[0085] This table lists the results of different first-stage retrieval algorithms and different extended query algorithms acting on them. When the CAGE algorithm is the best, it is bolded; when the performance of the CAGE algorithm ranks second, it is underlined; special symbols , indicating that when all query expansion methods have no positive impact on the performance of the first-stage retrieval algorithm, this algorithm can best alleviate the performance degradation phenomenon.

[0086] According to the experimental results, for the first-stage retrieval algorithm, the retrieval performance after using the CAGE query expansion method can be maintained or improved in almost all indicators. Among them, the MRR@10 and nDCG@10 indicators acting on the term-level retrieval algorithms BM25 and DPH in MS MARCO dev increased by more than 10%. This may be because the CAGE algorithm based on the coordinated enhancement of generation and retrieval can generate query terms with stronger semantic relevance to the original query and less ambiguity. At the same time, it uses a large language model with stronger semantic understanding ability to sort the expanded terms, optimizing the ranking distribution of query terms.

[0087] Compared with other query expansion algorithms, CAGE can improve the MRR@10 index of all first-stage retrieval algorithms more. In the MS MARCO dev dataset, other query expansion algorithms have a negative impact on the MRR@10 and nDCG@10 algorithms, while CAGE has a significant positive improvement on these indicators. This may be because query expansion methods based on word frequency statistics such as RM3 and Bo1 do not consider the semantic information of query terms enough, and will introduce more expansion terms that are not related to the original query semantics.

[0088] The present invention proposes a term-level query expansion method based on collaborative enhancement, aiming to improve search efficiency and provide more accurate search results. Unlike traditional methods that rely only on pseudo-relevance feedback, this method uses a large language model for efficient supervised fine-tuning to generate generative relevance feedback, and combines it with pseudo-relevance feedback to form collaboratively enhanced relevance feedback. At the same time, by fine-tuning the generation of extended words and combining it with the retrieval of an external knowledge base, the collaboratively enhanced extended words are obtained, which significantly improves the performance of the retrieval algorithm.

[0089] The above-described embodiments of the present invention do not constitute a limitation on the protection scope of the present invention. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A term-level query expansion method based on collaborative enhancement, characterized in that: The method comprises the following steps: S1, obtain pseudo-relevant feedback document set through preliminary retrieval; Enter a raw query , in the corpus Conduct a preliminary search to obtain relevant documents, forming a pseudo-relevant feedback document set ,in is the number of pseudo-relevant feedback documents; S2, obtain generative relevant feedback document set through large language model; For the original query , train a large language model through LoRA fine-tuning to obtain a generative relevant feedback document set ,in Represents the number of documents in the generated relevance feedback document set; S3, obtain the Compared with the one obtained in S2 Splicing gets synergistically enhanced related feedback ,in ; S4, obtaining synergistic enhancement expansion words; for Each document in , respectively obtain the search query expansion words through the external vector knowledge base, and obtain the generative expansion words through the LoRA fine-tuning large language model, and the search query expansion words and the generative expansion words together constitute the synergistic enhancement expansion words; wherein ; S5, using a large language model to sort extended words; The extended word ranking model based on the Tongyi Qianwen large language model is trained, and the synergistically enhanced extended words and the original query are obtained in a generative manner. relevance score; reorder the collaborative enhancement expansion words by means of a sliding sorting window, and select the first P expansion words as the query expansion results.

2. A term-level query expansion method based on collaborative enhancement according to claim 1, characterized in that: In S2, the process of obtaining the generated relevant feedback document set is as follows: S2.

1. Use a series of queries and their corresponding documents to form a query-document pair dataset, and construct the query-document pair dataset into an instruction dataset that conforms to the instruction fine-tuning format specification; then, use the instruction dataset to fine-tune the Qwen1.5-7B large model using the LoRA algorithm, set the batch size to 8, and the learning rate to 5e-5. The fine-tuned model is called the Qwen4RF model; S2.

2. Original query Input the Qwen4RF model to generate relevant documents in the Web long text format, and these relevant documents form a generative relevant feedback document set .

3. A term-level query expansion method based on collaborative enhancement according to claim 2, characterized in that: In S2.1, the query-document pair dataset is a pseudo document generation dataset constructed based on the MS MARCO dataset.

4. A term-level query expansion method based on collaborative enhancement according to any one of claims 1 to 3, characterized in that: In S4, the method for obtaining the search formula expansion word is: Construct a document-keyword dataset containing a document set and a corresponding keyword set, where the keyword corresponding to each document is extracted from the document and can represent the main content or theme of the document, and construct the document-keyword dataset into an instruction dataset that meets the fine-tuning specification; use the BGE-Large-En model to perform vector embedding processing on each document and its corresponding keyword in the instruction dataset to obtain a vector representation of each document and its keyword; store the generated vector embedding in the FAISS library and construct a vector index database; for Each document in , using BGE-Large-En to obtain document embedding; in the vector index database built using FAISS, the approximate nearest neighbor search algorithm is used to retrieve document embeddings External documents, aggregate Keywords of external documents to obtain the search query expansion word list ;in .

5. The term-level query expansion method based on collaborative enhancement according to claim 4, characterized in that: The document-keyword dataset uses the keyword extraction dataset OpenKP in the MSMARCO series.

6. A term-level query expansion method based on collaborative enhancement according to claim 4, characterized in that: In S4, the method for obtaining the generative expansion word is: Using the instruction data set constructed in the process of obtaining the search formula expansion words, the Qwen1.5-1.8B large model base was fine-tuned using LoRA, with the batch size set to 4 and the learning rate set to 2e-5; the fine-tuned model was used to Each document in Extract keywords and get Keywords, thereby obtaining a list of generated expansion words .

7. The term-level query expansion method based on collaborative enhancement according to claim 6, characterized in that: In S4, and Concatenate to get a single document List of extended words , of which there are expansion words; and for a query, the expansion word set obtained through collaborative enhancement , the number of expanded words in the set is .

8. The term-level query expansion method based on collaborative enhancement according to claim 7, characterized in that: The specific method for sorting the extended words in S5 is as follows: S5.

1. Building a Dataset Construct a query-expanded word dataset containing a series of queries and corresponding expanded word lists, and use the weight of each query expanded word as the basis for ranking to form the goal of ranking learning ; S5.

2. Training the extended word ranking model S5.2.

1. Select the Qwen1.5-1.8B model as the base ranking model, construct a zero-shot contextual learning instruction that includes the query and candidate words, and requires the model to be evaluated based on relevance, specificity, and potential for improving the query; S5.2.

2. For each query in the dataset and obtained by synergistic enhancement Candidate expansion words , and the correct sorting result is recorded as ,in is an expansion word Ranking; Qwen1.5-1.8B model is recorded as ,in is the parameter of Qwen1.5-1.8B model; the basic ranking model determines each candidate expansion word in the expansion word list for the query according to the zero-sample context learning instruction Whether it can be used as a valuable extension word, the probability of the model generating the Yes Token is used as the probability of the extension word Rating , as shown in the following formula, get each expanded word Rating Then, sort them according to the size of the score: in, Represents the original query The number of tokens in; It means The tth Token, Indicates training instructions; Using S5.1 As the optimization target of ranking learning, the RankNet loss function is used to optimize the basic ranking model. The formula is as follows: in, is the RankNet loss, which is used to measure the ranking error of the model; is the indicator function; Finally, we get a pre-trained Qwen1.5-1.8B model, which is an extended word ranking model, called the Qwen4Rank model; S5.

3. Sliding sort window Use a sliding sort window to sort from back to front The synergistic enhancement expansion words are re-ranked, and the result after ranking is that the candidate words with higher scores are ranked higher; two hyper parameters are pre-determined for the sliding ranking window, namely, the window length w and the step length s; then the Qwen4Rank model is used to re-rank the first To Sort the extended words, and then slide the sorting window with a step size of s to sort the first To The extended words are sorted, and the sliding process is repeated until the 1st to wth extended words complete the re-sorting task. This sorting process will be repeated Second-rate; S5.

4. Select the hyperparameter P and select the first P expanded words after the sliding sort. The query expansion results obtained.

9. The term-level query expansion method based on collaborative enhancement according to claim 8, characterized in that: In S5.1, the query-expanded word data set selects the delicious data set.