Correlation prediction method, correlation prediction model training method and device, and search system

By constructing a query-item interaction graph and utilizing multi-granularity shared attention, the accuracy problem of relevance prediction in search engines is solved, user intent understanding and fine-grained interaction capture are improved, and more efficient relevance prediction is achieved.

CN117407587BActive Publication Date: 2026-11-24ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311370218.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-11-24
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

Existing search engines suffer from limited generalization ability and significant noise impact in relevance prediction, making it difficult to accurately understand user search intent and capture fine-grained interaction information.

Method used

By constructing a query-item interaction graph, bidirectional behavioral neighbors of the target query and the item are generated. Fine-grained interaction is achieved by utilizing multi-granularity common attention, and relevance is predicted by integrating local and global information.

Benefits of technology

It improves the accuracy of relevance prediction, better understands user intent and captures fine-grained interaction information, and enhances the relevance of search results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117407587B_ABST
    Figure CN117407587B_ABST
Patent Text Reader

Abstract

Embodiments of the present specification provide a relevance prediction method, a relevance prediction model training method and device, and a search system. In the relevance prediction, local embedding representations and global embedding representations of a target query, a target item, a set of item behavior neighbors, and a set of query behavior neighbors are generated via a representation generation layer; and the local embedding representations and the corresponding global embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors are fused via a representation fusion layer. Via a similarity prediction layer, semantic similarity is predicted according to the global embedding representations of the target query and the target item and the respective representation fusion results, and behavior neighbor similarity is predicted according to the global embedding representations of the set of item behavior neighbors and the set of query behavior neighbors and the respective representation fusion results. Then, via a relevance prediction layer, relevance between the target query and the target item is predicted according to the semantic similarity and the behavior neighbor similarity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification generally relate to the field of artificial intelligence, and in particular to correlation prediction methods, correlation prediction model training methods and apparatus, and search systems. Background Technology

[0002] In the age of information overload, search engines are indispensable for internet content platforms. Users can use search engines to efficiently find the content they want from a large number of candidate results. To ensure a good user experience, search engines need to perform relevance prediction modeling to ensure sufficient relevance between queries and presented results (items). Summary of the Invention

[0003] This specification provides a relevance prediction method, a relevance prediction model training method and apparatus, and a search system. In this relevance prediction scheme, bidirectional behavioral neighbors of the target query and target item are obtained based on a query-item interaction graph constructed from historical query-item interaction data. The query behavioral neighbors of the target item reflect semantic preferences, while the item behavioral neighbors of the target query reveal the true query intent. During relevance prediction, multi-granularity common attention is used to perform multi-granularity interactions between the bidirectional behavioral neighbors and the target query / target item. This comprehensively utilizes both local (fine-grained) and global (coarse-grained) information from the bidirectional behavioral neighbors and the target query / target item to learn and predict relevance, thereby improving the accuracy of relevance prediction.

[0004] According to one aspect of an embodiment of this specification, a relevance prediction method for a search engine is provided, comprising: generating local and global embedding representations of a target query, a target item, a set of item behavior neighbors for the target query, and a set of query behavior neighbors for the target item via a representation generation layer of a relevance prediction model; fusing the local embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors with their corresponding global embedding representations via a representation fusion layer of the relevance prediction model; predicting semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results, and predicting behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the set of item behavior neighbors and the set of query behavior neighbors and their respective representation fusion results via a similarity prediction layer of the relevance prediction model; and predicting the relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model.

[0005] Optionally, in one example of the above aspects, generating local and global embedding representations of the target query, target item, the item behavior neighbor set of the target query, and the query behavior neighbor set of the target item via the representation generation layer of the relevance prediction model may include: generating word-segmentation-level embedding representations of the target query, the target item, each item behavior neighbor in the item behavior neighbor set, and each query behavior neighbor in the query behavior neighbor set via the embedding layer in the representation generation layer, wherein the word-segmentation-level embedding representations of the target query and the target item serve as local embedding representations of the target query and the target item; encoding the word-segmentation-level embedding representations of each item behavior neighbor and each query behavior neighbor via the encoder layer in the representation generation layer to obtain local embedding representations of the item behavior neighbor set and the query behavior neighbor set; and pooling the local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set via the pooling layer in the representation generation layer to obtain global embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set.

[0006] Alternatively, in one example of the above aspects, the representation fusion layer is implemented as a common attention layer.

[0007] Optionally, in one example of the above aspects, predicting the relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model may include: performing similarity fusion on the semantic similarity and the behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model to predict the relevance between the target query and the target item.

[0008] Optionally, in one example of the above aspects, for the representation generation layer, the representation fusion layer, and the similarity prediction layer, the relevance prediction model includes a first model structure for processing the target query and the target item, and a second model structure for processing the query behavior neighbor set and the item behavior neighbor set.

[0009] Optionally, in one example of the above aspects, the model training task performed during the training of the correlation prediction model includes a correlation prediction task.

[0010] Optionally, in one example of the above aspects, the model training task performed may further include a first contrastive learning task based on the global embedding representation of the target item and the query behavior neighbor set and / or a second contrastive learning task based on the global embedding representation of the target query and the item behavior neighbor set.

[0011] Optionally, in one example of the above aspects, the model training task performed also includes a mutual learning task based on the semantic similarity prediction results and the behavioral neighbor similarity prediction results.

[0012] Optionally, in one example of the above aspects, the relevance prediction method may further include: obtaining the project behavior neighbor set of the target query and the query behavior neighbor set of the target project based on the query-item interaction graph.

[0013] According to another aspect of the embodiments of this specification, a method for training a relevance prediction model applied to a search engine is provided, comprising: generating local and global embedding representations of a target query, a target item, a set of item behavior neighbors of the target query, and a set of query behavior neighbors of the target item in a training data sample via a representation generation layer of the relevance prediction model; fusing the local embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors with their corresponding global embedding representations via a representation fusion layer of the relevance prediction model; predicting semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results, and predicting behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the set of item behavior neighbors and the set of query behavior neighbors and their respective representation fusion results via a similarity prediction layer of the relevance prediction model; predicting relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity via a relevance prediction layer of the relevance prediction model; and adjusting model parameters of the relevance prediction model based on the relevance prediction results and true relevance labels between the target query and the target item.

[0014] According to another aspect of the embodiments of this specification, a relevance prediction apparatus for a search engine is provided, comprising: a representation generation unit, which generates local and global embedding representations of a target query, a target item, a set of item behavior neighbors of the target query, and a set of query behavior neighbors of the target item via a representation generation layer of a relevance prediction model; a representation fusion unit, which performs representation fusion of the local embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors with their corresponding global embedding representations via a representation fusion layer of the relevance prediction model; a similarity prediction unit, which predicts the semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results, and predicts the behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the set of item behavior neighbors and the set of query behavior neighbors and their respective representation fusion results, via a similarity prediction layer of the relevance prediction model; and a relevance prediction unit, which predicts the relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity, via a relevance prediction layer of the relevance prediction model.

[0015] Optionally, in one example of the above aspects, the representation generation unit includes: an embedding representation generation module, which generates word-level embedding representations of the target query, the target item, each item behavior neighbor in the item behavior neighbor set, and each query behavior neighbor in the query behavior neighbor set via an embedding layer in the representation generation layer, wherein the word-level embedding representations of the target query and the target item serve as local embedding representations of the target query and the target item; an encoding processing module, which encodes the word-level embedding representations of each item behavior neighbor and each query behavior neighbor via an encoder layer in the representation generation layer to obtain local embedding representations of the item behavior neighbor set and the query behavior neighbor set; and a pooling processing module, which performs pooling processing on the local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set via a pooling layer in the representation generation layer to obtain global embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set.

[0016] Optionally, in one example of the above aspects, the relevance prediction unit performs similarity fusion on the semantic similarity and the behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model to predict the relevance between the target query and the target item.

[0017] Optionally, in one example of the above aspects, the relevance prediction device may further include: a behavior neighbor acquisition unit, which acquires the project behavior neighbor set of the target query and the query behavior neighbor set of the target project based on the query-item interaction graph.

[0018] According to another aspect of the embodiments of this specification, an apparatus for training a relevance prediction model applied to a search engine is provided, comprising: a representation generation unit, which generates local and global embedding representations of a target query, a target item, a set of item behavior neighbors of the target query, and a set of query behavior neighbors of the target item in a training data sample via a representation generation layer of the relevance prediction model; a representation fusion unit, which performs representation fusion of the local embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors with their corresponding global embedding representations via the representation fusion layer of the relevance prediction model; and a similarity prediction unit, which, via the similarity prediction layer of the relevance prediction model, calculates the similarity prediction value based on the local embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors. The system includes a target query and a target item, whose global embedding representations and their respective representations are fused to predict the semantic similarity between the target query and the target item; a target query and a target item, whose behavioral neighbor similarity is predicted based on the global embedding representations and their respective representations of the item behavioral neighbor set and the query behavioral neighbor set; a relevance prediction unit, which predicts the relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model; and a model adjustment unit, which adjusts the model parameters of the relevance prediction model based on the relevance prediction results and the true relevance labels between the target query and the target item.

[0019] According to another aspect of the embodiments of this specification, a search engine is provided, including: the relevance prediction device as described above.

[0020] According to another aspect of the embodiments of this specification, a search system is provided, comprising: a search engine as described above; and means as described above for training a relevance prediction model applied to the search engine.

[0021] According to another aspect of the embodiments of this specification, a relevance prediction apparatus for a search engine is provided, comprising: at least one processor; a memory coupled to the at least one processor; and a computer program stored in the memory, wherein the at least one processor executes the computer program to implement the relevance prediction method for a search engine as described above.

[0022] According to another aspect of the embodiments of this specification, an apparatus for training a relevance prediction model for a search engine is provided, comprising: at least one processor; a memory coupled to the at least one processor; and a computer program stored in the memory, wherein the at least one processor executes the computer program to implement the method described above for training a relevance prediction model for a search engine. Attached Figure Description

[0023] A further understanding of the nature and advantages of this specification can be achieved by referring to the following figures. In the figures, similar components or features may have the same reference numerals.

[0024] Figure 1 A schematic diagram of an example architecture of a search system according to an embodiment of this specification is shown.

[0025] Figure 2 An example schematic diagram of a query-item interaction diagram according to an embodiment of this specification is shown.

[0026] Figure 3 An example schematic diagram of a correlation prediction model according to an embodiment of this specification is shown.

[0027] Figure 4 An example flowchart of a relevance prediction method applied to a search engine according to an embodiment of this specification is shown.

[0028] Figure 5 An example schematic diagram of a characterization generation process according to an embodiment of this specification is shown.

[0029] Figure 6 An example flowchart of the training process for a correlation prediction model according to an embodiment of this specification is shown.

[0030] Figure 7 An example schematic diagram of the training process of a correlation prediction model according to an embodiment of this specification is shown.

[0031] Figure 8 An example block diagram of a correlation prediction apparatus according to an embodiment of this specification is shown.

[0032] Figure 9 An example block diagram of a characterization generation unit according to an embodiment of this specification is shown.

[0033] Figure 10 An example block diagram of a correlation prediction model training apparatus according to an embodiment of this specification is shown.

[0034] Figure 11An example schematic diagram of a correlation prediction apparatus based on a computer system according to an embodiment of this specification is shown.

[0035] Figure 12 An example schematic diagram of a computer-based correlation prediction model training apparatus according to an embodiment of this specification is shown. Detailed Implementation

[0036] The subject matter described herein will now be discussed with reference to exemplary embodiments. It should be understood that these embodiments are discussed merely to enable those skilled in the art to better understand and implement the subject matter described herein, and are not intended to limit the scope, applicability, or examples set forth in the claims. The function and arrangement of the elements discussed may be changed without departing from the scope of this specification. Various processes or components may be omitted, substituted, or added as needed in the various examples. For example, the described methods may be performed in a different order than described, and steps may be added, omitted, or combined. Furthermore, features described in some examples may be combined in other examples.

[0037] As used herein, the term "comprising" and its variations are open terms meaning "including but not limited to". The term "based on" means "at least partially based on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other definitions, whether explicit or implicit, may be included below. Unless explicitly indicated by the context, the definition of a term shall remain consistent throughout the specification.

[0038] The flowcharts used in this specification illustrate operations implemented according to some embodiments of this specification. It should be clearly understood that the operations in the flowcharts may not be implemented in a sequential order. Instead, the operations may be implemented in reverse order or simultaneously. Furthermore, one or more additional operations may be added to the flowcharts. One or more operations may be removed from the flowcharts.

[0039] Relevance modeling in search engines can be viewed as a text matching problem within the information retrieval subdomain. Existing implementations can be categorized into feature-based and deep learning-based approaches. Feature-based approaches focus on manually generated features, such as TF-IDF and BM25. While these feature-based approaches are useful, their generalization ability is limited because they utilize domain-specific features and require significant manual resources to generate.

[0040] To address the limitations of the above feature-based implementation schemes, deep learning-based implementation schemes have been proposed. Deep learning-based implementation schemes can be roughly divided into representation-based implementation schemes and interaction-based implementation schemes. Representation-based implementation schemes focus on learning low-dimensional representations of data, while the latter emphasizes capturing interactions between inputs. For example, DSSM is a classic dual-tower representation-based model, which encodes queries and items separately. In this implementation scheme, recurrent networks and convolutional networks are used to extract low-dimensional semantic representations. For these methods, the encoding of each input is performed independently of other inputs. Therefore, these models face challenges when modeling complex relationships. To overcome this limitation, interaction-based implementation schemes have been proposed. DecompAtt uses attention networks to align and aggregate representations. In this implementation scheme, recurrent networks and convolutional networks can be used to model complex interactions.

[0041] As pre-trained models such as BERT have made significant progress in natural language understanding, representation-based and interaction-based architectures have been proposed to leverage the capabilities of these models to encode semantic relevance between queries and items. Recently, large language models such as GPT, LLaMA, and GLM have demonstrated their remarkable capabilities in language understanding, generation, interaction, and recognition. Research on the application of large language models in the search field has proven that, compared to supervised learning widely used in the information retrieval field, properly guiding large language models can produce competitive or even better results. These large language models are trained using large text corpora to learn the underlying patterns and structures of natural language. However, these large language models still struggle to identify user search intent solely based on semantics. In addition, in some application scenarios, the text of queries and items is usually short and ambiguous. For example, given a query "Zhejiang First" (an abbreviation for a hospital), there will be challenges in the actual semantic understanding of the query. However, the historical clicked items for this query include "The First Affiliated Hospital of Zhejiang University", which indicates a strong correlation between "Zhejiang First" and "The First Affiliated Hospital of Zhejiang University", thereby facilitating search intent understanding.

[0042] To this end, in some implementation schemes, user behavior data is integrated into the model in addition to text information. Utilizing user behavior data can provide valuable information for search intent, which can then be used to enhance the relevance of search engines. MASM can use historical behavior data as a weak supervision signal to complete model pre-training and propose new training objectives. Other implementation schemes attempt to combine click graph structures to improve the effectiveness of search systems.

[0043] The aforementioned implementation schemes combining user behavior data construct pre-trained datasets or graph structures based on click behavior. However, constructing pre-trained datasets based on click behavior introduces noise into the real data without manual annotation, further negatively impacting relevance modeling. Furthermore, click graph structures can amplify the adverse effects of noise through multi-hop neighbor aggregation schemes. This is primarily because the aforementioned implementation schemes focus on learning high-order topology structures while neglecting the potential correlation information obtained from user behavior data; that is, they ignore fine-grained interaction information between neighbors, which explicitly bridges the relationships between all inputs.

[0044] To address this, a relevance prediction scheme is proposed. In this scheme, historical query-item interactions are constructed as bidirectional behavioral neighbors for a given query and candidate items. The query behavioral neighbors for candidate items reflect semantic preferences, while the item behavioral neighbors for the given query reveal the true query intent. During relevance prediction, multi-granularity common attention is used to perform fine-grained interactions between the bidirectional behavioral neighbors and the target query / item, thereby comprehensively utilizing both local and global information from the bidirectional behavioral neighbors and the target query / item to predict the relevance between the target query and the target item. Using this relevance prediction scheme, a multi-granularity common attention mechanism is created from the perspectives of the target and its neighbors to learn the fine-grained interactions between the target query and the target item. This yields local and global embedding representations on both the target and neighbor sides. Semantic similarity and behavioral neighbor similarity predictions are then performed on the target and neighbor sides, respectively, based on the learned local and global embedding representations. Finally, the semantic similarity prediction results and the behavioral neighbor similarity prediction results are combined to predict the predictivity between the target query and the target item, thereby improving the accuracy of relevance prediction.

[0045] The following describes, with reference to the accompanying drawings, a relevance prediction method, a relevance prediction model training method, a relevance prediction apparatus, a relevance prediction model training apparatus, and a search system according to embodiments of this specification.

[0046] Figure 1 A schematic diagram of an example architecture of a search system 100 according to an embodiment of this specification is shown.

[0047] like Figure 1As shown, the search system 100 includes a relevance prediction model training device 110, a relevance prediction model storage device 120, and a search engine 140 with a relevance prediction device 130. The relevance prediction model training device 110, the relevance prediction model storage device 120, and the search engine 140 can communicate with each other via a network 150 to transmit data. In some embodiments, the network 150 can be any one or more of a wired network or a wireless network. Examples of the network 150 may include, but are not limited to, cable networks, fiber optic networks, telecommunications networks, enterprise intranets, the Internet, local area networks (LANs), wide area networks (WANs), wireless local area networks (WLANs), metropolitan area networks (MANs), public switched telephone networks (PSTNs), Bluetooth networks, ZigZee networks, near field communication (NFC), device internal buses, device internal lines, etc., or any combination thereof. In some embodiments, some or all of the components in the relevance prediction model training device 110, the relevance prediction model storage device 120, and the search engine 140 can communicate directly without the network 150.

[0048] The relevance prediction model training device 110 can train a relevance prediction model using training data samples. The trained relevance prediction model can be stored in the relevance prediction model storage device 120. The relevance prediction device 130 in the search engine 140 can use the relevance prediction model to predict the relevance between the target query and the target items.

[0049] Optionally, in some embodiments, the search engine 140 may have storage capabilities, thereby allowing the relevance prediction model trained therefrom to be stored locally on the search engine 140, thus eliminating the need for the relevance prediction model storage device 120.

[0050] In this specification, the term "query" can refer to the query text entered by a user in the search box of a search engine. The term "item" can refer to the content retrieved by the search engine. The term "query item behavior neighbor set" refers to the list of neighboring items for a query, obtained based on the query-item interaction graph. The term "item query behavior neighbor" refers to the list of neighboring items for a query, obtained based on the query-item interaction graph. In this specification, the term "neighbor" refers to a single-hop neighbor in the query-item interaction graph.

[0051] The query-item interaction graph can be constructed based on historical query-item interaction data. This historical data can include, for example, query-item click data. For instance, the graph can be constructed based on query-item click data from the past month. Furthermore, to mitigate the impact of noise, when constructing the query-item graph, query-item interaction pairs with click rates above a threshold (e.g., 0.2) can be selected, and the nodes can be arranged in descending order of click rate as neighbors.

[0052] Figure 2 An example schematic diagram of a query-item interaction diagram according to an embodiment of this specification is shown.

[0053] like Figure 2 As shown, assuming the target query is And the target project is Then target query Project behavior neighbors and And the target project is The query behavior of the neighbor is and

[0054] Figure 3 An example schematic diagram of a correlation prediction model 3200 according to an embodiment of this specification is shown. Figure 3 As shown, the relevance prediction model 300 includes a representation generation layer 310, a representation fusion layer 320, a similarity prediction layer 330, and a relevance prediction layer 340. In some embodiments, the representation generation layer 310, the representation fusion layer 320, and the similarity prediction layer 330 may have their own model structures and model parameters for the target side and the neighbor side. In some embodiments, the model structures for the target side and the neighbor side may be the same, only the model parameters may differ.

[0055] The representation generation layer 310 is used to generate global and local embedding representations of the input data.

[0056] In some embodiments, such as Figure 3 As shown, on the neighbor side, the characterization generation layer 310 may have an embedding layer 311-1, an encoder layer 313, and a pooling layer 315-1.

[0057] Suppose we have a target query q and a target item i for which relevance prediction needs to be performed. Both the target query q and the target item i are in text format. If the input format of the target query q and the target item i is another format, such as an image, video, or audio, it can be converted to text format via a format conversion module / model. The word segmentation length of the target query q is l(q), and the word segmentation length of the target item is k(u). Furthermore, Q... iand I q This represents the neighbor set of query behavior for target item u and the neighbor set of item behavior for target query q.

[0058] The neighbor set Q is the query input from the neighbor side. i And the project behavior neighbor set / , respectively query behavior neighbor Q i The query text of each query behavior neighbor is provided to the embedding layer 311-1 to obtain the corresponding word-segmentation-level embedding representation. And embed the word-level representation of each query behavior's neighbor. Provided to encoder layer 313 to obtain the encoded embedding representation of each query behavior's neighbor. This yields the neighbor set Q of the query behavior for target item i. i The local embedding representation of Q i = In addition, the project behavior neighbor set I q The item text of each item behavior neighbor in the algorithm is provided to the embedding layer 311-1 to obtain the corresponding word-segmentation-level embedding representation. And embed the word-level representation of each project's behavior neighbor. Provided to encoder layer 313 to obtain the encoded embedding representation of each item's behavior neighbor. This yields the local embedding representation of the neighbor set of the item behavior of the target query q. In some embodiments, encoder layer 313 may be implemented using a Transformer-based encoder architecture.

[0059] Subsequently, the query behavior neighbor set Q will be used. i Encoded embedding representation of each query behavior neighbor in the table The pooling layer 315-1 is provided for pooling operations, thereby obtaining the query behavior neighbor set Q. i Global Embedded Representation Pooling operations can include, for example, mean pooling, summation pooling, and self-attention. Furthermore, the item behavior neighbor set I... q Encoded embedding representation of each item's behavior neighbor in the data. The pooling layer 315-1 is provided for pooling operations, thereby obtaining the item behavior neighbor set I. q Global Embedded Representation

[0060] On the target side, the characterization generation layer 310 may have an embedding layer 311-2 and a pooling layer 315-2.

[0061] For the input target query q, the query text of the target query q can be provided to the embedding layer 311-2 to obtain the word embedding representation of each query word in the query text. This yields the local embedding representation of the target query q. For the input target item i, the item text of target item i can be provided to the embedding layer 311-2 to obtain the word segmentation embedding representation of each item word in the item text. This yields the local embedding representation of target item i.

[0062] Subsequently, the local embedding representation w of the target query q is... q The data is provided to the pooling layer 315-2 for pooling operations, thereby obtaining the global embedding representation of the target query q. Similarly, pooling operations can include mean pooling, summation pooling, self-attention, etc. The local embedding representation w of the target item i is then used. i The data is provided to pooling layer 315-2 for pooling operations, thereby obtaining the global embedding representation of the target item i.

[0063] The representation fusion layer 320 is used to perform representation fusion on the local embedding representation and the global embedding representation generated by the representation generation layer 310.

[0064] In some embodiments, such as Figure 3 As shown, on the neighbor side, the representation fusion layer 320 may have a representation fusion layer 320-1, and on the target side, the representation fusion layer 320 may have a representation fusion layer 320-2. In some embodiments, the representation fusion layer 320 may be implemented as a common attention layer.

[0065] On the neighbor side, neighbor-level common attention can be performed on the bidirectional behavior neighbor set (i.e., the query behavior neighbor set and the item behavior neighbor set) to comprehensively utilize the local and global embedding representations of the query behavior neighbor set and the item behavior neighbor set. The above-mentioned neighbor-level common attention processing can be represented by formulas (1)-(3):

[0066]

[0067]

[0068]

[0069] in, and Let α represent the fused representation of the query behavior neighbor set and the fused representation of the item behavior neighbor set after fusion through the common attention layer, respectively. nl and β nl It is the attention weight on the behavior neighbor side, w Q W Q b Q w I WI and b I These are trainable parameters, and This indicates a splicing operation.

[0070] On the target side, target-level joint attention can be performed on the target query and target items to comprehensively utilize the local and global embedding representations of the target query and target items. The above target-level joint attention process can be represented by formulas (4)-(6):

[0071]

[0072]

[0073]

[0074] in, and Let α represent the fused representation of the target query and the fused representation of the target item after fusion through the common attention layer, respectively. ol and β ol It is the attention weight on the target side, w i W i b i w q W q and b q These are trainable parameters, and This indicates a splicing operation.

[0075] The similarity prediction layer 330 is used to perform semantic similarity prediction based on the global embedding representation and fusion representation of the query and item in the query-item pair, and to perform behavioral neighbor similarity prediction based on the global embedding representation and fusion representation of the query behavior neighbor set and item behavior neighbor set in the query behavior neighbor set-item behavior neighbor set pair.

[0076] In some embodiments, such as Figure 3 As shown, on the neighbor side, the similarity prediction layer 330 may have a behavioral neighbor similarity prediction layer 330-1, and on the target side, the similarity prediction layer 330 may have a semantic similarity prediction layer 330-2. In some embodiments, the similarity prediction layer 320 may be implemented as a fully connected layer (FC) in a neural network.

[0077] The behavior neighbor similarity prediction layer 330-1 is used to predict the behavior neighbor similarity (behavior neighbor similarity score) between the target query and the target item based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and their respective representation fusion results.

[0078] For example, the behavioral neighbor similarity s between the target query and the target item can be determined according to formula (7). n :

[0079] s n =FC(n) (7)

[0080] in,

[0081] The semantic similarity prediction layer 330-2 is used to predict the semantic similarity (semantic similarity score) between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results.

[0082] For example, the semantic similarity s between the target query and the target item can be determined according to formula (8). t :

[0083] s t =FC(t) (8)

[0084] in,

[0085] The relevance prediction layer 340 is used to predict the relevance between the target query and the target item based on semantic similarity and behavioral neighbor similarity.

[0086] In some embodiments, the relevance prediction layer 340 can be implemented as a score fusion layer, such as a gated network. In this case, the neighbor behavior scores s can be used to... n and semantic similarity score s t The scores are provided to the score fusion layer for score fusion, thereby obtaining the final relevance score.

[0087] For example, the relevance score can be calculated according to formula (9).

[0088]

[0089]

[0090] Where σ is the activation function of the neural network, and w is a trainable parameter.

[0091] Figure 4 An example flowchart of a relevance prediction method 400 applied to a search engine according to an embodiment of this specification is shown.

[0092] like Figure 4As shown in 410, through the representation generation layer of the relevance prediction model, local and global embedding representations of the target query, target item, target query item behavior neighbor set, and target item query behavior neighbor set are generated.

[0093] Figure 5 An example schematic diagram of a characterization generation process according to an embodiment of this specification is shown.

[0094] like Figure 5 As shown, for the query behavior, the neighbor set Q i And Project Behavior Neighbor Set I q The query behavior will be assigned to the neighbor Q. i For each query behavior, the neighboring query text is provided to the embedding layer to obtain the corresponding word-segmented embedding representation. And embed the word-level representation of each query behavior's neighbor. This information is provided to the encoder layer for encoding, thereby obtaining the query behavior neighbor set Q of the target item i. i Local embedding representation That is, the set of encoded embedding representations of each query behavior's neighbor. In addition, the item behavior neighbor set I... q The text of each item's behavior neighbor is provided to the embedding layer to obtain the corresponding word-segmentation-level embedding representation. And embed the word-level representation of each project's behavior neighbor. This is provided to encoder layer 313 for encoding, thereby obtaining a local embedding representation of the item behavior neighbor set of the target query q. That is, the set of encoded embedding representations of each project's behavioral neighbors.

[0095] Subsequently, the query behavior neighbor set Q will be used. i Local embedding representation This information is provided to the pooling layer for pooling operations, thereby obtaining the query behavior neighbor set Q. i Global Embedded Representation In addition, the project behavior neighbor set I q Local embedding representation This is provided to the pooling layer for pooling operations, thereby obtaining the item behavior neighbor set I. q Global Embedded Representation

[0096] On the target side, for the input target query q, the query text of the target query q is provided to the embedding layer to obtain a local embedding representation of the target query q. For the input target item i, the item text of target item i is provided to the embedding layer to obtain the local embedding representation of target item i.

[0097] Subsequently, the local embedding representation w of the target query q is... q This information is provided to the pooling layer for pooling operations, thereby obtaining the global embedding representation of the target query q. The local embedding representation of target item i is w i This information is provided to the pooling layer for pooling operations, thereby obtaining the global embedding representation of the target item i.

[0098] Back Figure 4 In step 420, via the representation fusion layer of the relevance prediction model, the local embedding representations of the target query, target item, item behavior neighbor set, and query behavior neighbor set are fused with their corresponding global embedding representations. The representation fusion process can be referenced above. Figure 3 The description describes the characterization fusion process.

[0099] At 430, via the similarity prediction layer of the relevance prediction model, the semantic similarity between the target query and target items is predicted based on the global embedding representations of the target query and target items and the fusion results of their respective representations. Furthermore, the behavioral neighbor similarity between the target query and target items is predicted based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and the fusion results of their respective representations. The similarity prediction process can be referenced above. Figure 3 The similarity prediction process is described.

[0100] At level 440, the relevance prediction layer of the relevance prediction model predicts the relevance between the target query and the target items based on semantic similarity and behavioral neighbor similarity. The relevance prediction process can be referenced above. Figure 3 The process of predicting correlations is described.

[0101] Optionally, in some embodiments, when performing relevance prediction, the target query's item behavior neighbor set and the target item's query behavior neighbor set can also be obtained based on the query-item interaction graph. For example, a query-item interaction graph can be constructed based on historical query-item interaction data, and the single-hop neighbors of the target query can be obtained from the query-item interaction graph as the target query's item behavior neighbor set, and the single-hop neighbors of the target item can be obtained as the target item's query behavior neighbor set.

[0102] It should be noted that the correlation prediction model can be trained in advance using training sample data.

[0103] Figure 6 An example flowchart of a correlation prediction model training process 600 according to an embodiment of this specification is shown.

[0104] like Figure 6As shown in 610, through the representation generation layer of the relevance prediction model, local and global embedding representations of the target query, target item, target query item behavior neighbor set, and target item query behavior neighbor set in the training data sample are generated.

[0105] In 620, through the representation fusion layer of the relevance prediction model, the local embedding representations of the target query, target item, item behavior neighbor set and query behavior neighbor set are respectively fused with the corresponding global embedding representations.

[0106] In 630, through the similarity prediction layer of the relevance prediction model, the semantic similarity between the target query and the target item is predicted based on the global embedding representations of the target query and the target item and their respective representation fusion results, and the behavioral neighbor similarity between the target query and the target item is predicted based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and their respective representation fusion results.

[0107] In 640, the relevance prediction layer of the relevance prediction model predicts the relevance between the target query and the target item based on semantic similarity and behavioral neighbor similarity.

[0108] At 650, the model parameters of the relevance prediction model are adjusted based on the relevance prediction results and the true relevance labels between the target query and the target item.

[0109] For example, a loss function can be determined based on the relevance prediction results and the true relevance labels between the target query and the target items, and the model parameters of the relevance prediction model can be adjusted according to the determined loss function. In this case, the model training task performed during the relevance prediction model training only includes the relevance prediction task.

[0110] When training the model, the correlation prediction results can be used to determine the prediction loss function. And based on the determined loss function Adjust the model parameters of the correlation prediction model.

[0111] For example, the loss function can be determined according to formula (11).

[0112]

[0113] In some embodiments, the model training task may further include a first contrastive learning task based on the global embedding representations of the target item and the query behavior neighbor set, and / or a second contrastive learning task based on the global embedding representations of the target query and the item behavior neighbor set. Specifically, contrastive learning sample pairs are constructed based on the global embedding representations of the item behavior neighbor set and the global embedding representations of the target item, thereby performing the first contrastive learning task, and a first contrastive learning loss function is determined based on the first contrastive learning result. First contrastive learning loss function For example, the InfoNCE loss function can be used.

[0114] For example, the first contrastive learning loss function can be determined according to formula (12).

[0115]

[0116] Where g(·,·) denotes the similarity function between two vectors, and τ is the temperature hyperparameter. Indicates the relationship between batch samples and The k-th negative sample out of a total of K dissimilar negative samples.

[0117] Similarly, the second contrastive learning loss function can be determined according to formula (13).

[0118]

[0119] in, Indicates the relationship between batch samples and The k-th negative sample out of a total of K dissimilar negative samples.

[0120] Subsequently, the total contrastive learning loss function can be obtained.

[0121] In this case, the prediction loss function can be used. and contrastive learning loss function Determine the total loss function For example, the prediction loss function can be... and contrastive learning loss function The total loss function is obtained by weighted summation. Subsequently, based on the total loss function Adjust the model parameters of the correlation prediction model.

[0122] By performing a comparative learning task based on bidirectional behavioral neighbors and global embedding representations of the target query / item during the training of the relevance prediction model, the differences between the query (item) behavioral neighbors and the target item (query) can be reduced, thereby weakening the influence of noise and improving the model capability of the trained relevance prediction model.

[0123] In some embodiments, behavior-based neighbor similarity s can also be performed. n and semantic similarity s t The mutual learning task is thus derived, and the mutual learning loss function is obtained.

[0124] Mutual learning loss function It can be determined according to formula (14):

[0125]

[0126] In this case, the prediction loss function can be used. Contrast learning loss function and mutual learning loss function Determine the total loss function For example, the prediction loss function can be... Contrast learning loss function and mutual learning loss function The total loss function is obtained by weighted summation.

[0127] For example, the total loss function can be determined according to formula (15).

[0128]

[0129] Here, λ1 and λ2 are hyperparameters used to control the weights of self-supervised learning.

[0130] Subsequently, based on the total loss function Adjust the model parameters of the correlation prediction model.

[0131] By further performing mutual learning tasks based on behavioral neighbor similarity and semantic similarity during the training of the relevance prediction model, the target view and the neighbor view can be aligned at the view level. This allows the behavioral neighbor information and the target query / item information to complement each other, thereby further improving the model capability of the trained relevance prediction model.

[0132] It should be noted that the above model training process is a loop process. It is executed repeatedly in the above manner until the model training termination condition is met.

[0133] Figure 7 An example schematic diagram of the training process of a correlation prediction model according to an embodiment of this specification is shown.

[0134] like Figure 7 As shown, on the neighbor side, the query behavior for target item i is the neighbor set Q. i The query behavior will be the neighbor Q. i For each query behavior, the neighboring query text is provided to the embedding layer to obtain the corresponding word-segmented embedding representation. And embedding at the word level Provided to the Transformer-based encoder to obtain the query behavior neighbor set Q i Local embedding representation That is, the encoded embedding representation of each query behavior's neighbors. A set of.

[0135] The item text of each item behavior neighbor in the item behavior neighbor set I of the target query q is provided to the embedding layer to obtain the corresponding word-segmented embedding representation. And embed the word-level representation of each project's behavior neighbor. Provided to the Transformer-based encoder to obtain a local embedding representation of the neighbor set of item behaviors for the target query q. That is, the encoded embedding representation of each project's behavioral neighbors. A set of.

[0136] Subsequently, the query behavior neighbor set Q will be used. i Local embedding representation This information is provided to the pooling layer for pooling operations, thereby obtaining the query behavior neighbor set Q. i Global Embedded Representation In addition, the project behavior neighbor set I q Local embedding representation This is provided to the pooling layer for pooling operations, thereby obtaining the item behavior neighbor set I. q Global Embedded Representation

[0137] Next, the local and global embedding representations of the query behavior neighbor set are provided to the common attention layer for representation fusion to obtain the fused representation of the item behavior neighbor set. The local and global embedding representations of the project behavior neighbor set are provided to the common attention layer for representation fusion to obtain the fused representation of the project behavior neighbor set. Subsequently, the global embedding and fusion representations of the query behavior neighbor set and the global embedding and fusion representations of the item behavior neighbor set are used to predict the behavior neighbor similarity.

[0138] On the target side, for the target query q, the query text of the target query q is provided to the embedding layer to obtain a local embedding representation of the target query q. For target item i, the project text of target item i is provided to the embedding layer to obtain a local embedding representation of target item i. Subsequently, the local embedding representation w of the target query q is... q This information is provided to the pooling layer for pooling operations, thereby obtaining the global embedding representation of the target query q. And the local embedding representation w of target item i i This information is provided to the pooling layer for pooling operations, thereby obtaining the global embedding representation of the target item i.

[0139] Next, the local and global embedding representations of the target query are provided to the common attention layer for representation fusion to obtain the fused representation of the target query. Similarly, the local and global embedding representations of the target items are provided to the common attention layer for representation fusion to obtain the fused representation of the target items. Subsequently, semantic similarity prediction is performed using the global and fused representations of the target query and the target items.

[0140] Then, the neighbor behavior score s n and semantic similarity score s t The scores are provided to the gating network layer for score fusion, thereby obtaining the final relevance prediction score. After obtaining the correlation prediction score Then, scores can be predicted based on correlation. The prediction loss function is determined by the corresponding true relevance labels.

[0141] Furthermore, a first contrastive learning task based on the global embedding representation of the target item and query behavior neighbor set, and a second contrastive learning task based on the global embedding representation of the target query and item behavior neighbor set can be performed, thereby determining the contrastive learning loss function.

[0142] In addition, it is also possible to perform behavior-based neighbor similarity s n and semantic similarity s t The mutual learning task is thus derived, and the mutual learning loss function is obtained.

[0143] Then, based on the prediction loss function Contrast learning loss function and mutual learning loss function Determine the total loss function And based on the total loss function This is used to update the model parameters of the correlation prediction model.

[0144] Figure 8 An example block diagram of a correlation prediction apparatus 800 according to an embodiment of this specification is shown. Figure 8 As shown, the correlation prediction device 800 may include a characterization generation unit 810, a characterization fusion unit 820, a similarity prediction unit 830, and a correlation prediction unit 840.

[0145] The representation generation unit 810 is configured to generate local and global embedding representations of the target query, the target item, the item behavior neighbor set of the target query, and the query behavior neighbor set of the target item via the representation generation layer of the relevance prediction model. The operation of the representation generation unit 810 can be referenced above. Figure 4 The operation described in 410.

[0146] The representation fusion unit 820 is configured to fuse the local embedding representations of the target query, target item, item behavior neighbor set, and query behavior neighbor set with their corresponding global embedding representations via the representation fusion layer of the relevance prediction model. The operation of the representation fusion unit 820 can be referenced above. Figure 4 The operation described in 420.

[0147] The similarity prediction unit 830 is configured to predict the semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item, and the fusion result of their respective representations, via the similarity prediction layer of the relevance prediction model. It also predicts the behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the item behavioral neighbor set and the query behavioral neighbor set, and the fusion result of their respective representations. The operation of the similarity prediction unit 830 can be referenced above. Figure 4 The operation described in 430.

[0148] The relevance prediction unit 840 is configured to predict the relevance between the target query and the target item based on semantic similarity and behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model. The operation of the relevance prediction unit 840 can be referenced above. Figure 4 The operation described in 440.

[0149] Figure 9 An example block diagram of a characterization generation unit 900 according to an embodiment of this specification is shown. Figure 9 The representation generation unit 900 includes an embedded representation generation module 910, an encoding processing module 920, and a pooling processing module 930.

[0150] The embedding representation generation module 910 is configured to generate word-level embedding representations of the target query, the target item, each item behavior neighbor in the item behavior neighbor set, and each query behavior neighbor in the query behavior neighbor set via the embedding layer in the representation generation layer, wherein the word-level embedding representations of the target query and the target item serve as local embedding representations of the target query and the target item.

[0151] The encoding processing module 920 is configured to encode the word-level embedding representations of each item behavior neighbor and each query behavior neighbor via the encoder layer in the representation generation layer to obtain local embedding representations of the item behavior neighbor set and the query behavior neighbor set.

[0152] The pooling processing module 930 is configured to perform pooling processing on the local embedding representations of the target query, target item, item behavior neighbor set and query behavior neighbor set respectively via the pooling layer in the representation generation layer, to obtain the global embedding representations of the target query, target item, item behavior neighbor set and query behavior neighbor set.

[0153] Optionally, in some embodiments, the relevance prediction unit may perform similarity fusion on semantic similarity and behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model to predict the relevance between the target query and the target item.

[0154] Optionally, in some embodiments, the relevance prediction apparatus may further include a behavior neighbor acquisition unit. The behavior neighbor acquisition unit acquires the target query's item behavior neighbor set and the target item's query behavior neighbor set based on the query-item interaction graph.

[0155] Figure 10 An example block diagram of a correlation prediction model training apparatus 1000 according to an embodiment of this specification is shown. Figure 10 As shown, the correlation prediction model training device 1000 may include a representation generation unit 1010, a representation fusion unit 1020, a similarity prediction unit 1030, a correlation prediction unit 1040, and a model adjustment unit 1050.

[0156] The representation generation unit 1010 is configured to generate local and global embedding representations of the target query, target item, target query item behavior neighbor set, and target item query behavior neighbor set in the training data samples via the representation generation layer of the relevance prediction model.

[0157] The representation fusion unit 1020 is configured to perform representation fusion of the local embedding representations of the target query, target item, item behavior neighbor set and query behavior neighbor set with the corresponding global embedding representations via the representation fusion layer of the relevance prediction model.

[0158] The similarity prediction unit 1030 is configured to predict the semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results via the similarity prediction layer of the relevance prediction model, and to predict the behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and their respective representation fusion results.

[0159] The relevance prediction unit 1040 is configured to predict the relevance between the target query and the target item based on semantic similarity and behavioral neighbor similarity via the relevance prediction layer of the relevance prediction model.

[0160] The model adjustment unit 1050 is configured to adjust the model parameters of the relevance prediction model based on the relevance prediction results and the true relevance labels between the target query and the target item.

[0161] For example, the model adjustment unit 1050 can determine the prediction loss function based on the relevance prediction results and the true relevance labels between the target query and the target item, and adjust the model parameters of the relevance prediction model based on the prediction loss function.

[0162] In some embodiments, in addition to performing a prediction training task, a first contrastive learning task based on a global embedding representation of the target item and query behavior neighbor set may be performed, and / or a second contrastive learning task based on a global embedding representation of the target query and item behavior neighbor set may be performed. Thus, a contrastive learning loss function can be determined based on the results of the contrastive learning tasks, and the model parameters of the relevance prediction model can be adjusted based on the prediction loss function and the contrastive learning loss function.

[0163] In some embodiments, a mutual learning task based on behavioral neighbor similarity and semantic similarity can also be performed, thereby obtaining a mutual learning loss function based on the execution result of the mutual learning task, and adjusting the model parameters of the relevance prediction model according to the prediction loss function, the contrastive learning loss function and the mutual learning loss function.

[0164] As per the above reference Figures 1 to 10 This specification describes a correlation prediction method, a correlation prediction model training method, a correlation prediction apparatus, and a correlation prediction model training apparatus according to embodiments thereof. The aforementioned correlation prediction apparatus and correlation prediction model training apparatus can be implemented in hardware, software, or a combination of hardware and software.

[0165] Figure 11 An example schematic diagram of a correlation prediction apparatus 1100 implemented based on a computer system according to an embodiment of this specification is shown. Figure 11As shown, the correlation prediction apparatus 1100 may include at least one processor 1110, a memory (e.g., non-volatile memory) 1120, a RAM 1130, and a communication interface 1140, and the at least one processor 1110, memory 1120, RAM 1130, and communication interface 1140 are connected together via a bus 1160. At least one processor 1110 executes at least one computer-readable instruction (i.e., the elements implemented in software described above) stored or encoded in the memory.

[0166] In one embodiment, computer-executable instructions are stored in memory, which, when executed, cause at least one processor 1110 to: generate local and global embedding representations of a target query, a target item, a set of item behavior neighbors for the target query, and a set of query behavior neighbors for the target item, via a representation generation layer of a relevance prediction model; fuse the local embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors with their respective global embedding representations, via a representation fusion layer of the relevance prediction model; predict the semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results, and predict the behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the set of item behavior neighbors and the set of query behavior neighbors and their respective representation fusion results, via a similarity prediction layer of the relevance prediction model; and predict the relevance between the target query and the target item based on semantic similarity and behavioral neighbor similarity, via a relevance prediction layer of the relevance prediction model.

[0167] It should be understood that the computer-executable instructions stored in memory, when executed, cause at least one processor 1110 to perform the above-described combinations in the various embodiments of this specification. Figures 1-5 as well as Figures 8-9 The description includes various operations and functions.

[0168] Figure 12 A schematic diagram of an example of a correlation prediction model training apparatus 1200 implemented using a computer system according to an embodiment of this specification is shown. Figure 12 As shown, the correlation prediction model training apparatus 1200 may include at least one processor 1210, a memory (e.g., non-volatile memory) 1220, a RAM 1230, and a communication interface 1240, and the at least one processor 1210, memory 1220, RAM 1230, and communication interface 1240 are connected together via a bus 1260. At least one processor 1210 executes at least one computer-readable instruction (i.e., the elements implemented in software described above) stored or encoded in the memory.

[0169] In one embodiment, computer-executable instructions are stored in memory, which, when executed, cause at least one processor 1210 to: generate local and global embedding representations of a target query, a target item, a set of item behavior neighbors for the target query, and a set of query behavior neighbors for the target item in a training data sample via a representation generation layer of the relevance prediction model; fuse the local embedding representations of the target query, the target item, the set of item behavior neighbors, and the set of query behavior neighbors with their corresponding global embedding representations via a representation fusion layer of the relevance prediction model; predict the semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results via a similarity prediction layer of the relevance prediction model, and predict the behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the set of item behavior neighbors and the set of query behavior neighbors and their respective representation fusion results; predict the relevance between the target query and the target item based on the semantic similarity and behavioral neighbor similarity via a relevance prediction layer of the relevance prediction model; and adjust the model parameters of the relevance prediction model based on the relevance prediction results and the true relevance labels between the target query and the target item.

[0170] It should be understood that the computer-executable instructions stored in the memory, when executed, cause at least one processor 1210 to perform the above-described combinations in the various embodiments of this specification. Figures 6-7 and Figure 10 The description includes various operations and functions.

[0171] According to one embodiment, a program product, such as a machine-readable medium (e.g., a non-transitory machine-readable medium), is provided. The machine-readable medium may have instructions (i.e., the elements implemented in software as described above), which, when executed by a machine, cause the machine to perform the above-described combinations of the various embodiments of this specification. Figures 1-10 The various operations and functions described. Specifically, a system or apparatus equipped with a readable storage medium storing software program code that implements the functions of any of the embodiments described above, and enabling the computer or processor of the system or apparatus to read and execute the instructions stored in the readable storage medium.

[0172] In this case, the program code itself, which can be read from a readable medium, can perform the functions of any of the above embodiments. Therefore, the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of the present invention.

[0173] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer or the cloud via a communication network.

[0174] According to one embodiment, a computer program product is provided, the computer program product including a computer program, which, when executed by a processor, causes the processor to perform the above-described combinations of the various embodiments of this specification. Figures 1-10 The description includes various operations and functions.

[0175] Those skilled in the art will understand that the various embodiments disclosed above can be modified and varied without departing from the spirit of the invention. Therefore, the scope of protection of this invention should be defined by the appended claims.

[0176] It should be noted that not all steps and units in the above process and system structure diagrams are mandatory; some steps or units can be omitted according to actual needs. The execution order of each step is not fixed and can be determined as needed. The device structure described in the above embodiments can be a physical structure or a logical structure; that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities, or they may be jointly implemented by certain components in multiple independent devices.

[0177] In the above embodiments, the hardware units or modules can be implemented mechanically or electrically. For example, a hardware unit, module, or processor may include permanent dedicated circuitry or logic (such as a dedicated processor, FPGA, or ASIC) to perform the corresponding operation. The hardware unit or processor may also include programmable logic or circuitry (such as a general-purpose processor or other programmable processor), which can be temporarily configured by software to perform the corresponding operation. The specific implementation method (mechanical, dedicated permanent circuitry, or temporarily configured circuitry) can be determined based on cost and time considerations.

[0178] The specific embodiments described above with reference to the accompanying drawings are exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the scope of the claims. The term "exemplary" as used throughout this specification means "serving as an example, instance, or illustration" and does not imply that it is "preferred" or "advantageous" compared to other embodiments. Specific details are included to provide an understanding of the described techniques. However, these techniques can be practiced without these specific details. In some instances, well-known structures and apparatuses are shown in block diagram form to avoid obscuring the concepts of the described embodiments.

[0179] The foregoing description of this disclosure is provided to enable any person skilled in the art to implement or use this disclosure. Various modifications to this disclosure will be apparent to those skilled in the art, and the general principles defined herein can be applied to other variations without departing from the scope of this disclosure. Therefore, this disclosure is not limited to the examples and designs described herein, but is consistent with the widest scope of the principles and novel features disclosed herein.

Claims

1. A relevance prediction method for search engines, comprising: Through the representation generation layer of the relevance prediction model, local and global embedding representations of the target query, the target item, the item behavior neighbor set of the target query, and the query behavior neighbor set of the target item are generated. The item behavior neighbor set of the target query refers to the list of item neighbors of the target query obtained based on the query-item interaction graph. The query behavior neighbor set of the target item refers to the list of query neighbors of the target item obtained based on the query-item interaction graph. The item refers to the content retrieved by the search engine. Through the representation fusion layer of the relevance prediction model, the local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set are respectively fused with the corresponding global embedding representations; Through the similarity prediction layer of the relevance prediction model, the semantic similarity between the target query and the target item is predicted based on the global embedding representations of the target query and the target item and their respective representation fusion results, and the behavioral neighbor similarity between the target query and the target item is predicted based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and their respective representation fusion results; as well as The relevance between the target query and the target item is predicted based on the semantic similarity and the behavioral neighbor similarity through the relevance prediction layer of the relevance prediction model.

2. The correlation prediction method of claim 1, wherein, The representation generation layer of the relevance prediction model generates local and global embedding representations of the target query, the target item, the item behavior neighbor set of the target query, and the query behavior neighbor set of the target item, including: Through the embedding layer in the representation generation layer, word-segmentation-level embedding representations of the target query, the target item, each item behavior neighbor in the item behavior neighbor set, and each query behavior neighbor in the query behavior neighbor set are generated. The word-segmentation-level embedding representations of the target query and the target item serve as local embedding representations of the target query and the target item. The word-level embedding representations of each item behavior neighbor and each query behavior neighbor are encoded via the encoder layer in the representation generation layer to obtain the local embedding representations of the item behavior neighbor set and the query behavior neighbor set; and The local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set are pooled through the pooling layer in the representation generation layer to obtain the global embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set.

3. The correlation prediction method of claim 1, wherein, The representation fusion layer is implemented as a common attention layer.

4. The correlation prediction method as described in claim 1, wherein, The relevance prediction layer of the relevance prediction model, predicting the relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity, includes: The semantic similarity and the behavioral neighbor similarity are fused through the relevance prediction layer of the relevance prediction model to predict the relevance between the target query and the target item.

5. The correlation prediction method as described in claim 1, wherein, For the representation generation layer, the representation fusion layer, and the similarity prediction layer, the relevance prediction model includes a first model structure for processing the target query and the target item, and a second model structure for processing the query behavior neighbor set and the item behavior neighbor set.

6. The correlation prediction method as described in claim 1, wherein, When training the correlation prediction model, the model training task performed includes the correlation prediction task.

7. The correlation prediction method as described in claim 6, wherein, The model training task performed also includes a first contrastive learning task based on the global embedding representation of the target item and the query behavior neighbor set, and / or a second contrastive learning task based on the global embedding representation of the target query and the item behavior neighbor set.

8. The correlation prediction method as described in claim 6 or 7, wherein, The model training tasks performed also include mutual learning tasks based on semantic similarity prediction results and behavioral neighbor similarity prediction results.

9. The correlation prediction method as described in claim 1, further comprising: Based on the query-project interaction graph, obtain the project behavior neighbor set of the target query and the query behavior neighbor set of the target project.

10. A method for training a relevance prediction model for use in search engines, comprising: Through the representation generation layer of the relevance prediction model, local and global embedding representations of the target query, target item, the item behavior neighbor set of the target query, and the query behavior neighbor set of the target item are generated in the training data samples. The item behavior neighbor set of the target query refers to the list of item neighbors of the target query obtained based on the query-item interaction graph. The query behavior neighbor set of the target item refers to the list of query neighbors of the target item obtained based on the query-item interaction graph. The item refers to the content retrieved by the search engine. Through the representation fusion layer of the relevance prediction model, the local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set are respectively fused with the corresponding global embedding representations; Through the similarity prediction layer of the relevance prediction model, the semantic similarity between the target query and the target item is predicted based on the global embedding representations of the target query and the target item and their respective representation fusion results, and the behavioral neighbor similarity between the target query and the target item is predicted based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and their respective representation fusion results; The relevance between the target query and the target item is predicted based on the semantic similarity and the behavioral neighbor similarity through the relevance prediction layer of the relevance prediction model. as well as Based on the relevance prediction results and the true relevance labels between the target query and the target item, the model parameters of the relevance prediction model are adjusted.

11. A relevance prediction device for a search engine, comprising: The representation generation unit generates local and global embedding representations of the target query, the target item, the item behavior neighbor set of the target query, and the query behavior neighbor set of the target item through the representation generation layer of the relevance prediction model. The item behavior neighbor set of the target query refers to the list of item neighbors of the target query obtained based on the query-item interaction graph. The query behavior neighbor set of the target item refers to the list of query neighbors of the target item obtained based on the query-item interaction graph. The item refers to the content retrieved by the search engine. The representation fusion unit, via the representation fusion layer of the relevance prediction model, performs representation fusion between the local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set and their corresponding global embedding representations. The similarity prediction unit, via the similarity prediction layer of the relevance prediction model, predicts the semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results, and predicts the behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and their respective representation fusion results; as well as The relevance prediction unit, via the relevance prediction layer of the relevance prediction model, predicts the relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity.

12. The correlation prediction apparatus as described in claim 11, wherein, The characterization generation unit includes: The embedding representation generation module generates word-level embedding representations of the target query, the target item, each item behavior neighbor in the item behavior neighbor set, and each query behavior neighbor in the query behavior neighbor set via the embedding layer in the representation generation layer. The word-level embedding representations of the target query and the target item serve as local embedding representations of the target query and the target item. The encoding processing module encodes the word-segmentation-level embedding representations of each item behavior neighbor and each query behavior neighbor via the encoder layer in the representation generation layer to obtain the local embedding representations of the item behavior neighbor set and the query behavior neighbor set; and The pooling processing module performs pooling processing on the local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set via the pooling layer in the representation generation layer, respectively, to obtain the global embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set.

13. The correlation prediction apparatus of claim 11, wherein, The relevance prediction unit performs similarity fusion on the semantic similarity and the behavioral neighbor similarity through the relevance prediction layer of the relevance prediction model to predict the relevance between the target query and the target item.

14. The correlation prediction apparatus of claim 11, further comprising: The behavior neighbor acquisition unit acquires the set of behavior neighbors of the target query and the set of query behavior neighbors of the target project based on the query-project interaction graph.

15. An apparatus for training a relevance prediction model for use in a search engine, comprising: The representation generation unit generates local and global embedding representations of the target query, target item, the target query's item behavior neighbor set, and the target item's query behavior neighbor set from the training data samples via the representation generation layer of the relevance prediction model. The target query's item behavior neighbor set refers to the list of the target query's item neighbors obtained based on the query-item interaction graph, and the target item's query behavior neighbor set refers to the list of the target item's query neighbors obtained based on the query-item interaction graph. The item refers to the content retrieved by the search engine. The representation fusion unit, via the representation fusion layer of the relevance prediction model, performs representation fusion between the local embedding representations of the target query, the target item, the item behavior neighbor set, and the query behavior neighbor set and their corresponding global embedding representations. The similarity prediction unit, via the similarity prediction layer of the relevance prediction model, predicts the semantic similarity between the target query and the target item based on the global embedding representations of the target query and the target item and their respective representation fusion results, and predicts the behavioral neighbor similarity between the target query and the target item based on the global embedding representations of the item behavior neighbor set and the query behavior neighbor set and their respective representation fusion results; The relevance prediction unit, via the relevance prediction layer of the relevance prediction model, predicts the relevance between the target query and the target item based on the semantic similarity and the behavioral neighbor similarity; as well as The model adjustment unit adjusts the model parameters of the relevance prediction model based on the relevance prediction results and the true relevance labels between the target query and the target item.

16. A search engine, comprising: The correlation prediction device as described in any one of claims 11 to 14.

17. A search system, comprising: The search engine as described in claim 16; as well as The apparatus for training a relevance prediction model for a search engine as described in claim 15.

18. A relevance prediction device for a search engine, comprising: At least one processor; Memory coupled to the at least one processor; as well as A computer program stored in the memory, which is executed by the at least one processor to implement the relevance prediction method for a search engine as described in any one of claims 1 to 9.

19. An apparatus for training a relevance prediction model for use in a search engine, comprising: At least one processor; Memory coupled to the at least one processor; as well as A computer program stored in the memory, which is executed by the at least one processor to implement the method for training a relevance prediction model for a search engine as described in claim 10.

Citation Information

Patent Citations

  • Image retrieval method and related device

    CN111914113A

  • Graph-based searching

    US20130325847A1