Patentable/Patents/US-20260267922-A1
US-20260267922-A1

Data Processing Method and Related Apparatus

PublishedSeptember 10, 2026
Assigneenot available in USPTO data we have
Technical Abstract

A data processing method, applicable for example, to the field of artificial intelligence, is described. The method includes obtaining first attribute information of a first user and a first item and at least one calibration feature, where the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider. The method also includes obtaining a calibration coefficient corresponding to each calibration feature, and obtaining, based on the first attribute information by using a recommendation model, a first recommendation score of recommending the first item to the first user. The method also includes adjusting the first recommendation score based on the calibration coefficient. Corresponding calibration coefficients are therefore set for different calibration dimensions, and output of a model is adjusted by using a calibration coefficient of a calibration dimension related to currently to-be-recommended data, so that recommendation effect and precision of the model can be improved.

Patent Claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

obtaining first attribute information of a first user and a first item and at least one calibration feature, wherein the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider; obtaining a calibration coefficient corresponding to each calibration feature; obtaining, based on the first attribute information by using a recommendation model, a first recommendation score of recommending the first item to the first user; and adjusting the first recommendation score based on the calibration coefficient. . A data processing method, comprising:

2

claim 1 obtaining a second recommendation score of recommending a second item to a second user and an actual interaction score of the second user with the second item, wherein the second recommendation score is obtained by using the recommendation model, second attribute information corresponds to a target calibration feature, and the target calibration feature is one of the at least one calibration feature; and calculating a first deviation degree between the actual interaction score and the second recommendation score by using a calculation method of a confidence interval for binomial distribution, wherein a calibration coefficient corresponding to the target calibration feature is generated based on the first deviation degree. . The method according to, wherein the method further comprises:

3

claim 2 mapping the first deviation degree by using a target mapping method, to obtain a second deviation degree, wherein the target mapping method is a monotonically increasing function; calculating, by using the calculation method of the confidence interval for binomial distribution, a third recommendation score obtained after the actual interaction score is deviated by the second deviation degree; and obtaining, based on a difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature. . The method according to, wherein the method further comprises:

4

claim 3 using a ratio of the third recommendation score to the second recommendation score as the calibration coefficient corresponding to the target calibration feature. . The method according to, wherein obtaining, based on the difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature comprises:

5

claim 2 . The method according to, wherein the confidence interval is a Wilson interval.

6

claim 1 fusing a plurality of calibration coefficients corresponding to the plurality of calibration features, to obtain a fused calibration coefficient; and adjusting the first recommendation score based on the fused calibration coefficient. . The method according to, wherein the first attribute information corresponds to a plurality of calibration features, and adjusting the first recommendation score based on the calibration coefficient comprises:

7

a memory configured to store instructions; and a processor, coupled to the memory, is configured to execute the instructions to cause the electronic device to: obtain first attribute information of a first user and a first item and at least one calibration feature, wherein the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider; and obtain a calibration coefficient corresponding to each calibration feature; and obtain, based on the first attribute information by using a recommendation model, a first recommendation score of recommending the first item to the first user; and . An electronic device, comprising: adjust the first recommendation score based on the calibration coefficient.

8

claim 7 obtain a second recommendation score of recommending a second item to a second user and an actual interaction score of the second user with the second item, wherein the second recommendation score is obtained by using the recommendation model, second attribute information corresponds to a target calibration feature, and the target calibration feature is one of the at least one calibration feature; and calculate a first deviation degree between the actual interaction score and the second recommendation score by using a calculation apparatus of a confidence interval for binomial distribution, wherein a calibration coefficient corresponding to the target calibration feature is generated based on the first deviation degree. . The electronic device according to, the processor is further configured to cause the electronic device to:

9

claim 8 map the first deviation degree by using a target mapping apparatus, to obtain a second deviation degree, wherein the target mapping apparatus is a monotonically increasing function; calculate, by using the calculation apparatus of the confidence interval for binomial distribution, a third recommendation score obtained after the actual interaction score is deviated by the second deviation degree; and obtain, based on a difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature. . The electronic device according to, wherein the processor is further configured to cause the electronic device to:

10

claim 8 use a ratio of the third recommendation score to the second recommendation score as the calibration coefficient corresponding to the target calibration feature. . The electronic device according to, wherein the processor is further configured to cause the electronic device to:

11

claim 8 . The electronic device according to, wherein the confidence interval is a Wilson interval.

12

claim 7 fuse a plurality of calibration coefficients corresponding to the plurality of calibration features, to obtain a fused calibration coefficient; and adjust the first recommendation score based on the fused calibration coefficient. . The electronic device according to, wherein the first attribute information corresponds to a plurality of calibration features, and the processor is further configured to cause the electronic device to:

13

obtain first attribute information of a first user and a first item and at least one calibration feature, wherein the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider; obtain a calibration coefficient corresponding to each calibration feature; obtain, based on the first attribute information by using a recommendation model, a first recommendation score of recommending the first item to the first user; and adjust the first recommendation score based on the calibration coefficient. . A chip, comprising a processor, wherein the processor is configured to execute program instructions to cause the chip to:

14

claim 13 obtain a second recommendation score of recommending a second item to a second user and an actual interaction score of the second user with the second item, wherein the second recommendation score is obtained by using the recommendation model, second attribute information corresponds to a target calibration feature, and the target calibration feature is one of the at least one calibration feature; and calculate a first deviation degree between the actual interaction score and the second recommendation score by using a calculation method of a confidence interval for binomial distribution, wherein a calibration coefficient corresponding to the target calibration feature is generated based on the first deviation degree. . The chip according to, wherein the processor is further configured to cause the chip to:

15

claim 14 map the first deviation degree by using a target mapping method, to obtain a second deviation degree, wherein the target mapping method is a monotonically increasing function; calculate, by using the calculation method of the confidence interval for binomial distribution, a third recommendation score obtained after the actual interaction score is deviated by the second deviation degree; and obtain, based on a difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature. . The chip according to, wherein the processor is further configured to cause the chip to:

16

claim 14 use a ratio of the third recommendation score to the second recommendation score as the calibration coefficient corresponding to the target calibration feature. . The chip according to, wherein the chip to obtain, based on the difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature further comprises the chip to:

17

claim 14 . The chip according to, wherein the confidence interval is a Wilson interval.

18

claim 13 fuse a plurality of calibration coefficients corresponding to the plurality of calibration features, to obtain a fused calibration coefficient; and adjust the first recommendation score based on the fused calibration coefficient. . The chip according to, wherein the first attribute information corresponds to a plurality of calibration features, and the chip to adjust the first recommendation score based on the calibration coefficient comprises the chip to:

Detailed Description

Complete technical specification and implementation details from the patent document.

This application is a continuation of International Application No. PCT/CN2024/128067, filed on Oct. 29, 2024, which claims priority to Chinese Patent Application No. 202311437873.4, filed on Oct. 31, 2023. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.

This disclosure relates to the field of artificial intelligence, and in particular, to a data processing method and a related apparatus.

Artificial intelligence (AI) is a theory, a method, a technology, and a disclosure system in which human intelligence is simulated, extended, and expanded by using a digital computer or a machine controlled by a digital computer, to perceive an environment, obtain knowledge, and achieve an optimal result by using the knowledge. In other words, artificial intelligence is a branch of computer science and is intended to understand the essence of intelligence and produce a new intelligent machine that can react in a way similar to human intelligence. Artificial intelligence is to study design principles and implementation methods of various intelligent machines, so that the machines have perception, inference, and decision-making functions.

In a recommendation model, it is critical to accurately estimate user behavior. For example, in click-through rate (CTR) estimation of advertisements, the model needs to accurately estimate a probability that a user clicks an advertisement, news, or the like, to guide a platform to perform personalized ranking based on the user's interest. In a typical online advertisement recommendation system, a score estimated by the model affects a ranking and bidding mechanism. Ideally, distribution of scores estimated by the recommendation model needs to be consistent with a probability of occurrence of actual feedbacks. For example, if an average click-through rate estimated by the model is 5%, it is expected that 5% of advertisement impressions are clicked. However, in an actual case, the score estimated by the model is different from an actual observation value of online data. This may be caused by an intrinsic bias of the model or a change of data distribution. Overestimation or underestimation of a model score may cause a waste of advertisement impression opportunities and a problem of cost overruns for advertisers, and even lead to an online operation accident. Therefore, a model calibration method is usually used to perform post-processing on the score estimated by the model, so that the distribution of scores estimated by the recommendation model fits the probability of occurrence of the actual feedbacks.

In an existing technology, post-processing correction is performed on a prediction result of the recommendation model based on recent logs collected online, so that distribution of probabilities estimated by the model fits actual user feedbacks. However, in an existing method, a global output result of the model is calibrated by using a calibration coefficient, resulting in poor calibration effect.

According to a first aspect, this disclosure provides a data processing method. The method includes: obtaining first attribute information of a first user and a first item and at least one calibration feature, where the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider; obtaining a calibration coefficient corresponding to each calibration feature; obtaining, based on the first attribute information by using a recommendation model, a first recommendation score of recommending the first item to the first user; and adjusting the first recommendation score based on the calibration coefficient.

A calibration feature is a feature that affects a recommendation score. For example, the calibration feature may be an identifier (ID) of an item, a recommended layout, an ID of an item provider (for example, an advertiser), a recommendation platform, a recommendation scenario, or the like. The recommendation scenario may be related to a context (for example, information such as time and a region). Different calibration features cause different data distribution, thereby affecting the recommendation score and a recommendation result.

In embodiments of this disclosure, corresponding calibration coefficients are set for different calibration dimensions, and output of a model is adjusted by using a calibration coefficient of a calibration dimension related to currently to-be-recommended data, so that recommendation effect and precision of the model can be improved.

obtaining a second recommendation score of recommending the second item to the second user and an actual interaction score of the second user with the second item, where the second recommendation score is obtained by using the recommendation model, the second attribute information corresponds to a target calibration feature, and the target calibration feature is one of the at least one calibration feature; and calculating a first deviation degree between the actual interaction score and the second recommendation score by using a calculation method of a confidence interval for binomial distribution, where a calibration coefficient corresponding to the target calibration feature is generated based on the first deviation degree. In a possible embodiment, the method further includes:

A confidence of a positive sample proportion (namely, a calibration coefficient) is calculated by using the confidence interval for binomial distribution, and the model is calibrated with different strength based on the confidence. Even if a confidence of accumulated data in a short time window is used, good calibration effect can be obtained.

In a possible embodiment, the method further includes: mapping the first deviation degree by using a target mapping method, to obtain a second deviation degree, where the target mapping method is a monotonically increasing function; and calculating, by using the calculation method of the confidence interval for binomial distribution, a third recommendation score obtained after the actual interaction score is deviated by the second deviation degree; and

obtaining, based on a difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature.

In a possible embodiment, obtaining, based on the difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature includes: using a ratio of the third recommendation score to the second recommendation score as the calibration coefficient corresponding to the target calibration feature.

In a possible embodiment, the confidence interval is a Wilson interval.

In a possible embodiment, the first attribute information corresponds to a plurality of calibration features, and adjusting the first recommendation score based on the calibration coefficient includes: fusing a plurality of calibration coefficients corresponding to the plurality of calibration features, to obtain a fused calibration coefficient; and adjusting the first recommendation score based on the fused calibration coefficient.

an obtaining module, configured to: obtain first attribute information of a first user and a first item and at least one calibration feature, where the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider; and obtain a calibration coefficient corresponding to each calibration feature; and a processing module, configured to: obtain, based on the first attribute information by using a recommendation model, a first recommendation score of recommending the first item to the first user; and adjust the first recommendation score based on the calibration coefficient. According to a second aspect, this disclosure provides a data processing apparatus. The apparatus includes:

obtain a second recommendation score of recommending the second item to the second user and an actual interaction score of the second user with the second item, where the second recommendation score is obtained by using the recommendation model, the second attribute information corresponds to a target calibration feature, and the target calibration feature is one of the at least one calibration feature; and the processing module is further configured to: calculate a first deviation degree between the actual interaction score and the second recommendation score by using a calculation method of a confidence interval for binomial distribution, where a calibration coefficient corresponding to the target calibration feature is generated based on the first deviation degree. In a possible embodiment, the obtaining module is further configured to:

map the first deviation degree by using a target mapping apparatus, to obtain a second deviation degree, where the target mapping apparatus is a monotonically increasing function; calculate, by using the calculation apparatus of the confidence interval for binomial distribution, a third recommendation score obtained after the actual interaction score is deviated by the second deviation degree; and obtain, based on a difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature. In a possible embodiment, the processing module is further configured to:

use a ratio of the third recommendation score to the second recommendation score as the calibration coefficient corresponding to the target calibration feature. In a possible embodiment, the processing module is configured to:

In a possible embodiment, the confidence interval is a Wilson interval.

fuse a plurality of calibration coefficients corresponding to the plurality of calibration features, to obtain a fused calibration coefficient; and adjust the first recommendation score based on the fused calibration coefficient. In a possible embodiment, the processing module is configured to:

According to a third aspect, an embodiment of this disclosure provides a data processing apparatus. The apparatus may include a memory, a processor, and a bus system. The memory is configured to store a program, and the processor is configured to execute the program in the memory, to perform the method according to any optional method of the first aspect.

According to a fourth aspect, an embodiment of this disclosure provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run on a computer, the computer is enabled to perform the method according to any optional method of the first aspect.

According to a fifth aspect, an embodiment of this disclosure provides a computer program product, including code. When the code is executed, any optional method of the first aspect is implemented.

According to a sixth aspect, this disclosure provides a chip system. The chip system includes a processor, configured to support a data processing apparatus in implementing functions in the foregoing aspects, for example, sending or processing data or information in the foregoing method. In a possible design, the chip system further includes a memory. The memory is configured to store program instructions and data that are necessary for an execution device or a training device. The chip system may include a chip, or may include a chip and another discrete component.

The following describes embodiments of the present invention with reference to the accompanying drawings in embodiments of the present invention. Terms used in embodiments of the present invention are merely intended to explain specific embodiments of the present invention, and are not intended to limit the present invention.

The following describes embodiments of this disclosure with reference to the accompanying drawings. A person of ordinary skill in the art may learn that, with development of technologies and emergence of a new scenario, the technical solutions provided in embodiments of this disclosure are also applicable to a similar technical problem.

In the specification, claims, and accompanying drawings of this disclosure, the terms “first”, “second”, and the like are intended to distinguish between similar objects but do not necessarily indicate a specific order or sequence. It should be understood that the terms used in such a way are interchangeable in appropriate circumstances, which is merely a discrimination manner that is used when objects having a same attribute are described in embodiments of this disclosure. In addition, the terms “include”, “contain” and any other variants mean to cover the non-exclusive inclusion, so that a process, method, system, product, or device that includes a series of units is not necessarily limited to those units, but may include other units not expressly listed or inherent to such a process, method, system, product, or device.

1 FIG. An overall working procedure of an artificial intelligence system is first described.is a diagram of a structure of an artificial intelligence main framework. The following describes the artificial intelligence main framework from two dimensions: an “intelligent information chain” (a horizontal axis) and an “IT value chain” (a vertical axis). The “intelligent information chain” reflects a series of processes from obtaining data to processing the data. For example, the process may be a general process of intelligent information perception, intelligent information representation and formation, intelligent inference, intelligent decision-making, and intelligent execution and output. In this process, the data undergoes a refinement process of “data-information-knowledge-intelligence”. The “IT value chain” reflects a value brought by artificial intelligence to the information technology industry from an underlying infrastructure and information (technology providing and processing embodiment) of artificial intelligence to an industrial ecological process of a system.

The infrastructure provides computing capability support for the artificial intelligence system, implements communication with the external world, and implements support by using a basic platform. A sensor is used to communicate with the outside. A computing capability is provided by an intelligent chip (a hardware acceleration chip like a central processing unit (CPU), an neural processing unit (NPU), a graphics processing unit (GPU), an application-specific integrated circuit (ASIC), or an field-programmable gate array (FPGA)). The basic platform includes related platforms such as a distributed computing framework and a network for assurance and support, and may include cloud storage and computing, an interconnection network, and the like. For example, the sensor communicates with the outside to obtain data, and the data is provided for an intelligent chip in a distributed computing system provided by the basic platform for computing.

Data at an upper layer of the infrastructure indicates a data source in the artificial intelligence field. The data relates to a graph, an image, a speech, and a text, further relates to Internet of Things data of a conventional device, and includes service data of an existing system and perception data such as force, displacement, a liquid level, a temperature, and humidity.

Data processing usually includes data training, machine learning, deep learning, searching, inference, decision-making, and the like.

Machine learning and deep learning may mean performing symbolic and formal intelligent information modeling, extraction, preprocessing, training, and the like on data.

Inference is a process in which human intelligent inference is simulated in a computer or an intelligent system, and machine thinking and problem resolving are performed by using formal information according to an inference control policy. A typical function is searching and matching.

Decision-making is a process of making a decision after intelligent information is inferred, and usually provides functions such as classification, ranking, and prediction.

After the foregoing data processing is performed on data, some general capabilities may be further formed based on a data processing result. For example, the general capability may be an algorithm or a general system, for example, translation, text analysis, computer vision processing, speech recognition, and image recognition.

The intelligent product and industry disclosure are products and disclosures of the artificial intelligence system in various fields. The intelligent product and industry disclosure involve packaging overall artificial intelligence solutions, to productize and apply intelligent information decision-making. Disclosure fields of the intelligent product and industry disclosure mainly include intelligent terminals, intelligent transportation, intelligent health care, autonomous driving, smart cities, and the like.

Embodiments of this disclosure may be applied to the information recommendation field. The scenario includes but is not limited to scenarios related to e-commerce product recommendation, search engine result recommendation, disclosure market recommendation, music recommendation, and video recommendation. A recommended item in different disclosure scenarios may also be referred to as an “object” for ease of subsequent description. To be specific, in different recommendation scenarios, the recommended object may be an app, a video, music, or a commodity (for example, a presentation interface of an online shopping platform displays different commodities based on different users, which may also be presented based on a recommendation result of a recommendation model in essence). These recommendation scenarios usually collect a user behavior log, perform log data preprocessing (for example, quantization and sampling), train a sample set to obtain a recommendation model, and analyze and process, based on the recommendation model, an object (for example, an app or music) in a scenario corresponding to sample training. For example, if a sample selected in a training phase of the recommendation model is from operation behavior performed by a user on a recommended app in a disclosure market on a mobile phone, the recommendation model obtained through training is applicable to the app disclosure market on the mobile phone, or may be used in an app disclosure market on another type of terminal to recommend an app on the terminal. The recommendation model finally calculates a recommendation probability or a score of each to-be-recommended object. The recommendation system selects a recommendation result according to a specific selection rule, for example, performs ranking based on the recommendation probability or the score, and presents the recommendation result to the user by using a corresponding disclosure or terminal device, and the user performs an operation on an object in the recommendation result to generate a user behavior log and the like.

4 FIG. Refer to. In a recommendation process, when a user interacts with a recommendation system, a recommendation request is triggered. The recommendation system inputs the request and related feature information into a deployed recommendation model, and then predicts click-through rates of the user for all candidate objects. Then, the candidate objects are ranked in descending order of the predicted click-through rates, and the candidate objects are sequentially displayed at different locations as recommendation results for the user. The user browses displayed items and performs user behavior, such as browsing, clicking, and downloading. The user behavior is stored in a log as training data. An offline training module irregularly updates a parameter of the recommendation model to improve recommendation effect of the model.

For example, when the user starts a disclosure market on a mobile phone, a recommendation module of the disclosure market may be triggered. The recommendation module of the disclosure market predicts probabilities that the user downloads given candidate disclosures, based on a historical download record of the user, a clicking record of the user, features of the disclosures, and environment feature information such as time and a location. The disclosure market displays the disclosures in descending order of the probabilities based on a prediction result, to increase download probabilities of the disclosures. In an embodiment, a disclosure that is more likely to be downloaded is arranged in the front rank, and a disclosure that is less likely to be downloaded is arranged in the rear rank. The user behavior is also stored in a log, and an offline training module trains and updates a parameter of a prediction model.

For another example, in a disclosure related to a life-long companion, a cognitive brain may be constructed by simulating a mechanism of a human brain, based on historical data of the user in domains such as video, music, and news, and by using various models and algorithms, thereby establishing a life-long learning system framework for the user. The life-long companion may record a past event of the user based on system data, disclosure data, and the like, understand a current intent of the user, predict a future action or future behavior of the user, and finally implement an intelligent service. At a current first stage, user behavior data (including information such as a device-side short message service (SMS) message, a photo, and an email event) is obtained from a music app, a video app, a browser app, and the like to construct a user profile system, and to construct an individual knowledge graph of the user based on a learning and memory module for user information filtering, association analysis, cross-domain recommendation, causal inference, and the like.

The following describes a disclosure architecture in embodiments of this disclosure.

2 FIG. 200 260 230 230 240 220 230 201 220 201 201 211 201 212 Refer to. An embodiment of the present invention provides a recommendation system architecture. A data collection deviceis configured to collect a sample. One training sample may include a plurality of pieces of feature information (or described as attribute information, for example, a user attribute and an item attribute). There may be a plurality of types of feature information. The feature information may include user feature information, object feature information, and a label feature. The user feature information represents a feature of a user, for example, a gender, an age, an occupation, or a hobby. The object feature information represents a feature of an object pushed to the user. Different recommendation systems correspond to different objects, and types of features that need to be extracted for different objects are also different. For example, an object feature extracted from a training sample of an app market may be a name (e.g., an identifier), a type, a size, or the like of an app. An object feature extracted from a training sample of an e-commerce app may be a name, a category, a price range, or the like of a commodity. The label feature indicates whether the sample is a positive sample or a negative sample. Generally, a label feature of a sample may be obtained based on operation information of the user for a recommended object. A sample in which the user performs an operation on the recommended object is a positive sample, and a sample in which the user does not perform an operation on the recommended object is a negative sample. For example, when the user clicks, downloads, or purchases the recommended object, the label feature is 1, indicating that the sample is a positive sample, and if the user does not perform any operation on the recommended object, the label feature is 0, indicating that the sample is a negative sample. The sample may be stored in a databaseafter being collected. A part or all of feature information, for example, user feature information, information (used to determine a type identifier) about an operation performed by the user on an object, and object feature information (for example, an object identifier), in the sample in the databasemay be directly obtained from a client device. A training deviceobtains a model parameter matrix through sample training in the database, to generate a recommendation model(for example, the feature extraction network and the neural network in embodiments of this disclosure). The following describes in more detail how the training deviceperforms training to obtain the model parameter matrix used to generate the recommendation model. The recommendation modelcan be used to evaluate a large quantity of objects to obtain a score of each to-be-recommended object. Further, a specified quantity of objects or a preset quantity of objects may be recommended from evaluation results of the large quantity of objects. A computing moduleobtains a recommendation result based on the evaluation result of the recommendation model, and recommends the recommendation result to the client device through an input/output (I/O) interface.

220 230 211 5 FIG. In this embodiment of this disclosure, the training devicemay select positive and negative samples from a sample set in the database, add the positive and negative samples to a training set, and then perform training based on the samples in the training set by using a recommendation model, to obtain a trained recommendation model. For embodiments of implementation details of the computing module, refer to detailed descriptions of a method embodiment shown in.

201 220 201 210 210 210 After obtaining the model parameter matrix through sample training to construct the recommendation model, the training devicesends the recommendation modelto an execution device, or directly sends the model parameter matrix to the execution device. The recommendation model is constructed in the execution device, for recommending a corresponding system. For example, a recommendation model obtained through training based on a video-related sample may be used to recommend a video to a user on a video website or an app, and a recommendation model obtained through training based on an app-related sample may be used to recommend an app to the user in a disclosure market.

210 212 210 240 212 201 210 The execution deviceis provided with the I/O interface, to exchange data with an external device. The execution devicemay obtain user feature information such as a user identifier, a user identity, a gender, an occupation, and a hobby from the client devicethrough the I/O interface. The information may alternatively be obtained from a system database. The recommendation modelrecommends a target recommended object to the user based on feature information of a to-be-recommended object and the user feature information. The execution devicemay be disposed in a cloud server, or may be disposed in a user client.

210 250 250 250 210 250 The execution devicemay invoke data, code, and the like in a data storage system, and may store output data in the data storage system. The data storage systemmay be disposed in the execution device, or may be independently disposed, or may be disposed in another network entity. There may be one or more data storage systems.

211 201 211 201 240 The computing moduleprocesses the user feature information and the feature information of the to-be-recommended object by using the recommendation model. For example, the computing moduleanalyzes and processes the user feature information and the feature information of the to-be-recommended object by using the recommendation model, to obtain a score of the to-be-recommended object. The to-be-recommended object is ranked based on the score. An object in the front rank is used as an object recommended to the client device.

212 240 Finally, the I/O interfacereturns the recommendation result to the client device, and presents the recommendation result to the user.

220 201 Furthermore, the training devicemay generate corresponding recommendation modelsfor different targets based on different sample feature information, to provide a better result for the user.

2 FIG. 2 FIG. 250 210 250 210 It should be noted thatis merely a diagram of a system architecture according to an embodiment of the present invention. A position relationship between devices, components, modules, and the like in the figure does not constitute any limitation. For example, in, the data storage systemis an external memory relative to the execution device, and in another case, the data storage systemmay alternatively be disposed in the execution device.

220 210 240 220 210 210 240 In this embodiment of this disclosure, the training device, the execution device, and the client devicemay be three different physical devices, or the training deviceand the execution devicemay be on a same physical device or one cluster, or the execution deviceand the client devicemay be on a same physical device or one cluster.

3 FIG. 300 210 210 210 210 250 250 shows a system architectureaccording to an embodiment of the present invention. In this architecture, the execution deviceis implemented by one or more servers. Optionally, the execution devicecooperates with another compute device, for example, a device such as a data storage device, a router, or a load balancer. The execution devicemay be disposed on one physical site, or distributed on a plurality of physical sites. The execution devicemay use data in a data storage systemor invoke program code in a data storage systemto implement an object recommendation function. In an embodiment, information about to-be-recommended objects is input into a recommendation model, and the recommendation model generates an estimated score for each to-be-recommended object, then ranks the to-be-recommended objects in descending order of the estimated scores, and recommends a to-be-recommended object to a user based on a ranking result. For example, top 10 objects in the ranking result are recommended to the user.

250 250 250 210 210 210 250 250 210 210 250 210 250 210 The data storage systemis configured to receive and store a parameter that is of the recommendation model and that is sent by a training device, is configured to store data of a recommendation result obtained by using the recommendation model, and certainly may further include program code (or an instruction) required for normal running of the data storage system. The data storage systemmay be one device deployed outside the execution deviceor a distributed storage cluster including a plurality of devices deployed outside the execution device. In this case, when the execution deviceneeds to use the data in the storage system, the storage systemmay send the data required by the execution device to the execution device. Correspondingly, the execution devicereceives and stores (or buffers) the data. Certainly, the data storage systemmay be alternatively deployed in the execution device. When the data storage systemis deployed in the execution device, the distributed storage system may include one or more memories. Optionally, when there are a plurality of memories, different memories are configured to store different types of data. For example, the model parameter of the recommendation model generated by the training device and the data of the recommendation result obtained by using the recommendation model may be respectively stored in two different memories.

301 302 210 Users may operate their user devices (for example, a local deviceand a local device) to interact with the execution device. Each local device may represent any compute device, for example, a personal computer, a computer workstation, a smartphone, a tablet computer, a smart camera, a smart automobile, another type of cellular phone, a media consumption device, a wearable device, a set-top box, or a game console.

210 A local device of each user may interact with the execution devicethrough a communication network compliant with any communication mechanism/communication standard. The communication network may be a wide area network, a local area network, a point-to-point connection, or any combination thereof.

210 301 210 302 In another embodiment, the execution devicemay be implemented by the local device. For example, the local devicemay implement a recommendation function of the execution devicebased on a recommendation model by obtaining user feature information and feeding back a recommendation result to the user, or provide a service for the user of the local device.

Embodiments of this disclosure relate to massive disclosure of a neural network. For ease of understanding, the following first describes terms and concepts related to the neural network in embodiments of this disclosure.

The click-through rate may also be referred to as a click rate, and is a ratio of a quantity of times that recommendation information (for example, a recommended item) on a website or a disclosure is clicked to a quantity of times of exposure of the recommendation information. The click-through rate is usually an important indicator for measuring a recommendation system in recommendation systems.

The personalized recommendation system is a system that performs analysis by using a machine learning algorithm based on historical data of a user (for example, operation information in embodiments of this disclosure), predicts a new request based on the analysis, and provides a personalized recommendation result.

The offline training is a module, in a personalized recommendation system, that iteratively updates parameters of a recommendation model by using a machine learning algorithm based on historical data of a user (for example, operation information in embodiments of this disclosure) until a specified requirement is met.

The online inference is to predict, based on a model obtained through offline training, preference of a user for a recommended item in a current context environment based on features of the user, the item, and context, and predict probability that the user selects the recommended item.

4 FIG. 4 FIG. For example,is a diagram of a recommendation system according to an embodiment of this disclosure. As shown in, when a user enters a system, a recommendation request is triggered. The recommendation system inputs the request and related information (for example, operation information in embodiments of this disclosure) of the request into the recommendation model, and then predicts a selection rate of the user for an item in the system. Further, items are ranked in descending order based on predicted selection rates or based on a function of the selection rates. That is, the recommendation system may sequentially display the items at different locations as a recommendation result for the user. The user browses the items at different locations, and performs user behavior such as browsing, selecting, and downloading. In addition, actual behavior of the user is stored in a log as training data. An offline training module continuously updates a parameter of the recommendation model to improve prediction effect of the model.

For example, when the user starts a disclosure market on a smart terminal (for example, a mobile phone), a recommendation system in the disclosure market may be triggered. The recommendation system in the disclosure market predicts probabilities that the user downloads candidate recommended apps, based on a historical behavior log of the user, for example, a historical download record of the user, a user selection record, and a feature of the disclosure market, for example, environment feature information such as time and a location. Based on a calculated result, the recommendation system of the disclosure market may present the candidate apps in descending order of values of the predicted probabilities, to improve a download probability of the candidate app.

For example, an app with a high predicted user selection rate may be presented at a front recommendation location, and an app with a low predicted user selection rate may be presented in a back recommendation location.

The recommendation model may be a neural network model. The following describes related terms and concepts of a neural network that may be used in embodiments of this disclosure.

The neural network may include a neuron. The neuron may be an operation unit that uses xs (namely, input data) and an intercept of 1 as input. Output of the operation unit may be as follows:

Herein, s=1, 2, . . . , and n, n is a natural number greater than 1, Ws is a weight of xs, b is a bias of the neuron, and f is an activation function of the neuron, and is used to introduce a non-linear characteristic into the neural network, to convert an input signal in the neuron into an output signal. The output signal of the activation function may be used as input of a next convolutional layer, and the activation function may be a sigmoid function. The neural network is a network formed by joining a plurality of single neurons together. To be specific, output of a neuron may be input of another neuron. Input of each neuron may be connected to a local receptive field of a previous layer to extract a feature of the local receptive field. The local receptive field may be a region including several neurons.

th th The deep neural network (DNN), also referred to as a multi-layer neural network, may be understood as a neural network having many hidden layers. The “many” herein does not have a special measurement standard. The DNN is divided based on locations of different layers, and a neural network in the DNN may be divided into three types: an input layer, a hidden layer, and an output layer. Generally, the first layer is the input layer, the last layer is the output layer, and the middle layer is the hidden layer. Layers are fully connected. To be specific, any neuron at an ilayer is necessarily connected to any neuron at an (i+1)layer. Although the DNN seems to be complex, the DNN is actually not complex in terms of work at each layer, and is simply expressed as the following linear relationship expression: {right arrow over (y)}=α(W{right arrow over (x)}+{right arrow over (b)}), where {right arrow over (x)} is an input vector, {right arrow over (y)} is an output vector, {right arrow over (b)} is a bias vector, W is a weight matrix (also referred to as a coefficient), and α( ) is an activation function. At each layer, the output vector {right arrow over (y)} is obtained by performing such a simple operation on the input vector {right arrow over (x)}. Because the DNN includes a large quantity of layers, there are a large quantity of coefficients W and a large quantity of bias vectors {right arrow over (b)}. These parameters are defined in the DNN as follows: The coefficient W is used as an example. It is assumed that in a three-layer DNN, a linear coefficient from a fourth neuron at a second layer to a second neuron at a third layer is defined as

th th th th The superscript 3 represents a layer at which the coefficient W is located, and the subscript corresponds to an output third-layer index 2 and an input second-layer index 4. In conclusion, a coefficient from a kneuron at an (L−1)layer to a jneuron at an Llayer is defined as

It should be noted that the input layer has no parameter W. In the deep neural network, more hidden layers make the network more capable of describing a complex case in the real world. Theoretically, a model with more parameters has higher complexity and a larger capacity. It indicates that the model can complete a more complex learning task. Training the deep neural network is a process of learning a weight matrix, and a final objective of the training is to obtain a weight matrix of all layers of the trained deep neural network (a weight matrix formed by vectors W at many layers).

In a process of training a deep neural network, because it is expected that output of the deep neural network is as much as possible close to a predicted value that is actually expected, a predicted value of a current network and a target value that is actually expected may be compared, and then a weight vector of each layer of the neural network is updated based on a difference between the predicted value and the target value (certainly, there is usually an initialization process before the first update, to be specific, parameters are preconfigured for all layers of the deep neural network). For example, if the predicted value of the network is large, the weight vector is adjusted to decrease the predicted value, and adjustment is continuously performed, until the deep neural network can predict the target value that is actually expected or a value that is very close to the target value that is actually expected. Therefore, “how to obtain, through comparison, a difference between the predicted value and the target value” needs to be predefined. This is a loss function or an objective function. The loss function and the objective function are important equations that measure the difference between the predicted value and the target value. The loss function is used as an example. A higher output value (loss) of the loss function indicates a larger difference. Therefore, training of the deep neural network is a process of minimizing the loss as much as possible.

An error back propagation (BP) algorithm may be used to correct a value of a parameter in an initial model in a training process, so that an error loss of the model becomes smaller. In an embodiment, an input signal is transferred forward until an error loss occurs at output, and the parameter in the initial model is updated based on back propagation error loss information, to make the error loss converge. The back propagation algorithm is an error-loss-centered back propagation motion intended to obtain a parameter, such as a weight matrix, of an optimal model.

Parameters of a machine learning model are trained based on input data and labels and by using an optimization method such as gradient descent, and a model obtained through training is used to predict unknown data.

The personalized recommendation system is a system that performs analysis and modeling based on historical data of a user and by using a machine learning algorithm, predicts a new user request based on the analysis, and provides a personalized recommendation result.

In a recommendation model, it is critical to accurately estimate user behavior. For example, in click-through rate (CTR) estimation of advertisements, the model needs to accurately estimate a probability that a user clicks an advertisement, news, or the like, to guide a platform to perform personalized ranking based on the user's interest. In a typical online advertisement recommendation system, a score estimated by the model affects a ranking and bidding mechanism. Ideally, distribution of scores estimated by the recommendation model needs to be consistent with a probability of occurrence of actual feedbacks. For example, if an average click-through rate estimated by the model is 5%, it is expected that 5% of advertisement impressions are clicked. However, in an actual case, the score estimated by the model is different from an actual observation value of online data. This may be caused by an intrinsic bias of the model or a change of data distribution. Overestimation or underestimation of a model score may cause a waste of advertisement impression opportunities and a problem of cost overruns for advertisers, and even lead to an online operation accident. Therefore, a model calibration method is usually used to perform post-processing on the score estimated by the model, so that the distribution of scores estimated by the recommendation model fits the probability of occurrence of the actual feedbacks.

In an existing technology, post-processing correction is performed on a prediction result of the recommendation model based on recent logs collected online, so that distribution of probabilities estimated by the model fits actual user feedbacks. However, in an existing method, a global output result of the model is calibrated by using a calibration coefficient, resulting in poor calibration effect.

To resolve the foregoing problems, this disclosure provides a data processing method.

5 FIG. 5 FIG. is a diagram of an embodiment of a data processing method according to an embodiment of this disclosure. As shown in, the data processing method provided in this embodiment of this disclosure includes the following operations.

501 : Obtain first attribute information of a first user and a first item and at least one calibration feature, where the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider.

501 In this embodiment of this disclosure, an entity for performing operationmay be a terminal device, and the terminal device may be a portable mobile device, for example, but not limited to a mobile or portable compute device (for example, a smartphone), a personal computer, a server computer, a handheld device (for example, a tablet computer) or a laptop device, a multiprocessor system, a game console or controller, a microprocessor-based system, a set-top box, a programmable consumer electronic product, a mobile phone, a mobile compute and/or communication device having a wearable or accessory form factor (for example, a watch, glasses, a headset, or an earbud), a network PC, a minicomputer, a mainframe computer, or a distributed computing environment including any of the foregoing systems or devices.

501 In this embodiment of this disclosure, operationmay be performed by a server on a cloud side. The server may receive operation data of a user sent by a terminal device, and then the server may obtain the operation data of the user.

In a possible embodiment, when an item is recommended to the user, a recommendation score of recommending each item to the user needs to be calculated. In this embodiment of this disclosure, an example in which a recommendation score of recommending the first item to the first user is calculated is used for description.

In a possible embodiment, attribute information of the first user and the first item may be obtained.

0 100 Attribute information of the user may be an attribute related to a preference feature of the user, and is at least one of gender, age, occupation, income, hobby, and education level. The gender may be male or female, the age may be a number ranging fromto, the occupation may be teacher, programmer, chef, or the like, the hobby may be basketball, tennis, running, or the like, and the education level may be primary school, middle school, high school, university, or the like. A specific type of the attribute information of the user is not limited in this disclosure.

The item may be a physical item or a virtual item, for example, may be an item like a disclosure, audio/video, a web page, an advertisement, and news. Attribute information of the item may be at least one of an item name, a developer, an installation package size, a category, and a positive rating. For example, the item is a disclosure, the category of the item may be a chat category, a running game, an office category, or the like, and the positive rating may be a score and a comment made on the item, or the like. A specific type of the attribute information of the item is not limited in this disclosure.

In a possible embodiment, at least one calibration feature may be further obtained, where the calibration feature is a feature that affects a recommendation score. For example, the calibration feature may be an ID of an item, a recommended layout, an ID of an item provider (for example, an advertiser), a recommendation platform, a recommendation scenario, or the like. The recommendation scenario may be related to a context (for example, information such as time and a region). Different calibration features cause different data distribution, thereby affecting the recommendation score and a recommendation result.

A task implemented by a recommendation model in embodiments of this disclosure may be, but is not limited to, a plurality of the following tasks: purchase behavior prediction, add-to-cart behavior prediction, sharing behavior prediction, browsing behavior prediction, completion rate prediction, like prediction, favorites prediction, click-through rate prediction, and click conversion prediction.

502 : Obtain a calibration coefficient corresponding to each calibration feature.

In a possible embodiment, a corresponding calibration coefficient may be preset for each of a plurality of calibration features. When a recommendation score is calculated (for example, the recommendation score of recommending the first item to the first user is calculated), a calibration feature related to the calculation may be obtained. For example, an ID of the first item, an ID of a provider of the first item, a current recommendation layout, and a current recommendation platform may be selected as the calibration feature. The calibration coefficient corresponding to each calibration feature may be obtained. The calibration coefficient may indicate a recommendation score and an actual score (for example, an actual interaction score like an actual click-through rate of the user with the item) that are obtained by the recommendation model by processing recommendation data (for example, including the attribute information of the user and the item and context information) related to the calibration feature. In this way, the calibration coefficient may be used to adjust a recommendation score output by the recommendation model subsequently, to obtain accurate recommendation scores that adapt to different calibration features.

The following describes how to configure a value of the calibration coefficient corresponding to each calibration feature.

In a possible embodiment, when a calibration coefficient corresponding to a calibration feature is calculated, a recommendation sample related to the calibration feature may be obtained. The recommendation sample may include a recommendation score that is of recommending an item to the user and that is obtained by the recommendation model when the recommendation model processes recommendation data that meets the calibration feature, and an actual interaction score of the user with the item.

For example, a target calibration feature is used as an example. A second recommendation score of recommending the second item to the second user and an actual interaction score of the second user with the second item may be obtained. The second recommendation score is obtained by using the recommendation model, the second attribute information corresponds to the target calibration feature, and the target calibration feature is one of the at least one calibration feature.

The calibration coefficient may represent a deviation between model output and the actual interaction score. Therefore, in embodiments of this disclosure, a first deviation degree between the actual interaction score and the second recommendation score may be calculated by using a calculation method of a confidence interval for binomial distribution, where a calibration coefficient corresponding to the target calibration feature is generated based on the first deviation degree.

The confidence interval may be, but is not limited to, a Wilson interval.

Click-through rate prediction is used as an example. The actual interaction score may be an average click-through rate. For each calibration feature dimension (or may be referred to as a feature dimension), a confidence is calculated by using a Wilson interval formula. According to a quantity n of samples, an average score {circumflex over (p)} of the recommendation model corresponding to the calibration feature is calculated, and an observed actual average click-through rate p can be substituted into the following formula to calculate a deviation degree z (namely, the first deviation degree in embodiments of this disclosure) between a model estimation result and an actual observation result:

A value of z may be solved by using a method like a dichotomy method or a Newton iteration method.

In a possible embodiment, the first deviation degree may be mapped by using a target mapping method, to obtain a second deviation degree, where the target mapping method is a monotonically increasing function; a third recommendation score obtained after the actual interaction score is deviated by the second deviation degree is calculated by using the calculation method of the confidence interval for binomial distribution; and the calibration coefficient corresponding to the target calibration feature is obtained based on a difference between the third recommendation score and the second recommendation score. The target mapping method may be further used to reduce a value of the input data, to be specific, the second deviation degree is less than the first deviation degree.

For example, the calculated z may be transformed by using the following monotonic transformation function:

i th A new deviation degree z′ (namely, the second deviation degree in embodiments of this disclosure) obtained through transformation is further substituted into the first formula, and a calibrated average model score {circumflex over (p)}(i indicates an icalibration feature) can be obtained based on the quantity n of samples and the observed actual average click-through rate p. If {circumflex over (p)}>p, the positive or negative sign in the formula is a positive value. Otherwise, the positive or negative sign is a negative value.

i i i In a possible embodiment, a ratio of the third recommendation score to the second recommendation score may be used as the calibration coefficient corresponding to the target calibration feature. That is, the calibration coefficient kcorresponding to the calibration feature is calculated. A corresponding calibration coefficient is a ratio of average model scores before and after calibration, that is, k={circumflex over (p)}/{circumflex over (p)}.

It should be understood that, in addition to the Wilson interval, the calculation method of the confidence interval for binomial distribution in embodiments of this disclosure may be extended to use another calculation method. For a transformation function of a deviation degree, another monotonically increasing bounded function may also be used.

In embodiments of this disclosure, a confidence of a positive sample proportion (namely, a calibration coefficient) is calculated by using the confidence interval for binomial distribution, and the model is calibrated with different strength based on the confidence. Even if a confidence of accumulated data in a short time window is used, good calibration effect can be achieved.

503 : Obtain, based on the first attribute information by using the recommendation model, a first recommendation score of recommending the first item to the first user.

In a possible embodiment, the first attribute information may be processed by using the recommendation model, to obtain the first recommendation score of recommending the first item to the first user.

504 : Adjust the first recommendation score based on the calibration coefficient.

In a possible embodiment, after the calibration coefficient is obtained, the first recommendation score may be adjusted based on the calibration coefficient.

In a possible embodiment, after a plurality of calibration coefficients are obtained, the plurality of calibration coefficients corresponding to the plurality of calibration features may be fused to obtain a fused calibration coefficient; and the first recommendation score is adjusted based on the fused calibration coefficient.

It should be understood that a fusion method in embodiments of this disclosure may be performed based on a geometric average value, or another average value calculation manner may be used. This is not limited in this disclosure.

For example, calibration coefficients corresponding to different calibration features are aggregated according to the following formula:

i Herein, wrepresents a geometric average value weight (which is 1 by default, or may be manually set or determined in a parameter search manner) of each calibration feature. For a specific sample, it is assumed that a score of the sample by the model is y, and a calibrated score of the sample is y′=y{circumflex over (k)}.

In embodiments of this disclosure, corresponding calibration coefficients are set for different calibration dimensions, and output of a model is adjusted by using a calibration coefficient of a calibration dimension related to currently to-be-recommended data, so that recommendation effect and precision of the model can be improved.

In addition, a confidence of a positive sample proportion (namely, a calibration coefficient) is calculated by using the confidence interval for binomial distribution, and the model is calibrated with different strength based on the confidence. Even if a confidence of accumulated data in a short time window is used, good calibration effect can be achieved.

6 FIG. The following describes a diagram of a disclosure framework according to an embodiment of this disclosure with reference to. The disclosure framework includes:

101 102 a confidence-based model calibration moduleand a multi-dimensional calibration fusion module.

6 FIG. 101 In the framework shown in, the confidence-based model calibration moduleconsiders sample collection and calculates a confidence of a positive sample proportion by using a Wilson confidence interval for binomial distribution, and maps a deviation degree between an actual observation value and model-estimated distribution based on a mapping function, to calibrate the model with different strength.

102 102 The multi-dimensional calibration fusion moduleindependently calculates multi-dimensional calibration scores for a sample, and fuses the calibrated scores in a weighted geometric average manner. The multi-dimensional calibration fusion moduleis a configurable module.

The following describes beneficial effect of this embodiment of this disclosure based on experiments.

Experimental evaluation indicators are overall deviation between an estimated score and an actual statistical value and deviation in each feature dimension. Experiment is performed on a dataset, and results are shown in Table 1.

TABLE 1 Experiment result statistics Method/Calibration dimension Overall Publisher id Slot id Industrial id Base 20.23% 20.38% 50.89% 68.02% Rescale  8.89%  7.93% 50.14% 50.65% HistBin  9.42%  8.86% 51.65% 54.33% IsoReg  8.84%  7.99% 50.68% 52.43% SIR  9.46%  8.85% 54.39% 53.51% NeuCalib  8.52%  7.80% 48.95% 47.92% ConfCalib  8.07%  7.41% 44.05% 42.45%

It can be seen from Table 1 that, compared with the baseline, this embodiment of this disclosure can obtain a better result, and the deviation of the model score can be consistently reduced in each dimension.

7 FIG. 7 FIG. 700 The following describes, from a perspective of an apparatus, a data processing apparatus provided in an embodiment of this disclosure.is a diagram of a structure of a data processing apparatus according to an embodiment of this disclosure. As shown in, the data processing apparatusprovided in this embodiment of this disclosure includes the following modules.

701 An obtaining moduleis configured to: obtain first attribute information of a first user and a first item and at least one calibration feature, where the calibration feature indicates at least one of a recommendation scenario, an item, or an item provider; and obtain a calibration coefficient corresponding to each calibration feature.

701 501 502 For specific descriptions of the obtaining module, refer to the descriptions of operationsandin the foregoing embodiment. Details are not described herein again.

702 A processing moduleis configured to: obtain, based on the first attribute information by using a recommendation model, a first recommendation score of recommending the first item to the first user; and adjust the first recommendation score based on the calibration coefficient.

702 503 504 For specific descriptions of the processing module, refer to the descriptions of operationsandin the foregoing embodiment. Details are not described herein again.

701 obtain a second recommendation score of recommending the second item to the second user and an actual interaction score of the second user with the second item, where the second recommendation score is obtained by using the recommendation model, the second attribute information corresponds to a target calibration feature, and the target calibration feature is one of the at least one calibration feature; and 702 the processing moduleis further configured to: calculate a first deviation degree between the actual interaction score and the second recommendation score by using a calculation method of a confidence interval for binomial distribution, where a calibration coefficient corresponding to the target calibration feature is generated based on the first deviation degree. In a possible embodiment, the obtaining moduleis further configured to:

702 map the first deviation degree by using a target mapping apparatus, to obtain a second deviation degree, where the target mapping apparatus is a monotonically increasing function; calculate, by using the calculation apparatus of the confidence interval for binomial distribution, a third recommendation score obtained after the actual interaction score is deviated by the second deviation degree; and obtain, based on a difference between the third recommendation score and the second recommendation score, the calibration coefficient corresponding to the target calibration feature. In a possible embodiment, the processing moduleis further configured to:

702 use a ratio of the third recommendation score to the second recommendation score as the calibration coefficient corresponding to the target calibration feature. In a possible embodiment, the processing moduleis configured to:

In a possible embodiment, the confidence interval is a Wilson interval.

702 fuse a plurality of calibration coefficients corresponding to the plurality of calibration features, to obtain a fused calibration coefficient; and adjust the first recommendation score based on the fused calibration coefficient. In a possible embodiment, the processing moduleis configured to:

8 FIG. 5 FIG. 5 FIG. 800 800 800 801 802 803 803 800 804 803 8031 8032 801 802 803 804 The following describes a terminal device provided in an embodiment of this disclosure.is a diagram of a structure of a terminal device according to an embodiment of this disclosure. The terminal devicemay be a mobile phone, a tablet computer, a notebook computer, an intelligent wearable device, or the like. This is not limited herein. The terminal devicemay be used as a training device to implement a function of the data processing method in the embodiment corresponding to, or may be used as an execution device to execute the trained model obtained based on the data processing method in the embodiment corresponding to. In an embodiment, the terminal deviceincludes a receiver, a transmitter, a processor(there may be one or more processorsin the terminal device), and a memory. The processormay include a disclosure processorand a communication processor. In some embodiments of this disclosure, the receiver, the transmitter, the processor, and the memorymay be connected by using a bus or in another manner.

804 803 804 804 The memorymay include a read-only memory and a random access memory, and provide instructions and data to the processor. A part of the memorymay further include a non-volatile random access memory (NVRAM). The memorystores a processor and operation instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, where operation instructions may include various operation instructions used to implement various operations.

803 The processorcontrols an operation of the execution device. During specific disclosure, components of the execution device are coupled together through a bus system. In addition to a data bus, the bus system may include a power bus, a control bus, a status signal bus, and the like. However, for clear description, various types of buses in the figure are marked as the bus system.

803 803 803 803 803 803 804 803 804 501 504 The method disclosed in the foregoing embodiments of this disclosure may be applied to the processor, or implemented by the processor. The processormay be an integrated circuit chip and has a signal processing capability. In embodiments of an implementation process, the operations in the foregoing method may be implemented by using a hardware integrated logic circuit in the processor, or by using instructions in a form of software. The processormay be a general-purpose processor, a digital signal processor (DSP), a microprocessor or microcontroller, a vision processing unit (VPU), a tensor processing unit (TPU), and another processor suitable for AI computing, and may further include a disclosure-specific integrated circuit, a field-programmable gate array (FPGA) or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The processormay implement or perform methods, operations, and logical block diagrams disclosed in embodiments of this disclosure. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor or the like. The operations in the methods disclosed with reference to embodiments of this disclosure may be directly performed and completed by a hardware decoding processor, or may be performed and completed by using a combination of hardware in the decoding processor and a software module. A software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processorreads information in the memoryand completes operationstoin the foregoing embodiment in combination with hardware of the processor.

801 802 802 802 The receivermay be configured to: receive input digital or character information, and generate signal input related to a related setting and function control of the execution device. The transmittermay be configured to output the digital or character information through a first interface. The transmittermay be further configured to send instructions to a disk group through the first interface, to modify data in the disk group. The transmittermay further include a display device like a display.

9 FIG. 900 900 929 932 930 942 944 932 930 930 929 930 900 930 An embodiment of this disclosure further provides a server.is a diagram of a structure of a server according to an embodiment of this disclosure. In an embodiment, the serveris implemented by one or more servers. The servermay vary greatly due to different configurations or performance, and may include one or more central processing units (CPUs)(for example, one or more processors) and a memory, and one or more storage media(for example, one or more mass storage devices) that stores a disclosureor data. The memoryand the storage mediummay be transitory storage or persistent storage. A program stored in the storage mediummay include one or more modules (not shown in the figure), and each module may include a series of instruction operations for a training device. Further, the central processing unitmay be configured to: communicate with the storage medium, and execute, on the server, the series of instruction operations in the storage medium.

900 926 950 958 941 The servermay further include one or more power supplies, one or more wired or wireless network interfaces, one or more input/output interfaces, or one or more operating systems, for example, Windows Server™, Mac OS X™, Unix™, Linux™, and FreeBSD™.

501 504 In an embodiment, the server may be used as the training device to perform operationstoin the foregoing embodiment.

800 900 501 504 800 900 5 FIG. In a possible embodiment, the terminal deviceor the servermay be used as the training device to perform operationstoin the foregoing embodiment to obtain the trained model, and deploy the trained model on the execution device. The execution device may also be in a form of the terminal deviceor the server. When the execution device executes the trained model, refer to the model feedforward process in the embodiment corresponding to.

An embodiment of this disclosure further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to perform the operations performed by the foregoing execution device, or the computer is enabled to perform the operations performed by the foregoing training device.

An embodiment of this disclosure further provides a computer-readable storage medium. The computer-readable storage medium stores a program used to process a signal, and when the program runs on a computer, the computer is enabled to perform operations performed by the foregoing execution device; or the computer is enabled to perform operations performed by the foregoing training device.

The execution device, the training device, or the terminal device provided in embodiments of this disclosure may be a chip. The chip includes a processing unit and a communication unit. The processing unit may be, for example, a processor. The communication unit may be, for example, an input/output interface, a pin, or a circuit. The processing unit may execute computer-executable instructions stored in a storage unit, so that a chip in the execution device performs the data processing method described in embodiments, or a chip in the training device performs the data processing method described in embodiments. Optionally, the storage unit is a storage unit in the chip, for example, a register or a cache. Alternatively, the storage unit may be a storage unit in a wireless access device but outside the chip, for example, a read-only memory (ROM), another type of static storage device that can store static information and instructions, or a random access memory (RAM).

10 FIG. 1000 1000 1003 1004 1003 In an embodiment,is a diagram of a structure of a chip according to an embodiment of this disclosure. The chip may be represented as a neural network processing unit NPU. The NPUis mounted to a host CPU as a coprocessor, and the host CPU allocates a task. A core part of the NPU is an arithmetic circuit. A controllercontrols the arithmetic circuitto extract matrix data in a memory and perform a multiplication operation.

1000 5 FIG. The NPUmay implement, through cooperation between internal components, the data processing method provided in the embodiment described in.

1003 1000 1003 1003 1003 In an embodiment, in some embodiments, the arithmetic circuitin the NPUincludes a plurality of process engines (PEs) inside. In some embodiments, the arithmetic circuitis a two-dimensional systolic array. The arithmetic circuitmay alternatively be a one-dimensional systolic array or another electronic circuit capable of performing mathematical operations such as multiplication and addition. In some embodiments, the arithmetic circuitis a general-purpose matrix processor.

1002 1001 1008 For example, it is assumed that there is an input matrix A, a weight matrix B, and an output matrix C. The arithmetic circuit fetches corresponding data of the matrix B from a weight memory, and buffers the data on each PE in the arithmetic circuit. The arithmetic circuit obtains data of the matrix A from an input memoryto perform a matrix operation on the matrix B, and stores an obtained partial result or an obtained final result of the matrix into an accumulator.

1006 1002 1005 1006 A unified memoryis configured to store input data and output data. Weight data is directly transferred to the weight memoryby using a direct memory access controller (DMAC). The input data is also moved to the unified memoryby using the DMAC.

1010 1009 A BIU, Bus Interface Unit, that is, a bus interface unit, is configured for interaction between an AXI bus and the DMAC and interaction between the AXI bus and an instruction fetch buffer (IFB).

1010 1009 1005 The bus interface unit (BIU)is used by the instruction fetch bufferto obtain instructions from an external memory, and further used by the direct memory access controllerto obtain original data of the input matrix A or the weight matrix B from the external memory.

1006 1002 1001 The DMAC is mainly configured to transfer input data in the external memory DDR to the unified memory, transfer weight data to the weight memory, or transfer input data to the input memory.

1007 1003 1007 A vector calculation unitincludes a plurality of operation processing units. If needed, further processing, for example, vector multiplication, vector addition, an exponential operation, a logarithm operation, or size comparison, is performed on an output of the arithmetic circuit. The vector calculation unitis mainly used for non-convolutional/fully connected layer network calculation in a neural network, such as Batch Normalization, pixel-level summation, and upsampling of a feature map.

1007 1006 1007 1003 1007 1003 In some embodiments, the vector calculation unitcan store a processed and output vector in the unified memory. For example, the vector calculation unitmay apply a linear function or a nonlinear function to the output of the arithmetic circuit, for example, perform linear interpolation on a feature plane extracted at a convolutional layer. For another example, the linear function or the nonlinear function is applied to a vector of an accumulated value to generate an activation value. In some embodiments, the vector calculation unitgenerates a normalized value, a pixel-level summation value, or both a normalized value and a pixel-level summation value. In some embodiments, the processed and output vector can be used as activation input to the arithmetic circuit, for example, for use in subsequent layers in the neural network.

1009 1004 1004 The instruction fetch bufferconnected to the controlleris configured to store instructions used by the controller.

1006 1001 1002 1009 The unified memory, the input memory, the weight memory, and the instruction fetch bufferare all on-chip memories. The external memory is private to a hardware architecture of the NPU.

Any one of the processors mentioned above may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling program execution.

In addition, it should be noted that the described apparatus embodiments are merely examples. The units described as separate components may or may not be physically separate, and components displayed as units may or may not be physical units, in other words, may be located in one position, or may be distributed on a plurality of network units. A part or all of the modules may be selected based on actual requirements to achieve the objectives of the solutions of embodiments. In addition, in the accompanying drawings of the apparatus embodiments provided by this disclosure, connection relationships between modules indicate that the modules have communication connections with each other, which may be implemented as one or more communication buses or signal cables.

Based on the descriptions of the foregoing embodiments, a person skilled in the art may clearly understand that this disclosure may be implemented by software in addition to necessary universal hardware, or by dedicated hardware, including a dedicated integrated circuit, a dedicated CPU, a dedicated memory, a dedicated component, and the like. Generally, any functions that can be performed by a computer program can be easily implemented by using corresponding hardware. Moreover, a specific hardware structure used to achieve a same function may be in various forms, for example, in a form of an analog circuit, a digital circuit, or a dedicated circuit. However, for this disclosure, a software program embodiment is a better embodiment in most cases. Based on such an understanding, the technical solutions of this disclosure essentially or the part contributing to the conventional technology may be implemented in a form of a software product. The computer software product is stored in a readable storage medium, for example, a floppy disk, a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc of a computer, and includes several instructions for instructing a computer device (which may be a personal computer, a training device, a network device, or the like) to perform the methods in embodiments of this disclosure.

All or a part of the foregoing embodiments may be implemented by software, hardware, firmware, or any combination thereof. When software is used to implement the foregoing embodiments, all or a part of the foregoing embodiments may be implemented in a form of a computer program product.

The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, procedures or functions according to embodiments of this disclosure are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or any other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium, or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, a computer, a training device, or a data center to another website, computer, training device, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium that can be stored by a computer, or a data storage device, such as a training device or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a digital video disk (DVD)), a semiconductor medium (for example, a solid-state drive (SSD)), or the like.

Classification Codes (CPC)

Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.

Patent Metadata

Filing Date

April 28, 2026

Publication Date

September 10, 2026

Inventors

Chuhan Wu
Qinglin Jia
Libin Zong
Muyu Zhang
Zhenhua Dong
Ruiming Tang

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “DATA PROCESSING METHOD AND RELATED APPARATUS” (US-20260267922-A1). https://patentable.app/patents/US-20260267922-A1

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.

DATA PROCESSING METHOD AND RELATED APPARATUS — Chuhan Wu | Patentable