Personalized search sorting method and device, electronic equipment and readable storage medium

By receiving the current query data and historical behavior data of the user device, and using the fused attention unit and multi-head attention mechanism to generate interaction probability, it solves the problem of lack of diversity and novelty of search results in the existing technology, and realizes personalized sorting. Refined processing improves user experience.

CN118535796APending Publication Date: 2024-08-23BEIJING LONGZHI DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410620552.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-23

Smart Images

  • Figure CN118535796A
    Figure CN118535796A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and provides a personalized search sorting method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring historical behavior data of user equipment, and inputting the historical behavior data, current query data and a current target item into a correlation search unit so as to determine a corresponding historical behavior data subsequence in all historical behavior data of the current user equipment according to the current query data and the current target item; based on a fusion attention unit, coding the historical behavior data sub-sequence, the unique identity domain corresponding to the current target item and the attribute domain corresponding to the current target item to obtain a coding result; and performing weighted summation processing on a coding result based on a multi-head attention mechanism to obtain a fusion embedding vector fusing the unique identity domain embedding vector and the attribute domain embedding vector. Through the method provided by the invention, more accurate recommendation service can be provided for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a personalized search ranking method, device, electronic device and readable storage medium. Background Art

[0002] Personalized search sorting can be understood as sorting search results based on the user's personal information and behavior history data to meet the user's personalized needs. Among them, the key to personalized search sorting search results is to determine the user's interest in different items, that is, the degree of preference. The user's interests include long-term interests and short-term interests. Long-term interests refer to the user's stable and lasting interests, and short-term interests refer to the user's temporary and dynamic interests. Both long-term interests and short-term interests will affect the user's search behavior and result selection.

[0003] In the prior art, personalized search ranking is mainly performed through two methods. The first method is to learn the user's interest representation based on the user's overall historical behavior data, and the second method is to learn the user's interest representation based on the user's sparse search behavior.

[0004] However, the first method learns the user's interest representation but ignores the user's current query intent, resulting in a mismatch between the search results and the user's real-time needs. The second method learns the user's interest representation but cannot fully explore the user's long-term interests due to the data sparsity of the user's search behavior, resulting in a lack of diversity and novelty in the current search results.

[0005] Therefore, how to provide a solution to the above-mentioned technical problems is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0006] In view of this, the embodiments of the present disclosure provide a personalized search ranking method, device, electronic device and readable storage medium to solve the problem of lack of diversity and novelty in search results in the prior art.

[0007] A first aspect of an embodiment of the present disclosure provides a personalized search ranking method, including:

[0008] Receiving current query data sent by a user device, and receiving a current target item determined based on the current query data;

[0009] Acquire historical behavior data of the user device, input the historical behavior data, current query data, and current target item into a correlation search unit, so as to determine a corresponding historical behavior data subsequence in all historical behavior data of the current user device according to the current query data and the current target item, the user device has logged in the user account that sends the current query data, and the historical behavior data is the historical behavior data corresponding to the user account;

[0010] Based on the fusion attention unit, the historical behavior data subsequence, the unique identity domain corresponding to the current target item, and the attribute domain corresponding to the current target item are encoded respectively to obtain an encoding result, which includes a subsequence hidden state vector corresponding to the historical behavior data subsequence, a unique identity domain embedding vector corresponding to the unique identity domain, and an attribute domain embedding vector corresponding to the attribute domain;

[0011] Based on the multi-head attention mechanism, the encoding results are weighted summed to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector;

[0012] The fused embedding vector is input into the prediction unit, and the output of the prediction unit is obtained as the interaction probability of the current user device interacting with each target item;

[0013] The interaction probabilities are sorted in descending order to obtain a sorting result, and the corresponding target items are displayed on the user device according to the sorting result.

[0014] A second aspect of the embodiments of the present disclosure provides a personalized search ranking device, including:

[0015] A receiving module, configured to receive current query data sent by a user device, and receive a current target item determined based on the current query data;

[0016] an acquisition module configured to acquire historical behavior data of a user device, input the historical behavior data, current query data, and current target item into a correlation search unit, so as to determine a corresponding historical behavior data subsequence in all historical behavior data of the current user device according to the current query data and the current target item, a user account that has logged in on the user device and sent the current query data, and the historical behavior data is the historical behavior data corresponding to the user account;

[0017] A fusion module is configured to encode the historical behavior data subsequence, the unique identity domain corresponding to the current target item, and the attribute domain corresponding to the current target item, respectively, based on the fusion attention unit, to obtain an encoding result, wherein the encoding result includes a subsequence hidden state vector corresponding to the historical behavior data subsequence, a unique identity domain embedding vector corresponding to the unique identity domain, and an attribute domain embedding vector corresponding to the attribute domain;

[0018] The embedding module is configured to perform weighted summation processing on the encoding results based on the multi-head attention mechanism to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector;

[0019] A prediction module is configured to input the fused embedding vector into a prediction unit, and obtain an output of the prediction unit as an interaction probability of the current user device interacting with each target item;

[0020] The sorting module is configured to sort the interaction probabilities in descending order to obtain a sorting result, and display the corresponding target items on the user device according to the sorting result.

[0021] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0022] According to a fourth aspect of an embodiment of the present disclosure, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0023] Compared with the prior art, the embodiments of the present disclosure have the following beneficial effects: receiving current query data and a current target item corresponding to the query data, acquiring historical behavior data of a current user device, determining a historical behavior data subsequence corresponding to the current query data and the current target item in the historical behavior data through a correlation search unit, being able to screen out relevant historical behavior data subsequences for the current query data, so that the sorting and display of the target items on the user device are more in line with the personalized needs and habits of the user device, performing weighted summation processing on the encoding results through a fusion attention unit, obtaining a fusion embedding vector that fuses a unique identity domain embedding vector and an attribute domain embedding vector, thereby enhancing the ability to identify and understand the characteristics of each target item, and then inputting it into a prediction unit, taking the output of the prediction unit as the interaction probability of the current user device interacting with each target item, and sorting the interaction probabilities in descending order to obtain a sorting result, and displaying the corresponding target item on the user device according to the sorting result, so that the target items can be sorted according to the historical behavior data of the user device to obtain a sorting result, taking into account the current query intention and long-term interest of the user device, realizing refined processing and personalized sorting of the target items, and improving the accuracy of displaying the target items and the user's experience of using the user device. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 is a schematic diagram of an application scenario of an embodiment of the present disclosure;

[0026] Figure 2 It is a flowchart of a personalized search ranking method provided by an embodiment of the present disclosure;

[0027] Figure 3 A flowchart of another personalized search ranking method provided by an embodiment of the present disclosure;

[0028] Figure 4 is a schematic diagram of a personalized search ranking device provided by an embodiment of the present disclosure;

[0029] Figure 5 is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.

[0031] A personalized search ranking method and device according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0032] Figure 1 1 is a schematic diagram of an application scenario of an embodiment of the present disclosure. The application scenario may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a server 104, and a network 105.

[0033] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be hardware or software. When the first terminal device 101, the second terminal device 102, and the third terminal device 103 are hardware, they can be various electronic devices with display screens and supporting communication with the server 104, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers; when the first terminal device 101, the second terminal device 102, and the third terminal device 103 are software, they can be installed in the electronic devices described above. The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be implemented as multiple software or software modules, or as a single software or software module, which is not limited in the embodiments of the present disclosure. Further, various applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as data processing applications, instant messaging tools, social platform software, search applications, shopping applications, etc.

[0034] The server 104 may be a server that provides various services, for example, a background server that receives a request sent by a terminal device that establishes a communication connection with the server, and the background server may receive and analyze the request sent by the terminal device, and generate a processing result. The server 104 may be a single server, a server cluster consisting of several servers, or a cloud computing service center, which is not limited in the embodiments of the present disclosure.

[0035] It should be noted that the server 104 can be hardware or software. When the server 104 is hardware, it can be various electronic devices that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103. When the server 104 is software, it can be multiple software or software modules that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103, or it can be a single software or software module that provides various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103, and the embodiments of the present disclosure are not limited to this.

[0036] The network 105 may be a wired network connected by coaxial cables, twisted pairs, and optical fibers, or a wireless network that can interconnect various communication devices without wiring, such as Bluetooth, Near Field Communication (NFC), infrared, etc., which is not limited in the embodiments of the present disclosure.

[0037] The user can establish a communication connection with the server 104 via the network 105 through the first terminal device 101, the second terminal device 102 and the third terminal device 103 to receive or send information, etc. Specifically, after the user imports the collected data of the points of interest into the server 104, the server 104 obtains the first data of the points of interest to be processed, which includes the first longitude and latitude and the first classification of the points of interest to be processed, and performs a conflict check on the points of interest to be processed according to the first longitude and latitude and the first classification; further, in the case of determining a conflict, the server 104 performs conflict processing on the points of interest to be processed to avoid a large amount of duplicate data and unavailable data in the database.

[0038] It should be noted that the specific types, quantities and combinations of the first terminal device 101, the second terminal device 102 and the third terminal device 103, the server 104 and the network 105 can be adjusted according to the actual needs of the application scenario, and the embodiments of the present disclosure do not limit this.

[0039] Personalized search sorting refers to sorting search results based on the user's personal information data and behavior history data to meet the user's personalized needs. The purpose of personalized search sorting is to improve user satisfaction and preference for the current application. Among them, how to determine the user's preference for different items is a technical difficulty in personalized search sorting. The method to solve the above technical difficulties can take the user's long-term interests and short-term interests as the entry point. Long-term interests refer to the user's stable and lasting interests, and short-term interests refer to the user's temporary and dynamic interests. Both long-term interests and short-term interests will affect the user's query behavior and result selection. Therefore, personalized search sorting needs to comprehensively consider the influence of both to achieve the best sorting effect.

[0040] In the prior art, the personalized search ranking method uses a bidirectional recurrent neural network (Bi-RNN) to learn the user's interest representation, which has the following main disadvantages:

[0041] 1) Only the user's historical behavior data is used, without considering other information data of the user, such as age, gender, geographic location, etc., which may affect the user's interest expression;

[0042] 2) Only the unique identity field of the item is used, and other attributes of the item, such as the item's category, tag, or rating, are not considered. Other attributes of the item may be helpful for describing the item;

[0043] 3) Only a fixed attention mechanism is used, without considering the difference between users’ long-term and short-term interests, which may cause the user’s interest representation to be biased towards one interest and ignore another.

[0044] Figure 2 FIG. 1 is a flow chart of a personalized search ranking method provided by an embodiment of the present disclosure. Figure 2 As shown, the personalized search ranking method includes:

[0045] S201, receiving current query data sent by a user device, and receiving a current target item determined based on the current query data;

[0046] S202, obtaining historical behavior data of the user device, inputting the historical behavior data, current query data, and current target item into a correlation search unit, so as to determine a corresponding historical behavior data subsequence in all historical behavior data of the current user device according to the current query data and the current target item;

[0047] S203, based on the fused attention unit, respectively encode the historical behavior data subsequence, the unique identity domain corresponding to the current target item, and the attribute domain corresponding to the current target item to obtain an encoding result;

[0048] S204, performing weighted summation processing on the encoding results based on the multi-head attention mechanism to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector;

[0049] S205, inputting the fused embedding vector into a prediction unit, and obtaining an output of the prediction unit as an interaction probability between the current user device and each target item;

[0050] S206, sorting the interaction probabilities in descending order to obtain a sorting result, and displaying the corresponding target item on the user device according to the sorting result.

[0051] Among them, the user account on the user device that has logged in to send the current query data, the historical behavior data is the historical behavior data corresponding to the user account, and the encoding result includes the subsequence hidden state vector corresponding to the historical behavior data subsequence, the unique identity domain embedding vector corresponding to the unique identity domain, and the attribute domain embedding vector corresponding to the attribute domain.

[0052] Figure 2 The personalized search ranking method can be Figure 1 The personalized search and sorting method may be executed by a user device, or may be executed by receiving query data, current target items and other data sent by the user device. Figure 1 Executed on the server.

[0053] In an exemplary embodiment of the present disclosure, current query data sent by a user device is received, and a current target item determined based on the current query data is received. In order to more accurately understand the user's intentions and needs, historical behavior data on the current user device is obtained, wherein the historical behavior data records relevant data on various operations and behaviors of the user who has currently logged into the user device over a period of time in the past. The user's long-term interest expressions and short-term interest expressions can be understood through the historical behavior data, wherein the number of items of the target item includes one or more.

[0054] The historical behavior data, current query data and current target project are input into the correlation search unit, so that the correlation search can find the most relevant and valuable historical behavior data subsequence according to the current query data and target project in a large amount of historical behavior data, filter out the noise in the historical behavior data, and improve the ability to represent the user's long-term and short-term interests.

[0055] Among them, the user account that has logged in on the user device to send the current query data can ensure that the historical behavior data obtained is the historical behavior data of the current user account, thereby ensuring the accuracy and privacy of the historical behavior data, which includes one or more groups of historical behavior data.

[0056] Through the attention fusion unit, the historical behavior data subsequence, the unique identity (ID) domain corresponding to the current target item, and the attribute domain corresponding to the current target item are encoded to obtain the encoding result. The encoding process is to convert the above data into a vector form that can be understood by the computer. The encoding result includes the subsequence hidden state vector corresponding to the historical behavior data subsequence, the ID domain embedding vector corresponding to the ID domain, and the attribute domain embedding vector corresponding to the attribute domain.

[0057] The encoding results are weighted and summed through the multi-head attention mechanism, with the aim of effectively integrating the ID domain embedding vector and the attribute domain embedding vector to obtain a more comprehensive and integrated fused embedding vector, which can reflect the identity characteristics of the target project as well as its attribute characteristics.

[0058] The fused embedding vector is input into the prediction unit to obtain the interaction probability between the user device and each target item, wherein the level of the interaction probability directly reflects the possibility of the user device interacting with each target item.

[0059] The interaction probabilities are sorted in descending order to obtain a sorting result, and the target items corresponding to the interaction probabilities are displayed on the user device according to the sorting result, so that the user device can intuitively display the target items on the user device according to the interaction probability from high to low. The method for sorting the interaction probabilities can be to sort the interaction probabilities through a sorting algorithm.

[0060] According to the technical solution provided by the embodiment of the present disclosure, the target items can be sorted according to the historical behavior data of the user device to obtain a sorting result, which takes into account the current query intention and long-term interests of the user device, realizes refined processing and personalized sorting of the target items, and improves the accuracy of displaying the target items and the user experience of using the user device.

[0061] In some embodiments, historical behavior data of the current user device is obtained, and the historical behavior data, the current query data, and the current target item are input into a correlation search unit to determine a corresponding historical behavior data subsequence in all historical behavior data of the current user device according to the current query data and the current target item, including:

[0062] The historical behavior data is encoded based on the embedding layer of the correlation search unit to obtain the historical behavior hidden state vector corresponding to the current user device;

[0063] Encode the current query data based on the embedding layer to obtain the query embedding vector corresponding to the query data;

[0064] Encode the current target item based on the embedding layer to obtain the result embedding vector corresponding to the target item;

[0065] Based on the historical behavior hidden state vector, the query embedding vector and the result embedding vector, the interest representation vector of the current user device is obtained;

[0066] The interest representation vector is filtered by a preset threshold function, and the historical behavior data corresponding to the filtered interest representation vector is used as a historical behavior data subsequence.

[0067] When processing the historical behavior data of the user device, the historical behavior data, current query data, and current target project are input into the correlation search unit, wherein the main function of the correlation search unit is to filter out the noise in the historical behavior data and extract relevant information from the current query data and target project, thereby improving the ability to express interests.

[0068] Through the embedding layer of the correlation search unit, the historical behavior data is encoded to obtain the historical behavior hidden state vector corresponding to the current user device, where the hidden state is a function of the current word vector and the hidden state vector of the previous step, and the sum of the above two items needs to be activated through an activation function. Each unit outputs a prediction value and passes it to the hidden state vector of the next unit. The above historical behavior hidden state vector includes the intrinsic characteristics and patterns of the historical behavior data, and can effectively capture the user's past operating habits, preferences and other information.

[0069] The current query data is encoded through the above embedding layer to obtain the query embedding vector corresponding to the query data. The query embedding vector can accurately reflect the user's current query intention and needs.

[0070] At the same time, the embedding layer also encodes the current target item and generates a result embedding vector, which includes all important information of the target item, such as type, attributes, price, etc., so that historical behavior data that matches or is related to it can be found in the historical behavior data.

[0071] According to the historical behavior hidden state vector, query embedding vector and result embedding vector, the interest representation vector of the current user device is obtained. Among them, the interest representation vector integrates the user's historical behavior, current query intention and target project information, and can comprehensively reflect the current user device's interest in the target project.

[0072] The interest representation vector is filtered by a preset threshold function to obtain historical behavior data corresponding to the interest representation vector filtered by the preset threshold function, and the historical behavior data is used as a historical behavior data subsequence. The historical behavior data subsequence is highly correlated with the current query data and the target item, wherein the preset threshold function is obtained based on a large amount of data and algorithm training.

[0073] Among them, the historical behavior data can be expressed as {h1, h2, ..., hN}, the historical behavior data hidden state vector corresponding to the nth historical behavior data can be expressed as sn = Bi-RNN (hn), and the query embedding vector corresponding to the qth query data can be expressed as e q =Embedding(q), the i-th result embedding vector can be expressed as e i =Embedding(i), where embedding represents the embedding layer;

[0074] The interest representation vector of the current user device can be expressed as v is the interest representation vector, a nis the interest representation weight corresponding to the nth updated hidden state vector, un is the nth updated hidden state vector, n is an integer ranging from 1 to N, N is an integer greater than 1, and the nth historical behavior data subsequence can be expressed as {h n |v T u n >θ}, where θ is a threshold value determined based on a preset threshold function.

[0075] According to the technical solution provided in the embodiment of the present disclosure, it is possible to extract the historical behavior data subsequence that is most relevant to the current query data and the target project from the historical behavior data of the user device, thereby providing support for the recommendation, sorting, and prediction of the target project, helping to better understand user needs and provide more accurate sorting of target projects.

[0076] In some embodiments, obtaining the interest representation vector of the current user device based on the historical behavior hidden state vector, the query embedding vector and the result embedding vector includes:

[0077] Concatenate each query embedding vector with each historical behavior hidden state vector to obtain a concatenated sequence;

[0078] Based on the bidirectional recurrent neural network, each splicing sequence is encoded to obtain the updated hidden state vector corresponding to each historical behavior data;

[0079] Based on the result embedding vector and each updated hidden state vector, determine the interest representation weight corresponding to each current updated hidden state vector;

[0080] The updated hidden state vectors are weighted and summed based on the interest representation weight to obtain the interest representation vector of the current user device.

[0081] The query embedding vector is fused with the historical behavior hidden state vector, wherein the query embedding vector represents the search request or query request input by the user device, and can capture the immediate intention of the user device, while the historical behavior hidden state vector records the past behavior pattern of the user device and reflects the long-term interest expression of the user device. The query embedding vector and the historical behavior hidden state vector are spliced ​​to obtain a spliced ​​sequence, wherein the number of sequences of the spliced ​​sequence includes or more, and the spliced ​​sequence includes the short-term search intention of the user device and also integrates the long-term behavior pattern of the user device.

[0082] The concatenated sequence can be expressed as xn=[sn;eq], s n represents the hidden state vector of the nth historical behavior data, e q Represents the query embedding vector corresponding to the qth query data.

[0083] Each concatenated sequence is encoded through a bidirectional recurrent neural network, in which Bi-RNN can simultaneously consider the contextual information of the concatenated sequence, thereby more accurately capturing the dependencies in the sequence. After Bi-RNN encoding, the updated hidden state vector corresponding to each historical behavior data is obtained. The updated hidden state vector includes the original historical behavior data and also incorporates the content of the query embedding vector, thereby being closer to the current search intent of the user device.

[0084] Among them, the nth updated hidden state vector can be expressed as u n =Bi-RNN(x n ), where Bi-RNN represents a bidirectional recurrent neural network and xn represents the nth concatenated sequence.

[0085] According to the updated hidden state vectors of the result embedding vector, the interest representation weights corresponding to the current updated hidden state vectors are determined, wherein the result embedding vector represents the characteristics of the target item, and the interaction with the updated hidden state vector can reflect the preference of the user device for each target item. By calculating the similarity or correlation between the updated hidden state vector and the result embedding vector, the interest representation weights corresponding to the current updated hidden state vectors can be determined, and the interest representation weights corresponding to each updated hidden state vector reflect the importance of different historical behavior data in the context of the current query data.

[0086] According to the interest representation weights corresponding to the updated hidden state vectors, the updated hidden state vectors are weighted and summed to obtain the interest representation vector of the current user device.

[0087] According to the technical solution provided by the embodiments of the present disclosure, the interest representation vector of the current user device can be obtained based on the historical behavior latent state vector, the query embedding vector and the result embedding vector. The interest representation vector more comprehensively reflects the interest preferences and search intentions of the current user device. The target items can be further sorted, personalized recommended and other operations can be performed based on the interest representation vector of the current user device to improve the user experience of using the user device.

[0088] In some embodiments, based on the result embedding vector and each updated hidden state vector, determining the interest representation weight corresponding to each current updated hidden state vector includes:

[0089] Based on the interest representation weight formula, determine the interest representation weight corresponding to each currently updated hidden state vector;

[0090] The mathematical expression of the interest representation weight formula is:

[0091]

[0092] Among them, a nIt is used to represent the interest representation weight corresponding to the nth updated hidden state vector, ei is used to represent the i-th result embedding vector, and un is used to represent the nth updated hidden state vector, where n is an integer ranging from 1 to N, N is an integer greater than 1, and i is an integer starting from 1 and changes with the change of n.

[0093] The weight is determined according to a preset interest representation weight formula, which can effectively measure the degree of correlation between the result embedding vector and the updated latent state vector. In the specific calculation process, the similarity value is converted through an exponential function to obtain the original weight of each updated latent state vector, and then all the original weight values ​​are converted into the final interest representation weight through a normalization operation. The interest representation weight reflects the importance of different updated latent state vectors in the current query context. The higher the weight value, the greater the correlation between the updated latent state vector and the current search results, and the greater the contribution to the user's interest representation.

[0094] According to the technical solution provided by the embodiment of the present disclosure, the interest representation weight corresponding to the current user device is determined according to the interest representation weight formula, and the result embedding vector and each updated latent state vector can be integrated to determine the interest representation weight corresponding to each current updated latent state vector, so that the sorting result of the target project is closer to the historical behavior data of the current user device, thereby improving the user experience of using the current user device.

[0095] In some embodiments, receiving a current target item determined based on current query data includes:

[0096] Receiving a current target item obtained by searching a search database based on current query data;

[0097] Converts the target item to a preset processing format, which can be a text format or a numeric format.

[0098] Current query data input by a user device is received, wherein the query data includes keywords, phrases, or more complex query statements, reflecting the current search intention and demand of the user device.

[0099] The search database is searched according to the query data, wherein the search database is a resource library that stores a large amount of information, including all items corresponding to the current query data, such as an address book database or a document database, including documents, pictures, videos, etc., and the target item is determined in the search database according to the current query data.

[0100] After determining the target project, convert the target project into a preset processing format, wherein the preset processing format is one or more pre-defined data representation methods, which helps to unify the data representation form and facilitates subsequent processing and analysis of the target project. The preset processing format includes text format and digital format.

[0101] For text formats, it can convert the target project into plain text, remove unnecessary tags, formats and special characters, and extract key information of the project, such as title, abstract or text content;

[0102] For digital formats, certain attributes or features of the target project can be converted into numerical data. For example, for web page projects, the number of visits, likes, comments, etc. can be extracted as digital features. For image projects, digital information such as pixel size and color distribution can be extracted.

[0103] According to the technical solution provided in the embodiment of the present disclosure, it is possible to receive the current target item determined based on the current query data and convert it into a preset processing format suitable for sorting and other processing thereof, thereby providing convenience and accuracy for the sorting algorithm, display on the user device, etc.

[0104] In some embodiments, the fused embedding vector is input into a prediction unit, and the output of the prediction unit is obtained as the interaction probability of the current user device interacting with each target item, including:

[0105] Concatenate the interest representation vector and the fused embedding vector to obtain a feature vector;

[0106] Performing nonlinear transformation on the feature vector through a preset network to obtain a nonlinear feature vector, wherein the preset network includes a residual network or a long short-term memory network;

[0107] The nonlinear feature vector is input into the fully connected layer so that the fully connected layer performs multi-layer perceptual mapping on the nonlinear feature vector to obtain the interaction probability.

[0108] The interest representation vector and the fused embedding vector are concatenated to obtain a feature vector, wherein the interest representation vector is obtained based on multiple factors such as the historical behavior data, query data, and target project of the current user device, reflecting the long-term interest preference and short-term interest preference corresponding to the current user device, and the fused embedding vector includes multiple feature information of the target project, such as content, category, attributes, etc. Concatenating the interest representation vector and the fused embedding vector can effectively combine the interest representation of the current user device with the characteristics of the target project to form a feature vector.

[0109] Among them, the interest representation vector corresponding to the current user device can be expressed as v, and the nth fusion embedding vector can be expressed as The nth eigenvector can be expressed as

[0110] The concatenated feature vector is nonlinearly transformed through a preset network, wherein the preset network may be a residual network (ResNet) or a long short-term memory network (LSTM). The above network has a powerful nonlinear mapping capability and can extract deeper and more representative features from the original feature vector. Through nonlinear transformation, a nonlinear feature vector corresponding to the feature vector is obtained, and the nonlinear feature vector includes more information about the degree of matching between the interest representation vector and the target item.

[0111] Among them, the nonlinear eigenvector can be expressed as r n =ResNet(z n ), or r n =LSTM(z n ).

[0112] The nonlinear feature vector is input into the fully connected layer, where the fully connected layer is a commonly used neural network layer that can perform multi-layer perceptual mapping on the input nonlinear feature vector. In the fully connected layer, each node is connected to all the nodes in the previous layer, thereby achieving global perception of the feature vector. Through multi-layer perceptual mapping, the fully connected layer can further extract the key information in the nonlinear feature vector and convert it into interaction probability.

[0113] According to the technical solution provided in the embodiment of the present disclosure, the fused embedded vector is input into the prediction unit through vector splicing, nonlinear transformation and multi-layer perceptual mapping to obtain the interaction probability, which can effectively extract useful information from the original data and convert it into a probability value that can reflect the possibility of interaction between the user device, that is, the interaction probability.

[0114] In some embodiments, a weighted summation process is performed on the encoding results based on a multi-head attention mechanism to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector, including:

[0115] The historical behavior data subsequence is used as the input of the multi-head attention mechanism, so that the multi-head attention mechanism performs weighted summation of the unique identity domain embedding vector and the attribute domain embedding vector based on the historical behavior data subsequence to obtain a fusion vector;

[0116] Based on the gating mechanism and the fusion vector, the identity weight corresponding to the unique identity domain embedding vector and the attribute weight corresponding to the attribute domain embedding vector are determined;

[0117] Based on the identity weight and attribute weight, the unique identity domain embedding vector and attribute domain embedding vector are weighted summed to obtain the fused embedding vector.

[0118] By performing weighted summation on the encoding results according to the multi-head attention mechanism, we can obtain a fused embedding vector that combines the ID domain embedding vector and the attribute domain embedding vector, thereby deeply capturing different aspects of information in the historical behavior data and effectively integrating various information together.

[0119] The historical behavior data subsequence is used as the input of the multi-head attention mechanism, where the multi-head attention mechanism can simultaneously focus on multiple different parts of the input sequence and generate different attention weights according to different attention parts. In the weighted summation process of the attention mechanism, the ID domain embedding vector and the attribute domain embedding vector are weighted summed respectively, where the ID domain embedding vector represents the unique identification information of the current target project, and the attribute domain embedding vector includes various attribute information of the current target project. Through weighted summation, a fusion vector that integrates the above information can be obtained.

[0120] A gating mechanism is used to determine the respective weights of the ID domain embedding vector and the attribute domain embedding vector, wherein the gating mechanism is a method that can dynamically adjust the flow of information, and can determine the information to be retained and to be ignored based on the current context information. In the embodiment provided in the present disclosure, the gating mechanism determines the identity weight and the attribute weight based on the fusion vector, wherein the identity weight reflects the importance of the ID domain embedding vector in the fusion embedding vector, and the attribute weight represents the importance of the attribute domain embedding vector.

[0121] According to the identity weight and attribute weight, all ID domain embedding vectors and attribute domain embedding vectors are weighted summed to obtain the fused embedding vector.

[0122] According to the technical solution provided by the embodiment of the present disclosure, different information sources are synthesized and integrated so that the fused embedding vector can comprehensively reflect the historical behavior data, identity information and attribute characteristics of the current user device, so as to adaptively integrate long-term interests and short-term interests in the process of sorting target items, improve the balance of interest expression of the user device, and thus enhance the user experience.

[0123] Figure 3 A flowchart of another personalized search ranking method provided by an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the historical behavior data, current query data and target items are input into the correlation search unit to obtain the interest representation vector of the current user device, the interest representation vector is input into the fused attention unit, and the ID domain embedding vector and the attribute domain embedding vector are input into the fused attention unit at the same time to obtain the fused embedding vector, the fused embedding vector and the interest representation vector are input into the prediction unit, and the results output by the prediction unit are sorted to obtain the target items displayed according to the sorting results.

[0124] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.

[0125] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0126] Figure 4 Schematic diagram of a personalized search ranking device provided by an embodiment of the present disclosure. Figure 4 As shown, the personalized search ranking device includes: a receiving module 401, an acquisition module 402, a fusion module 403, an embedding module 404, a prediction module 405, and a ranking module 406, wherein:

[0127] The receiving module 401 is configured to receive the current query data sent by the user equipment, and receive the current target item determined based on the current query data;

[0128] The acquisition module 402 is configured to acquire historical behavior data of the user device, input the historical behavior data, the current query data, and the current target item into the correlation search unit, so as to determine a corresponding historical behavior data subsequence according to the current query data and the current target item in all historical behavior data of the current user device, the user account that sends the current query data has logged in on the user device, and the historical behavior data is the historical behavior data corresponding to the user account;

[0129] The fusion module 403 is configured to encode the historical behavior data subsequence, the unique identity domain corresponding to the current target item, and the attribute domain corresponding to the current target item based on the fusion attention unit, respectively, to obtain an encoding result, wherein the encoding result includes a subsequence hidden state vector corresponding to the historical behavior data subsequence, a unique identity domain embedding vector corresponding to the unique identity domain, and an attribute domain embedding vector corresponding to the attribute domain;

[0130] The embedding module 404 is configured to perform weighted summation processing on the encoding results based on the multi-head attention mechanism to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector;

[0131] The prediction module 405 is configured to input the fused embedding vector into a prediction unit, and obtain the output of the prediction unit as the interaction probability of the current user device interacting with each target item;

[0132] The sorting module 406 is configured to sort the interaction probabilities in descending order to obtain a sorting result, and display the corresponding target items on the user device according to the sorting result.

[0133] In some embodiments, the acquisition module 402 is configured to:

[0134] The historical behavior data is encoded based on the embedding layer of the correlation search unit to obtain the historical behavior hidden state vector corresponding to the current user device;

[0135] Encode the current query data based on the embedding layer to obtain the query embedding vector corresponding to the query data;

[0136] Encode the current target item based on the embedding layer to obtain the result embedding vector corresponding to the target item;

[0137] Based on the historical behavior hidden state vector, the query embedding vector and the result embedding vector, the interest representation vector of the current user device is obtained;

[0138] The interest representation vector is filtered by a preset threshold function, and the historical behavior data corresponding to the filtered interest representation vector is used as a historical behavior data subsequence.

[0139] In some embodiments, the acquisition module 402 is configured to:

[0140] Concatenate each query embedding vector with each historical behavior hidden state vector to obtain a concatenated sequence;

[0141] Based on the bidirectional recurrent neural network, each splicing sequence is encoded to obtain the updated hidden state vector corresponding to each historical behavior data;

[0142] Based on the result embedding vector and each updated hidden state vector, determine the interest representation weight corresponding to each current updated hidden state vector;

[0143] The updated hidden state vectors are weighted and summed based on the interest representation weight to obtain the interest representation vector of the current user device.

[0144] In some embodiments, the acquisition module 402 is configured to:

[0145] Based on the interest representation weight formula, determine the interest representation weight corresponding to each currently updated hidden state vector;

[0146] The mathematical expression of the interest representation weight formula is:

[0147]

[0148] Among them, a n It is used to represent the interest representation weight corresponding to the nth updated hidden state vector, ei is used to represent the i-th result embedding vector, un is used to represent the nth updated hidden state vector, n is an integer ranging from 1 to N, N is an integer greater than 1, and i is an integer starting from 1 and changes with the change of n.

[0149] In some embodiments, the receiving module 401 is configured to:

[0150] Receiving a current target item obtained by searching a search database based on current query data;

[0151] Converts the target item to a preset processing format, which can be a text format or a numeric format.

[0152] In some embodiments, the acquisition module 402 is configured to:

[0153] Concatenate the interest representation vector and the fused embedding vector to obtain a feature vector;

[0154] Performing nonlinear transformation on the feature vector through a preset network to obtain a nonlinear feature vector, wherein the preset network includes a residual network or a long short-term memory network;

[0155] The nonlinear feature vector is input into the fully connected layer so that the fully connected layer performs multi-layer perceptual mapping on the nonlinear feature vector to obtain the interaction probability.

[0156] In some embodiments, the embedding module 404 is configured to:

[0157] The historical behavior data subsequence is used as the input of the multi-head attention mechanism, so that the multi-head attention mechanism performs weighted summation of the unique identity domain embedding vector and the attribute domain embedding vector based on the historical behavior data subsequence to obtain a fusion vector;

[0158] Based on the gating mechanism and the fusion vector, the identity weight corresponding to the unique identity domain embedding vector and the attribute weight corresponding to the attribute domain embedding vector are determined;

[0159] Based on the identity weight and attribute weight, the unique identity domain embedding vector and attribute domain embedding vector are weighted summed to obtain the fused embedding vector.

[0160] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

[0161] Figure 5 Schematic diagram of an electronic device 5 provided in an embodiment of the present disclosure. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0162] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 The electronic device 5 is merely an example and does not limit the electronic device 5 , and may include more or less components than those shown in the figure, or different components.

[0163] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0164] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device.

[0165] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0166] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., a computer-readable storage medium). Based on this understanding, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0167] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.

Claims

1. A personalized search ranking method, characterized in that: include: receiving current query data sent by a user device, and receiving a current target item determined based on the current query data; Obtaining historical behavior data of the user device, inputting the historical behavior data, the current query data, and the current target item into a correlation search unit to determine a corresponding historical behavior data subsequence according to the current query data and the current target item in all the historical behavior data of the current user device, wherein the user account that sent the current query data is logged in on the user device, and the historical behavior data is the historical behavior data corresponding to the user account; Based on the fused attention unit, respectively encode the historical behavior data subsequence, the unique identity domain corresponding to the current target item, and the attribute domain corresponding to the current target item to obtain an encoding result, wherein the encoding result includes a subsequence hidden state vector corresponding to the historical behavior data subsequence, a unique identity domain embedding vector corresponding to the unique identity domain, and an attribute domain embedding vector corresponding to the attribute domain; Performing weighted summation processing on the encoding results based on a multi-head attention mechanism to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector; Inputting the fused embedding vector into a prediction unit, obtaining an output of the prediction unit as an interaction probability between the current user device and each target item; The interaction probabilities are sorted in descending order to obtain a sorting result, and the corresponding target item is displayed on the user device according to the sorting result.

2. The method according to claim 1, characterized in that Obtaining historical behavior data of a current user device, inputting the historical behavior data, the current query data, and the current target item into a correlation search unit to determine a corresponding historical behavior data subsequence according to the current query data and the current target item in all the historical behavior data of the current user device, including: Encoding the historical behavior data based on the embedding layer of the correlation search unit to obtain a historical behavior hidden state vector corresponding to the current user device; Encoding the current query data based on the embedding layer to obtain a query embedding vector corresponding to the query data; Encoding the current target item based on the embedding layer to obtain a result embedding vector corresponding to the target item; Obtaining an interest representation vector of the current user device based on the historical behavior hidden state vector, the query embedding vector, and the result embedding vector; The interest representation vectors are filtered using a preset threshold function, and the historical behavior data corresponding to the filtered interest representation vectors are used as the historical behavior data subsequence.

3. The method according to claim 2, characterized in that Obtaining a current interest representation vector of the user device based on the historical behavior hidden state vector, the query embedding vector, and the result embedding vector, including: Performing vector concatenation on each query embedding vector and each historical behavior hidden state vector to obtain a concatenated sequence; Encoding each of the spliced ​​sequences based on a bidirectional recurrent neural network to obtain an updated hidden state vector corresponding to each of the historical behavior data; Determining the interest representation weight corresponding to each of the current updated latent state vectors based on the result embedding vector and each of the updated latent state vectors; The updated hidden state vectors are weighted and summed based on the interest representation weight to obtain the current interest representation vector of the user equipment.

4. The method according to claim 3, characterized in that Determining the interest representation weight corresponding to each of the current updated latent state vectors based on the result embedding vector and each of the updated latent state vectors includes: Determine the interest representation weight corresponding to each of the currently updated hidden state vectors based on the interest representation weight formula; The mathematical expression of the interest representation weight formula is: Among them, a n It is used to represent the interest representation weight corresponding to the nth updated hidden state vector, ei is used to represent the i-th result embedding vector, un is used to represent the nth updated hidden state vector, n is an integer ranging from 1 to N, N is an integer greater than 1, and i is an integer starting from 1 and changes with the change of n.

5. The method according to claim 1, characterized in that Receiving a current target project determined based on the current query data, including: Receiving a current target item obtained by searching a search database based on the current query data; The target item is converted into a preset processing format, where the preset processing format includes a text format or a digital format.

6. The method according to claim 2, characterized in that Inputting the fused embedding vector into a prediction unit, and obtaining an output of the prediction unit as an interaction probability between the current user device and each target item, includes: Concatenate the interest representation vector and the fused embedding vector to obtain a feature vector; Performing a nonlinear transformation on the feature vector through a preset network to obtain a nonlinear feature vector, wherein the preset network includes a residual network or a long short-term memory network; The nonlinear feature vector is input into a fully connected layer, so that the fully connected layer performs multi-layer perceptual mapping on the nonlinear feature vector to obtain the interaction probability.

7. The method according to any one of claims 1 to 6, characterized in that The encoding results are weighted summed based on a multi-head attention mechanism to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector, including: Using the historical behavior data subsequence as the input of the multi-head attention mechanism, so that the multi-head attention mechanism performs a weighted summation on the unique identity domain embedding vector and the attribute domain embedding vector based on the historical behavior data subsequence to obtain a fusion vector; Determining, based on a gating mechanism and the fusion vector, an identity weight corresponding to the unique identity domain embedding vector and an attribute weight corresponding to the attribute domain embedding vector; Based on the identity weight and the attribute weight, a weighted sum is performed on each of the unique identity domain embedding vectors and the attribute domain embedding vector to obtain the fused embedding vector.

8. A personalized search ranking device, characterized in that: include: a receiving module configured to receive current query data sent by a user device and receive a current target item determined based on the current query data; an acquisition module configured to acquire historical behavior data of the user device, input the historical behavior data, the current query data, and the current target item into a correlation search unit, so as to determine a corresponding historical behavior data subsequence according to the current query data and the current target item in all the historical behavior data of the current user device, wherein the historical behavior data is the historical behavior data corresponding to the user account that has logged in to send the current query data on the user device; a fusion module configured to encode the historical behavior data subsequence, the unique identity domain corresponding to the current target item, and the attribute domain corresponding to the current target item based on the fusion attention unit, respectively, to obtain an encoding result, the encoding result including a subsequence hidden state vector corresponding to the historical behavior data subsequence, a unique identity domain embedding vector corresponding to the unique identity domain, and an attribute domain embedding vector corresponding to the attribute domain; An embedding module is configured to perform weighted summation processing on the encoding results based on a multi-head attention mechanism to obtain a fused embedding vector that fuses the unique identity domain embedding vector and the attribute domain embedding vector; a prediction module configured to input the fused embedding vector into a prediction unit, and obtain an output of the prediction unit as an interaction probability between the current user device and each target item; The sorting module is configured to sort the interaction probabilities in descending order to obtain a sorting result, and display the corresponding target item on the user device according to the sorting result.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.