Media content searching method and device, storage medium and electronic equipment

Through distillation learning of the graph representation model, a lightweight search word representation model is obtained, which solves the timeliness problem caused by the large size of the media content search model in the existing technology, achieves fast and accurate search result output, and improves user experience. Experience and service quality.

CN118690075APending Publication Date: 2024-09-24TENCENT TECH (BEIJING) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310285338.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Due to continuous improvement, the existing media content search model has increased in size, making it difficult to meet the timeliness requirements of online and real-time search, and it is difficult to balance the accuracy and speed of search results.

Method used

The graph representation model is used for distillation learning to obtain a lightweight search word representation model, and heterogeneous graphs are used for representation information extraction and modeling to quickly output search results while ensuring the accuracy of the search results.

Benefits of technology

It achieves fast and accurate media content search, meets the timeliness requirements of online search, while maintaining strong representation capabilities, improving user experience and service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690075A
    Figure CN118690075A
Patent Text Reader

Abstract

The embodiment of the invention discloses a media content searching method and device, a storage medium and electronic equipment. The method can be applied to the field of artificial intelligence. According to the media content search method, the search word representation information corresponding to the search word is obtained through the search word representation model, and the search word representation model is obtained by carrying out distillation learning on the graph representation model, so that the media content search method has the strong representation capability of the graph representation model for the search word and also has the advantage of light weight. Therefore, the scheme for searching the media content based on the output search representation information can achieve the purposes of quick search and online search due to the advantage of light weight, and can ensure an accurate search result by means of the strong representation capability of the graph representation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a media content search method, device, storage medium, and electronic device. Background Art

[0002] In the field of media content search, the media content search model can display media content that matches the search terms to the user based on the query demand information input by the user, thereby meeting the user's media content query needs. However, in order to meet high-quality search needs, the representation models for search terms and media content are constantly being improved, which has also led to the increasing size of these models, resulting in poor timeliness of search services provided based on these models, making it difficult to meet online search needs. Summary of the invention

[0003] In order to solve at least one of the above technical problems, the embodiments of the present application provide a media content search method, device, storage medium and electronic device to solve the technical problem of poor timeliness of search services.

[0004] On the one hand, an embodiment of the present application provides a media content search method, the method comprising:

[0005] When a search term is obtained, the search term is input into a search term representation model to obtain search term representation information corresponding to the search term;

[0006] Based on the search word representation information, a content library is queried to obtain a query result, wherein the content library stores content representation information corresponding to each of the at least one media content;

[0007] In the case that the query result is not empty, determining the target media content corresponding to the target content representation information in the query result, the target content representation information being content representation information whose semantic relevance to the search term representation information meets a preset requirement;

[0008] Determining search results based on the target media content;

[0009] Among them, the search term representation model is obtained by distilling and learning a graph representation model, and the graph representation model is obtained by graph learning a heterogeneous graph formed by historical search terms and corresponding media content. The graph representation model is used to extract representation information from the input media content and search terms respectively, and the content representation information in the content library is modeled by the graph representation model.

[0010] On the other hand, an embodiment of the present application provides a media content search device, the device comprising:

[0011] A search module is used to input the search term into a search term representation model to obtain search term representation information corresponding to the search term when a search term is obtained; query a content library based on the search term representation information to obtain a query result, wherein the content library stores content representation information corresponding to each of the at least one media content;

[0012] A search content determination module is used to determine, when the query result is not empty, target media content corresponding to the target content representation information in the query result, the target content representation information being content representation information whose semantic relevance to the search term representation information meets preset requirements; and determine search results based on the target media content;

[0013] Among them, the search term representation model is obtained by distilling and learning a graph representation model, and the graph representation model is obtained by graph learning a heterogeneous graph formed by historical search terms and corresponding media content. The graph representation model is used to extract representation information from the input media content and search terms respectively, and the content representation information in the content library is modeled by the graph representation model.

[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned media content search method.

[0015] On the other hand, an embodiment of the present application provides an electronic device, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements the above-mentioned media content search method by executing the instructions stored in the memory.

[0016] On the other hand, an embodiment of the present application provides a computer program product, including a computer program or instructions, which implement the above-mentioned media content search method when executed by a processor.

[0017] The embodiment of the present application provides a media content search method, which obtains search term representation information corresponding to a search term through a search term representation model, and the search term representation model is obtained by distilling and learning a graph representation model, so it has both the powerful representation ability of the graph representation model for search terms and the advantage of being lightweight. This makes it possible for a solution for searching for media content based on the search representation information output by the model to achieve the purpose of fast search and online search due to its lightweight advantage, and to ensure accurate search results with the help of the powerful representation ability of the graph representation model. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technology descriptions. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 This is a schematic diagram of a feasible implementation framework of the media content search method provided in the embodiment of the present application;

[0020] Figure 2 is a flowchart of a media content search method provided in an embodiment of the present application;

[0021] Figure 3 It is a search term representation model construction method provided in an embodiment of the present application;

[0022] Figure 4 It is a schematic diagram of a training method for a graph representation model provided in an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of a second sample characterization information acquisition method provided in an embodiment of the present application;

[0024] Figure 6 This is a schematic diagram of information relationship used to measure the second loss provided in the embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of the online search service architecture provided by an embodiment of the present application;

[0026] Figure 8 is a block diagram of a media content search device provided in an embodiment of the present application;

[0027] Fig. 9 It is a schematic diagram of the hardware structure of a device provided in an embodiment of the present application for implementing the method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0030] In order to make the purpose, technical solution and advantages disclosed in the embodiments of the present application more clearly understood, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present application and are not used to limit the embodiments of the present application.

[0031] In the following, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "multiple" means two or more. In order to facilitate the understanding of the above-mentioned technical solutions and the technical effects produced by the embodiments of the present application, the embodiments of the present application first explain the relevant professional terms:

[0032] Cloud technology: refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing. It is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool and be used on demand, flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, each resource may have its own identification mark in the future, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.

[0033] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0034] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operating / switching systems, mechatronics and other technologies. Artificial intelligence software technology includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0035] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.

[0036] Deep learning: The concept of deep learning originates from the study of artificial neural networks. A multi-layer perceptron with multiple hidden layers is a deep learning structure. Deep learning discovers distributed feature representations of data by combining low-level features to form more abstract high-level representations of attribute categories or features.

[0037] Knowledge Distillation: Knowledge distillation is an emerging method for obtaining efficient small-scale networks. Its main idea is to transfer the "knowledge" in a complex teacher model with strong learning ability to a simple student model. At the same time, it also has a significant effect on enhancing the performance of the model through optimization strategies such as mutual learning and self-learning of neural networks.

[0038] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language used by people in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes corpus processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies. Generally, it is generally believed that NLP = NLU + NLG, NLU, namely Natural Language Understanding, refers to natural language understanding, and NLG, namely Natural Language Generation, refers to natural language generation. The two complement each other. Only by doing a good job in NLU can you do a good job in NLG, and only by doing a good job in NLU and NLG can you do a good job in NLP.

[0039] Transformer: The Transformer model (literally "transformer") is a deep learning model that uses a self-attention mechanism, which can assign different weights according to the importance of each part of the input data. This model is mainly used in the fields of natural language processing and computer vision. It is a model that uses a self-attention structure to extract the interaction between each element of the sequence. It is widely used in the fields of natural language processing, image processing, and time series prediction. Transformer is a model based on a multi-head attention mechanism, which is essentially an Encoder-Decoder model. The input of the Transformer Encoder model is the word embedding representation of a sentence and its corresponding position encoding information. The core layer of the model is a multi-head attention mechanism. The multi-head attention mechanism uses multiple attention mechanisms to perform separate calculations to obtain more levels of semantic information, and then splices and combines the results obtained by each attention mechanism to obtain the final result. The Add&Norm layer will sum and normalize the input and output of the Multi-Head Attention layer, and then pass it to the Feed Forward layer. Finally, it will perform Add&Norm processing again and output the final word vector matrix. Transformer is a combination of full connection (or one-dimensional convolution) and Attention. The algorithm has good parallelism and is suitable for the current hardware environment.

[0040] The full name of the BERT model is: Bidirectional Encoder Representations from Transformer. The BERT model is an encoder of a bidirectional Transformer. The goal is to use large-scale unlabeled corpus training to obtain a representation of the text that contains rich semantic information, that is, the semantic representation of the text, and then fine-tune the semantic representation of the text in a specific NLP task, and finally apply it to the NLP task. The main input of the BERT model is the original word vector of each word in the text, and the output is the vector representation of each word in the text after integrating the semantic information of the entire text.

[0041] KL divergence (Kullback-Leibler divergence, referred to as KLD): in the information system is called relative entropy, in the continuous time series is called randomness, in the statistical model inference is called information gain, also known as information divergence.

[0042] Graph: A graph consists of a set of nodes and edges connecting them. It is used to express the relationship between multiple entities. If the nodes in the graph are of different types, the graph is a heterogeneous graph. The type of node is related to the information pointed to by the node. For example, if there are two types of nodes in a graph, the first type of node represents the search term, and the second type of node represents the media content, then these two nodes belong to different types of nodes, and the graph is a heterogeneous graph.

[0043] Entity Linking: Entity Linking refers to the process of correctly and unambiguously pointing the identified entity objects (e.g., movie IP names, names of people, etc.) in free text to the target entities in the knowledge base.

[0044] Meta-path: Meta-path. Simply put, Meta-path is a specific path pattern connecting two entities. For example, the meta-path "video->actor->video" can connect two videos, so it can be regarded as a way to mine the potential relationship between videos.

[0045] Graph Neural Networks: GNN is a type of graph domain information processing method based on deep learning, which is used to learn connectionist models of graphs containing a large number of connections.

[0046] Search side information: information obtained based on the user's search behavior, such as search terms, which can be understood as information including the search sentence or search keyword input by the user. For the search scenario, the search side information can be collected by the client or terminal that provides the search service.

[0047] Media side information: information related to media content, such as the content information of the media content itself or entities associated with the media content. Entities can be names of people, names of organizations, names of places, or other entities identified by names. For media content, its associated entities can include name entities, film and television work entities, etc. For example, a name entity can be constructed based on the names of some important characters in the media content. For film and television works, a film and television work entity can be constructed based on the name of the film and television work.

[0048] In the field of media content search, according to the query demand information input by the user, the media content search model can present the user with adapted media content based on the query demand information, thereby satisfying the user's media content query demand. Generally, the media content search model can perform media content search by text recall, which has the advantage of being simple enough, but with poor search effect.

[0049] Specifically, in actual usage scenarios, the search terms entered by users on the search side are often relatively short and confusing. The quality of media content uploaded by creators on the media side varies, and the quality of available multimodal information is difficult to guarantee. It is difficult to capture users' real viewing needs through text recall. Moreover, the media content recalled by these solutions lacks the perception of users' real needs. Even if it is highly matched with the search terms, it does not mean that it matches the user's interests. Therefore, it is not necessarily a suitable search result.

[0050] In order to solve the above technical problems, relevant technologies continue to improve the search model, trying to maximize the search model's ability to represent search terms and media content. However, this inevitably leads to an increase in the size of the search model and a decrease in the speed of outputting search results, making it difficult to meet the needs of online search and real-time search.

[0051] In view of this, an embodiment of the present application provides a media content search method, which obtains search term representation information corresponding to a search term through a search term representation model, and the search term representation model is obtained by distilling and learning a graph representation model, so it has both the powerful representation ability of the graph representation model for search terms and the advantage of being lightweight. This makes it possible for a solution for searching for media content based on the search representation information output by the solution to achieve the purpose of fast search and online search due to its lightweight advantage, and to ensure accurate search results with the help of the powerful representation ability of the graph representation model.

[0052] See also Figure 1 , Figure 1 is a feasible implementation framework diagram of the media content search method provided in the embodiments of this specification, such as Figure 1As shown, the implementation framework may include at least a client 10 and a server 20, and the client 10 and the server 20 communicate via a network 30. The implementation framework may also be considered as a media content search system. The server 20 may be located in a cloud environment, and the server 20 is a media content search node in the cloud environment, and the node is any node in the cloud environment.

[0053] The server 20 can, when obtaining a search term, input the search term into a search term representation model to obtain search term representation information corresponding to the search term; query a content library based on the search term representation information to obtain a query result, wherein the content library stores content representation information corresponding to each of at least one media content; when the query result is not empty, determine the target media content corresponding to the target content representation information in the query result, wherein the target content representation information is content representation information whose semantic relevance to the search term representation information meets preset requirements; determine the search result based on the target media content; wherein the search term representation model is obtained by performing distillation learning on a graph representation model, the graph representation model is obtained by performing graph learning on a heterogeneous graph formed by historical search terms and corresponding media content, the graph representation model is used to extract representation information for the input media content and search terms respectively, and each of the content representation information in the content library is modeled by the graph representation model.

[0054] In the embodiments of the present application, the representation information can be understood as a presentation method or information carrier of substantial information. For example, the representation information corresponding to the media content represents the substantial information in the media content, and the representation information corresponding to the search term refers to the substantial information in the search term. In the embodiments of the present application, the representation information can be understood as an embedded feature, namely, an Embedding feature. Taking the representation information corresponding to the media content as an example, it is a vector representation of the media content in a low-dimensional space. Different from explicit features, Embedding is an implicit representation, which is expressed as a multi-dimensional vector, which implies the information in the media content.

[0055] In one embodiment, a graph representation model can be used to extract representation information of each media content, and a content library can be constructed based on the extracted content representation information corresponding to each media content. Based on the content library, offline search or online search can be performed. For online search scenarios, when receiving the target query demand information sent by the client 10, the search term representation model is used to extract the search term representation information corresponding to the search term in the above target query demand information. Since the search term representation model is a lightweight model, the search term representation information can be quickly output; the target content representation information in the above content library is queried for the similarity with the search term representation information that meets the preset requirements, and the media content corresponding to the target content representation information is determined as the search result. The pre-constructed content library is used in the query process, and there is no need to construct the content representation information online. Therefore, the query operation is executed very quickly, so that the search results can be quickly determined to meet the timeliness requirements for online search.

[0056] The above framework of the embodiment of the present invention can provide the media content search capability required by applications in various scenarios, especially the real-time search capability of media content, and the application includes but is not limited to cloud technology, cloud games, cloud rendering, artificial intelligence, smart transportation, assisted driving, video media, smart community, instant messaging, etc. Each component in the framework can be a terminal device or a server. Terminal devices include but are not limited to mobile phones, computers, intelligent voice exchange devices, smart home appliances, vehicle-mounted terminals, etc.

[0057] The following describes a method for searching media content in an embodiment of the present application. Figure 2 A flow chart of a media content search method provided by an embodiment of the present application is shown, and the media content search method can be executed based on the server 20 described above. The embodiment of the present application provides method operation steps as described in the embodiment or flow chart, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the order of many steps and does not represent the only execution order. When the actual system, terminal device or server product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method shown in the embodiment or the accompanying drawings. The above method may include:

[0058] S201. When a search term is obtained, the search term is input into a search term representation model to obtain search term representation information corresponding to the search term.

[0059] The embodiments of the present application do not limit the search terms, for example, they can be understood as a search term input by a user, and the media content retrieved based on the search term is the media content that the user is interested in. The embodiments of the present application do not limit the media content, which can be in various content forms such as short videos, long videos, audio, pictures, and text.

[0060] In the embodiment of the present application, the above-mentioned search term representation model is obtained by distilling and learning the graph representation model, and the above-mentioned graph representation model is obtained by graph learning of the heterogeneous graph formed by the historical search terms and the corresponding media content, and the above-mentioned graph representation model is used to extract representation information of the input media content and the search terms respectively. As a collection of nodes themselves and the edge relationships between nodes, the graph is widely present in various scenarios in the real world. The heterogeneous graph contains the information of the media content side and the search side and the related relationship information. The embodiment of the present application, based on the rich information of the heterogeneous graph and the powerful representation learning ability of the graph learning algorithm, can model various types of relationships in the media content search scene and make the learned graph representation model have the ability to model intensive information for both media content and search terms. Therefore, based on the graph representation model, the representation information of the input media content and search terms can be extracted respectively to obtain accurate representation information. However, the powerful representation ability of the graph representation model is at the cost of time, that is, the time required for the graph representation model to output the representation information is long, which is difficult to meet the needs of real-time search. Therefore, the embodiment of the present application breaks the time limit for real-time reasoning based on the graph representation model in a distillation manner, so that the search term representation information can be quickly output. This application does not limit the specific steps of obtaining the search term representation model by distilling the graph representation model, as long as the purpose of knowledge distillation is achieved. Of course, the embodiment of this application also provides a distillation method, which will be explained below.

[0061] S202. Query a content library based on the search term representation information to obtain a query result, wherein the content library stores content representation information corresponding to each of the at least one media content.

[0062] In the embodiment of the present application, the representation information of each of the above-mentioned contents in the above-mentioned content library is obtained by modeling the above-mentioned graph representation model. That is to say, after the graph representation model is trained, the representation information corresponding to each media content in the media content library can be obtained based on the graph representation model, and the content library can be constructed based on the representation information corresponding to each of the above-mentioned media contents. The embodiment of the present application does not limit the media content library, which can be any data space for storing media content.

[0063] In a specific implementation, the heterogeneous graph related to each of the above-mentioned media contents in the media content library can be input into the above-mentioned graph representation model to obtain the content representation information corresponding to each of the above-mentioned media contents; an information index is constructed for the content representation information corresponding to each of the above-mentioned media contents; and the above-mentioned content library is constructed according to the above-mentioned information index and the content representation information corresponding to each of the above-mentioned media contents. Of course, the embodiment of the present application does not limit the index construction. For example, the index engine in the related technology, such as Annoy and Faiss, can be used to construct the index. Annoy and Faiss are both data management engines, and their specific technical contents can be found in the relevant development documents.

[0064] S203. When the query result is not empty, determine the target media content corresponding to the target content representation information in the query result, where the target content representation information is content representation information whose semantic relevance to the search term representation information meets preset requirements.

[0065] In one embodiment, the specific process of the query can be understood as searching the content library for target content representation information whose semantic distance with the search term representation information meets the relevant requirements. The semantic distance is the representation method of semantic relevance. The higher the semantic relevance, the closer the semantic distance, and the lower the semantic relevance, the farther the semantic distance. The embodiment of the present application does not limit the quantification method of the semantic distance. For example, cosine similarity can be used. The embodiment of the present application also does not limit the preset requirements. For example, the content representation information whose semantic distance is less than the distance threshold can be determined as the target content representation information. Of course, the distance threshold is not limited and can be set according to the actual situation. For another example, the N content representation information with the smallest semantic distance can also be determined as the target content representation information. Of course, the embodiment of the present application does not limit the size of N, which can be set by the server 20 or by the user who needs to provide media content search services. The specific number of target content representation information included in the query results is not limited in the embodiment of the present application.

[0066] In the embodiment of the present application, the target content representation information is the result obtained by inputting the target media content into the graph representation model. During the content library construction phase, the correspondence between each media content and its corresponding content representation information can be stored to improve the execution speed of step S203.

[0067] S204. Determine search results based on the target media content.

[0068] In an embodiment, one or more of the target media contents corresponding to each of the target content representation information in the query result may be determined as the search result.

[0069] The media content search method of the embodiment of the present application obtains the search term representation information corresponding to the search term through the search term representation model, and the search term representation model is obtained by distilling the graph representation model. Therefore, it has both the powerful representation ability of the graph representation model for the search term and the advantage of being lightweight. This makes it possible for the media content search scheme based on the search representation information output by it to achieve the purpose of fast search and online search due to its lightweight advantage, and to ensure accurate search results with the help of the powerful representation ability of the graph representation model.

[0070] The embodiment of the present application does not limit the modeling process of the graph representation model, as long as it can extract the representation information of media content and search terms according to the heterogeneous graph. The modeling process of the graph representation model can make full use of the characteristics of clear user-side demand information in the search scenario and rich knowledge related to media content, and construct a heterogeneous graph based on the user's search consumption behavior and knowledge information in the field of media content in the search scenario. The heterogeneous graph can represent the relationship between the user's search behavior and the multi-dimensional information related to the media content, as well as the relationship between the multi-dimensional information related to the media content, so that the heterogeneous graph can contain rich user-side demand information and media-side information. Among them, user-side demand information refers to information related to user needs obtained from the user's perspective, such as search terms generated by users, and media-side information refers to information related to media content obtained from the perspective of media content, such as content information, label information, entity information, etc. of media content. By performing graph learning on the heterogeneous graph, the obtained graph representation model can have a powerful ability to extract representation information for search terms and media content. Of course, the embodiment of the present application also provides a specific modeling process, details of which can be found below and will not be repeated here.

[0071] Based on the trained graph representation model, a search term representation model can be constructed. In one embodiment, please refer to Figure 3 , which shows a method for constructing a search term representation model, the method comprising:

[0072] S301. Obtain a training sample group, where each training sample in the training sample group includes a sample search term and sample media content corresponding to the sample search term.

[0073] The embodiment of the present application does not limit the method for constructing the correspondence between the sample search terms and the sample media content. For example, if a user obtains several media contents according to the sample search terms, and if the user consumes the media content A, then the media content A can be used as the sample media content corresponding to the sample search terms. The embodiment of the present application does not limit the consumption behavior, for example, it can be click, play, like, comment, favorite, forward, follow the author, etc.

[0074] S302. For each of the above training samples, determine the sample search term representation corresponding to the above sample search term and the sample media content representation of the sample media content corresponding to the above sample search term based on the above graph representation model; input the above sample search term into the initial model to obtain predicted representation information.

[0075] The embodiments of the present application do not limit the specific structure of the initial model, which may be composed of part or all of the structure in Transformer or BERT. The initial model serves as the basic model for distillation learning, and the final search term representation model is obtained through distillation learning. The graph representation model may be a model based on a heterogeneous graph constructed by an offline method, which can accurately represent each input search term and media content, so the sample search term representation corresponding to the sample search term can be determined based on the graph representation model. However, the output speed of the graph representation model is slow, and it is difficult to meet the needs of lightweight deployment. Therefore, the embodiment of the present application uses the initial model to distill the graph representation model to obtain a lightweight search term representation model (Query Encoder).

[0076] S303. According to the training information corresponding to each of the training samples in the training sample group, the parameters of the initial model are adjusted to obtain the search term representation model. The training information includes the prediction representation information corresponding to the training sample, the sample search term representation corresponding to the training sample and the sample media content representation corresponding to the training sample.

[0077] The embodiments of the present application do not limit the specific method of adjusting parameters based on training information. For example, the predicted representation information is the output result of the initial model. The difference between the predicted representation information and the sample search term representation can reflect the prediction loss of the initial model. The search term representation model can be obtained by adjusting the parameters based on the prediction loss through the gradient descent method. However, this parameter adjustment method does not take into account the distribution law of the correspondence between the sample search terms and their corresponding sample media content at a macro level. In other words, the parameter adjustment method can be optimized by further considering the distribution law.

[0078] In a specific embodiment, the parameters of the initial model are adjusted according to the training information corresponding to each of the training samples in the training sample group to obtain the search term representation model, including:

[0079] S3031. For each of the above training samples, determine the first semantic distribution parameter corresponding to the above training sample based on the first semantic distance between the sample search term representation corresponding to the above training sample and the sample media content representation corresponding to the above training sample, the above first semantic distribution parameter indicates the relationship between the above first semantic distance and the first semantic distance distribution corresponding to the above training sample group, the above first semantic distance distribution is the distribution in the semantic space corresponding to the above graph representation model.

[0080] In the embodiment of the present application, the first semantic distribution parameter is determined based on the first semantic distance and the first overall semantic distance. The first overall semantic distance is determined by measuring the first semantic distances corresponding to the training samples, that is, reflecting the overall distribution law of the first semantic distance. The embodiment of the present application does not limit the calculation formula for the first semantic distance and the first overall semantic distance. In one embodiment, the first semantic distribution parameter can be obtained by Calculated, It can be understood as a first overall semantic distance. Of course, the numerator and denominator of the first semantic distribution parameter can be superimposed with constant parameters or subjected to conventional deformation that does not affect the definition of the first semantic distribution parameter. Where V represents the sample media content, Q represents the sample search term, i represents the subscript corresponding to a training sample, S represents the training sample group, and <> represents the cosine similarity. The sample search term representations corresponding to the above training samples and the sample media content representations corresponding to the above training samples respectively represent the sample search term representations corresponding to the above training samples, and can be 64-dimensional vectors.

[0081] S3032. For each of the above training samples, determine the second semantic distribution parameters corresponding to the above training sample based on the second semantic distance between the predicted representation information corresponding to the above training sample and the sample media content representation corresponding to the above training sample, the above second semantic distribution parameters indicate the relationship between the above second semantic distance and the second semantic distance distribution corresponding to the above training sample group, the above second semantic distance distribution is the distribution in the semantic space corresponding to the above initial model.

[0082] The embodiment of the present application determines the second semantic distribution parameter based on the second semantic distance and the second overall semantic distance. The second overall semantic distance is determined by measuring the second semantic distances corresponding to the training samples, and the second overall semantic distance is calculated based on the second semantic distances corresponding to the training samples. That is, it reflects the overall distribution law of the second semantic distance. The embodiment of the present application does not limit the calculation formula for the second semantic distance and the second body semantic distance. In one embodiment, the second semantic distribution parameter can be obtained by Calculated, It can be understood as a second overall semantic distance. Of course, both the numerator and the denominator can be superimposed with constant parameters or subjected to conventional deformation that does not affect the definition of the second semantic distribution parameter. It is the prediction representation information, which can be a 64-dimensional vector. For other parameters, refer to the previous text.

[0083] S3033. For each of the above training samples, determine the divergence loss according to its corresponding first semantic distribution parameter and second semantic distribution parameter.

[0084] In the embodiment of the present application, there is no limitation on the divergence loss measurement method. Taking KL divergence as an example, the divergence loss can be characterized as The formula can also be modified by adding constant parameters or performing regular transformations without affecting the definition of the divergence loss.

[0085] S3034. According to the above-mentioned divergence loss, adjust the parameters of the above-mentioned initial model to obtain the above-mentioned search term representation model.

[0086] The parameters of the above-mentioned initial model can be adjusted by minimizing the divergence loss. In the embodiment of the present application, the above-mentioned parameters can be adjusted based on the gradient descent method. The gradient descent method is a method often used in the field of machine learning and deep learning to adjust parameters for first-order optimization adjustment by gradient descent. In the embodiment of the present application, the gradient descent method can guide the above-mentioned parameters to be adjusted in the direction of reducing the divergence loss until the training stop condition is reached. The embodiment of the present application does not limit the training stop condition, for example, it can be a stop condition for the number of adjustments or a stop condition for the loss threshold. These two conditions are commonly used conditions for machine learning and will not be described in detail.

[0087] Please refer to Figure 4 , which shows a schematic diagram of a training method for a map representation model in an embodiment of the present application, the method further includes:

[0088] S401. Construct multiple positive sample pairs based on multiple historical search terms and media content corresponding to each of the historical search terms, and construct multiple negative sample pairs based on the multiple positive sample pairs.

[0089] The positive and negative sample pairs in the embodiment of the present application can be selected based on a pre-constructed heterogeneous graph. The construction process of the heterogeneous graph is briefly described below:

[0090] (1) Taking the search term as a starting point, construct at least one first-category meta-path, wherein the first-category meta-path includes at least two information nodes, and the at least two information nodes include at least one information node corresponding to the media information.

[0091] Media information can be understood as information on the media side, such as media content, entities in media content, tags associated with media content, etc. For ease of explanation, in the embodiment of the present application, the search term is represented as (Query, Q), the media content is represented as (Video, V), the preset entity is represented as (Entity, E), and the tag is represented as (Tag, T). Among them, QV can have a consumption relationship, and the consumption relationship refers to the consumption of media content V as a search result by the user under the condition of the search term Q, and the consumption refers to the preset operation behavior, such as playing, liking, forwarding, and collecting. VE, VT, QE, and QT can have a subordinate relationship, and a media content can have multiple entities and multiple tags. Since Q and V can have a corresponding relationship, and VE and VT have a subordinate relationship, QE and QT also have a subordinate relationship.

[0092] The embodiment of the present application does not limit the first-class meta-path, which only needs to use the search term as the starting point, and each first-class meta-path uses the corresponding information node on the media side. In one embodiment, at least one first-class meta-path may include at least one of the following:

[0093] (1) QVQ: The first information node in the first type of meta-path is a search term (Q), the second information node is a media content (V), and the third information node is also a search term (Q), which can represent a link to the media content consumed by the user under a certain search term, and then based on the media content, it can be linked to another search term that can also search for the media content. In the embodiment of the present application, the media content consumed by the user refers to the preset operation triggered by the user received for the media content. The embodiment of the present application does not limit the preset operation. For example, the preset operation can be a browsing operation, a viewing operation, a like operation, a comment operation, a collection operation, a forwarding operation, etc. For any media content, it can be consumed under the conditions of multiple search terms. For any search term, the user can consume multiple media content under the conditions of the search term. Of course, the embodiment of the present application does not limit the media content, which can be video, media content, animation, audio, etc.

[0094] (2) QEQ: The first information node in the first type of meta-path is a search term (Q), the second information node is a preset entity (E), and the third information node is also a search term (Q). It can represent a link to a preset entity related to a certain search term, and then based on the preset entity, it can be linked to another search term, and the other search term can also search for media content related to the preset entity. For any search term, it can include multiple preset entities, and one preset entity can be linked to multiple search terms. The embodiments of the present application are not limited by preset entities. For example, it can be some works or famous people or famous images in the works.

[0095] (3) QQQ: The first information node in the first type of meta-path is the search term (Q), the second information node is the next search term (Q) in the same search session, and the third information node is the next search term (Q) in the same search session. In the embodiment of the present application, search terms that are continuously input on the same search page are determined to belong to the same search session. QQQ can be three consecutive search terms in the same search session, or three discontinuous search terms, as long as they meet the search sequence.

[0096] (2) Taking the media content information as a starting point, construct at least one second-type meta-path, wherein the second-type meta-path includes at least two information nodes.

[0097] The embodiment of the present application does not limit the second type of meta-path, which only needs to take the media content as the starting point, and the media content information is the media side information. In one embodiment, at least one second type of meta-path may include at least one of the following:

[0098] (1) VQV: The first information node in the second type of meta-path is the media content (V), the second information node is the search term (Q), and the third information node is also the media content (V). It can represent a link from a certain media content to a search term related to the media content, and then based on the search term, link to another media content that can also be searched. Any media content can be consumed under multiple search terms, and one search term can consume multiple media content.

[0099] (2) VEV: The first information node in the second type of meta-path is media content (V), the second information node is a preset entity (E), and the third information node is also media content (V). It can represent a link to a preset entity related to a certain media content, and then link to other media content related to the preset entity based on the preset entity. Any media content can contain multiple preset entities, and one preset entity can link to multiple media content.

[0100] (3) VTV: The first information node in the second type of meta-path is media content (V), the second information node is tag (T), and the third information node is media content (V), which can represent a link to a tag related to a certain media content, and then link to other media content related to the tag based on the tag. Any media content can contain one or more tags, and a tag can belong to multiple media contents.

[0101] (3) Performing a composition operation based on each of the first-category meta-paths, the plurality of historical search terms, and the information related to the plurality of media contents to obtain a first-category heterogeneous graph. Performing a composition operation based on each of the second-category meta-paths and the information related to the plurality of media contents to obtain a second-category heterogeneous graph.

[0102] Specifically, the specific content of each information node in each first-class meta-path can be obtained based on the information related to each historical search term and each media content, so as to obtain the first-class target path corresponding to each first-class meta-path, and each first-class target path can form the first-class heterogeneous graph. Taking the first-class meta-path QVQ as an example, for a certain historical search term Q1, the media contents associated with the historical search term Q1 are V1 and V2, the historical search term associated with V1 is Q2, and the historical search term associated with V2 is Q3. Two first-class target paths can be obtained: Q1-V1-Q2, and Q1-V2-Q3. Based on the same method, the second-class heterogeneous graph can also be obtained.

[0103] Based on the above meta-paths, information on the media side and the search side can be collected to construct a first type of heterogeneous graph and a second type of heterogeneous graph. Each node in the first type of heterogeneous graph and the second type of heterogeneous graph is the specific content of the information node under the corresponding meta-path, such as specific media content, preset entities, tags, and search terms. Of course, there is also information intersection between the first type of heterogeneous graph and the second type of heterogeneous graph, that is, the first type of heterogeneous graph and the second type of heterogeneous graph can constitute a total heterogeneous graph, which can be used as the heterogeneous graph used in step S401.

[0104] In some embodiments, the collected information on the media side and the search side may be cleaned, and the heterogeneous graph may be constructed based on the cleaned information. The cleaning operation may include at least one of the following:

[0105] (10) Cleaning media content based on consumption time. The consumption time refers to the time during which a preset operation is generated for the media content and the preset operation is executed. The present application embodiment does not limit the preset operation, which may be play, page stay, etc. Taking play as an example, for media content associated with a certain historical search term, if the time or time proportion of the media content played reaches the preset requirement, it is determined that the media content is consumed with quality, and the media content that is not consumed with quality can be cleaned.

[0106] (20) Cleaning historical search behaviors based on the number of media contents. Specifically, in the embodiment of the present application, historical search terms whose corresponding media contents reach a preset threshold can be retained to construct the above-mentioned heterogeneous graph, and other historical search terms are cleaned.

[0107] (30) Label cleaning is performed based on long-tail distribution. Long-tail distribution data is a skewed distribution, which means that a few categories (also called head categories) contain a large number of samples, while most categories (also called tail categories) have only a very small number of samples. Non-head is the tail. For labels, the head category containing a large number of samples has weak directivity, while non-head labels have strong directivity. Directivity refers to the ability of a label to represent its corresponding media content. If the label is associated with more media content, the directivity is weak. If the label is associated with less media content, the directivity is strong. Such labels are also called long-tail labels. In the embodiment of the present application, non-long-tail labels can be deleted, and long-tail labels can be used to construct the above-mentioned heterogeneous graph.

[0108] Of course, in some embodiments, some preset entities can also be selected to construct the above-mentioned heterogeneous graph, for example, only retaining name entities and film and television work entities. In order to control the scale of the composition, the quality score of the media content itself can also be used as a threshold, and media content greater than the threshold can be selected to construct the above-mentioned heterogeneous graph. In some embodiments, the information on the media side and the search side obtained after cleaning can also be encoded, such as onehot encoding, normalized encoding, etc., where onehot encoding, that is, unique hot encoding, is actually a method of encoding N states with an N-bit state register, each state has an independent register bit, and only one of these register bits is valid, and N is a positive integer greater than 1.

[0109] On the basis of the obtained heterogeneous graph, several (Q, V) pairs with corresponding relationships can be selected as positive sample pairs, and negative sample pairs can be obtained by replacing V in the positive sample pair with V' in the total heterogeneous graph, which does not have a corresponding relationship with the Q corresponding to the V in the positive sample pair, or by replacing Q in the positive sample pair with Q' in the total heterogeneous graph, which does not have a corresponding relationship with the V corresponding to the Q in the positive sample pair. Each time, batch_size (Q, V) pairs are sampled from the total heterogeneous graph as positive sample pairs, Q or V in the positive examples are replaced, and neg_size*batch_size negative samples are obtained. Among them, batch_size is the number of positive sample pairs in each batch in batch training, and neg_size is a preset value.

[0110] S402. For each sample pair in the above-mentioned multiple positive sample pairs and each sample pair in the above-mentioned multiple negative sample pairs, at least one first meta-path is constructed with the historical search terms therein as the starting point, and at least one second meta-path is constructed with the media content therein as the starting point, so as to obtain a first heterogeneous graph constructed based on each of the above-mentioned first meta-paths, and a second heterogeneous graph constructed based on each of the above-mentioned second meta-paths.

[0111] The first meta-path is the first type of meta-path associated with the sample pair extracted from the heterogeneous graph, and the second meta-path is the second type of meta-path associated with the sample pair extracted from the heterogeneous graph. The construction method of the first heterogeneous graph and the second heterogeneous graph is consistent with the construction method of the first type of heterogeneous graph and the second type of heterogeneous graph in the previous text, and will not be repeated here.

[0112] S403. Based on the first heterogeneous graph and the second heterogeneous graph, extract the first subgraph corresponding to the historical search term in the sample pair and the second subgraph corresponding to the media content corresponding to the historical search term respectively.

[0113] Specifically, it can be considered that the first subgraph is extracted from the total sample heterogeneous graph constructed based on the first heterogeneous graph and the second heterogeneous graph, including the historical search terms and other information extracted along each first meta-path based on the historical search terms. The second subgraph is extracted from the total sample heterogeneous graph, including the media content corresponding to the historical search terms and other information extracted along each second meta-path.

[0114] S404. Input the first subgraph and the second subgraph into a feature extraction network to extract graph features, and obtain first sample representation information corresponding to the historical search term and second sample representation information corresponding to the media content corresponding to the historical search term.

[0115] The embodiment of the present application does not limit the feature extraction network, and it can use the GNN in the related technology, or other network structures with graph feature extraction capabilities.

[0116] The first subgraph includes at least two first paths starting from the historical search term, the second subgraph includes at least two second paths starting from the media content corresponding to the historical search term, and the first subgraph and the second subgraph are input into the feature extraction network for graph feature extraction to obtain first sample representation information corresponding to the historical search term and second sample representation information corresponding to the media content corresponding to the historical search term, including: inputting the first subgraph and the second subgraph into the feature extraction network for graph feature extraction to obtain first sub-representation information corresponding to the historical search term under each of the first paths, and second sub-representation information corresponding to the media content corresponding to the historical search term under each of the second paths; fusing the first sub-representation information to obtain the first sample representation information; fusing the second sub-representation information to obtain the second sample representation information.

[0117] The first subgraph and the second subgraph are input into the feature extraction network for graph feature extraction to obtain first sub-representation information corresponding to the historical search terms under each of the first paths, and second sub-representation information corresponding to the media content corresponding to the historical search terms under each of the second paths, including: for each first path, performing graph feature extraction and aggregation on the information in the first path along the direction from the end point to the starting point to obtain the first sub-representation information corresponding to the first path; for each second path, performing graph feature extraction and aggregation on the information in the second path along the direction from the end point to the starting point to obtain the second sub-representation information corresponding to the second path.

[0118] The method for acquiring the first sample representation information is the same as the method for acquiring the second sample representation information. The embodiment of the present application is described in detail from the perspective of the method for acquiring the second sample representation information.

[0119] In one embodiment, with a certain media content V as the center, there are three second meta-paths, including VQV, VTV, and VEV. Please refer to Figure 5, which shows a schematic diagram of the method for obtaining the second sample representation information. According to these three second meta-paths, the second subgraph associated with a certain media content V is subjected to graph feature extraction. Specifically, graph convolution can be used. There are many optional graph convolution (neighborhood aggregation) operators, such as GraphSage. GraphSage is a classic spatial domain-based algorithm, which improves the traditional graph convolution network in two aspects: first, it improves the traditional graph convolution network during training. The sampling method converges the full graph sampling of the graph convolution network to partial node-centered neighbor sampling, which makes distributed training of large-scale graph data possible and enables the network to learn nodes that have not been seen, which also enables GraphSage to perform inductive learning; second, GraphSage studies several neighbor aggregation methods, and compares the advantages and disadvantages of different aggregation methods through experiments and theoretical analysis.

[0120] The information processing method under each second meta-path is the same. Taking the second meta-path VQV as an example, it is assumed that for each V, several neighbors Q with direct correlation are sampled, and for each Q, several V with direct correlation are sampled to obtain the target subgraph corresponding to the second meta-path. In the first layer of the target subgraph, the information he_0 of each V node is first aggregated to the information hq_0 of the corresponding node Q to obtain hq_1; in the second layer, the information hq_1 of each node that has been aggregated once is aggregated to the information hv_0 of the node V to obtain hv_2, and the second sub-representation information is obtained.

[0121] The above three second meta-paths can be considered to represent the three perspectives used to extract information from the media content V. The second sub-representation information obtained for the media content V at each perspective can be fused to obtain the second sample representation information of the media content V. The multi-perspective fusion makes the information included in the second sample representation information more comprehensive, thereby improving the information concentration of the second sample representation information. Specifically, after obtaining the second sub-representation information corresponding to the three second meta-paths, each second sub-representation information can be fused, and then normalized after fusion to obtain the final second sample representation information corresponding to the certain media content V. The embodiment of the present application does not limit the fusion method. In some embodiments, the fusion method can be averaging. Specifically, each second sub-representation information can be added and averaged to obtain a fusion result, or it can be fused using an attention mechanism. The attention mechanism can make some second sub-representation information more concerned or weaken some second sub-representation information during the fusion process. In the embodiment of the present application, the second sub-representation information corresponding to the two second meta-paths is used as the fusion method. and For example, the two second sub-representation information are fused (aggregation) to obtain the second sample representation information

[0122] S405. Adjust the parameters of the feature extraction network based on the first loss to obtain the graph representation model, wherein the first loss is used to guide the feature extraction network to enhance the correlation between the first sample representation information and the second sample representation information in the positive sample pair, and to reduce the correlation between the first sample representation information and the second sample representation information in the negative sample pair.

[0123] The parameters of the feature extraction network in the embodiment of the present application can be understood as the parameters required for extracting graph features from the first subgraph and the second subgraph. In the embodiment of the present application, the above parameters can be adjusted based on the gradient descent method. The gradient descent method is a method that is often used in the field of machine learning and deep learning to adjust network parameters in a first-order optimization manner by gradient descent. In the embodiment of the present application, the gradient descent method can guide the above parameters to be adjusted in the direction of reducing the first loss. By reducing the above first loss, the purpose of enhancing the correlation between the first sample representation information and the second sample representation information in the above positive sample pair and reducing the correlation between the first sample representation information and the second sample representation information in the above negative sample pair can be achieved.

[0124] The first loss can be understood as BPR Loss, namely Bayesian Personalized Ranking Loss, which is a widely used classic loss for learning the relationship information between features based on positive and negative sample pairs. The idea of ​​BPR Loss is to maximize the difference between the positive and negative samples learned by the model. Taking the embodiment of the present application as an example, by reducing the first loss, the correlation between the first sample representation information and the second sample representation information in the positive sample pair can be made as large as possible, and the correlation between the first sample representation information and the second sample representation information in the above-mentioned negative sample pair can be made as small as possible.

[0125] In some embodiments, the above-mentioned adjusting the parameters of the feature extraction network based on the first loss to obtain the above-mentioned graph representation model includes: adjusting the parameters of the feature extraction network based on the first loss and the second loss to obtain the above-mentioned graph representation model, wherein the second loss is used to guide the above-mentioned feature extraction network to enhance the correlation between the second sub-representation information corresponding to the same media content, and reduce the correlation between the second sub-representation information corresponding to different media contents. Each second sub-representation information corresponding to the same media content can be understood as sub-representation information learned from different perspectives for the same media content. The sub-representation information learned from different perspectives is in fact an expression of the same media content, and therefore, should have a strong correlation in nature. By reducing the second loss, the parameters of the feature extraction network can be adjusted, thereby guiding the above-mentioned feature extraction network to enhance the correlation between the second sub-representation information corresponding to the same media content, and reduce the correlation between the second sub-representation information corresponding to different media contents, thereby achieving comparative learning of the sub-representation information from different perspectives. Therefore, the second loss can also be considered as a comparative learning loss.

[0126] In some embodiments, the second loss is also used to guide the feature extraction network to enhance the correlation between each first sub-representation information corresponding to the same historical search term, and to reduce the correlation between each first sub-representation information corresponding to different historical search terms. The specific principle of guiding the feature extraction network to enhance the correlation between each second sub-representation information corresponding to the same media content and to reduce the correlation between each second sub-representation information corresponding to different media content based on the second loss is the same as the specific principle of guiding the feature extraction network to enhance the correlation between each first sub-representation information corresponding to the same historical search term and to reduce the correlation between each first sub-representation information corresponding to different historical search terms based on the second loss, and the former is described in detail as an example.

[0127] Please refer to Figure 6 , which shows a schematic diagram of the information relationship used to measure the second loss. Taking the second sample representation information of the media content as an example, the second sample representation information is obtained based on the information aggregation under multiple second meta-paths. The same media content can include multiple second sub-representation information. Although the multiple second sub-representation information comes from different second meta-paths, they are representations of the same media content, so they should be homogeneous. Based on this principle, comparative learning is performed to design the second loss.

[0128] The second sub-representation information of the same media content is mutually positive. The second sub-representation information of different media content V in the same batch is mutually negative. The correlation between the second sub-representation information of the positive examples is calculated by the formula , wherein hni and hnj represent the i-th second sub-representation information and the j-th second sub-representation information belonging to the n-th media content in the batch, respectively. The second loss determined based on each second sub-representation information of the same media content may include Where n represents the nth sample in a batch of N samples; i, j represent two different second-order paths, and n' is the serial number of another media content in the same batch that is different from the media content corresponding to n. τ is the temperature coefficient, which is a constant and can be adjusted.

[0129] After the graph representation model is trained, the representation information corresponding to each media content in the media content library can be obtained based on the graph representation model, and the content library can be constructed based on the representation information corresponding to each of the above media contents.

[0130] Please refer to Figure 7 , which shows a schematic diagram of the online search service architecture. According to the large-scale composition, a first heterogeneous graph and a second heterogeneous graph are obtained, and a total heterogeneous graph is obtained based on the first heterogeneous graph and the second heterogeneous graph. The total heterogeneous graph is sampled, and a graph representation model is obtained by training according to the sampling results. QueryEncoder can be obtained by performing distillation learning on the graph representation model, and the content representation information obtained based on the graph representation model is constructed in the content library, and the search acceleration effect is achieved by establishing an index vector. When the search term is obtained, the search term is input into the Query Encoder to obtain the search term representation information corresponding to the above search term. The content library is queried based on the above search term representation information to obtain the query result, and then the search result is determined.

[0131] In the search scenario of media content, relying solely on search recall based on text information often ignores the real needs of the user side. The embodiment of the present application combines user search consumption behavior information with the knowledge graph entity link information on the query side and the Video side to compose a graph, and uses multi-perspective comparative learning on the graph to construct multiple meta-paths, thereby learning a graph representation model, which can more accurately output search term representations and media content representations. In addition, a graph distillation framework is designed. By performing distillation learning on the graph representation model, a search term representation model is obtained. Based on the search term representation model and the content library built based on the graph representation model, an online search application is implemented. In online experiments, this solution has cumulatively increased users' viewing time by 6.61%, and has a significant effect on improving user service quality.

[0132] Please refer to Figure 8 , which shows a block diagram of a media content search device in this embodiment, the device includes:

[0133] The search module 801 is used to input the search word into the search word representation model to obtain search word representation information corresponding to the search word when the search word is obtained; query the content library based on the search word representation information to obtain the query result, wherein the content library stores the content representation information corresponding to each of the at least one media content;

[0134] The search content determination module 802 is used to determine the target media content corresponding to the target content representation information in the query result when the query result is not empty, the target content representation information being content representation information whose semantic relevance to the search term representation information meets the preset requirements; and determine the search result based on the target media content;

[0135] Among them, the above-mentioned search term representation model is obtained by distilling and learning the graph representation model, and the above-mentioned graph representation model is obtained by graph learning on a heterogeneous graph formed by historical search terms and corresponding media contents. The above-mentioned graph representation model is used to extract representation information of the input media content and search terms respectively, and the above-mentioned content representation information in the above-mentioned content library is modeled by the above-mentioned graph representation model.

[0136] In one embodiment, the apparatus includes a modeling module, and the modeling module is used to perform the following operations:

[0137] Inputting each of the above-mentioned heterogeneous graphs related to the above-mentioned media content into the above-mentioned graph representation model to obtain content representation information corresponding to each of the above-mentioned media content;

[0138] Constructing an information index for the content representation information corresponding to each of the above media contents;

[0139] The content library is constructed according to the information index and the content representation information corresponding to each of the media contents.

[0140] In one embodiment, the modeling module is used to perform the following operations:

[0141] Acquire a training sample group, each training sample in the training sample group includes a sample search term and sample media content corresponding to the sample search term;

[0142] For each of the training samples, determine a sample search term representation corresponding to the sample search term and a sample media content representation of the sample media content corresponding to the sample search term based on the graph representation model; input the sample search term into the initial model to obtain predicted representation information;

[0143] According to the training information corresponding to each of the training samples in the training sample group, the parameters of the initial model are adjusted to obtain the search term representation model. The training information includes the prediction representation information corresponding to the training sample, the sample search term representation corresponding to the training sample, and the sample media content representation corresponding to the training sample.

[0144] In one embodiment, the modeling module is used to perform the following operations:

[0145] For each of the training samples, according to the first semantic distance between the sample search term representation corresponding to the training sample and the sample media content representation corresponding to the training sample, determine the first semantic distribution parameter corresponding to the training sample, the first semantic distribution parameter indicating the relationship between the first semantic distance and the first semantic distance distribution corresponding to the training sample group, the first semantic distance distribution being the distribution in the semantic space corresponding to the graph representation model;

[0146] For each of the training samples, according to the second semantic distance between the predicted representation information corresponding to the training sample and the sample media content representation corresponding to the training sample, determine a second semantic distribution parameter corresponding to the training sample, wherein the second semantic distribution parameter indicates a relationship between the second semantic distance and a second semantic distance distribution corresponding to the training sample group, wherein the second semantic distance distribution is a distribution in the semantic space corresponding to the initial model;

[0147] For each of the training samples, determine the divergence loss according to the first semantic distribution parameter and the second semantic distribution parameter corresponding to the training sample;

[0148] According to the above divergence loss, the parameters of the above initial model are adjusted to obtain the above search term representation model.

[0149] In one embodiment, the modeling module is used to perform the following operations:

[0150] According to the first semantic distances respectively corresponding to the training samples, a first overall semantic distance corresponding to the training sample group is obtained;

[0151] The determining of the first semantic distribution parameter corresponding to the training sample comprises: determining the first semantic distribution parameter according to the first semantic distance and the first overall semantic distance;

[0152] According to the second semantic distances corresponding to the training samples, the second overall semantic distance corresponding to the training sample group is obtained;

[0153] The determining of the second semantic distribution parameter corresponding to the training sample includes: determining the second semantic distribution parameter according to the second semantic distance and the second overall semantic distance.

[0154] In one embodiment, the modeling module is used to perform the following operations:

[0155] Based on multiple historical search terms and the media content corresponding to each of the historical search terms, multiple positive sample pairs are constructed, and based on the multiple positive sample pairs, multiple negative sample pairs are constructed;

[0156] For each sample pair in the plurality of positive sample pairs and each sample pair in the plurality of negative sample pairs, at least one first meta-path is constructed with the historical search words therein as a starting point, and at least one second meta-path is constructed with the media content therein as a starting point, so as to obtain a first heterogeneous graph constructed based on each of the first meta-paths, and a second heterogeneous graph constructed based on each of the second meta-paths;

[0157] Based on the first heterogeneous graph and the second heterogeneous graph, respectively extracting a first subgraph corresponding to the historical search term in the sample pair and a second subgraph corresponding to the media content corresponding to the historical search term;

[0158] Inputting the first subgraph and the second subgraph into a feature extraction network to extract graph features, thereby obtaining first sample representation information corresponding to the historical search term and second sample representation information corresponding to the media content corresponding to the historical search term;

[0159] The parameters of the feature extraction network are adjusted based on the first loss to obtain the graph representation model, wherein the first loss is used to guide the feature extraction network to enhance the correlation between the first sample representation information and the second sample representation information in the positive sample pair, and to reduce the correlation between the first sample representation information and the second sample representation information in the negative sample pair.

[0160] In one embodiment, the first subgraph includes at least two first paths starting from the historical search words, the second subgraph includes at least two second paths starting from the media content corresponding to the historical search words, and the modeling module is used to perform the following operations:

[0161] Inputting the first subgraph and the second subgraph into the feature extraction network to extract graph features, and obtaining first sub-representation information corresponding to the historical search terms under each of the first paths, and second sub-representation information corresponding to the media content corresponding to the historical search terms under each of the second paths;

[0162] Merging the first sub-representation information to obtain the first sample representation information;

[0163] The second sub-representation information is integrated to obtain the second sample representation information.

[0164] In one embodiment, the modeling module is used to perform the following operations:

[0165] Based on the first loss and the second loss, the parameters of the feature extraction network are adjusted to obtain the graph representation model.

[0166] The second loss is used to guide the feature extraction network to enhance the correlation between the second sub-representation information corresponding to the same media content, and to reduce the correlation between the second sub-representation information corresponding to different media content.

[0167] In one embodiment, the second loss is further used to guide the feature extraction network to enhance the correlation between each first sub-representation information corresponding to the same historical search term, and to reduce the correlation between each first sub-representation information corresponding to different historical search terms.

[0168] The device part and the method embodiment in the embodiment of the present application are based on the same inventive concept and will not be described in detail here.

[0169] Further, Fig. 9 A schematic diagram of the hardware structure of a device for implementing the method provided in the embodiment of the present application is shown. The above device may participate in constituting or include the apparatus or system provided in the embodiment of the present application. Fig. 9 As shown, the device 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Fig. 9 The structure shown is for illustration only and does not limit the structure of the electronic device. Fig. 9 More or fewer components as shown, or with Fig. 9 Different configurations shown.

[0170] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the device 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0171] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the above-mentioned method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, to implement the above-mentioned media content search method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0172] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the device 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0173] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of device 10 (or mobile device).

[0174] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of the embodiments of the present application are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0175] Each embodiment in the embodiments of the present application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0176] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program. The above program may be stored in a computer-readable storage medium, and the above storage medium may be a read-only memory, a disk or an optical disk, etc.

[0177] The instructions in the above storage medium can execute a media content search method, which includes:

[0178] When a search term is obtained, the search term is input into a search term representation model to obtain search term representation information corresponding to the search term;

[0179] Based on the search term representation information, a content library is queried to obtain a query result, wherein the content library stores content representation information corresponding to each of the at least one media content;

[0180] In the case that the query result is not empty, determining the target media content corresponding to the target content representation information in the query result, the target content representation information being content representation information whose semantic relevance to the search term representation information meets a preset requirement;

[0181] Determine search results based on the target media content;

[0182] Among them, the above-mentioned search term representation model is obtained by distilling and learning the graph representation model, and the above-mentioned graph representation model is obtained by graph learning on a heterogeneous graph formed by historical search terms and corresponding media contents. The above-mentioned graph representation model is used to extract representation information of the input media content and search terms respectively, and the above-mentioned content representation information in the above-mentioned content library is modeled by the above-mentioned graph representation model.

[0183] In one embodiment, the method further includes:

[0184] Inputting each of the above-mentioned heterogeneous graphs related to the above-mentioned media content into the above-mentioned graph representation model to obtain content representation information corresponding to each of the above-mentioned media content;

[0185] Constructing an information index for the content representation information corresponding to each of the above media contents;

[0186] The content library is constructed according to the information index and the content representation information corresponding to each of the media contents.

[0187] In one embodiment, the method further includes:

[0188] Acquire a training sample group, each training sample in the training sample group includes a sample search term and sample media content corresponding to the sample search term;

[0189] For each of the training samples, determine a sample search term representation corresponding to the sample search term and a sample media content representation of the sample media content corresponding to the sample search term based on the graph representation model; input the sample search term into the initial model to obtain predicted representation information;

[0190] According to the training information corresponding to each of the training samples in the training sample group, the parameters of the initial model are adjusted to obtain the search term representation model. The training information includes the prediction representation information corresponding to the training sample, the sample search term representation corresponding to the training sample, and the sample media content representation corresponding to the training sample.

[0191] In one embodiment, adjusting the parameters of the initial model according to the training information corresponding to each training sample in the training sample group to obtain the search term representation model includes:

[0192] For each of the training samples, according to the first semantic distance between the sample search term representation corresponding to the training sample and the sample media content representation corresponding to the training sample, determine the first semantic distribution parameter corresponding to the training sample, the first semantic distribution parameter indicating the relationship between the first semantic distance and the first semantic distance distribution corresponding to the training sample group, the first semantic distance distribution being the distribution in the semantic space corresponding to the graph representation model;

[0193] For each of the training samples, according to the second semantic distance between the predicted representation information corresponding to the training sample and the sample media content representation corresponding to the training sample, determine a second semantic distribution parameter corresponding to the training sample, wherein the second semantic distribution parameter indicates a relationship between the second semantic distance and a second semantic distance distribution corresponding to the training sample group, wherein the second semantic distance distribution is a distribution in the semantic space corresponding to the initial model;

[0194] For each of the training samples, determine the divergence loss according to the first semantic distribution parameter and the second semantic distribution parameter corresponding to the training sample;

[0195] According to the above divergence loss, the parameters of the above initial model are adjusted to obtain the above search term representation model.

[0196] In one embodiment, the method further includes:

[0197] According to the first semantic distances respectively corresponding to the training samples, a first overall semantic distance corresponding to the training sample group is obtained;

[0198] The determining of the first semantic distribution parameter corresponding to the training sample comprises: determining the first semantic distribution parameter according to the first semantic distance and the first overall semantic distance;

[0199] According to the second semantic distances corresponding to the training samples, the second overall semantic distance corresponding to the training sample group is obtained;

[0200] The determining of the second semantic distribution parameter corresponding to the training sample includes: determining the second semantic distribution parameter according to the second semantic distance and the second overall semantic distance.

[0201] In one embodiment, the method further includes:

[0202] Based on multiple historical search terms and the media content corresponding to each of the historical search terms, multiple positive sample pairs are constructed, and based on the multiple positive sample pairs, multiple negative sample pairs are constructed;

[0203] For each sample pair in the plurality of positive sample pairs and each sample pair in the plurality of negative sample pairs, at least one first meta-path is constructed with the historical search words therein as a starting point, and at least one second meta-path is constructed with the media content therein as a starting point, so as to obtain a first heterogeneous graph constructed based on each of the first meta-paths, and a second heterogeneous graph constructed based on each of the second meta-paths;

[0204] Based on the first heterogeneous graph and the second heterogeneous graph, respectively extracting a first subgraph corresponding to the historical search term in the sample pair and a second subgraph corresponding to the media content corresponding to the historical search term;

[0205] Inputting the first subgraph and the second subgraph into a feature extraction network to extract graph features, thereby obtaining first sample representation information corresponding to the historical search term and second sample representation information corresponding to the media content corresponding to the historical search term;

[0206] The parameters of the feature extraction network are adjusted based on the first loss to obtain the graph representation model, wherein the first loss is used to guide the feature extraction network to enhance the correlation between the first sample representation information and the second sample representation information in the positive sample pair, and to reduce the correlation between the first sample representation information and the second sample representation information in the negative sample pair.

[0207] In one embodiment, the first subgraph includes at least two first paths starting from the historical search word, the second subgraph includes at least two second paths starting from the media content corresponding to the historical search word, and the first subgraph and the second subgraph are input into the feature extraction network to extract graph features, so as to obtain first sample representation information corresponding to the historical search word and second sample representation information corresponding to the media content corresponding to the historical search word, including:

[0208] Inputting the first subgraph and the second subgraph into the feature extraction network to extract graph features, and obtaining first sub-representation information corresponding to the historical search terms under each of the first paths, and second sub-representation information corresponding to the media content corresponding to the historical search terms under each of the second paths;

[0209] Merging the first sub-representation information to obtain the first sample representation information;

[0210] The second sub-representation information is integrated to obtain the second sample representation information.

[0211] In one embodiment, the parameters of the feature extraction network are adjusted based on the first loss to obtain the graph representation model, including:

[0212] Based on the first loss and the second loss, the parameters of the feature extraction network are adjusted to obtain the graph representation model.

[0213] The second loss is used to guide the feature extraction network to enhance the correlation between the second sub-representation information corresponding to the same media content, and to reduce the correlation between the second sub-representation information corresponding to different media content.

[0214] In one embodiment, the second loss is further used to guide the feature extraction network to enhance the correlation between each first sub-representation information corresponding to the same historical search term, and to reduce the correlation between each first sub-representation information corresponding to different historical search terms.

[0215] The above are only preferred embodiments of the embodiments of the present application and are not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. A media content search method, characterized in that: The method comprises: When a search term is obtained, the search term is input into a search term representation model to obtain search term representation information corresponding to the search term; Based on the search word representation information, a content library is queried to obtain a query result, wherein the content library stores content representation information corresponding to each of the at least one media content; In the case that the query result is not empty, determining the target media content corresponding to the target content representation information in the query result, the target content representation information being content representation information whose semantic relevance to the search term representation information meets a preset requirement; Determining search results based on the target media content; Among them, the search term representation model is obtained by distilling and learning a graph representation model, and the graph representation model is obtained by graph learning a heterogeneous graph formed by historical search terms and corresponding media content. The graph representation model is used to extract representation information from the input media content and search terms respectively, and the content representation information in the content library is modeled by the graph representation model.

2. The method according to claim 1, characterized in that The method further comprises: Inputting the heterogeneous graph related to each of the media contents into the graph representation model to obtain content representation information corresponding to each of the media contents; Constructing an information index for the content representation information corresponding to each of the media contents; The content library is constructed according to the information index and the content representation information corresponding to each of the media contents.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Acquire a training sample group, each training sample in the training sample group includes a sample search term and sample media content corresponding to the sample search term; For each of the training samples, determining a sample search term representation corresponding to the sample search term and a sample media content representation of the sample media content corresponding to the sample search term based on the graph representation model; inputting the sample search term into an initial model to obtain predicted representation information; According to the training information corresponding to each training sample in the training sample group, the parameters of the initial model are adjusted to obtain the search term representation model, wherein the training information includes the prediction representation information corresponding to the training sample, the sample search term representation corresponding to the training sample, and the sample media content representation corresponding to the training sample.

4. The method according to claim 3, characterized in that The step of adjusting the parameters of the initial model according to the training information corresponding to each training sample in the training sample group to obtain the search term representation model includes: For each of the training samples, determining a first semantic distribution parameter corresponding to the training sample according to a first semantic distance between a sample search term representation corresponding to the training sample and a sample media content representation corresponding to the training sample, wherein the first semantic distribution parameter indicates a relationship between the first semantic distance and a first semantic distance distribution corresponding to the training sample group, wherein the first semantic distance distribution is a distribution in a semantic space corresponding to the graph representation model; For each of the training samples, determining a second semantic distribution parameter corresponding to the training sample according to a second semantic distance between the predicted representation information corresponding to the training sample and the sample media content representation corresponding to the training sample, wherein the second semantic distribution parameter indicates a relationship between the second semantic distance and a second semantic distance distribution corresponding to the training sample group, wherein the second semantic distance distribution is a distribution in the semantic space corresponding to the initial model; For each of the training samples, determine the divergence loss according to the first semantic distribution parameter and the second semantic distribution parameter corresponding to the training sample; According to the divergence loss, the parameters of the initial model are adjusted to obtain the search term representation model.

5. The method according to claim 4, characterized in that The method further comprises: Obtaining a first overall semantic distance corresponding to the training sample group according to the first semantic distances corresponding to the training samples respectively; The determining the first semantic distribution parameter corresponding to the training sample includes: determining the first semantic distribution parameter according to the first semantic distance and the first overall semantic distance; Obtaining a second overall semantic distance corresponding to the training sample group according to the second semantic distances corresponding to the training samples respectively; The determining the second semantic distribution parameter corresponding to the training sample includes: determining the second semantic distribution parameter according to the second semantic distance and the second overall semantic distance.

6. The method according to claim 1, characterized in that The method further comprises: Constructing multiple positive sample pairs based on multiple historical search terms and media content corresponding to each of the historical search terms, and constructing multiple negative sample pairs based on the multiple positive sample pairs; For each sample pair in the multiple positive sample pairs and each sample pair in the multiple negative sample pairs, at least one first meta-path is constructed with the historical search words therein as a starting point, and at least one second meta-path is constructed with the media content therein as a starting point, so as to obtain a first heterogeneous graph constructed based on each of the first meta-paths, and a second heterogeneous graph constructed based on each of the second meta-paths; Based on the first heterogeneous graph and the second heterogeneous graph, respectively extracting a first subgraph corresponding to the historical search term in the sample pair and a second subgraph corresponding to the media content corresponding to the historical search term; Inputting the first subgraph and the second subgraph into a feature extraction network to extract graph features, thereby obtaining first sample representation information corresponding to the historical search term and second sample representation information corresponding to the media content corresponding to the historical search term; The parameters of the feature extraction network are adjusted based on the first loss to obtain the graph representation model, wherein the first loss is used to guide the feature extraction network to enhance the correlation between the first sample representation information and the second sample representation information in the positive sample pair, and to reduce the correlation between the first sample representation information and the second sample representation information in the negative sample pair.

7. The method according to claim 6, characterized in that The first subgraph includes at least two first paths starting from the historical search word, the second subgraph includes at least two second paths starting from the media content corresponding to the historical search word, and the first subgraph and the second subgraph are input into the feature extraction network to extract graph features to obtain first sample representation information corresponding to the historical search word and second sample representation information corresponding to the media content corresponding to the historical search word, including: Inputting the first subgraph and the second subgraph into the feature extraction network to perform graph feature extraction, obtaining first sub-representation information corresponding to the historical search term under each of the first paths, and second sub-representation information corresponding to the media content corresponding to the historical search term under each of the second paths; fusing the first sub-representation information to obtain the first sample representation information; The second sub-characterization information is fused to obtain the second sample characterization information.

8. The method according to claim 7, characterized in that The step of adjusting the parameters of the feature extraction network based on the first loss to obtain the graph representation model includes: Based on the first loss and the second loss, adjusting the parameters of the feature extraction network to obtain the graph representation model, The second loss is used to guide the feature extraction network to enhance the correlation between the second sub-representation information corresponding to the same media content, and to reduce the correlation between the second sub-representation information corresponding to different media content.

9. The method according to claim 8, characterized in that The second loss is also used to guide the feature extraction network to enhance the correlation between each first sub-representation information corresponding to the same historical search term, and to reduce the correlation between each first sub-representation information corresponding to different historical search terms.

10. A media content search device, characterized in that: The device comprises: A search module is used to input the search term into a search term representation model to obtain search term representation information corresponding to the search term when a search term is obtained; query a content library based on the search term representation information to obtain a query result, wherein the content library stores content representation information corresponding to each of the at least one media content; A search content determination module is used to determine, when the query result is not empty, target media content corresponding to the target content representation information in the query result, the target content representation information being content representation information whose semantic relevance to the search term representation information meets preset requirements; and determine search results based on the target media content; Among them, the search term representation model is obtained by distilling and learning a graph representation model, and the graph representation model is obtained by graph learning a heterogeneous graph formed by historical search terms and corresponding media content. The graph representation model is used to extract representation information from the input media content and search terms respectively, and the content representation information in the content library is modeled by the graph representation model.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by a processor to implement a media content search method as described in any one of claims 1 to 9.

12. An electronic device, characterized in that: It includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements a media content search method as described in any one of claims 1 to 9 by executing the instructions stored in the memory.

13. A computer program product, characterized in that The method comprises a computer program or an instruction, which, when executed by a processor, implements a media content search method as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Knowledge tracking method based on test question heterogeneous graph representation and learner embedding

    CN113344053A

  • Model lightweight method and device, electronic equipment and computer readable storage medium

    CN114373090A

  • Image and data capture and machine learning for automatic generation of search queries

    US20170277693A1

  • Natural question generation via reinforcement learning based graph-to-sequence model

    US20210209139A1