Method, system and equipment for generating novelty search points for retrieval based on cooperation of large and small models
Through the method of collaborative model, new search points are automatically generated, which solves the problem that new search relies on manual construction of search methods in the existing technology, and improves the integrity of search results and the accuracy of innovative assessment.
Patent Information
- Application Number
- CN202410892234.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The existing search methods for new search rely on manual construction of search methods, which is difficult to effectively reflect complex relationships, resulting in incomplete search results and increasing labor costs and waste of scientific research resources.
Using a method based on size and model collaboration, keywords are extracted through large models and new point search text is generated from small models, and quality evaluation and rewriting is combined with evaluation classifiers to achieve automated new point search generation.
It realizes automatic generation of controllable new search points under human-computer interaction, reduces labor costs, and improves the integrity of search results and the accuracy of innovative assessment.
Smart Images

Figure CN118964542A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and relates to a method, system and device for generating new query points in information retrieval, and specifically to a method, system and device for generating new query points in information retrieval based on collaboration of large and small models. Background Art
[0002] Novelty search has always been an important link in the iterative development process of scientific research and technology, and an important link in my country's science and technology management and evaluation. Based on literature research, it examines the novelty of the target project through intelligence analysis and produces a detailed summary report. Therefore, novelty search is a very tedious and complicated task, involving many technical points. If the search is not complete enough and the technical aspects and levels involved in the target project are not systematically retrieved, it is easy to obtain biased novelty search reports, which will affect the innovation and development of the target project, and then lead to a waste of scientific research resources. Therefore, in the context of human-computer interaction, how to design a method to automatically, controllably, completely and accurately generate novelty search points according to the user's novelty search needs has great application value and broad development prospects.
[0003] The existing novelty search and retrieval methods are mainly divided into two steps. The main search methods include subject search and classification search. Subject search is the main way to determine the search terms. It uses words or phrases that can reflect the content and characteristics of the novelty search target project as search terms to search for relevant documents in the database. Classification search is to continue searching in the database according to the categories of things in the novelty search target project. Classification search helps to classify the search objects. After determining the search terms through certain methods, it is necessary to construct a search formula according to the novelty search target. The general search formula is mainly composed of search terms and corresponding position operators and logical operators, which are used to define the scope of the novelty search project and control the detection accuracy. Therefore, novelty search personnel often need to continuously select search terms and construct search formulas for retrieval to ensure that the novelty search results are not misdetected or missed as much as possible. However, the search formula composed of position operators, logical operators, and search terms lacks the ability to express the novelty search target and is difficult to reflect more complex relationships. The novelty search point provides a semantic basis for the construction of the search formula, but the construction of the novelty search point (search formula) in the novelty search still relies on manual labor to a certain extent, which increases the labor cost of the novelty search. Therefore, based on the integration of existing research results and the analysis of related work on novelty point generation technology, a controllable novelty point generation architecture based on human-computer interaction is constructed to explore the feasibility of the generation method in the automatic generation of novelty points, which has important theoretical significance and practical value. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method, system and device for generating novelty points for retrieval based on collaboration between large and small models.
[0005] The first aspect of the present invention provides a method for generating novelty points for retrieval based on collaboration between large and small models, comprising the following steps:
[0006] Step 1: Input the technical background text and requirement prompts for extracting keywords, wherein the requirement prompts include the categories or features of the novelty search core words to be extracted;
[0007] Step 2: Extract the search key words from the technical background text using the big model according to the demand prompts;
[0008] Step 3: Filter the novelty search core words and use the small model to generate novelty search point text for the retained core words;
[0009] Step 4: Use the evaluation classifier to classify and evaluate the generated novelty search point text; the novelty search point text that does not meet the requirements is rewritten by the large model according to the prompt information;
[0010] Step 5: Generate search point text that meets the requirements.
[0011] Preferably, the requirement prompt described in step 1 is used to guide the large model to generate novelty search point central words, including allowing the large model to recommend corresponding novelty search point central words based on categories or features retrieved from similar cases.
[0012] Preferably, the large model in step 2 is composed of an encoding layer, a plurality of transformer layers and an output layer;
[0013] The encoding layer is a linear neural network, which is used to convert the vocabulary unit sequence number into a high-dimensional continuous vector representation;
[0014] The plurality of transformer layers are composed of a preset layer of transformer modules; the transformer module is composed of a mask-based multi-head self-attention mechanism module, a first normalization module, a forward propagation module and a second normalization module connected in series; wherein the output of the mask-based multi-head self-attention mechanism module and the original input are input into the first normalization module after undergoing a ⊕ operation, and the output of the forward propagation module and the output of the first normalization module are input into the second normalization module after undergoing a ⊕ operation; the ⊕ operation is an element-by-element addition operation;
[0015] The output layer is a fully connected neural network.
[0016] Preferably, the small model in step 3 is composed of a coding layer, a plurality of GLMBlock layers and an output layer;
[0017] The encoding layer is a linear neural network, which is used to convert the vocabulary unit sequence number into a high-dimensional continuous vector representation;
[0018] The several GLMBlock layers are composed of a stack of preset layers of GLMBlock modules; the GLMBlock module is composed of a first RMS normalization module, an attention module, a second RMS normalization module and an MLP module; the first RMS normalization module performs pre-normalization on the input vector of the GLMBlock module, and its output is input into the attention module, the attention module performs a contextual attention operation on the input vector, and the operation result is subjected to a residual connection operation with the input vector that has not been pre-normalized, the second RMS normalization module performs post-normalization on the residual connection operation result vector of the attention module, and then inputs it into the MLP module; the output vector of the MLP module and the residual connection operation result vector of the attention module are further subjected to a residual connection operation, and then output;
[0019] The output layer is a fully connected neural network.
[0020] Preferably, the training corpus of the small model in step 3 consists of input text and output text; the input text comes from the central words and technical background text extracted by the large model based on the existing novelty search points; the output text is the novelty search point.
[0021] Preferably, the evaluation classifier in step 4 adopts a BERT-CNN architecture, which is composed of a BERT layer and a convolutional neural network (CNN) layer connected in series, and the input is the technical background text and the novelty search point text generated therefrom; the BERT layer passes the CLS vector of the BERT layer classification head to the classifier Classifier to obtain a classification of whether the novelty search point information is complete; the convolutional neural network (CNN) layer only connects the novelty search point text part through a mask, which is used to evaluate the quality of the generated novelty search point text, and the output is a multi-label vector, each dimension of which represents a different evaluation aspect.
[0022] Preferably, the evaluation classifier in step 4 is a trained evaluation classifier; during training, pseudo corpus data is first constructed to train the evaluation classifier; the pseudo corpus data is based on abstract data of papers in the field, with complete abstracts serving as positive sample data and incomplete or modified abstracts serving as negative sample data.
[0023] The second aspect of the present invention provides a system for generating novelty points for retrieval based on collaboration between large and small models, comprising the following modules:
[0024] An input module, used to input technical background text and requirement prompts for extracting keywords, wherein the requirement prompts include categories or features of novelty search core words to be extracted;
[0025] The novelty search core word extraction module is used to extract novelty search core words from the technical background text using a large model according to the demand prompts;
[0026] A novelty search point text generation module is used to filter novelty search core words and generate novelty search point text for the retained core words using a small model;
[0027] The classification evaluation module is used to classify and evaluate the generated novelty search point text using the evaluation classifier; the novelty search point text that does not meet the requirements is rewritten by the large model according to the prompt information;
[0028] The retrieval module is used to generate search point texts that meet the requirements.
[0029] The third aspect of the present invention provides a device for generating novelty points for retrieval based on collaboration between large and small models, comprising:
[0030] one or more processors;
[0031] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating new search points for retrieval based on the collaboration of large and small models.
[0032] A fourth aspect of the present invention provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of generating novelty points for retrieval based on collaboration between large and small models.
[0033] Compared with the prior art, the beneficial effects of the present invention include:
[0034] (1) The present invention proposes a novelty point generation technology based on the collaboration of large and small models, which adopts the method of large model extraction combined with small model generation to overcome the defects of hallucination errors and other defects that may be caused by large models, realize controllable text generation under human-computer interaction, and complete the automatic generation of retrieval novelty points for target projects;
[0035] (2) The present invention combines the extraction and rewriting capabilities of the large model with the subdivided domain generation capabilities of the small model to achieve controllable novelty search point text generation under human-computer interaction, better understand and adapt to the user's novelty search needs, reduce the cost of manually constructing novelty search points, and improve the integrity of novelty search results;
[0036] (3) The present invention utilizes the implicit knowledge graph within the large model to extend knowledge based on the user's novelty search needs, which helps to mine multi-level related novelty search information, expand the scope of novelty search, and improve the innovation assessment work. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The technical solution of the present invention is further described below using embodiments and specific implementation methods. In addition, in the process of describing the technical solution, some drawings are also used. For those skilled in the art, other drawings and the intention of the present invention can also be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of a method according to an embodiment of the present invention;
[0039] Figure 2 is a flow chart of a method according to an embodiment of the present invention;
[0040] Figure 3 This is a large model architecture diagram of an embodiment of the present invention;
[0041] Figure 4 This is a diagram of the transformer module architecture in a large model according to an embodiment of the present invention;
[0042] Figure 5 A diagram of a small model architecture of an embodiment of the present invention;
[0043] Figure 6 4 is a diagram of the evaluation classifier architecture of an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0045] This embodiment analyzes the inherent defects in the field of novelty search and the characteristics of large models in the field of deep learning, and combines the controllable text generation technology of human-computer interaction to develop a novelty search point generation technology based on the collaboration of large and small models. Under the guidance of user prompts, the large model extracts novelty search keywords in the target technical background text in a faceted manner, and after user filtering, the model fine-tuned with special corpus generates novelty search points according to the search keywords selected by the user; in addition, the solution also builds a novelty search point quality assessment classifier to rewrite novelty search points with unqualified quality.
[0046] Please see Figure 1 and Figure 2 This embodiment provides a method for generating novelty points for retrieval based on collaboration between large and small models, comprising the following steps:
[0047] Step 1: Input the technical background text and requirement prompts for extracting keywords, which include the categories or features of the search core words to be extracted, and let the big model search and recommend based on similar cases;
[0048] In one embodiment, the demand prompt is used to guide the large model to generate novelty search point core words, including allowing the large model to recommend corresponding novelty search point core words based on categories or features retrieved from similar cases.
[0049] Step 2: Based on the requirement prompts, use the big model to extract the novelty search key words from the technical background text in a faceted manner;
[0050] Please see Figure 3 and Figure 4 In one embodiment, the large model consists of an encoding layer, several transformer layers and an output layer;
[0051] The encoding layer is a linear neural network, which is used to convert the vocabulary unit sequence number into a high-dimensional continuous vector representation;
[0052] The plurality of transformer layers are composed of a preset layer of transformer modules; the transformer module is composed of a mask-based multi-head self-attention mechanism module, a first normalization module, a forward propagation module and a second normalization module connected in series; wherein the output of the mask-based multi-head self-attention mechanism module and the original input are input into the first normalization module after undergoing a ⊕ operation, and the output of the forward propagation module and the output of the first normalization module are input into the second normalization module after undergoing a ⊕ operation; the ⊕ operation is an element-by-element addition operation;
[0053] The output layer is a fully connected neural network.
[0054] For example, if a certain power company wants to improve the level of material procurement and supply, it needs to understand the existing technologies in related fields, so it needs to conduct scientific and technological novelty search. According to this method, the first step is to extract the central word. The power company combines the technical background text with the demand prompt and inputs it into the large model. The text input into the large model is "In order to respond to the requirements of the State Grid's intensive material management and improve the level of material management, a certain power company needs to further improve the management level of centralized procurement. While expanding the scope of centralized procurement on the secondary platform, further sorting out the procurement strategies and supply strategies under various material demand characteristics will help further promote the company's intensive material management and achieve the company's material management strategic goals. This project studies the company's existing material demand categories based on the framework of intensive material management, establishes a matching model between influencing factors and strategies, and formulates a unified procurement strategy and supply strategy research plan and implementation method for different material demand category standards. Conduct in-depth research on the current demand characteristics of different materials, establish corresponding unified standard material supply strategies, and establish a set of material demand, planning, procurement methods, contracts, warehousing, and distribution. , on-site service and other standard solutions are applied to the establishment of internal service standards and evaluation systems in enterprises, and a relationship model between power materials and procurement and supply strategies (demand planning, procurement methods, warehousing management, material distribution, etc.) is formed to clarify different supply modes in order to unify and standardize the company's material supply standards and processes. The material procurement and supply strategy matching model, typical material procurement and supply strategy, and information system solidification requirements designed by this project have passed the acceptance of the business department, have been delivered to the system development department, and have completed scientific research. In the next stage, combined with the later system transformation, the relevant results of the project will be implanted into the ERP and e-commerce platforms. From the perspective of improving the level of material procurement and supply, please extract 10 core words from the above text. "The extracted core words are as follows: State Grid, intensive material management, a certain power company, centralized procurement, secondary platform, procurement strategy, supply strategy, material demand characteristics, management level improvement, and supply model.
[0055] Step 3: Filter the novelty search core words and use the fine-tuned GLM2 small model to generate novelty search point text for the retained core words;
[0056] Please see Figure 5 ,In one implementation mode, the small model ,consists of an encoding layer, a number of GLMBlock layers and an output layer;
[0057] The encoding layer is a linear neural network, in which the weight matrix is a trained word embedding matrix;
[0058] The several GLMBlock layers are composed of a stack of preset layers of GLMBlock modules; the GLMBlock module is composed of a first RMS normalization module, an attention module, a second RMS normalization module and an MLP module; the first RMS normalization module performs pre-normalization on the GLMBlock input vector, and its output is input into the attention module, the attention module performs a contextual attention operation on the input vector, and the operation result is subjected to a residual connection operation with the input vector that has not been pre-normalized, the second RMS normalization module performs post-normalization on the residual connection operation result vector of the attention module, and the result is input into the MLP module; the output vector of the MLP module and the output vector of the residual connection operation of the attention module are further subjected to a residual connection operation, and then output;
[0059] The output layer is a fully connected neural network.
[0060] In one embodiment, the training corpus of the small model consists of input text and output text;
[0061] The input text comes from the core words and technical background text extracted by using a large model based on the existing novelty search points; the output text is the novelty search points.
[0062] For example, after obtaining the search center words, the power company selected three center words (centralized procurement, material demand characteristics, and supply mode) and handed them over to the small model ChatGLM3 to generate corresponding search points. The prompt information entered by the user is "Technical background text: In order to respond to the requirements of the State Grid's intensive material management and improve the level of material management, a power company needs to further improve the management level of centralized procurement. Under the condition of expanding the scope of centralized procurement on the secondary platform, further sorting out the procurement strategies and supply strategies under various material demand characteristics will help to further promote the company's intensive material management and achieve the company's material management strategic goals. This project studies the company's existing material demand categories under the framework of intensive material management, establishes a matching model between influencing factors and strategies, and formulates a research plan and implementation plan for unified procurement strategies and supply strategies based on different material demand category standards. Conduct in-depth research on the current demand characteristics of different materials, and establish Establish a material supply strategy with corresponding unified standards, establish a set of standard solutions covering material demand, planning, procurement methods, contracts, warehousing, distribution, on-site services, etc., which will be applied to the establishment of internal service standards and evaluation systems in the enterprise, and form a relationship model between power materials and procurement and supply strategies (demand planning, procurement methods, warehousing management, material distribution, etc.), clarify different supply modes, and unify and standardize the company's material supply standards and processes. The material procurement and supply strategy matching model, typical material procurement and supply strategy, and information system solidification requirements designed by this project have passed the acceptance of the business department, have been delivered to the system development department, and have completed scientific research work. In the next stage, combined with the later system transformation, the relevant results of the project will be implanted into the ERP and e-commerce platforms. Core word 1: centralized procurement; Core word 2: material demand characteristics; Core word 3: supply mode. Please generate a new search point sentence for each core word based on the technical background text, and the new search points obtained are:
[0063] 1. The management level of centralized procurement needs to be further improved;
[0064] 2. Develop a research plan and implementation method for unified procurement and supply strategies based on different material demand category standards;
[0065] 3. Establish a set of standard solutions covering material requirements, planning, procurement methods, contracts, warehousing, distribution, on-site services, etc., which will be used to establish internal service standards and evaluation systems.
[0066] In one implementation, the small model can be continuously learned and updated to understand and handle emerging technical directions and their details. The performance of the current small model is regularly evaluated, and it is asked to try to describe newer technology patents to understand the shortcomings of the small model's capabilities. The small model is trained and updated with the latest patent technology texts, and the performance of the new model is tested and deployed to the overall system.
[0067] Step 4: construct pseudo corpus data to train the evaluation classifier, and use the evaluation classifier to classify and evaluate the generated novelty search point text; the novelty search point text that does not meet the requirements is rewritten by the large model according to the prompt information;
[0068] Please see Figure 6 In one embodiment, the evaluation classifier adopts a BERT-CNN architecture, which is composed of a BERT layer and a convolutional neural network (CNN) layer connected in series. The input is the technical background text and the novelty search point text generated therefrom; the BERT layer passes the CLS vector of the BERT layer classification head to the classifier Classifier to obtain a classification of whether the novelty search point information is complete; the convolutional neural network (CNN) layer only connects the novelty search point text part through a mask to evaluate the quality of the generated novelty search point text, and the output is a multi-label vector, each dimension of which represents a different evaluation aspect.
[0069] In one implementation, in order to evaluate the quality of generated novelty search points, the GPT-4 model is used to extract key sentences from abstracts of papers in the field. The complete key sentences are used as positive sample data, and the key sentences are modified by adding, deleting, modifying, etc. as negative sample data to construct pseudo corpus. The BERT-CNN model is fine-tuned using classification tasks on this data as an evaluation classifier for novelty search point texts. At the same time, the evaluation classifier regularly evaluates its review capabilities and performs update training to ensure the quality of its evaluation and review;
[0070] In one embodiment, a BERT-CNN-based evaluation classifier is used to classify and evaluate the generated novelty search points, and unqualified novelty search point texts are returned to the user, who adjusts the prompts and inputs them into the large model to rewrite the novelty search points.
[0071] For example, if the evaluation classifier believes that the first new search point generated above is unqualified, the system will return the new search point to the power company. The power company will adjust the prompt according to the new search point to "Technical background text: In order to respond to the requirements of the State Grid's intensive material management and improve the level of material management, a certain power company needs to further improve the management level of centralized procurement. Under the condition of expanding the scope of centralized procurement on the secondary platform, further sorting out the procurement strategies and supply strategies under various material demand characteristics will help to further promote the company's intensive material management and achieve the company's material management strategic goals. This project studies the company's existing material demand categories based on the framework of intensive material management, establishes a matching model between influencing factors and strategies, and formulates a unified procurement strategy and supply strategy research plan and implementation method for different material demand category standards. Conduct in-depth research on the current demand characteristics of different materials, and establish corresponding unified standard material supply strategies, establish a set of standard solutions covering material demand, planning, procurement methods, contracts, warehousing, distribution, on-site services, etc., and apply them to enterprises The establishment of internal service standards and evaluation systems in the industry, and the formation of a relationship model between power materials and procurement and supply strategies (demand planning, procurement methods, warehousing management, material distribution, etc.), clarifying different supply modes, in order to unify and standardize the company's material supply standards and processes. The material procurement and supply strategy matching model, typical material procurement and supply strategy, and information system solidification requirements designed by this project have passed the acceptance of the business department, have been delivered to the system development department, and have completed scientific research work. In the next stage, combined with the later system transformation, the project-related results will be implanted into the ERP and e-commerce platforms. Core word: centralized procurement. The original search point text is 'need to further improve the management level of centralized procurement', which does not reflect the details of 'centralized procurement'. Please rewrite the original search point sentence according to the technical background text and the core word, within 20 words", and the rewritten search point is "centralized procurement promotion, responding to the intensive management of the State Grid, optimizing procurement strategies, promoting material intensiveness, achieving management goals, and ensuring supply standards and specifications". The search point text passes the inspection of the evaluation classifier.
[0072] Step 5: Generate search point text that meets the requirements.
[0073] This embodiment also provides a system for generating novelty points for retrieval based on collaboration between large and small models, including the following modules:
[0074] An input module, used to input technical background text and requirement prompts for extracting keywords, wherein the requirement prompts include categories or features of novelty search core words to be extracted;
[0075] The novelty search core word extraction module is used to extract novelty search core words from the technical background text using a large model according to the demand prompts;
[0076] A novelty search point text generation module is used to filter novelty search core words and generate novelty search point text for the retained core words using a small model;
[0077] The classification evaluation module is used to classify and evaluate the generated novelty search point text using the evaluation classifier; the novelty search point text that does not meet the requirements is rewritten by the large model according to the prompt information;
[0078] The retrieval module is used to generate search point texts that meet the requirements.
[0079] This embodiment also provides a device for generating novelty points for retrieval based on collaboration between large and small models, including:
[0080] one or more processors;
[0081] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating new search points for retrieval based on the collaboration of large and small models.
[0082] This embodiment also provides a readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the step of generating novelty points for retrieval based on the collaboration of large and small models is implemented.
[0083] The present invention combines the extraction and rewriting capabilities of a large model with the subdivided domain generation capabilities of a small model to achieve controllable novelty search point text generation under human-computer interaction, better understand and adapt to the novelty search needs of users, reduce the cost of manually constructing novelty search points, and improve the integrity of novelty search results. The method is executed by an electronic device, which can be a server or a computer device, wherein the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0084] It should be understood that the embodiments described above are part of the embodiments of the present invention, rather than all of the embodiments. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be combined with each other arbitrarily to form a feasible technical solution. Such combination is not restricted by the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the protection scope required by the present invention.
[0085] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. A method for generating novelty points for retrieval based on collaboration between large and small models, characterized in that: The following steps are involved: Step 1: Input the technical background text and requirement prompts for extracting keywords, wherein the requirement prompts include the categories or features of the novelty search core words to be extracted; Step 2: Extract the search key words from the technical background text using the big model according to the demand prompts; Step 3: Filter the novelty search core words and use the small model to generate novelty search point text for the retained core words; Step 4: Use the evaluation classifier to classify and evaluate the generated novelty query point text; The large model will rewrite the text of the search point that does not meet the requirements according to the prompt information; Step 5: Generate search point text that meets the requirements.
2. The method for generating novelty points for retrieval based on collaboration of large and small models according to claim 1, characterized in that: The requirement prompt described in step 1 is used to guide the large model to generate novelty search point central words, including allowing the large model to recommend corresponding novelty search point central words based on the categories or features retrieved by similar cases.
3. The method for generating novelty points for retrieval based on collaboration of large and small models according to claim 1, characterized in that: The large model described in step 2 consists of an encoding layer, several transformer layers, and an output layer; The encoding layer is a linear neural network, which is used to convert the vocabulary unit sequence number into a high-dimensional continuous vector representation; The plurality of transformer layers are composed of a preset layer of transformer modules; the transformer module is composed of a mask-based multi-head self-attention mechanism module, a first normalization module, a forward propagation module and a second normalization module connected in series; wherein the output of the mask-based multi-head self-attention mechanism module and the original input are input into the first normalization module after undergoing a ⊕ operation, and the output of the forward propagation module and the output of the first normalization module are input into the second normalization module after undergoing a ⊕ operation; the ⊕ operation is an element-by-element addition operation; The output layer is a fully connected neural network.
4. The method for generating novelty points for retrieval based on collaboration of large and small models according to claim 1, characterized in that: The small model described in step 3 consists of a coding layer, several GLMBlock layers and an output layer; The encoding layer is a linear neural network, in which the weight matrix is a trained word embedding matrix; The several GLMBlock layers are composed of a stack of preset layers of GLMBlock modules; the GLMBlock module is composed of a first RMS normalization module, an attention module, a second RMS normalization module and an MLP module; the first RMS normalization module performs pre-normalization on the input vector of the GLMBlock module, and its output is input into the attention module, the attention module performs a context attention operation on the input vector, and the operation result and the input vector that has not been pre-normalized are subjected to a residual connection operation, the second RMS normalization module performs post-normalization on the residual connection operation result vector of the attention module, and the result is input into the MLP module; the output of the MLP module and the output of the residual connection operation of the attention module are further subjected to residual operation and then output; The output layer is a fully connected neural network.
5. The method for generating novelty points for retrieval based on collaboration of large and small models according to claim 1, characterized in that: The training corpus of the small model in step 3 consists of input text and output text; The input text comes from the core words and technical background text extracted by using a large model based on the existing novelty search points; the output text is the novelty search points.
6. The method for generating novelty points for retrieval based on collaboration of large and small models according to claim 1, characterized in that: The evaluation classifier described in step 4 adopts the BERT-CNN architecture, which is composed of a BERT layer and a convolutional neural network CNN layer connected in series. The input is the technical background text and the novelty search point text generated therefrom; the BERT layer passes the CLS vector of the BERT layer classification head to the classifier Classifier to obtain a classification of whether the novelty search point information is complete; the convolutional neural network CNN layer only connects the novelty search point text part through a mask to evaluate the quality of the generated novelty search point text, and the output is a multi-label vector, each dimension of which represents a different evaluation aspect.
7. The method for generating novelty points for retrieval based on collaboration of large and small models according to any one of claims 1 to 6, characterized in that: The evaluation classifier described in step 4 is a trained evaluation classifier. During training, pseudo corpus data is first constructed to train the evaluation classifier. The pseudo corpus data is based on abstract data of papers in the field, with complete abstracts serving as positive sample data and incomplete or modified abstracts serving as negative sample data.
8. A system for generating new search points for retrieval based on collaboration between large and small models, characterized in that: Includes the following modules: An input module, used to input technical background text and requirement prompts for extracting keywords, wherein the requirement prompts include categories or features of novelty search core words to be extracted; The novelty search core word extraction module is used to extract novelty search core words from the technical background text using a large model according to the demand prompts; A novelty search point text generation module is used to filter novelty search core words and generate novelty search point text for the retained core words using a small model; A classification evaluation module is used to classify and evaluate the generated novelty search point text using an evaluation classifier; The large model will rewrite the text of the search point that does not meet the requirements according to the prompt information; The retrieval module is used to generate search point texts that meet the requirements.
9. A device for generating novelty points for retrieval based on collaboration between large and small models, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method for generating new search points for retrieval based on collaboration of large and small models as described in any one of claims 1 to 7.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of generating novelty points for retrieval based on collaboration between large and small models according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Automatic scientific and technological novelty search method and system
CN115344719A
Attribute-enhanced text generation method, storage medium and terminal equipment
CN117634499A
Reordering method and device for improving retrieval performance of AI large language model
CN117725183A
Cited By
Intelligent road maintenance decision-making method and system based on cooperation of large and small models
CN122413359A
Highway intelligent maintenance decision-making method and system based on size model cooperation
CN122413359B
