Content recommendation method and device, electronic equipment and storage medium

By cropping the candidate objects when the user activity meets the preset conditions, and using the L2 norm of the learnable embedding vector, the problem of high delay in the recommendation system is solved, the response speed is improved and the negative impact on the recommendation effect is reduced. Influence.

CN118535799APending Publication Date: 2024-08-23BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing recommendation systems are computationally intensive in core steps such as recall, rough ranking, and fine ranking, resulting in high latency and affecting user experience. When all users request indiscriminate clipping of candidate content, highly active users may not be satisfied. Recommended content for their needs.

Method used

When the user activity meets the preset conditions, candidate objects are cropped to reduce the number of candidates, and the L2 norm of the learnable embedding vector is positively correlated with the activity to determine whether to prune, so as to reduce the system recommendation delay. and improve response speed.

Benefits of technology

Conditionally cropping candidate objects reduces the system recommendation delay, improves response speed, and minimizes the negative impact of cropping on the recommendation effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535799A
    Figure CN118535799A
Patent Text Reader

Abstract

The invention provides a content recommendation method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining at least one candidate object in response to a request sent by a client; determining the activeness of a user corresponding to the client; determining whether the activeness of the user meets a preset condition or not; in response to determining that the activeness of the user meets a preset condition, cutting the obtained candidate objects to reduce the number of the candidate objects; and sending the clipped candidate object to the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a content recommendation method, device, electronic device and storage medium. Background Art

[0002] Most current personalized information applications, video applications, or e-commerce applications rely on personalized recommendation systems to distribute content that matches users' personal interests. The latency of a recommendation system refers to the time it takes for the system to receive a user's content request and for the system to calculate and return the recommended content results. The latency of a recommendation system directly affects the timeliness of users' access to recommended content. The lower the latency, the better the user experience. Therefore, the latency of a recommendation system is a key indicator in the development and optimization process of a recommendation system. In particular, the core steps of the recommendation system, such as recall, rough sorting, fine sorting, and re-sorting, are algorithm-intensive and time-consuming, so it is urgent to optimize the latency of the recommendation system. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, according to one or more embodiments of the present disclosure, a content recommendation method is provided, comprising:

[0005] In response to a request sent by a client, obtaining at least one candidate object;

[0006] Determining the activity of a user corresponding to the client;

[0007] Determining whether the activity of the user meets a preset condition;

[0008] In response to determining that the activity of the user meets the preset condition, cutting out the obtained candidate objects to reduce the number of the candidate objects;

[0009] The cropped candidate objects are sent to the client.

[0010] In a second aspect, according to one or more embodiments of the present disclosure, a content recommendation device is provided, including:

[0011] An object acquisition unit, configured to acquire at least one candidate object in response to a request sent by a client;

[0012] An activity determination unit, used to determine the activity of a user corresponding to the client;

[0013] A condition determination unit, used to determine whether the activity of the user meets a preset condition;

[0014] an object clipping unit, configured to, in response to determining that the activity of the user satisfies the preset condition, clip the obtained candidate objects to reduce the number of the candidate objects;

[0015] The object sending unit is used to send the cropped candidate object to the client.

[0016] In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one memory and at least one processor; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory so that the electronic device executes the content recommendation method provided according to one or more embodiments of the present disclosure.

[0017] In a fourth aspect, according to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, wherein the non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes the content recommendation method provided according to one or more embodiments of the present disclosure.

[0018] According to one or more embodiments of the present disclosure, in the content recommendation process, by trimming candidate objects to reduce the number of candidate objects when the user's activity meets preset conditions, the candidate objects can be conditionally trimmed to reduce the system recommendation latency. Compared with the solution of indiscriminately trimming all users and all requests, this embodiment improves the response speed by conditionally trimming candidate objects, and can minimize the adverse effects of trimming on the recommendation effect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 A flowchart of a content recommendation method provided according to an embodiment of the present disclosure;

[0021] Figure 2 A schematic diagram of the relationship between the L2 norm of a learnable embedding vector and the activity of a user according to an embodiment of the present disclosure;

[0022] Figure 3 A flowchart of a content recommendation method provided according to another embodiment of the present disclosure;

[0023] Figure 4 A flowchart of a content recommendation method provided according to another embodiment of the present disclosure;

[0024] Figure 5 A schematic diagram of the structure of a content recommendation device provided according to an embodiment of the present disclosure;

[0025] Figure 6 The figure is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

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

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

[0028] As used herein, the term "including" and its variations are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The term "responsive to" and related terms refer to a signal or event being affected to a certain extent by another signal or event, but not necessarily completely or directly. If event x occurs "responsive to" event y, x may be directly or indirectly responsive to y. For example, the occurrence of y may ultimately lead to the occurrence of x, but there may be other intermediate events and / or conditions. In other cases, y may not necessarily lead to the occurrence of x, and x may occur even if y has not yet occurred. In addition, the term "responsive to" may also mean "at least partially responsive to".

[0029] The term "determine" broadly covers a variety of actions, which may include obtaining, calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, database or other data structure), ascertaining, and similar actions, and may also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and similar actions, as well as parsing, selecting, choosing, establishing and similar actions, etc. The relevant definitions of other terms will be given in the following description.

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

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

[0032] For the purposes of this disclosure, the phrase "A and / or B" means (A), (B), or (A and B).

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

[0034] It should be noted that the steps of obtaining the user's personal data mentioned in the present disclosure are performed with the user's authorization. For example, in response to receiving the user's active request, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require the acquisition and use of the user's personal information. Thus, the user can autonomously choose whether to provide personal information to the electronic device, application, server or storage medium or other software or hardware that performs the operation of the technical solution of the present disclosure according to the prompt message. As an optional but non-limiting implementation method, in response to receiving the user's active request, the method of sending the prompt message to the user can be, for example, a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device. It can be understood that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet relevant laws and regulations can also be applied to the implementation method of the present disclosure. It can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws and regulations and relevant provisions.

[0035] In order to optimize the latency of the recommendation system, one possible solution is to trim the number of candidate contents for all users and all requests to reduce the overall computational complexity of the recommendation system, thereby reducing the latency of the recommendation system and improving the response speed of user requests while keeping global machine resources constant. However, this solution has certain drawbacks. When the candidate contents are trimmed indiscriminately for all users and all requests, some users with widely distributed points of interest (such as highly active users) may not be able to obtain sufficient recommended contents to meet their needs, which ultimately reduces their user experience.

[0036] refer to Figure 1 , which shows a flow chart of a content recommendation method 100 provided by an embodiment of the present disclosure. In some embodiments, the method 100 may be executed at a computer device (eg, a server). The method 100 includes steps S110 to S150:

[0037] Step S110: In response to the request sent by the client, obtain at least one candidate object.

[0038] The request sent by the client may be a push request for personalized content, which may be triggered in response to a preset operation (such as a refresh operation or other input) of the user on the client.

[0039] The types of candidate objects include, but are not limited to, text, images, audio, video, product links, etc. In some embodiments, one or more candidate objects to be pushed can be obtained through the recommendation system. The recommendation system can be used to recommend content that may be of interest to users from a large amount of content. The recommendation system is usually based on user behavior data (such as browsing history, search history, clicks, likes, purchases, comments, etc. that reflect user interests and preferences), content attribute data (such as content title, description, tags, classification, author, rating, etc.), user portrait data, context data and other data, and is obtained through training of a suitable recommendation model. Among them, the recommendation model adopted by the recommendation system may include, but is not limited to, Deep Neural Networks (DNN), Factorization Machine (FM), Deep Interest Network (DIN), Generative Model, or Graph Neural Network (GNN), etc.

[0040] Step S120: Determine the activity level of the user corresponding to the client.

[0041] In some embodiments, the user's activity level can be determined based on the user's behavioral data on the platform, such as browsing time, number of clicks, number of comments, number of shares, number of purchases, number of logins or duration, and other data.

[0042] Step S130: Determine whether the activity of the user meets a preset condition.

[0043] Step S140: In response to determining that the activity of the user satisfies the preset condition, the obtained candidate objects are trimmed to reduce the number of the candidate objects.

[0044] In some embodiments, the determined score or value of the user's activity may be compared with a preset threshold. If it is lower than the threshold, indicating that the user's activity is low, the obtained candidate objects may be trimmed to reduce the number of the candidate objects.

[0045] Step S150: sending the cropped candidate object to the client.

[0046] In this step, the computer device (eg, server) may send the cropped candidate object to the client, or send it to the client via other intermediate servers.

[0047] Users with higher activity levels usually have higher requirements for recommended content, and their requirements for the number of recommended content are often higher than those for users with lower activity levels, while users with lower activity levels may require less recommended content than they require response speed. In this embodiment, in the content recommendation process, by trimming candidate objects to reduce the number of candidate objects when the user's activity level meets the preset conditions, the candidate objects can be conditionally trimmed to reduce the system recommendation delay, and compared with the solution of indiscriminately trimming all user requests, this embodiment can improve the response speed by conditionally trimming candidate objects, and can minimize the adverse effects of trimming on the recommendation effect.

[0048] In a preferred embodiment, step S120 further includes: obtaining a learnable embedding vector associated with the user from a learnable embedding vector library on which the recommendation model applied by the recommendation system relies; and determining the Euclidean norm of the learnable embedding vector. Accordingly, step S130 further includes: comparing the Euclidean norm with a preset threshold. In this way, when the Euclidean norm is less than the preset threshold, the corresponding clipping process is performed.

[0049] The various models used in the underlying predictive calculations of the recommendation system (such as a click-through rate model) are usually trained using a deep learning model (such as a DNN model). This type of model file generally contains a library of learnable embedding vectors that the model learning relies on. Specifically, for a recommendation system applied to the field of content recommendation, the library of learnable embedding vectors includes user-side learnable embedding vectors, content-side learnable embedding vectors, and other learnable embedding vectors. In some embodiments, the user-side learnable embedding vector is generated based on the user's historical interaction data, and the historical interaction data includes at least one of the following data: click data, browsing data, comment data, purchase data, login frequency or duration data.

[0050] A typical learnable embedding vector can be represented by an n-dimensional vector, for example, n = (v1, v2, ..., vn), and its L2 norm (also known as the Euclidean norm, i.e. the square root of the sum of the squares of the vector elements) is calculated as:

[0051]

[0052] Among them, L2 norm Represents the L2 norm of the embedding vector, which has the property of being greater than or equal to 0.

[0053] The inventors have found that the L2 norm of the user-side learnable embedding vector is significantly positively correlated with the user's actual activity. The higher the activity of a user, the larger the L2 norm of the user embedding vector corresponding to the user. Figure 2 , which shows the relationship between the L2 norm of the learnable embedding vector obtained based on relevant data and the user's activity, where the horizontal axis represents user activity, 0 represents the least active, and 5 represents the most active; the vertical axis represents the average value of the L2 norm of the embedding vector of the user group with the corresponding activity.

[0054] refer to Figure 3 , which shows a flow chart of a content recommendation method 200 provided by an embodiment of the present disclosure. The method 200 comprises the following steps:

[0055] Step S201: in response to a request sent by a client, obtaining at least one candidate object through a recommendation system;

[0056] Step S202: acquiring a learnable embedding vector associated with a user corresponding to the client from a learnable embedding vector library on which a recommendation model applied by the recommendation system depends, and determining a Euclidean norm of the learnable embedding vector;

[0057] Step S203: comparing the Euclidean norm with a preset threshold;

[0058] Step S204: in response to determining that the Euclidean norm is less than the preset threshold, performing clipping processing on the obtained candidate objects to reduce the number of the candidate objects;

[0059] Step S205: sending the cropped candidate object to the client.

[0060] In a specific implementation, step S202 may be performed synchronously with step S201 , for example, step S202 may be performed in response to a request sent by the client.

[0061] In this embodiment, by directly reusing the model product of the existing recommendation model of the recommendation system, that is, the user-learnable embedding vector, to determine whether to perform the pruning process, no additional model cost is generated and no additional high computing resources are consumed.

[0062] In some embodiments, the acquired candidate objects may be cropped in at least one of the following stages: the stage after recalling the candidate objects and before roughly sorting the candidate objects, the stage after roughly sorting the candidate objects and before finely sorting the candidate objects, and the stage after finely sorting the candidate objects and before re-sorting the candidate objects.

[0063] In some specific implementations, rough sorting can perform preliminary screening and sorting of candidate content to quickly filter out content that is obviously inconsistent with user interests and retain content that may be related to user interests; refined sorting is a more detailed sorting of the content after rough sorting, which can use more complex models and algorithms to predict the probability of users clicking on candidate content; re-ranking is the final adjustment and optimization of the results after refined sorting (for example, eliminating content that does not meet the rules or adding missing important elements) to improve the diversity of recommendation results and user experience.

[0064] In some embodiments, in response to determining that the Euclidean norm is less than the preset threshold, after recalling the candidate objects and before roughly sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset first threshold, the candidate objects may be cropped;

[0065] In some embodiments, in response to determining that the Euclidean norm is less than the preset threshold, after the candidate objects are roughly sorted and before the candidate objects are finely sorted, in response to determining that the Euclidean norm is less than a preset second threshold, the candidate objects may be cropped;

[0066] In some embodiments, in response to determining that the Euclidean norm is less than the preset threshold, after the candidate objects are finely sorted, in response to determining that the Euclidean norm is less than a preset third threshold, the candidate objects may be cropped.

[0067] refer to Figure 4 , which shows a flow chart of a content recommendation method 300 provided by an embodiment of the present disclosure. The method 300 includes the following steps:

[0068] In step 301, the client initiates a content push request to the recommendation system in response to a user operation.

[0069] In step 302, a learnable embedding vector associated with the client user is obtained from a learnable embedding vector library relied upon by the recommendation model applied by the recommendation system and its L2 norm is calculated. Synchronously or asynchronously, in step 303, the recommendation system recalls k1 candidate objects.

[0070] In step 304, it is determined whether the L2 norm is less than a first threshold t1.

[0071] If the L2 norm is less than the first threshold t1, step 305 is executed: the number of candidate objects is cut from k1 to k0. Next, step 306 is executed.

[0072] If the L2 norm is not less than the first threshold t1, step 306 is directly executed: the candidate objects are roughly sorted to obtain m1 candidate objects.

[0073] In step 307, it is determined whether the L2 norm is less than a second threshold t2.

[0074] If the L2 norm is less than the second threshold t2, step 308 is executed: the number of candidate objects is cut from m1 to m0. Next, step 309 is executed.

[0075] If the L2 norm is not less than the second threshold t2, step 309 is directly executed: the candidate objects are finely sorted to obtain n1 candidate objects.

[0076] In step 310, it is determined whether the L2 norm is less than a third threshold t3.

[0077] If the L2 norm is less than the third threshold t3, step 311 is executed: the number of candidate objects is cut from n1 to n0. Next, step 312 is executed.

[0078] If the L2 norm is not less than the third threshold t3, step 312 is directly executed: the candidate objects are rearranged.

[0079] In step 313, the recommendation system returns the rearranged candidate objects to the client.

[0080] In some embodiments, the first threshold t1 , the second threshold t2 , and the third threshold t3 may be uniformly set to the same threshold to facilitate policy maintenance.

[0081] In some embodiments, the first threshold t1, the second threshold t2 and the third threshold t3 may be different from each other. In this embodiment, different thresholds may be set in each link after recall, rough sorting and fine sorting to perform more refined processing.

[0082] In some embodiments, appropriate k0, n0, m0 and thresholds can be determined and adjusted through parameter search to balance recommendation delay optimization and recommendation effect. Exemplarily, parameter search can use search strategies such as grid search, random search, Bayesian optimization, etc. to find the optimal combination in the value space of hyperparameters.

[0083] Accordingly, refer to Figure 5 According to an embodiment of the present disclosure, a content recommendation device 500 is provided, comprising:

[0084] The object acquisition unit 501 is used to acquire at least one candidate object in response to a request sent by a client;

[0085] An activity determination unit 502, configured to determine the activity of a user corresponding to the client;

[0086] A condition determination unit 503 is used to determine whether the activity of the user meets a preset condition;

[0087] An object clipping unit 504 is configured to, in response to determining that the activity of the user satisfies the preset condition, clip the obtained candidate objects to reduce the number of the candidate objects;

[0088] The object sending unit 505 is used to send the cropped candidate object to the client.

[0089] In some embodiments, the activity determination unit includes:

[0090] a vector acquisition subunit, configured to acquire a learnable embedding vector associated with the user from a learnable embedding vector library relied upon by a recommendation model applied by the recommendation system; and

[0091] a norm determination subunit, configured to determine a Euclidean norm of the learnable embedding vector;

[0092] The condition determination unit is further used to compare the Euclidean norm with a preset threshold;

[0093] The user's activity level satisfies the preset condition, including: the Euclidean norm is less than the preset threshold.

[0094] In some embodiments, the learnable embedding vector is generated based on the user's historical interaction data, and the historical interaction data includes at least one of the following data: click data, browsing data, comment data, purchase data, login frequency or duration data.

[0095] In some embodiments, the acquired candidate objects are cropped, including: cropping the acquired candidate objects in at least one of the following stages: the stage after recalling the candidate objects and before roughly sorting the candidate objects, the stage after roughly sorting the candidate objects and before finely sorting the candidate objects, and the stage after finely sorting the candidate objects.

[0096] In some embodiments, the object clipping unit includes at least one of the following units:

[0097] A first clipping subunit is used for, after recalling the candidate objects and before roughly sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset first threshold, clipping the candidate objects;

[0098] A second cropping subunit is used for, after roughly sorting the candidate objects and before finely sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset second threshold, cropping the candidate objects;

[0099] The third cropping subunit is used to crop the candidate objects after finely sorting the candidate objects in response to determining that the Euclidean norm is less than a preset third threshold.

[0100] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts refer to the partial description of the method embodiments. The device embodiments described above are merely illustrative, and the modules described as separation modules may or may not be separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present embodiment. Those of ordinary skill in the art can understand and implement without paying creative work.

[0101] Accordingly, according to one or more embodiments of the present disclosure, there is provided an electronic device, including:

[0102] at least one memory and at least one processor;

[0103] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to enable the electronic device to execute the content recommendation method provided according to one or more embodiments of the present disclosure.

[0104] Accordingly, according to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, which stores a program code. The program code can be executed by a computer device to enable the computer device to perform a content recommendation method provided according to one or more embodiments of the present disclosure.

[0105] Reference below Figure 6 , which shows a structural schematic diagram of an electronic device 800 suitable for implementing an embodiment of the present disclosure. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0106] like Figure 6 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0107] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

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

[0109] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

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

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

[0112] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.

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

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

[0115] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.

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

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

[0118] According to one or more embodiments of the present disclosure, a content recommendation method is provided, comprising: obtaining at least one candidate object in response to a request sent by a client; determining the activity of a user corresponding to the client; determining whether the activity of the user satisfies a preset condition; in response to determining that the activity of the user satisfies the preset condition, cropping the obtained candidate objects to reduce the number of the candidate objects; and sending the cropped candidate objects to the client.

[0119] According to one or more embodiments of the present disclosure, determining the activity of the user corresponding to the client includes: obtaining a learnable embedding vector associated with the user from a learnable embedding vector library on which a recommendation model applied by a recommendation system depends; and determining the Euclidean norm of the learnable embedding vector; determining whether the activity of the user meets a preset condition includes: comparing the Euclidean norm with a preset threshold; the user's activity meets the preset condition, including: the Euclidean norm is less than the preset threshold.

[0120] According to one or more embodiments of the present disclosure, the learnable embedding vector is generated based on the user's historical interaction data, and the historical interaction data includes at least one of the following data: click data, browsing data, comment data, purchase data, login frequency or duration data.

[0121] According to one or more embodiments of the present disclosure, the acquired candidate objects are cropped, including: cropping the acquired candidate objects in at least one of the following stages: a stage after recalling the candidate objects and before roughly sorting the candidate objects, a stage after roughly sorting the candidate objects and before finely sorting the candidate objects, and a stage after finely sorting the candidate objects.

[0122] According to one or more embodiments of the present disclosure, in response to determining that the Euclidean norm is less than the preset threshold, the acquired candidate objects are cropped, including at least one of the following: after recalling the candidate objects and before roughly sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset first threshold, the candidate objects are cropped; after roughly sorting the candidate objects and before finely sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset second threshold, the candidate objects are cropped; after finely sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset third threshold, the candidate objects are cropped.

[0123] According to one or more embodiments of the present disclosure, the first threshold, the second threshold and the third threshold are not equal to each other.

[0124] According to one or more embodiments of the present disclosure, a content recommendation device is provided, including: an object acquisition unit, used to acquire at least one candidate object in response to a request sent by a client; an activity determination unit, used to determine the activity of a user corresponding to the client; a condition determination unit, used to determine whether the activity of the user satisfies a preset condition; an object cropping unit, used to crop the acquired candidate objects to reduce the number of the candidate objects in response to determining that the activity of the user satisfies the preset condition; and an object sending unit, used to send the cropped candidate objects to the client.

[0125] According to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one memory and at least one processor; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory so that the electronic device executes the content recommendation method provided according to one or more embodiments of the present disclosure.

[0126] According to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, wherein the non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes a content recommendation method provided according to one or more embodiments of the present disclosure.

[0127] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

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

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

Claims

1. A content recommendation method, characterized in that: include: In response to a request sent by a client, obtaining at least one candidate object; Determining the activity of a user corresponding to the client; Determining whether the activity of the user meets a preset condition; In response to determining that the activity of the user meets the preset condition, cutting out the obtained candidate objects to reduce the number of the candidate objects; The cropped candidate objects are sent to the client.

2. The method according to claim 1, characterized in that Determining the activity of the user corresponding to the client includes: obtaining a learnable embedding vector associated with the user from a learnable embedding vector library relied on by a recommendation model applied by a recommendation system; and determining the Euclidean norm of the learnable embedding vector; The determining whether the activity of the user meets a preset condition comprises: comparing the Euclidean norm with a preset threshold; The activity of the user satisfies the preset condition, including: the Euclidean norm is less than the preset threshold.

3. The method according to claim 1, characterized in that The learnable embedding vector is generated based on the historical interaction data of the user, where the historical interaction data includes at least one of the following data: click data, browsing data, comment data, purchase data, login frequency or duration data.

4. The method according to claim 1, characterized in that The obtained candidate objects are clipped, including: The obtained candidate objects are cropped in at least one of the following stages: the stage after recalling the candidate objects and before roughly sorting the candidate objects, the stage after roughly sorting the candidate objects and before finely sorting the candidate objects, and the stage after finely sorting the candidate objects.

5. The method according to claim 2, characterized in that: In response to determining that the Euclidean norm is less than the preset threshold, performing clipping processing on the obtained candidate object includes at least one of the following: After recalling the candidate objects and before roughly sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset first threshold, cutting the candidate objects; After roughly sorting the candidate objects and before finely sorting the candidate objects, in response to determining that the Euclidean norm is less than a preset second threshold, cutting the candidate objects; After the candidate objects are finely sorted, in response to determining that the Euclidean norm is less than a preset third threshold, the candidate objects are cropped.

6. The method according to claim 5, characterized in that The first threshold, the second threshold and the third threshold are not equal to each other.

7. A content recommendation device, characterized in that: include: An object acquisition unit, configured to acquire at least one candidate object in response to a request sent by a client; An activity determination unit, used to determine the activity of a user corresponding to the client; A condition determination unit, used to determine whether the activity of the user meets a preset condition; an object clipping unit, configured to, in response to determining that the activity of the user satisfies the preset condition, clip the obtained candidate objects to reduce the number of the candidate objects; The object sending unit is used to send the cropped candidate object to the client.

8. An electronic device, characterized in that: include: at least one memory and at least one processor; The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to enable the electronic device to execute the method according to any one of claims 1 to 6.

9. A non-transitory computer storage medium, characterized in that The non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Online learner activeness evaluation method based on deep clustering algorithm

    CN114429281A

  • Data pushing method and device, computer equipment and storage medium

    CN116708548A

  • Information pushing method, information processing method, storage medium and electronic equipment

    CN117749873A