Recommendation method and apparatus, recommendation model training method and apparatus, electronic device and storage medium

By combining multi-dimensional feature vectors of media data and associated information, the problem of poor recommendation effect of existing recommendation algorithms under the long-tail phenomenon is solved, the generalization and accuracy of the recommendation model are improved, and the recommendation effect of long-tail topics is optimized.

WO2024199314A1PCT designated stage expired Publication Date: 2024-10-03BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/084233
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-27
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing recommendation algorithms have poor learning effects when dealing with the associated information of the long tail phenomenon, resulting in poor recommendation results. In particular, more hot topics are recommended and less hot topics are recommended, forming a vicious cycle of the long tail phenomenon.

Method used

By combining the media feature vector of the media data and the identification feature vector of the related information to be recommended, as well as the media feature vector and text feature vector, the target matching result is determined based on the dual-branch method, generalization features are introduced, and the recommendation effect of long-tail topics is optimized.

Benefits of technology

It improves the recommendation accuracy and generalization ability of related information, improves the recommendation effect on long-tail topics, ensures multi-dimensional matching of recommendation results, and enhances the generalization of the recommendation model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084233_03102024_PF_FP_ABST
    Figure CN2024084233_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A recommendation method, a recommendation model training method, a recommendation apparatus, a recommendation model training apparatus, an electronic device, and a storage medium. The recommendation method comprises: determining a media feature vector of media data; on the basis of the media feature vector and an identifier feature vector of associated information to be recommended, determining an identifier matching result of the media data and the associated information to be recommended; determining a text matching result of the media data and the associated information to be recommended on the basis of the media feature vector and a text feature vector of the associated information to be recommended; and determining a target matching result of the media data and the associated information to be recommended on the basis of the identifier matching result and the text matching result.
Need to check novelty before this filing date? Find Prior Art

Description

Recommendation, recommendation model training method, device, electronic device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 31, 2023, with application number 202310343520.1 and invention name “Recommendation, training method, device, electronic device and storage medium for recommendation model”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present disclosure relate to data processing technology, and more particularly to methods, devices, electronic devices, and storage media for training recommendations and recommendation models. Background Art

[0003] Media applications enable online social interaction by publishing or browsing media data, such as videos. Existing media applications include a wide variety of media data. During the media data publishing process, publishers can choose to add relevant information, such as topics, to identify the published content.

[0004] However, when adding context to media data, a serious long-tail phenomenon exists. This means that the context pool contains a large amount of context, but the context used is limited to a subset of it. Existing recommendation algorithms are not effective at learning context with this long-tail phenomenon, resulting in poor recommendation results and further exacerbating the long-tail phenomenon.

[0005] Summary of the Invention

[0006] The present disclosure provides a recommendation and recommendation model training method, device, electronic device and storage medium, which utilizes the text feature vector and identification feature vector of the associated information to be recommended to determine the target matching result between the associated information to be recommended and the media data. By considering multiple dimensions of the associated information to be recommended, the target matching result is made more accurate, thereby improving the recommendation effect.

[0007] In a first aspect, an embodiment of the present disclosure provides a recommendation method, comprising:

[0008] Determining a media feature vector of the media data;

[0009] Determining a matching result between the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended;

[0010] Determining a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended;

[0011] Based on the identification matching result and the text matching result, a target matching result between the media data and the associated information to be recommended is determined.

[0012] In a second aspect, an embodiment of the present disclosure further provides a method for training a recommendation model, wherein the recommendation model is used to execute the method described in the first aspect. The training method includes:

[0013] Determining a sample feature vector corresponding to the sample;

[0014] Determining an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information;

[0015] Determining a text result of the sample and the training association information based on the sample feature vector and the text vector of the training association information;

[0016] The recommendation model to be trained is trained based on the identification result, the text result and the label result corresponding to the sample.

[0017] In a third aspect, the present disclosure further provides a recommendation device, including:

[0018] a determination module, configured to determine a media feature vector of the media data;

[0019] an identification matching result determining module, configured to determine an identification matching result between the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended;

[0020] a text matching result determining module, configured to determine a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended;

[0021] A target matching result determination module is configured to determine a target matching result between the media data and the associated information to be recommended based on the identifier matching result and the text matching result.

[0022] In a fourth aspect, an embodiment of the present disclosure further provides a training device for a recommendation model, wherein the recommendation model is used to execute the method described in the first aspect, the device comprising:

[0023] A determination module, configured to determine a sample feature vector corresponding to the sample;

[0024] an identification result determination module, configured to determine an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information;

[0025] A text result determination module, configured to determine a text result of the sample and the training association information based on the sample feature vector and the text vector of the training association information;

[0026] A training module is used to train the recommendation model to be trained based on the identification result, the text result and the label result corresponding to the sample.

[0027] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, the electronic device comprising:

[0028] one or more processing devices;

[0029] a storage device for storing one or more programs,

[0030] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method provided by the embodiment of the present disclosure.

[0031] In a sixth aspect, an embodiment of the present disclosure provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute the method provided in the embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0033] FIG1 is a flow chart of a recommendation method provided by an embodiment of the present disclosure;

[0034] FIG2a is a flow chart of another recommendation method provided by an embodiment of the present disclosure;

[0035] FIG2 b is a schematic diagram of a process of determining a target matching result by a recommendation model provided by an embodiment of the present disclosure;

[0036] FIG2c is a schematic diagram of a process of determining a target matching result by another recommendation model provided by an embodiment of the present disclosure;

[0037] FIG3 is a flow chart of a training method for a recommendation model provided by an embodiment of the present disclosure;

[0038] FIG4 is a flow chart of another method for training a recommendation model provided by an embodiment of the present disclosure;

[0039] FIG5 is a schematic structural diagram of a recommendation device provided by an embodiment of the present disclosure;

[0040] FIG6 is a schematic structural diagram of a training device for a recommendation model provided by an embodiment of the present disclosure;

[0041] FIG7 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0042] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0043] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0044] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0045] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0046] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0047] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0048] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0049] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0050] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0051] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0052] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0053] In video applications, such as short video applications, when users post short videos, recommendation algorithms can recommend topics for the videos and provide information on topic usage. Video applications have a huge number of topics, and there is a significant long-tail phenomenon in topic usage. This is partly because publishers tend to add popular topics, and partly because current recommendation algorithms don't learn long-tail topics well, resulting in poor recommendation results. Specifically, for popular topics, the probability of them being used when a short video is posted is higher, so the recommendation algorithm is more effective for them, further increasing the probability of recommendation. This results in the recommendation algorithm learning more about popular topics and recommending them more frequently, while learning less popular topics poorly and recommending fewer.

[0054] The present disclosure provides a dual-branch method based on text and identifiers, introduces generalization features, and optimizes the recommendation effect of long-tail topics. This embodiment is explained by taking the media data as video and the related information as topics as an example. Specifically, Figure 1 is a flow chart of a recommendation method provided by the embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where related information is recommended for media content, such as the situation where topics are recommended for video works. The method can be executed by a recommendation device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC or server, etc. The recommendation method provided by the present disclosure can be executed by a recommendation model, which obtains media data and outputs corresponding target matching results.

[0055] As shown in FIG1 , the method includes:

[0056] S110: Determine a media feature vector of the media data.

[0057] Media data can be considered as multimedia-related data. Multimedia generally includes various media forms such as text, sound, and images. This disclosure uses video as an example of media data, but media data can also be images.

[0058] A recommendation model can be considered a model that recommends related information associated with media data. For example, a model recommends topics for a video. The output of a recommendation model can be directly the recommended topic, with the related topic as the target matching result, or it can be the degree of association between the media data and multiple pieces of related information to be recommended. The target matching result can indicate the degree of association between the media data and the related information to be recommended, such as the score of the association between the media data and the related information to be recommended.

[0059] The media feature vector may be a feature vector of media data obtained after the media data is processed by the recommendation model.

[0060] In this step, the media data is input into the recommendation model. After the recommendation model obtains the media data, the media feature vector of the media data can be obtained within the recommendation model.

[0061] S120: Determine an identification matching result between the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended.

[0062] The associated information to be recommended can be considered as the associated information to be recommended to the publisher of the media data. The number of associated information to be recommended can be one or more. The media data can be matched with each associated information to obtain a target matching result between the media data and the associated information to be recommended.

[0063] The identification feature vector can be considered a feature vector that identifies the associated information to be recommended. The identifier can be considered data that can identify the associated information to be recommended. For example, it can be a flag that uniquely identifies the associated information to be recommended in the recommendation model. For example, if there are 500,000 pieces of associated information to be recommended, the identification information can identify the number of the pieces of associated information to be recommended that are currently determining the target matching result.

[0064] The identification matching result can be considered as a result of the degree of matching between the media data and the to-be-recommended related information determined based on the identification feature vector and the media feature vector, such as a parameter that considers whether the media data and the to-be-recommended related information match from the perspective of identification.

[0065] In this step, the recommendation model can be used to determine the identification matching result based on the media feature vector and the identification feature vector. For example, the identification matching result can be determined by multiplying the media feature vector and the identification feature vector, i.e., Id Scores = Video Embedding * Id Embedding, where Id Scores is the identification matching result, Video Embedding is the media feature vector, and Id Embedding is the identification feature vector.

[0066] S130 : Determine a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended.

[0067] The text feature vector can be considered the feature vector of the text of the recommended related information. This embodiment improves generalization from the text dimension. The text matching result can indicate the degree of match between the media data and the recommended related information, determined based on the media feature vector and the text feature vector. For example, it considers the parameters of whether the recommended related information and the media data match from the text dimension.

[0068] In this step, the recommendation model can be used to determine the text matching result based on the media feature vector and the text feature vector. For example, the product of the media feature vector and the text feature vector is determined as the text matching result, that is, Bert Scores = Video Embedding * Bert Embedding, where Bert Scores is the text matching result and Bert Embedding is the text feature vector.

[0069] Insufficient training samples for long-tail associations can lead to inadequate training and large estimation errors. This embodiment improves the generalization of the recommendation model by introducing generalized features. The identifier features of each association are unique and unshared. Representing each association using text features enhances the representation of long-tail associations and improves the generalization of the recommendation model.

[0070] The recommendation model's prediction score for the associated information to be recommended, that is, the target matching result, is jointly decided by two branches corresponding to the feature vectors corresponding to the identification class and the text class, thereby improving the recommendation effect of the recommendation model.

[0071] S140: Determine a target matching result between the media data and the associated information to be recommended based on the identifier matching result and the text matching result.

[0072] The target matching result can be considered as the final matching result between the media data and the associated information to be recommended determined by the recommendation model. Based on the target matching result, the associated information recommended to the media data publisher can be determined.

[0073] In this step, the target matching result can be determined based on the identification matching result and the text matching result through the recommendation model. The determination means are not limited. The text matching result and the identification matching result can be averaged to obtain the target matching result. Different weights can also be set for the text matching result and the identification matching result respectively, and the target matching result can be determined after weighted summation.

[0074] Exemplarily, the target matching result may be determined in the following manner: Scores=Avg(Id Scores, Bert Scores), where Scores is the target matching result.

[0075] In one embodiment, the related information to be recommended can be topics, such as 5 million topics, and the media data can be videos published by the publisher. In this embodiment, the video can be input into the recommendation model, and the recommendation model determines the target matching results between the video and each of the 5 million topics. The related information to be recommended to the publisher is then selected from the target matching results. For example, multiple target matching results with larger values ​​are selected from the target matching results, and the related information to be recommended corresponding to the selected target matching results is recommended to the publisher of the video.

[0076] The technical solution of the embodiment of the present disclosure solves the problem of poor recommendation effect of associated information in existing recommendation algorithms by determining the media feature vector of the media data; determining the identification matching result of the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended; determining the text matching result of the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended; and determining the target matching result of the media data and the associated information to be recommended based on the identification matching result and the text matching result, so as to solve the problem of poor recommendation effect of associated information in existing recommendation algorithms. When making recommendations, multi-dimensional data of the associated information to be recommended, such as the identification feature vector and the text feature vector, are taken into consideration to improve the generalization when determining the target matching result of the associated information to be recommended and the media information, so as to make the target matching result more accurate.

[0077] Based on the above embodiment, a modified embodiment of the above embodiment is proposed. It should be noted that, in order to simplify the description, only the differences from the above embodiment are described in the modified embodiment.

[0078] FIG2a is a flow chart of another recommendation method provided by an embodiment of the present disclosure. This embodiment refines the operation of determining a target matching result. As shown in FIG2a , the method includes the following steps:

[0079] S210: Determine a media feature vector of the media data.

[0080] S220: Determine a matching result between the media data and the identification feature vector of the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended.

[0081] S230: Determine a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended.

[0082] S240: Determine a weighted average of the identifier matching result and the text matching result as a target matching result between the media data and the associated information to be recommended.

[0083] When determining the target matching result in this embodiment, it can be determined by weighted summation. For hot topics, the identification branch training effect is better, and the identification matching result is more reliable than the text matching result. Conversely, for long-tail topics, the text matching result is more reliable than the identification matching result. Therefore, this embodiment can set different weights for the text matching result and the identification matching result, and then obtain the target matching result after weighted summation. The setting of the weight coefficient is not limited here and can be set based on actual conditions.

[0084] For example, the weight coefficient can be determined by a neural network module in the recommendation model, and the identification weight coefficient and / or the text weight coefficient can be determined. After the identification weight coefficient is determined, the text weight coefficient can be determined based on the identification weight coefficient. After the text weight coefficient is determined, the identification weight coefficient can be determined based on the text weight coefficient.

[0085] The embodiment of the present disclosure determines the target matching result by weighted summation, which can fully consider the confidence situation and make the determination of the target matching result more accurate.

[0086] In one embodiment, determining the weighted average of the identifier matching result and the text matching result as the target matching result between the media data and the associated information to be recommended includes:

[0087] Determining an identification weight coefficient of the identification feature vector of the associated information to be recommended;

[0088] Determining a text weight coefficient of the text feature vector based on the weight coefficient of the identification feature vector;

[0089] Based on the identification weight coefficient and the text weight coefficient, a weighted sum is performed on the identification feature vector and the text feature vector to obtain a target matching result between the media data and the associated information to be recommended.

[0090] The identifier weight coefficient can be considered as the weight coefficient of the identifier feature vector. The text weight coefficient can be considered as the weight coefficient of the text feature vector. In this embodiment, the identifier weight coefficient can be determined based on the recommendation model, and then the text weight coefficient can be determined based on the identifier weight coefficient. The sum of the text weight coefficient and the identifier weight coefficient can be 1.

[0091] How to determine the identification weight coefficient is not limited here. For example, it can be determined by a neural network module within the recommendation model. The input of the neural network module is not limited.

[0092] Based on the identification weight coefficient and the text weight coefficient, the weighted sum of the identification feature vector and the text feature vector can be the product of the identification weight coefficient and the identification feature vector plus the product of the text weight coefficient and the text feature vector, that is, Scores = Id Scores*Id Weights+Bert Scores*(1–Id Weights), where Id Weights is the identification weight coefficient and 1–Id Weights is the text weight coefficient.

[0093] In one embodiment, determining the identification weight coefficient of the identification feature vector of the associated information to be recommended includes:

[0094] An identification weight coefficient of the to-be-recommended associated information is determined based on the number of times the to-be-recommended associated information is used.

[0095] The usage count can be understood as the number of times the recommended related information has been used in the historical media data, also known as the number of submissions. In this embodiment, the usage count can be used as input to obtain the identification weight count through the neural network module. That is, Id weights = Neural_Network(Counter), where Counter is the usage count.

[0096] Figure 2b is a flow chart of a recommendation model provided by an embodiment of the present disclosure for determining a target matching result; referring to Figure 2b, the recommendation model obtains a media feature vector based on the input media data, and then processes the media feature vector with the identifier feature vector and the text feature vector, respectively, to obtain an identifier matching result and a text matching result, thereby realizing dual-branch processing of text and identifier, and finally obtaining a target matching result.

[0097] Figure 2c is a flow chart of another recommendation model provided by an embodiment of the present disclosure for determining target matching results; referring to Figure 2c, when fusing the text branch and the identification branch, the weight coefficients of the text feature vector and the identification feature vector, i.e., the text weight coefficient and the identification weight coefficient, can be set in combination with the number of times the associated information to be recommended is used. Autonomous learning of the fusion weight is achieved through the number of times the topic is submitted. The greater the number of times it is used, the more submission samples there are, and the corresponding learnable weight is also greater. The weights of the text branch and the feature branch are adjusted by learning through the neural network module corresponding to the number of times used to avoid insufficient fusion of the two branches. This embodiment makes full use of generalized features through a dual-branch topic recommendation method to optimize the recommendation effect of long-tail or small and medium-sized topics. Setting the weight coefficient by the number of times used effectively avoids the problem of insufficient learning of the two branches.

[0098] Figure 3 is a flow chart of a method for training a recommendation model provided by an embodiment of the present disclosure. This embodiment is applicable to the case of training a recommendation model. The method can be executed by a training device for training the model, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc. The electronic device that executes the recommendation method and the training method of the recommendation model can be one electronic device or different electronic devices. The recommendation method disclosed in the present disclosure can be executed by a recommendation model, and the training of the recommendation model can refer to this embodiment.

[0099] As shown in FIG3 , the method includes:

[0100] S310: Determine a sample feature vector corresponding to the sample.

[0101] The training sample set can be considered as a data set for training the recommendation model to be trained. The training sample set can include training samples, such as training media data.

[0102] The sample feature vector can be considered the feature vector corresponding to the sample. The sample feature vector and media feature vector can be considered the feature vectors corresponding to different stages of the recommendation model. The sample feature vector is the feature vector corresponding to the sample in the training phase. The media feature vector can be considered the feature vector in the application phase of the recommendation model.

[0103] In this step, samples in the training sample set may be input into the recommendation model to be trained, and the recommendation model to be trained determines the sample feature vectors of the samples.

[0104] S320: Determine an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information.

[0105] The identification vector of the training association information can be considered as the vector corresponding to the training association information identification. The identification vector and the identification feature vector can be the feature vectors corresponding to the training stage and the application stage of the recommendation model respectively.

[0106] The training association information can be considered as the association information corresponding to the sample in the training stage. The association information can be the label of the sample, such as the association information (such as topic) required to be recommended for the sample, and can be used as a positive sample of the recommendation model.

[0107] In this step, the product of the sample feature vector and the identification vector may be determined as the identification result. The identification result may indicate the degree of matching between the sample determined based on the identification vector and the sample feature vector and the training association information.

[0108] S330 : Determine a text result between the sample and the training association information based on the sample feature vector and the text vector of the training association information.

[0109] The text vector of the training association information can be considered as a vector of the training association information text. The text result can indicate the degree of association between the sample and the training association information based on the sample feature vector and the text vector.

[0110] In this step, the product of the sample feature vector and the text vector can be determined as the text result.

[0111] S340: Training the recommendation model to be trained based on the identification result, the text result, and the label result corresponding to the sample.

[0112] The labeling result can be a result that measures the degree of association between the labeled sample and the training association information. Based on the identification and text results, the degree of association between the sample identified by the recommendation model to be trained and the training association information can be determined. For example, a weighted sum of the identification and text results can be used as the final result. A loss function can be determined based on the final result and the labeling result to adjust the model parameters of the recommendation model to be trained.

[0113] The specific means of weighted summation are not limited. Please refer to the determination means in the application stage of the recommendation model. For example, based on the number of times the training association information is used, the weight coefficients corresponding to the text results and the identification results are determined, and then the text results and the identification results are weighted and summed based on the weight coefficients to obtain the final result.

[0114] In the disclosed embodiment, a recommendation model to be trained is trained from two branches, namely, text and identification, thereby improving the generalization of the recommendation model.

[0115] FIG4 is a flow chart of another method for training a recommendation model provided by an embodiment of the present disclosure. This embodiment further includes a means for training a recommendation model to be trained based on negative examples. The recommendation model to be trained can perform the following operations of negative example training, as shown in FIG4 . The method includes:

[0116] S410: Determine a sample feature vector corresponding to the sample.

[0117] S420: Determine an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information.

[0118] S430 : Determine a text result of the sample and the training association information based on the sample feature vector and the text vector of the training association information.

[0119] S440: Training the recommendation model to be trained based on the identification result, the text result, and the label result corresponding to the sample.

[0120] S450 , determining a first set number of pieces of association information in the association information set that are similar to the training association information through identification vectors of the association information in the association information set, and determining the determined association information as first negative example information.

[0121] In this embodiment, the execution order of the training steps corresponding to S450-S470 and the training step corresponding to S440 is not limited.

[0122] The training steps corresponding to S450 - S470 can be considered as training the recommendation model to be trained based on the incremental negative samples exchanged between the two branches.

[0123] The association information set can be considered a collection of association information. It can include all association information provided by video applications. Training association information can be removed from the association information set. Based on the identification vector and sample feature vector of the association information in the association information set, a matching result for the identification dimension can be determined, for example, by multiplying the identification vector and the sample feature vector.

[0124] The identification vectors of different objects can be considered as vectors of their identifications. For example, the identification vector of association information can be considered as the vector of its identifications. The identification vector can be considered as the vector corresponding to the identification. The identification vector of the second negative example information can be considered as the vector corresponding to the identification of the second negative example information.

[0125] After determining the matching result, multiple pieces of related information similar to the training related information can be determined in the related information set, and the value of the first set number is not limited. The determined related information is used as the first negative example information and as the incremental information of the text branch.

[0126] The first negative example information may be considered as a negative sample of the text branch determined based on the identifier, and the first negative example information may be associated information.

[0127] Exemplarily, this embodiment uses the identification vector to find the top-k other topics j (i.e., the first negative example information) that are most similar to the current topic i (i.e., the associated information for training), and regards them as difficult samples. At this time, the difficult samples of the identification branch are incremental information for text learning. Therefore, the prediction score Scores_i obtained by designing Video Embedding (i.e., the sample feature vector) * Bert Embedding_i (i.e., the text vector of the associated information for training) is larger than the Scores_j of the difficult sample j of the identification branch (the product of the vector corresponding to the first negative example information and the sample feature vector) by a confidence value (i.e., margin); and vice versa. The purpose of this is to make full use of the difficult samples of each path to help the Embedding learning of the opposite path.

[0128] S460 , determining a second set number of pieces of associated information in the associated information set that are similar to the training associated information through the text vectors of the associated information in the associated information set, and determining the determined pieces of associated information as second negative example information.

[0129] A text vector can be considered the vector corresponding to the text. The text vectors of different objects can be considered the vectors of the text of different objects. For example, the text vector of associated information can be considered the vector corresponding to the text of the associated information. The text vector of the first negative example information can be considered the vector corresponding to the text of the first negative example information.

[0130] Based on the text vector and the sample feature vector of the associated information of the associated information set, a matching result of the text dimension can be determined, such as multiplying the text vector and the sample feature vector.

[0131] After determining the matching result, multiple pieces of related information similar to the training related information can be determined in the related information set, and the value of the second set number is not limited. The determined related information is used as the second negative example information and as the incremental information of the identification branch.

[0132] The second negative example information may be considered as a negative sample of an identification branch determined based on the text, and the second negative example information may be associated information.

[0133] S470: Train the recommendation model to be trained based on the first negative example information and the second negative example information.

[0134] The first negative example information and the second negative example information are respectively used as negative samples of the corresponding branches to train the recommendation model to be trained. The specific training method is not limited here.

[0135] In one embodiment, the training of the recommendation model to be trained based on the first negative example information and the second negative example information includes:

[0136] The recommendation model to be trained is trained based on the text vector of the first negative example information and the identification vector of the second negative example information.

[0137] When training the recommendation model to be trained, the text branch may be trained based on the text vector of the first negative example information, and the identification branch may be trained based on the identification vector of the second negative example information.

[0138] This embodiment leverages dual-branch mutual learning, enabling the two branches of the recommendation model to mutually enhance information gain. The text branch is advantageous for modeling long-tail associations, while the identifier branch is advantageous for modeling highly correlated information. This embodiment provides incremental learning information for both branches, using the identifier branch's feature vector to mine hard negative samples for the text branch, and symmetrically using the text branch to mine hard negative samples for the identifier branch.

[0139] FIG5 is a schematic diagram of the structure of a recommendation device provided by an embodiment of the present disclosure. The device can be integrated into an electronic device. As shown in FIG5 , the device includes:

[0140] A determination module 510, configured to determine a media feature vector of the media data;

[0141] an identification matching result determining module 520 for determining an identification matching result between the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended;

[0142] A text matching result determination module 530 is configured to determine a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended;

[0143] The target matching result determination module 540 is configured to determine a target matching result between the media data and the associated information to be recommended based on the identifier matching result and the text matching result.

[0144] The technical solution provided by the embodiments of the present disclosure solves the problem that existing recommendation algorithms have poor effects in recommending related information. When making recommendations, multi-dimensional data of the related information to be recommended, such as identification feature vectors and text feature vectors, is taken into account to improve the generalization when determining the target matching results between the related information to be recommended and the media information, thereby making the target matching results more accurate.

[0145] In one embodiment, the target matching result determination module 540 includes a determination unit configured to:

[0146] A weighted average of the identification matching result and the text matching result is determined as a target matching result between the media data and the associated information to be recommended.

[0147] In one embodiment, the determining unit is specifically configured to:

[0148] A first determining subunit, configured to determine an identification weight coefficient of an identification feature vector of the associated information to be recommended;

[0149] a second determining subunit, configured to determine a text weight coefficient of the text feature vector based on the weight coefficient of the identification feature vector;

[0150] The third determining subunit is configured to perform weighted summation on the identification feature vector and the text feature vector based on the identification weight coefficient and the text weight coefficient to obtain a target matching result between the media data and the associated information to be recommended.

[0151] In one embodiment, the first determining subunit is specifically configured to:

[0152] An identification weight coefficient of the to-be-recommended associated information is determined based on the number of times the to-be-recommended associated information is used.

[0153] The recommendation device provided in the embodiments of the present disclosure can execute the recommendation method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0154] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0155] FIG6 is a schematic diagram of the structure of a training device for a recommendation model provided by an embodiment of the present disclosure. The device can be integrated into an electronic device, and includes:

[0156] A determination module 610 is configured to determine a sample feature vector corresponding to the sample;

[0157] an identification result determination module 620, configured to determine an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information;

[0158] A text result determination module 630 is configured to determine a text result of the sample and the training association information based on the sample feature vector and the text vector of the training association information;

[0159] The training module 640 is configured to train the recommendation model to be trained based on the identification result, the text result, and the label result corresponding to the sample.

[0160] The technical solution provided by the embodiment of the present disclosure trains the recommendation model to be trained from two branches: text and identification, thereby improving the generalization of the recommendation model.

[0161] In one embodiment, the apparatus further includes: a negative example training module, comprising:

[0162] a first determining unit, configured to determine, by using identification vectors of the association information in the association information set, a first set number of association information in the association information set that are similar to the training association information, and determine the determined association information as first negative example information;

[0163] a second determining unit, configured to determine, by using text vectors of the associated information in the associated information set, a second set number of associated information in the associated information set that are similar to the training associated information, and determine the determined associated information as second negative example information;

[0164] A training unit is used to train the recommendation model to be trained based on the first negative example information and the second negative example information.

[0165] In one embodiment, the training unit is specifically configured to:

[0166] The recommendation model to be trained is trained based on the text vector of the first negative example information and the identification vector of the second negative example information.

[0167] The training device for the recommendation model provided in the embodiments of the present disclosure can execute the training method for the recommendation model provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0168] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0169] FIG7 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG7 , it shows a schematic diagram of the structure of an electronic device (eg, a terminal device or server in FIG7 ) 500 suitable for implementing an embodiment of the present disclosure.

[0170] The electronic device 500 includes:

[0171] one or more processing devices;

[0172] a storage device for storing one or more programs,

[0173] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method provided by the embodiment of the present disclosure.

[0174] The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device 500 shown in FIG7 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0175] As shown in FIG7 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0176] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 7 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0177] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0178] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0179] The electronic device provided by the embodiment of the present disclosure and the method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0180] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the method provided in the above embodiment is implemented.

[0181] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.

[0182] The computer storage medium may be a storage medium of computer-executable instructions, which, when executed by a computer processor, are used to perform the methods provided in the present disclosure.

[0183] Computer-readable storage media may include, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, device, or component. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wire, optical cable, RF (radio frequency), etc., or any suitable combination thereof.

[0184] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0185] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0186] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0187] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0188] Determining a media feature vector of the media data;

[0189] Determining a matching result between the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended;

[0190] Determining a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended;

[0191] Based on the identification matching result and the text matching result, a target matching result between the media data and the associated information to be recommended is determined.

[0192] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device:

[0193] Determining a sample feature vector corresponding to the sample;

[0194] Determining an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information;

[0195] Determining a text result of the sample and the training association information based on the sample feature vector and the text vector of the training association information;

[0196] The recommendation model to be trained is trained based on the identification result, the text result and the label result corresponding to the sample.

[0197] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0198] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0199] The modules or units described in the embodiments of the present disclosure may be implemented in software or hardware. The name of a module or unit does not, in some cases, limit the unit itself. For example, a determination module may also be described as a "media feature vector determination module."

[0200] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0201] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0202] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0203] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0204] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A recommendation method, comprising: Determining a media feature vector of the media data; Determining a matching result between the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended; Determining a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended; Based on the identification matching result and the text matching result, a target matching result between the media data and the associated information to be recommended is determined.

2. The method according to claim 1, wherein determining a target matching result between the media data and the associated information to be recommended based on the identification matching result and the text matching result comprises: A weighted average of the identification matching result and the text matching result is determined as a target matching result between the media data and the associated information to be recommended.

3. The method according to claim 2, wherein determining the weighted average of the identification matching result and the text matching result as the target matching result between the media data and the associated information to be recommended comprises: Determining an identification weight coefficient of an identification feature vector of the associated information to be recommended; Determining a text weight coefficient of the text feature vector based on the weight coefficient of the identification feature vector; Based on the identification weight coefficient and the text weight coefficient, a weighted sum is performed on the identification feature vector and the text feature vector to obtain a target matching result between the media data and the associated information to be recommended.

4. The method according to claim 3, wherein the step of determining the identification weight coefficient of the identification feature vector of the associated information to be recommended comprises: Based on the number of times the to-be-recommended associated information is used, an identification weight coefficient of the to-be-recommended associated information is determined.

5. A training method for a recommendation model, wherein the recommendation model is used to execute the method according to any one of claims 1 to 4, the training method comprising: Determine a sample feature vector corresponding to the sample; Determining an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information; Determining a text result of the sample and the training association information based on the sample feature vector and the text vector of the training association information; The recommendation model to be trained is trained based on the identification result, the text result and the label result corresponding to the sample.

6. The method according to claim 5, further comprising: Determine, by using the identification vector of the associated information in the associated information set, a first set number of associated information in the associated information set that is similar to the training associated information, and determine the determined associated information as first negative example information; Determine a second set number of associated information in the associated information set that are similar to the training associated information through the text vectors of the associated information in the associated information set, and determine the determined associated information as second negative example information; The recommendation model to be trained is trained based on the first negative example information and the second negative example information.

7. The method according to claim 6, wherein the training the recommendation model to be trained based on the first negative example information and the second negative example information comprises: The recommendation model to be trained is trained based on the text vector of the first negative example information and the identification vector of the second negative example information.

8. A recommendation device, comprising: A determination module, used to determine a media feature vector of the media data; An identification matching result determining module, used to determine an identification matching result between the media data and the associated information to be recommended based on the media feature vector and the identification feature vector of the associated information to be recommended; A text matching result determination module, used to determine a text matching result between the media data and the associated information to be recommended based on the media feature vector and the text feature vector of the associated information to be recommended; The target matching result determination module is used to determine the target matching result of the media data and the associated information to be recommended based on the identification matching result and the text matching result.

9. A training device for a recommendation model, wherein the recommendation model is used to execute the method according to any one of claims 1 to 4, the device comprising: A determination module, used to determine a sample feature vector corresponding to the sample; An identification result determination module, used to determine an identification result of the sample and the training association information based on the sample feature vector and the identification vector of the training association information; A text result determination module, used to determine the text result of the sample and the training association information based on the sample feature vector and the text vector of the training association information; A training module is used to train the recommendation model to be trained based on the identification result, the text result and the label result corresponding to the sample.

10. An electronic device, comprising: one or more processing devices; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method according to any one of claims 1 to 7.

11. A storage medium comprising computer executable instructions, which when executed by a computer processor are used to perform the method according to any one of claims 1 to 7.

12. A computer program, wherein when the computer program is executed by a processor, the computer program is used to implement the method according to any one of claims 1 to 7.

13. A computer program product comprising computer readable program medium code stored thereon, which, when executed by a processor, causes the processor to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for recommending information

    CN111695041A

  • Information recommendation method and device, electronic equipment and computer readable storage medium

    CN115858911A

  • Recommendation method and device, recommendation model training method and device, electronic equipment and storage medium

    CN116450937A

  • Content recommendation apparatus, content recommendation system, content recommendation method, and program

    US20180285447A1