End-cloud collaborative system, distributed processing cluster and mobile devices
Through the terminal-cloud collaboration system, distributed processing clusters and mobile terminal collaborative training models, the problem that the recommendation model cannot be adjusted in real time is solved, and the accuracy of the recommended information and user experience are improved.
Patent Information
- Application Number
- CN202210336120.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-03-31
AI Technical Summary
Existing recommendation models cannot provide real-time feedback on user interaction behavior after training in a distributed processing cluster, resulting in the inability to adjust recommendation information in a timely manner and affecting user experience.
Through the device-cloud collaboration system, the distributed processing cluster and the mobile terminal collaborate for model training, and combine the computing resources and data on the cloud and device sides to interactively learn and generate target recommendation models.
The training efficiency and quality of the recommendation model are improved, the generated recommendation information is more accurate, and the user experience is improved.
Smart Images

Figure CN114884832B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data processing technology, in particular to technical fields such as information recommendation, and specifically to a terminal-cloud collaborative system, a distributed processing cluster and a mobile terminal device. Background Art
[0002] The current mainstream recommendation model processing method is to train a single recommendation model in a distributed processing cluster based on the user's historical behavior data. After the model is generated, it is rendered by the mobile terminal and the recommendation information (e.g., candidate products) is presented to the user. However, the user's interactive behavior in the mobile terminal recommendation information cannot be fed back to the distributed processing cluster in real time, and the algorithm model of the distributed processing cluster cannot be used to train and generate personalized recommendation results in a timely manner, making it impossible to adjust the recommendation information in real time to meet the changes in user interests, thus affecting the user experience.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a terminal-cloud collaborative system, a distributed processing cluster and a mobile terminal device, so as to at least solve the technical problem that the recommendation model trained in the related technology generates inaccurate recommendation information, resulting in poor user experience.
[0005] According to one aspect of an embodiment of the present invention, there is provided a terminal-cloud collaborative system, comprising: a distributed processing cluster and a mobile terminal, wherein the distributed processing cluster is used to train an initial model of the distributed processing cluster using initial historical behavior data of the distributed processing cluster to obtain a cloud-side target model; the mobile terminal is used to train an initial model of the mobile terminal using initial historical behavior data of the mobile terminal to obtain a mobile-terminal target model; the distributed processing cluster is further used to interactively learn model training information with the mobile terminal based on the cloud-side target model, and collaboratively train a recommendation model to obtain a target recommendation model; and / or the mobile terminal is further used to interactively learn model training information with the distributed processing cluster based on the mobile-terminal target model, and collaboratively train a recommendation model to obtain a target recommendation model.
[0006] Optionally, the mobile terminal is used to send the mobile terminal target model to the distributed processing cluster; the distributed processing cluster is used to aggregate the mobile terminal target models corresponding to the same type of mobile terminals of the mobile terminal to obtain an initial aggregate model and complete an end-to-end training cloud aggregate operation; the distributed processing cluster is also used to send the initial aggregate model to the mobile terminal, repeat the end-to-end training cloud aggregate operation multiple times, and obtain the target recommendation model.
[0007] Optionally, the distributed processing cluster is used to send the cloud-side target model to the mobile terminal; the mobile terminal is used to train the cloud-side target model based on the initial historical behavior data of the mobile terminal to obtain a mobile terminal target model and complete a cloud-side alternating training; the mobile terminal is also used to send the mobile terminal target model to the distributed processing cluster, repeat the cloud-side alternating training multiple times, and obtain the target recommendation model.
[0008] Optionally, the distributed processing cluster is also used to obtain first model training auxiliary information from the mobile terminal, and perform incremental training on the cloud-side target model based on the first model training auxiliary information to obtain the target recommendation model; and / or, the mobile terminal is also used to obtain second model training auxiliary information from the distributed processing cluster, and perform incremental training on the mobile terminal target model based on the second model training auxiliary information to obtain the target recommendation model.
[0009] Optionally, the mobile terminal is also used to send current behavior data to the distributed processing cluster; the distributed processing cluster is also used to obtain a distributed processing cluster recommendation model based on the initial historical behavior data of the distributed processing cluster when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster is within a predetermined similarity threshold; the mobile terminal is also used to obtain a mobile terminal recommendation model based on the initial historical behavior data of the mobile terminal when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster exceeds the predetermined similarity threshold.
[0010] Optionally, the mobile terminal is further used to obtain a recommendation request, and determine and display a recommendation result corresponding to the recommendation request based on the target recommendation model.
[0011] Optionally, the distributed processing cluster is further used to obtain a recommendation request, and determine and display a recommendation result corresponding to the recommendation request based on the target recommendation model.
[0012] According to another aspect of an embodiment of the present invention, there is provided a distributed processing cluster, comprising: a plurality of distributed processors, wherein the plurality of distributed processors are used to collaboratively train a recommendation model through interactive learning of model training information with a mobile terminal to obtain a target recommendation model.
[0013] According to another aspect of an embodiment of the present invention, there is provided a mobile terminal device, comprising: a memory and a processor, wherein the memory stores a computer program, and the processor is used to collaboratively train a recommendation model through interactive learning of model training information with a distributed processing cluster to obtain a target recommendation model.
[0014] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, wherein the non-volatile storage medium includes a stored program, wherein when the program is running, a distributed processing cluster and a mobile terminal where the non-volatile storage medium is located are controlled to collaboratively train a recommendation model through interactive learning of model training information to obtain a target recommendation model.
[0015] In an embodiment of the present invention, through the end-cloud collaborative system, after the distributed processing cluster performs model training to obtain the cloud-side target model, the model training information is interactively learned with the mobile end, and the recommendation model is collaboratively trained to obtain the target recommendation model; and / or, after the mobile end performs model training to obtain the mobile-end target model, the model training information is interactively learned with the distributed processing cluster, and the recommendation model is collaboratively trained to obtain the target recommendation model. Therefore, through the above-mentioned end-cloud collaborative system, the above-mentioned distributed processing cluster and the above-mentioned mobile terminal collaborate to train the recommendation model to obtain the target recommendation model, thereby achieving the purpose of collaboratively generating a personalized recommendation model through the distributed processing cluster and the mobile terminal. Compared with the method of training the recommendation model only on the distributed processing cluster side or only on the mobile terminal in the related technology, the method of collaborative training of the distributed processing cluster and the mobile terminal can be used to train the recommendation model in combination with the computing resources of the distributed processing cluster, the training data of the distributed processing cluster, the computing resources of the mobile terminal, and the training data of the mobile terminal, thereby effectively improving the efficiency and quality of the recommendation model training, thereby making the trained recommendation model more accurate, and the recommendation information obtained based on the recommendation model more accurate, thereby improving the technical effect of user experience, thereby solving the technical problem of poor user experience caused by inaccurate recommendation information generated by the recommendation model trained in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 is a schematic diagram of a terminal-cloud collaboration system provided according to an embodiment of the present invention;
[0018] Figure 2 is a schematic diagram of a collaborative approach of a terminal-cloud recommendation system provided according to an embodiment of the present invention;
[0019] Figure 3 is a schematic diagram of a terminal-cloud collaborative recommendation system provided according to an embodiment of the present invention;
[0020] Figure 4is a framework diagram of a terminal-cloud collaboration system provided according to an embodiment of the present invention;
[0021] Figure 5 is a schematic diagram of a terminal-cloud collaboration system in a first collaboration mode according to an embodiment of the present invention;
[0022] Figure 6 is a schematic diagram of a terminal-cloud collaboration system in a second collaboration mode according to an embodiment of the present invention;
[0023] Figure 7 It is a schematic diagram of a terminal-cloud collaborative system under the third collaborative mode according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0027] DCCS: Device-Cloud Collaborative System
[0028] PV: Page View, page visit
[0029] DPV: Detail Page View, details page access
[0030] IPV: Item Page View, product page visit
[0031] UV: User Visit, user visit.
[0032] Example 1
[0033] According to an embodiment of the present invention, a method embodiment of recommendation model processing is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] In the recommendation scenario of the related art, the following two schemes are generally used to obtain the recommendation model. The first is that the cloud (for example, a distributed processing cluster) trains a single recommendation model of the distributed processing cluster based on the historical behavior data (i.e., historical sample data) obtained by the distributed processing cluster. Afterwards, when recommending to the user, the distributed processing cluster processes the user's recommendation request based on the single recommendation model, obtains the recommendation result and feeds it back to the user. In the training process of the above recommendation model, the process of obtaining the recommendation model is completed by the distributed processing cluster alone. Since the obtained single recommendation model is obtained by the distributed processing cluster using the historical behavior data obtained by the distributed processing cluster for training, and the historical behavior data obtained by the distributed processing cluster is for all user data, the obtained recommendation model is also for all users. When a target user sends a recommendation request, the recommendation model is not very targeted to the target user. Therefore, it may be difficult to obtain the recommendation result required by the target user based on the recommendation model, and the accuracy of the recommendation is not high. Therefore, the recommendation effect of the recommendation model obtained by the above method appears to be relatively general, and the user experience is also general.
[0035] In order to solve the problem that the above-mentioned recommendation model is poorly targeted and leads to poor recommendation effect, a method for deploying a personalized recommendation model on a mobile terminal is also provided in the related technology, that is, the second solution: the solution of thousands of machines and thousands of models. In the second solution, the mobile terminal is trained based on the user's historical behavior data to obtain an on-terminal model for the user. In the process of obtaining the above-mentioned recommendation model, the process of obtaining the recommendation model (that is, the above-mentioned on-terminal model) is entirely completed by the mobile terminal alone. Using this model training method, although an on-terminal model for the user can be trained on each mobile terminal based on the user's personalized historical data, the on-terminal model can achieve personalized recommendation effects and can also respond to the user's real-time changing operational needs, but the training process is completed by the mobile terminal alone, and the computing resources and capabilities of the mobile terminal are limited. If the recommendation model is used for real-time training on the mobile terminal, it will seriously affect the target user's experience on the mobile terminal.
[0036] In order to solve the problems existing in the first and second solutions mentioned above, a new end-cloud collaboration system is provided in an embodiment of the present application. Figure 1 is a schematic diagram of a terminal-cloud collaboration system provided according to an embodiment of the present invention. Figure 1 As shown, the end-cloud collaborative system includes: a distributed processing cluster (cloud side) and a mobile terminal (end side), wherein the distributed processing cluster and the mobile terminal are used to perform end-cloud collaborative training of the recommendation model through interactive learning of model training information to obtain a target recommendation model. The end-cloud collaborative system is described below.
[0037] Distributed processing clusters are mainly used to process large amounts of data on the cloud through powerful data processing capabilities, obtain sample data for model training, and use cloud computing capabilities to train models based on the obtained sample data to obtain neural network models with various functions. After obtaining the neural network models with various functions, the computing platform is used to perform subsequent publishing, compression, and distribution of the models. In addition, when conducting model training, it also involves the setting of the development environment for model training. Figure 1 As shown on the left, in this distributed processing cluster, the more important part is to realize the training of the neural network model based on cloud computing capabilities, and the training of the neural network model mainly includes two parts, one is the processing of sample data, for example, to realize the enhanced processing of sample data or sample features, and the other is the generation of decision training modules and context environment training modules in the cloud decision model. Among them, the processing of sample data involves the sampling of sample data and the representation learning of samples. Among them, the sampling of sample data, for example, involves the sampling method, the sampling standard, and the number of samples. The representation learning of samples also involves multiple processing methods, such as the representation method of samples (for example, it can be a vector representation method, etc.), the representation dimension of samples (for example, it can be a high-dimensional representation, or it can be a representation after compressed dimensions, etc.). In addition, the decision training module in the cloud decision model can realize the decision function in multiple ways, for example, it can be a binary classification decision type, etc. The context training module in the cloud decision model is mainly used to learn relevant context information so that the meaning of the context is complete, thereby effectively improving the accuracy of the decision. It should be noted that, in the embodiment of the present application, the neural network model involved in the above-mentioned distributed processing cluster is a recommendation model based on a recommendation scenario.
[0038] The mobile terminal is mainly used to train the neural network model based on the user behavior data recorded locally on the mobile terminal through the terminal computing power. Since the computing resources of the mobile terminal are relatively limited compared to the computing power of the distributed processing cluster, and it can occupy too much computing resources to a certain extent, it will affect the user experience of the mobile terminal. Therefore, when training the neural network model on the mobile terminal, the neural network model generally involved is relatively lightweight. Figure 1 As shown on the right, the network models of various functions are obtained on the mobile terminal mainly based on the environmental resources that can be deployed on the mobile terminal and the terminal computing capabilities. For example, the capabilities of the network model may include the decision-making capabilities of the terminal side and the basic capabilities of the terminal side. Among them, the decision-making capabilities of the terminal side include: interactive decision-making and context perception on the terminal side. Since the largest function of the mobile terminal is the interactive operation with the user, the interactive decision-making of the neural network model implemented on the terminal side can better meet the user's timely experience. The context perception capability of the terminal side, since the perception of the user on the terminal side is continuous, continuous perception based on the user's context behavior can achieve a smooth user experience to a certain extent. In addition, some basic capabilities can also be implemented on the terminal side based on the terminal computing capabilities, for example, the processing of multimodal information on the terminal side is realized, wherein the multimodal information includes: various types of data information such as images, voices, and texts. For example, personalized modeling can also be implemented for users, so that the functions displayed by the model are more targeted to users. For another example, the establishment of neural network models of various functions can also be implemented based on the terminal computing capabilities, such as the establishment of graph neural network models. In addition, before the end side performs model training on the data, some special processing can also be performed on the sample data used for training based on the end computing capability, for example, reinforcement learning.
[0039] It should be noted that when the model is trained on the terminal side, some model training environment is also involved (for example, including some terminal input management, terminal script engine management, etc.), or subsequent processing of the obtained model (for example, the need to accelerate the processing of the terminal neural network model, etc.). In addition, the terminal side process scheduling can also be implemented based on the terminal decision module on the mobile terminal. Similarly, in the embodiment of the present application, the neural network model involved in the mobile terminal can also be a recommendation model based on a recommendation scenario.
[0040] In addition, in the process of end-cloud collaboration between the distributed processing cluster and the mobile terminal, multiple methods can be used, for example, link communication between the end and the cloud can be carried out by data distribution, or one-to-one link communication can be carried out. Among them, when the data distribution method is used for link communication, the distributed processing cluster can distribute data to multiple mobile terminals, and the distribution rules or policies can be determined based on the resources of the distributed processing cluster. When one-to-one link communication is used, the distributed processing cluster can perform bidirectional data transmission to a target mobile terminal.
[0041] The end-cloud collaborative system realizes interactive learning between cloud-side models and end-side models through two-way collaboration between the end and the cloud. For example, the end-side model not only satisfies the user's real-time interests, but also transmits the user's immediate feedback to the cloud-side model through knowledge extraction. The end-cloud collaborative system not only allows the mobile terminal to participate in more heuristic front-end interface design and dynamics, but also allows the mobile terminal to fully participate in the algorithm process of the entire recommendation system, upgrading it to an algorithm link of the recommendation system. By designing an efficient and lightweight algorithm solution on the mobile terminal, content recommendation driven by the user's real-time interests can be realized, thereby improving the efficiency of the entire recommendation system link and the user service experience. In addition, in the end-cloud collaborative system, without reconstructing the existing recommendation system link, the potential algorithm capabilities of the mobile terminal (for example, mobile devices) can be fully integrated, thereby improving the recommendation system's ability to perceive the user's real-time interests and providing users with more accurate recommendation services.
[0042] Figure 2 is a schematic diagram of a collaborative approach of a terminal-cloud recommendation system provided according to an embodiment of the present invention. Figure 2 As shown, the distributed processing cluster and mobile terminal in the end-to-end cloud collaborative system can use the following five end-to-end cloud collaborative methods to interact in model training to obtain the target recommendation model.
[0043] like Figure 2 As shown, the distributed processing cluster involves the data of the distributed processing cluster (for example, the user behavior data obtained by the distributed processing cluster) and the cloud computing resources of the distributed processing cluster; the mobile side involves the data of the mobile side (for example, the user behavior data recorded by the mobile side) and the terminal computing resources of the mobile side. Based on the combination of the above-mentioned distributed processing cluster data, the cloud computing resources of the distributed processing cluster, the data of the mobile side and the terminal computing resources of the mobile side, the above-mentioned five terminal-cloud collaboration modes are obtained.
[0044] As an optional embodiment, the above five end-cloud collaboration methods may include: (1) cloud-side modeling method, (2) end-side modeling method, (3) cloud-side centralized collaborative modeling method, (4) end-side centralized modeling method, and (5) end-cloud bidirectional collaborative modeling method. It should be noted that the above five end-cloud collaboration methods are only examples, and other end-cloud collaboration methods or variations are part of this application.
[0045] End-cloud collaboration mode 1: This end-cloud collaboration mode corresponds to the algorithm modeling situation that only considers cloud-side data and computing power, and does not consider end-side resources (computing power and data) under the end-cloud collaboration technology system. The model uses the user's historical data information before each mobile side request to perform interest reasoning, and then retrieves the object that best matches the user's interest and presents it to the user; this end-cloud collaboration mode well continues the function of the original recommendation link under the end-cloud collaboration technology system, that is, the model training process is only implemented by the distributed processing cluster, and it is compatible with the original recommendation system.
[0046] End-cloud collaboration mode 2: This end-cloud collaboration mode corresponds to the algorithm modeling situation that does not consider cloud-side resources (computing power and data) but considers end-side resources (computing power and resources) under the end-cloud collaboration technology system. The model uses the user's historical data before each mobile side initiates a request plus the real-time interaction behavior of the user in the current request as feedback to perform fine-grained real-time interest reasoning, and then retrieves the object that best matches the user's real-time interest and presents it to the user; this end-cloud collaboration mode also well continues the function of the original recommendation link under the end-cloud collaboration technology system, that is, the model training process is only implemented by the mobile side, and it is compatible with the original recommendation system.
[0047] End-cloud collaboration mode 3: This end-cloud collaboration mode corresponds to the algorithm modeling situation in which cloud-side data is not considered under the end-cloud collaboration technology system, but cloud-side computing power and end-side computing power and data are considered. The model is updated using the localized data of end-side users, and then the updated model is sent to the cloud side for aggregation. After aggregation, the cloud side sends the model to the end side for the next round of iteration. After several rounds of end-cloud model alternation, a single cloud-side centralized model is finally generated; in this end-cloud collaboration mode, the end side performs model training, and the cloud side aggregates the models trained on the same type of mobile side, so that the training of the same type of mobile side models is more comprehensive and accurate.
[0048] End-cloud collaboration mode 4. This end-cloud collaboration mode corresponds to the consideration of cloud-side data and computing power under the end-cloud collaboration technology system, but places more emphasis on the personalized algorithm modeling of the end-side model. The model uses cloud-side data and computing power to initialize the model parameters, and then sends it to the end side for training of the personalized patch module. The trained patch module is then recycled to the cloud side for knowledge distillation to produce a new model, and the new model enters the next round of iteration. After several rounds of alternation between the end-cloud model and the patch module, each mobile side finally generates a new model composed of a model and a personalized patch module;
[0049] End-cloud collaboration mode 5. This end-cloud collaboration mode corresponds to the modeling scenario in which a model is trained based on data and computing power on the cloud side, and a model is trained based on data and computing power on the end side under the end-cloud collaboration technology system, and then the models on both sides interact with each other. Since the training frequencies of the two models are different, the cloud side model is a slow learning process, and the end side model is a fast learning process. The two models interact with each other in the form of latent vectors at different frequencies, assisting each other in incremental training, and finally converge to obtain the required recommendation model.
[0050] Based on the new end-cloud collaboration technology system DCCS provided above, five end-cloud collaboration modes under the system and corresponding algorithm solutions under the end-cloud collaboration modes are provided. This new end-cloud collaboration technology system provides five end-cloud collaboration modes under the system, which builds a more complete end-cloud collaboration method than any previous technical solution.
[0051] The end-cloud collaborative technology system provided above not only takes into account the privacy issues in the recommendation system, but also solves the long-tail problem in the recommendation system through end-cloud collaborative personalization. At the same time, it realizes interactive learning of cloud-side models and end-side models through two-way collaboration. That is, the end-side model not only meets the user's real-time interests, but also transmits the user's instant feedback to the cloud-side model through knowledge extraction. The cloud-side model also uses the learned deeper information to assist the end-side model in rapid learning. In addition, this end-cloud collaborative technology system has also been applied in large-scale industrial recommendation scenarios.
[0052] Based on this technical system, an on-end re-ranking system was built from scratch on the original recommendation link, which significantly improved the core indicators of the original recommendation system service, such as PV, DPV, IPV, and UV.
[0053] Figure 3 is a schematic diagram of a terminal-cloud collaborative recommendation system provided according to an embodiment of the present invention. Figure 3 As shown, Figure 1The end-cloud collaborative technology system shown in the figure is applied to the existing information flow recommendation system to build a new end-cloud collaborative recommendation system. As shown in the figure, on the cloud side, it is implemented: long-term multi-interest modeling, minute-level recommendation latency, and providing a thousand-faceted model for thousands of people in the distributed processing cluster. On the end side, it is implemented: modeling based on the user's rich historical behavior data, achieving second-level recommendation latency (instant response based on the customer's instant operation).
[0054] Unlike traditional recommendation system links, which cannot use rich fine-grained features and instant feedback on the end side, this end-cloud collaborative recommendation system can perceive user interests in real time and adjust recommended content on the end side in a timely manner to improve the user's recommendation experience. At the same time, this end-cloud collaborative recommendation system also inherits the collaborative mode of the end-cloud collaborative technology system, and can have different types of interactions in model learning, which improves the efficiency of model learning and solves the long-tail problem under the recommendation system in a personalized way.
[0055] Through the above-mentioned end-cloud collaborative recommendation system, the end re-ranking link is added to the existing recommendation system link, and the collaborative mode under the end-cloud collaborative technology system mentioned above is naturally applied. In actual application scenarios, the end-cloud collaborative recommendation system has achieved significant improvement in core functional indicators.
[0056] To illustrate the above-mentioned end-cloud collaboration system, different end-cloud collaboration modes are described below.
[0057] Figure 4 is a framework diagram of a terminal-cloud collaboration system provided according to an embodiment of the present invention. Figure 4 As shown, the system includes: a distributed processing cluster 42 and a mobile terminal 44, wherein:
[0058] The distributed processing cluster 42 is used to train the distributed processing cluster initial model using the initial historical behavior data of the distributed processing cluster to obtain a cloud-side target model;
[0059] The mobile terminal 44 is used to train the mobile terminal initial model using the initial historical behavior data of the mobile terminal to obtain a mobile terminal target model;
[0060] The distributed processing cluster 42 is also used to interactively learn the model training information with the mobile terminal based on the cloud-side target model, and collaboratively train the recommendation model to obtain the target recommendation model; and / or the mobile terminal 44 is used to interactively learn the model training information with the distributed processing cluster based on the mobile terminal target model, and collaboratively train the recommendation model to obtain the target recommendation model.
[0061] Through the end-cloud collaborative system, after the distributed processing cluster performs model training to obtain the cloud-side target model, it interacts with the mobile end to learn the model training information, collaborates to train the recommendation model, and obtains the target recommendation model; and / or, after the mobile end performs model training to obtain the mobile-end target model, it interacts with the distributed processing cluster to learn the model training information, collaborates to train the recommendation model, and obtains the target recommendation model. Therefore, through the above-mentioned end-cloud collaborative system, the above-mentioned distributed processing cluster and the above-mentioned mobile terminal collaborate to train the recommendation model to obtain the target recommendation model, thereby achieving the purpose of collaboratively generating a personalized recommendation model through the distributed processing cluster and the mobile terminal. Compared with the method of training the recommendation model only on the distributed processing cluster side or only on the mobile terminal in the related technology, the method of collaborative training of the distributed processing cluster and the mobile terminal can be used to train the recommendation model in combination with the computing resources of the distributed processing cluster, the training data of the distributed processing cluster, the computing resources of the mobile terminal, and the training data of the mobile terminal, thereby effectively improving the efficiency and quality of the recommendation model training, thereby making the trained recommendation model more accurate, and the recommendation information obtained based on the recommendation model more accurate, thereby improving the technical effect of user experience, thereby solving the technical problem of poor user experience caused by inaccurate recommendation information generated by the recommendation model trained in the related technology.
[0062] As an optional embodiment, the above-mentioned end-cloud collaboration mode can be determined based on the resources (computing power and data) of the distributed processing cluster and the selection of the (computing power and data) of the mobile terminal, for example, whether to use the resources of the distributed processing cluster and what resources to use, whether to use the resources of the mobile terminal, and what resources to use for model training, so as to determine the mode of collaboration between the distributed processing cluster and the mobile terminal. For example, the end-cloud collaboration mode determined based on the above-mentioned selection method may include multiple types, and the first collaboration mode, the second collaboration mode and the third collaboration mode are used as examples for explanation below.
[0063] This application provides Figure 5 The end-cloud collaborative system in the first collaborative mode shown. The first collaborative mode is a model training mode in which the mobile terminal performs model training based on the initial historical behavior data of the mobile terminal, and the distributed processing cluster aggregates the models trained on similar mobile terminals of the same type as the mobile terminal. Figure 5 is a schematic diagram of a terminal-cloud collaborative system according to a first collaborative mode of an embodiment of the present invention. Figure 5 As shown, the end-cloud collaboration system under the first collaboration mode includes:
[0064] The mobile terminal 52 is used to send the mobile terminal target model to the distributed processing cluster; the distributed processing cluster 54 is used to aggregate the mobile terminal target models corresponding to the same type of mobile terminals of the mobile terminal to obtain an initial aggregate model and complete an end-to-end training cloud aggregation operation; the distributed processing cluster 54 is also used to send the initial aggregate model to the mobile terminal, repeat the end-to-end training cloud aggregation operation multiple times to obtain the target recommendation model.
[0065] It should be noted that the end-cloud collaboration system of the embodiment of the present application can be applied to a variety of scenarios, for example, but not limited to: online shopping, for example, shopping or purchasing on an e-commerce APP installed on a user's device, etc.
[0066] Through the end-cloud collaborative system that adopts the first collaborative mode, since the model training is performed on the mobile terminal, the mobile terminal target model is obtained, and the mobile terminal models obtained from the same type of mobile terminal as the mobile terminal are aggregated in the distributed processing cluster, so that the aggregated model obtained in the distributed processing cluster is the mobile terminal models aggregated from the same type of mobile terminals. Since the number of similar mobile terminals is large, the accuracy of the aggregated model can be effectively improved. In addition, since the aggregation operation is carried out in the distributed processing cluster, it does not need to consume the resources of the mobile terminal. Therefore, a high-quality target recommendation model can be obtained relatively quickly and efficiently.
[0067] It should be noted that the first collaborative mode corresponds to the collaborative mode of the end-cloud collaborative mode 3. First, the mobile terminal is used to generate an initial recommendation model, and the initial recommendation model is updated according to the initial historical behavior data of the user corresponding to the user device (the user on the mobile terminal); then the updated recommendation model is sent to the distributed processing cluster for aggregation to obtain the initial aggregation model. After aggregation, the distributed processing cluster sends the model to the mobile terminal to enter the next round of iteration. After several rounds of alternate updating and aggregation of the recommendation model, a single model centralized on the distributed processing cluster side (cloud-side centralized recommendation model) is finally generated.
[0068] It should be noted that the embodiments of the present application can be applied to functional scenarios of real-time recommendation of online network objects. Model training, updating and other operations are performed based on the historical behavior data stored in the user device, and the model is uploaded to the distributed processing cluster side for aggregation, completing an end-to-end training cloud aggregation operation. By repeating the end-to-end training cloud aggregation operation multiple times, the problem that the recommended information in the current recommendation scenario cannot be adjusted in real time to meet the changes in user interests can be effectively solved.
[0069] As an optional embodiment, the present application provides Figure 6The end-cloud collaborative system in the second collaborative mode shown. The second collaborative mode is a mode in which the distributed processing cluster performs alternating model training based on the distributed processing cluster computing resources and the initial historical behavior data of the distributed processing cluster, and the mobile terminal performs alternating model training based on the computing resources of the mobile terminal and the initial historical behavior data of the mobile terminal. Figure 6 is a schematic diagram of a terminal-cloud collaborative system according to a second collaborative mode of an embodiment of the present invention. Figure 6 As shown, the end-cloud collaboration system under the second collaboration mode includes:
[0070] The distributed processing cluster 62 is used to send the cloud-side target model to the mobile terminal; the mobile terminal 64 is used to train the cloud-side target model based on the initial historical behavior data of the mobile terminal to obtain a mobile terminal target model and complete a cloud-side alternating training; the mobile terminal 64 is also used to send the mobile terminal target model to the distributed processing cluster, repeat the cloud-side alternating training multiple times, and obtain the target recommendation model.
[0071] Optionally, the second collaborative mode corresponds to the collaborative mode of the end-cloud collaborative mode 4. First, the distributed processing cluster is used to generate an initial recommendation model based on the historical behavior data and computing resources of the distributed processing cluster, and then sent to the mobile terminal for training of the personalized patch module. The trained patch module is then recovered to the distributed processing cluster for knowledge distillation to obtain supervision information, and the supervision information is sent as knowledge to the recommendation model. The recommendation model continues to train the personalized patch module in the mobile terminal to enter the next round of iteration. After several alternating updates of knowledge distillation and patch modules, a target recommendation model is finally generated on each mobile terminal.
[0072] The embodiment of the present application performs model training, updating and other operations based on the historical behavior data stored in the distributed processing cluster and the historical behavior data and current behavior data stored in the mobile terminal. The target recommendation model obtained after the model completes multiple cloud-based alternating training can effectively solve the problem that the recommended information in the current recommendation scenario cannot be adjusted in real time to meet the changes in user interests.
[0073] As an optional embodiment, the present application provides Figure 7 The end-cloud collaborative system under the third collaborative mode shown. The third collaborative mode is a mode in which the distributed processing cluster performs model training independently based on the computing resources of the distributed processing cluster and the historical behavior data of the distributed processing cluster, and the mobile terminal performs model training independently based on the computing resources of the mobile terminal and the historical behavior data of the mobile terminal. Figure 7 is a schematic diagram of a terminal-cloud collaborative system according to a third collaborative mode of an embodiment of the present invention. Figure 7 As shown, the end-cloud collaboration system under the second collaboration mode includes:
[0074] The distributed processing cluster 72 is further used to obtain the first model training auxiliary information from the mobile terminal, and perform incremental training on the cloud-side target model based on the first model training auxiliary information to obtain the target recommendation model; and / or,
[0075] The mobile terminal 74 is further used to obtain second model training auxiliary information from the distributed processing cluster, and perform incremental training on the mobile terminal target model based on the second model training auxiliary information to obtain the target recommendation model.
[0076] Optionally, the third collaboration mode corresponds to the collaboration mode of the end-cloud collaboration mode 5 mentioned above, and is used when the computing resources of the distributed processing cluster and the mobile terminal are sufficient. Independent recommendation models are trained on both the distributed processing cluster and the mobile terminal. That is, a model is trained on the distributed processing cluster side based on the data and computing power of the distributed processing cluster side, and a model is trained on the mobile terminal side based on the data and computing power of the mobile terminal. After that, model information is interacted between the distributed processing cluster and the mobile terminal to assist in incremental training to obtain the target recommendation model.
[0077] It should be noted that the training frequency of the distributed processing cluster model is different from that of the mobile terminal model. The cloud-side model (distributed processing cluster side) is a slow learning process, and the terminal-side model (mobile terminal side) is a fast learning process. The two recommendation models interact with each other in the form of latent vectors using the supervision information at different frequencies (i.e., the auxiliary information for training the first model and the auxiliary information for training the second model) to assist each other in incremental training until convergence.
[0078] It should also be noted that in the embodiments of the present application, the number of iterations under different collaboration modes and training modes may be different, and the specific number of iterations needs to be determined based on the actual amount of data.
[0079] As an optional embodiment, the above-mentioned end-cloud collaborative system can also be compatible with the distributed processing cluster performing model training based on the resources (computing power and data) of the distributed processing cluster to obtain a distributed processing cluster recommendation model, and can also be compatible with the mobile terminal performing model training based on the resources (computing power and data) of the mobile terminal to obtain a mobile terminal recommendation model. For example, in this end-cloud collaborative system, the mobile terminal is also used to send current behavior data to the distributed processing cluster; the distributed processing cluster is also used to obtain a distributed processing cluster recommendation model based on the initial historical behavior data of the distributed processing cluster when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster is within a predetermined similarity threshold; the mobile terminal is also used to obtain a mobile terminal recommendation model based on the initial historical behavior data of the mobile terminal when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster exceeds the predetermined similarity threshold.
[0080] Optionally, in an embodiment of the present application, after the mobile terminal initiates a recommendation request, the recommendation request carries the user's current behavior data corresponding to the recommendation request, and the distributed processing cluster can determine whether the similarity between the above-mentioned current behavior data and the initial historical behavior data of the above-mentioned distributed processing cluster exceeds a similarity threshold based on the user's current behavior data; if it is determined that the similarity between the above-mentioned current behavior data and the initial historical behavior data of the above-mentioned distributed processing cluster is within a predetermined similarity threshold, the above-mentioned distributed processing cluster trains the above-mentioned initial historical behavior data of the above-mentioned distributed processing cluster to obtain a distributed processing cluster recommendation model.
[0081] Optionally, in an embodiment of the present application, after the mobile terminal initiates a recommendation request, the recommendation request carries the user's current behavior data corresponding to the recommendation request. When the similarity between the above-mentioned current behavior data and the initial historical behavior data of the above-mentioned distributed processing cluster exceeds a predetermined similarity threshold, the mobile terminal can train a mobile terminal recommendation model based on the above-mentioned initial historical behavior data of the above-mentioned mobile terminal.
[0082] It should be noted that the above-mentioned predetermined similarity threshold can be set according to actual conditions, and can also be divided into multiple levels, with different collaboration methods or recommendation methods being adopted at different levels.
[0083] It should also be noted that the above-mentioned predetermined similarity threshold can be used to determine whether the above-mentioned current behavior data needs to be recalled to the distributed processing cluster. If the similarity is too high, there is no need to recall it to the distributed processing cluster, and a distributed processing cluster recommendation model can be generated based on the initial historical behavior data of the distributed processing cluster; if the similarity is high but the mobile terminal computing resources are sufficient, there is still no need to recall it to the distributed processing cluster, and the mobile terminal recommendation model can be obtained by training the mobile terminal based on the initial historical behavior data and the current behavior data.
[0084] As an optional embodiment, the above-mentioned mobile terminal is also used to perform recommendation processing based on the above-mentioned recommendation model after obtaining the above-mentioned recommendation model (the recommendation model can be the target recommendation model obtained by the above-mentioned end-cloud collaboration, or it can be the above-mentioned independent distributed processing cluster recommendation model or mobile terminal recommendation model). For example, the above-mentioned mobile terminal obtains a recommendation request, and based on at least one of the above-mentioned target recommendation model, the distributed processing cluster recommendation model or the mobile terminal recommendation model, the above-mentioned mobile terminal and / or the above-mentioned distributed processing cluster determines and displays the recommendation result corresponding to the above-mentioned recommendation request. Using the above-mentioned recommendation model for recommendation processing can not only meet the user's needs for recommendation models under various recommendation conditions, but also make the recommendation results obtained based on the recommendation model more efficient and accurate.
[0085] It should be noted that the above-mentioned recommendation model processing method can be applied to distributed processing clusters, to mobile terminals, and to third parties different from mobile terminals and distributed processing clusters, that is, any scenario that requires a recommendation model can be applied.
[0086] As an optional embodiment, the present application also provides a distributed processing cluster, including: multiple distributed processors, wherein the multiple distributed processors are used to collaboratively train the recommendation model through interactive learning of model training information with the mobile terminal to obtain a target recommendation model.
[0087] As an optional embodiment, the present application also provides a mobile terminal device, including: a memory and a processor, wherein the memory stores a computer program, and the processor is used to collaboratively train a recommendation model through interactive learning of model training information with a distributed processing cluster to obtain a target recommendation model.
[0088] As an optional embodiment, the present application also provides a non-volatile storage medium, which includes a stored program, wherein when the program is running, the distributed processing cluster and mobile terminal where the non-volatile storage medium is located are controlled to collaboratively train the recommendation model through interactive learning of model training information to obtain a target recommendation model.
[0089] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a distributed processing cluster, or a network device, etc.) to execute various embodiments of the present invention.
[0091] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0092] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0093] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0095] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0096] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a distributed processing cluster or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0097] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A terminal-cloud collaborative system, characterized in that: include: Distributed processing clusters and mobile terminals, where The distributed processing cluster is used to train the distributed processing cluster initial model using the initial historical behavior data of the distributed processing cluster to obtain a cloud-side target model; The mobile terminal is used to train the mobile terminal initial model using the initial historical behavior data of the mobile terminal to obtain a mobile terminal target model; The distributed processing cluster is further used to interactively learn model training information with the mobile terminal based on the cloud-side target model, and collaboratively train the recommendation model to obtain a target recommendation model; and / or the mobile terminal is further used to interactively learn model training information with the distributed processing cluster based on the mobile terminal target model, and collaboratively train the recommendation model to obtain a target recommendation model; The mobile terminal is also used to send current behavior data to the distributed processing cluster; The distributed processing cluster is also used to obtain a distributed processing cluster recommendation model based on the initial historical behavior data of the distributed processing cluster when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster is within a predetermined similarity threshold; and / or the mobile terminal is also used to obtain a mobile terminal recommendation model based on the initial historical behavior data of the mobile terminal when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster exceeds the predetermined similarity threshold.
2. The system according to claim 1, characterized in that The mobile terminal is used to send the mobile terminal target model to the distributed processing cluster; The distributed processing cluster is used to aggregate mobile terminal target models corresponding to similar mobile terminals of the mobile terminal to obtain an initial aggregate model, thereby completing a terminal training cloud aggregation operation; The distributed processing cluster is also used to send the initial converged model to the mobile terminal, repeat the terminal training cloud convergence operation multiple times, and obtain the target recommendation model.
3. The system according to claim 1, characterized in that The distributed processing cluster is used to send the cloud-side target model to the mobile terminal; The mobile terminal is used to train the cloud-side target model based on the initial historical behavior data of the mobile terminal to obtain a mobile terminal target model and complete a cloud-side alternating training; The mobile terminal is also used to send the mobile terminal target model to the distributed processing cluster, and repeat the cloud-side alternating training multiple times to obtain the target recommendation model.
4. The system according to claim 1, characterized in that The distributed processing cluster is further used to obtain first model training auxiliary information from the mobile terminal, and perform incremental training on the cloud-side target model based on the first model training auxiliary information to obtain the target recommendation model; and / or, The mobile terminal is also used to obtain second model training auxiliary information from the distributed processing cluster, and to perform incremental training on the mobile terminal target model based on the second model training auxiliary information to obtain the target recommendation model.
5. The system according to claim 1, characterized in that The mobile terminal is also used to obtain a recommendation request, and determine and display a recommendation result corresponding to the recommendation request based on the target recommendation model.
6. The system according to claim 1, characterized in that The distributed processing cluster is further used to obtain a recommendation request, and determine and display a recommendation result corresponding to the recommendation request based on the target recommendation model.
7. A distributed processing cluster, characterized in that: include: A plurality of distributed processors, wherein the plurality of distributed processors are used to collaboratively train a recommendation model through interactive learning of model training information with a mobile terminal to obtain a target recommendation model, and to receive current behavior data sent by the mobile terminal; and when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster is within a predetermined similarity threshold, the distributed processing cluster recommendation model is obtained based on the initial historical behavior data training of the distributed processing cluster.
8. A mobile terminal device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and the processor is used to collaboratively train a recommendation model through interactive learning of model training information with a distributed processing cluster to obtain a target recommendation model, and to obtain a mobile terminal recommendation model based on the initial historical behavior data of the mobile terminal when the similarity between current behavior data and the initial historical behavior data of the distributed processing cluster exceeds a predetermined similarity threshold.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein, when the program is running, the distributed processing cluster and the mobile terminal where the non-volatile storage medium is located are controlled to collaboratively train the recommendation model through interactive learning of model training information to obtain a target recommendation model, and the distributed processing cluster is controlled to receive current behavior data sent by the mobile terminal; and when the similarity between the current behavior data and the initial historical behavior data of the distributed processing cluster is within a predetermined similarity threshold, the distributed processing cluster recommendation model is trained based on the initial historical behavior data of the distributed processing cluster; and / or, when the similarity between the current behavior data of the mobile terminal and the initial historical behavior data of the distributed processing cluster exceeds the predetermined similarity threshold, the mobile terminal recommendation model is trained based on the initial historical behavior data of the mobile terminal.
Citation Information
Patent Citations
Data processing method, end-side equipment, cloud-side equipment and end-cloud cooperative system
CN110069706A
Joint learning framework based on cooperation of cloud server and IoT equipment
CN111625361A
Federal learning system and method for edge cloud collaboration
CN113077060A
Personalized model training method based on joint learning, electronic equipment and medium
CN113312543A
Model updating method, terminal and server
CN114239668A
