PRIVATIZED MACHINE LEARNING USING GENERATIVE ADVERSARIAL NETWORKS

Information

  • Patent Application
  • 20190244138
  • Publication Number
    20190244138
  • Date Filed
    February 08, 2018
    6 years ago
  • Date Published
    August 08, 2019
    4 years ago
Abstract
One embodiment provides for a mobile electronic device comprising a non-transitory machine-readable medium to store instructions, the instructions to cause the mobile electronic device to receive a set of labeled data from a server; receive a unit of data from the server, the unit of data of a same type of data as the set of labeled data; determine a proposed label for the unit of data via a machine learning model on the mobile electronic device, the machine learning model to determine the proposed label for the unit of data based on the set of labeled data from the server and a set of unlabeled data associated with the mobile electronic device; encode the proposed label via a privacy algorithm to generate a privatized encoding of the proposed label; and transmit the privatized encoding of the proposed label to the server.
Description
TECHNICAL FIELD

This disclosure relates generally to the field of machine learning via privatized data. More specifically, this disclosure relates to a system that implements one or more privacy mechanisms to enable privatized machine learning using generative adversarial networks.


BACKGROUND

Machine learning is an application of artificial intelligence that enables a complex system to automatically learn and improve from experience without being explicitly programmed. The accuracy and effectiveness of machine learning models can depend in part on the data used to train those models. For example, machine learning classifiers can be trained using a labeled data set, in which samples of data that the classifier is to learn to recognize are provided to the classifier along with one or more labels that identify a classification for the sample. Generally, a larger training dataset results in a more accurate classifier. However, current techniques used to prepare training datasets may be painstaking, time consuming, and expensive, particularly techniques that involve the manual labeling of data to generate the training dataset.


SUMMARY

Embodiments described herein provide a technique to crowdsource labeling of training data for a machine learning model while maintaining the privacy of the data provided by crowdsourcing participants. Client devices can be used to generate proposed labels for a unit of data to be used in a training dataset. One or more privacy mechanisms are used to protect user data when transmitting the data to a server.


One embodiment provides for a mobile electronic device comprising a non-transitory machine-readable medium to store instructions, the instructions to cause the mobile electronic device to receive a set of labeled data from a server; receive a unit of data from the server, the unit of data of a same type of data as the set of labeled data; determine a proposed label for the unit of data via a machine learning model on the mobile electronic device, the machine learning model to determine the proposed label for the unit of data based on the set of labeled data from the server and a set of unlabeled data associated with the mobile electronic device; encode the proposed label via a privacy algorithm to generate a privatized encoding of the proposed label; and transmit the privatized encoding of the proposed label to the server.


One embodiment provides for a data processing system comprising a memory device to store instructions and one or more processors to execute the instructions stored on the memory device. The instructions cause the data processing system to perform operations comprising sending a set of labeled data to a set of multiple mobile electronic devices, each of the mobile electronic devices including a first machine learning model; sending a unit of data to the set of multiple mobile electronic devices, the set of multiple electronic devices to generate a set of proposed labels for the unit of data; receiving a set of proposed labels for the unit of data from the set of mobile electronic devices, the set of proposed labels encoded to mask individual contributors of each proposed label in the set of proposed labels; processing the set of proposed labels to determine a label to assign to the unit of data; and adding the unit of data and the label to a training set for use in training a second machine learning model.


Other features of the present embodiments will be apparent from the accompanying drawings and from the detailed description, which follows.





BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements.



FIGS. 1A-1B illustrate a system to enable crowdsourced labeling of training data for a machine learning model according to embodiments described herein.



FIG. 2 illustrates a system for receiving privatized crowdsourced labels from multiple client devices, according to an embodiment.



FIG. 3 is a block diagram of a system for generating privatizing proposed labels for server provided unlabeled data, according to an embodiment.



FIGS. 4A-4B illustrate systems to train machine learning models to generate proposed labels for unlabeled data, according to embodiments.



FIGS. 5A-5C illustrate exemplary privatized data encodings that can be used in embodiments described herein that implement privatization via differential privacy.



FIGS. 6A-6B are example process flows for encoding and differentially privatizing proposed labels to be transmitted to a server, according to embodiments described herein.



FIGS. 7A-7D are block diagrams of a multibit histogram and count-mean-sketch models of client and server algorithms according to an embodiment.



FIGS. 8A-8B illustrate logic to generate a proposed label on a client device, according to an embodiment.



FIG. 9 illustrates logic to enable a server to crowdsource labeling of unlabeled data, according to an embodiment.



FIG. 10 illustrates compute architecture on a client device that can be used to enable on-device, semi-supervised training and inferencing using machine learning algorithms, according to embodiments described herein.



FIG. 11 is a block diagram of mobile device architecture, according to an embodiment.



FIG. 12 is a block diagram illustrating an example computing system that can be used in conjunction with one or more of the embodiments of the disclosure.





DETAILED DESCRIPTION

Various embodiments and aspects will be described herein with reference to details discussed below. The accompanying drawings will illustrate the various embodiments. The following description and drawings are illustrative and are not to be construed as limiting. Numerous specific details are described to provide a thorough understanding of various embodiments. However, in certain instances, well-known or conventional details are not described to provide a concise discussion of embodiments.


Reference in the specification to “one embodiment” or “an embodiment” or “some embodiments” means that a particular feature, structure, or characteristic described in conjunction with the embodiment can be included in at least one embodiment. The appearances of the phrase “embodiment” in various places in the specification do not necessarily all refer to the same embodiment. It should be noted that there could be variations to the flow diagrams or the operations described therein without departing from the embodiments described herein. For instance, operations can be performed in parallel, simultaneously, or in a different order than illustrated.


The present disclosure recognizes that the use of personal information data, in the present technology, can be used to the benefit of users. For example, the personal information data can be used to deliver targeted content that is of greater interest to the user. Accordingly, use of such personal information data enables calculated control of the delivered content. Further, other uses for personal information data that benefit the user are also contemplated by the present disclosure.


The present disclosure further contemplates that the entities responsible for the collection, analysis, disclosure, transfer, storage, or other use of such personal information data will comply with well-established privacy policies and/or privacy practices. In particular, such entities should implement and consistently use privacy policies and practices that are generally recognized as meeting or exceeding industry or governmental requirements for maintaining personal information data private and secure. For example, personal information from users should be collected for legitimate and reasonable uses of the entity and not shared or sold outside of those legitimate uses. Further, such collection should occur only after receiving the informed consent of the users. Additionally, such entities would take any needed steps for safeguarding and securing access to such personal information data and ensuring that others with access to the personal information data adhere to their privacy policies and procedures. Further, such entities can subject themselves to evaluation by third parties to certify their adherence to widely accepted privacy policies and practices.


Despite the foregoing, the present disclosure also contemplates embodiments in which users selectively block the use of, or access to, personal information data. That is, the present disclosure contemplates that hardware and/or software elements can be provided to prevent or block access to such personal information data. For example, in the case of advertisement delivery services, the present technology can be configured to allow users to select to “opt in” or “opt out” of participation in the collection of personal information data during registration for services. In another example, users can select not to provide location information for targeted content delivery services. In yet another example, users can select to not provide precise location information, but permit the transfer of location zone information.


A key roadblock in the implementation of many supervised learning techniques is the requirement to have labeled data on the training server. Existing solutions to the labeled data problem includes centralizing the training data and manually annotating the data with one or more labels. Where the training data is user data, maintaining such data on a server can risk a loss of user privacy. Additionally, manually labeling the training data may be cost prohibitive.


Embodiments described herein enable the labeling task for training data to be crowdsourced to a large number of client devices, such that labels for training data can be determined in a semi-supervised manner. The set of user data stored on the client devices can be leveraged to label training data without exposing the user data to the training server. Using a generative adversarial network (GAN) and a small number of labeled data samples provided by a server, client devices can perform semi-supervised learning based on user data stored in the client devices. Unlabeled units of training data can then be provided to the client devices. The trained model on the client devices can generate proposed labels for unlabeled units of training data provided by the server. The proposed labels provided by client devices are privatized to mask the relationship between the proposed label and the user and/or client device that proposed the label. The set of proposed labels can be analyzed on the server to determine the most popular proposed label for a unit of unlabeled data. Once each unit of data in a set of training data is labeled, the set of training data can then be used by the server to train an untrained machine learning model or improve the accuracy of a pre-trained model.


Labels provided by client devices can be privatized via one or more privatization mechanisms. In some embodiments, a differential privacy technique is applied to proposed label data on each client device before the proposed label data is provided to the server. Any differential privacy technique that can generate a histogram can be used. In one embodiment, a multibit histogram algorithm is used, although other histogram-based differential privacy algorithms can be used in other embodiments. In one embodiment, the server and client can also use a count-mean-sketch algorithm. In such embodiment, the server and client can switch from the multibit histogram algorithm to a count-mean-sketch algorithm when the universe of possible labels exceeds a threshold.


In addition to the use of differential privacy techniques, other techniques of maintaining user privacy can be applied. For example, some embodiments can implement privatization techniques including secure multi-party computation and/or homomorphic encryption operations. Secure multi-party computation enables multiple parties to jointly compute a function over their inputs while maintaining the privacy of the inputs. Homomorphic encryption is a form of encryption that allows computations to be carried out on ciphertext (encrypted data), thus generating an encrypted result which, when decrypted, matches the result of operations performed on the plaintext. In all embodiments, any crowdsourcing data provided by a user device is sanitized before transmission to the server. Additionally, user data that is to be transferred can be locally stored in a privatized manner.



FIGS. 1A-1B illustrate a system 100 to enable crowdsourced labeling of training data for a machine learning model according to embodiments described herein. As shown in FIG. 1A, in one embodiment, a server 130 can connect with a set of client devices 110a-110n, 111a-111n, 112a-112n over a network 120. The server 130 can be any kind of server, including an individual server or a cluster of servers. The server 130 can also be or include a cloud-based server, application server, backend server, virtual server, or combination thereof. The network 120 can be any suitable type of wired or wireless network such as a local area network (LAN), a wide area network (WAN), or combination thereof. Each of the client devices can include any type of computing device such as a desktop computer, a tablet computer, a smartphone, a television set top box, or other computing device. For example, a client device can be an iPhone®, Apple® Watch, Apple® TV, etc., and can be associated with a user within a large set of users to which tasks can be crowdsourced with the permission of the user.


In one embodiment, the server 130 stores a machine learning model 135, which can be a machine learning model based on a deep neural network. The machine learning model 135 can be a basic model that is an untrained model or a low accuracy pre-trained model. The server 130 can also store a set of unlabeled data 131 and a set of labeled data 132. In one embodiment, the unlabeled data 131 is a large set of data that will be labeled and used to increase the accuracy of the machine learning model 135. The labeled data 132 is a relatively smaller set of data that will be provided to the client devices to facilitate the generation of proposed labels for the unlabeled data.


In one embodiment, the unlabeled data 131 and labeled data 132 are of the same type of data, specifically the type of data for which the machine learning model 135 is to classify. However, the system 100 is not limited to any particular type of data. For example, the system 100 can be used for image data, including object and but are not limited to any specific type of data. For example, image data can be used for an image machine learning model, such as an image classifier, which can be configured for object recognition or facial recognition. The system 100 can also be configured to train a predictive system. A sequence of characters and words can be used to train a predictive model for a predictive keyboard. For example, the machine learning model 135 can be trained such that, for a given set of input characters, a next character or word can be predicted. A sequence of applications can be used to train an application predictor. For example, for a given sequence of applications accessed or used by a user, the machine learning model 135 can be trained to predict the next application or applications that are likely to be accessed by a user and present icons for those applications in an area of a user interface that is easily and readily accessible to the user. In one embodiment, a mapping application can use a variant of the machine learning model 135 to predict a navigation destination for a user based on a reset of recent locations or destinations for a user.


The client devices can be organized into device groups (e.g., device group 110, device group 111, device group 112) that can each contain multiple client devices. Each device group can contain n devices, where n can be any number of devices. For example, device group 110 can contain client device 110a-110n. Device group 111 can contain client device 111a-111n. Device group 112 can contain client device 112a-112n. In one embodiment, each device group can contain up to 128 devices, with the accuracy of the proposed labels generated by a device group increasing with the number of client devices in each group. The number of client devices in each device group is not limited to any specific number of devices. Additionally, the number of device groups is not limited to any specific number of groups. For each implementation of an embodiment, the number of devices in each device group can be the same for each group or can vary across groups. Additionally, it is not required for all devices within a group to provide a proposed label, although the server 130 may require a threshold number of devices within each group to propose a label before a specific one of the proposed labels is selected.


In one embodiment, each client device (client device 110a-110n, client device 111a-111n, client device 112a-112n) can include a local machine learning model. For example, client device 110a-110n of device group 110 can each contain corresponding local machine learning model 136a-136n. Client device 111a-111n of device group 111 can each contain corresponding local machine learning model 137a-137n. Client device 112a-112n of device group 112 can each contain a corresponding local machine learning model 138a-138n. In various embodiments, the local machine learning models can be loaded on each client device during factory provisioning or can be loaded or updated when a system image of the client device is updated. In one embodiment, each local machine learning model can initially be a variant of the machine learning model 135 of the server. The machine learning models can then be individualized to each client device by training on local data stored on the client device.


In one embodiment, the local machine learning models 136a-136n, 137a-137n, 138a-138n on each client device can be or include a variant of a generative adversarial network (GAN). A GAN is a machine learning network that includes a generator and a discriminator, where the generator maps a latent encoding to a data space and the discriminator distinguishes between samples generated by the generator and real data. The generator is trained to deceive the discriminator (e.g., to generate artificial data that is difficult to distinguish from real data). Discriminator is trained to avoid being deceived by the generator. The operations of the GAN are described further in FIGS. 3, 4A, and 4B.


The GAN on each device can be used to cluster or label locally stored data on each client device based on the set of labeled data 132 provided by the server. The server can provide a labeling package (e.g., labeling package 121, labeling package 122, labeling package 123) to each client device within each device group. The labeling packages can contain the set of labeled data 132 that will be used by a GAN on each device to cluster and/or label the local data on each device. The clustered or labeled data can be used to individualize the respective machine learning models. The labeling packages also include a unit of unlabeled data 131[i] for which the client devices will generate proposed labels once the machine learning models are individualized. In one embodiment, the labeling package for each device group includes the same unit of unlabeled data, with each device group receiving a different unit of unlabeled data. For example, labeling package 121 provided to each client device 110a-110n in device group 110 can include a first unit of unlabeled data. Labeling package 122 provided to each client device 111a-111n in device group 111 can include a second unit of unlabeled data. Labeling package 123 provided to each client device 112a-112n in device group 112 can include a third unit of unlabeled data.



FIG. 1B illustrates operations within a device group 110, according to embodiments described herein. The device group 110 includes client devices 110a-110n (e.g., client device 110a, client device 110b, client device 110c, through client device 110n). Each client device includes a corresponding machine learning model 136a-136n, where each machine learning model can be a part of or associated with a GAN.


In one embodiment, a local data clustering and/or labeling operation 139 is performed on each of the client devices 110a-110n within the device group 110 based on the labeling package (e.g., labeling package 121) provided by the server 130 in FIG. 1A. The local data clustering and labeling operation 139 can enable local data on a client device, which is likely to be unlabeled, to be generally labeled or grouped in a manner that can be used to enhance, train, or individualize the local machine learning model 136a-136n on each client device 110a-110n. In various embodiments, various clustering and/or labeling techniques can be applied. In one embodiment, the machine learning model 136a-136n on each client device 110a-110n can analyze the set of locally stored data on each device and group the data according to common features present in the data. In the case of local image data stored in the device, the images can be clustered into groups of similar images based on common features detected in the images. For example, locally stored images containing faces can be clustered into a first group, while images containing vehicles can be clustered into a second group, and images containing landscapes can be clustered into a third group. The clustering can be performed without differentiation between individual faces, vehicles, landscapes, etc. within each group. In one embodiment, clustering is performed without regard to the types of groups being created. For example, the images containing faces can be grouped based on common features shared between the images without requiring the machine learning models to be explicitly configured or trained to recognize faces. Instead, images containing faces, or other objects, can be grouped based on common mathematical features detected within the images. Similar clustering can be performed for text data or other types of data based on mathematical features within the data files.


Once the user data is clustered, each client device 110a-110n can use the local machine learning model 136a-136n and a set of labeled data received from the server (e.g., labeled data 132 from server 130 of FIG. 1A) to label the clustered user data. The client devices 110a-110n can compare sample units of labeled data from the set of labeled data to the data in the clusters of user data. The degree of commonality between the user data and the labeled data can vary depending on the data distribution of the user data, as the type and amount of user data stored in each client device can vary significantly between devices. Where a unit of data from the set of labeled data shares sufficient commonalty with a cluster of user data, each unit of data in the cluster can be assigned the label, resulting in a set of labeled local data 140a-140n on each client device.


The labeled local data 140a-140n on each client device 110a-110n can be used to perform an on-device training operation 145 to train or enhance the local machine learning model 136a-136n on each client device. The on-device training operation 145 can result in the generation of improved models 146a-146n on each device that are more accurate at performing machine learning inferencing operations on the specific type of data used to improve the model. Due to differences in the local data set of each client device 110a-110n (e.g., different images in local image libraries, different operating system or keyboard languages, different commonly used applications, etc.), the improved models 146a-146n will become individualized to each client device 110a-110n. In some implementations, individualization of the improved models 146a-146n may result in different levels of accuracy of each of the improved models. However, across the client devices 110a-110n within the device group 110, the proposed labels output by the device group 110, in the aggregate, can converge toward an accurate result.


In one embodiment, the client devices 110a-110n in the device group 110 can use the improved models 146a-146n on each device to perform an operation to classify received data 149. The received data is a unit of unlabeled data 131 (e.g., unlabeled data 131[i]) from the server 130 that is provided to the device group 110 from the server via a labeling package (e.g., labeling package 121 for device group 110). The operation to classify the received data 149 can be performed on each client device 110a-110n to generate a set of proposed labels 150a-150n on each device. Each client device 110a-110n can then perform an operation to privatize the proposed labels 151 using one or more data privatization techniques described herein (e.g., differential privacy, homomorphic encryption, secure multiparty computation, etc.).



FIG. 2 illustrates a system 200 for receiving privatized crowdsourced labels from multiple client devices, according to an embodiment. In one embodiment, the system 200 includes a set of client devices 210a-210c (collectively, 210), which can be any of the client devices described above (e.g., client devices 110a-110n, 111a-111n, 112a-112n). The client devices 210, using the techniques described above, can each generate a corresponding privatized proposed label 212a-212c (privatized proposed label 212a from client device 210, privatized proposed label 212b from client device 210b, privatized proposed label 212c from client device 210c) which each can be transmitted to the server 130 via the network 120.


The illustrated client devices 210 can be in the same device group or different device groups. For example, client device 210a can represent client device 110a of device group 110 in FIG. 1A, while client device 210b can represent client device 111a of device group 111 in FIG. 1A. Where the client devices 210 are in different device groups, the privatized proposed labels 212a-212c will each correspond with a different unit of unlabeled data provided by the server 130. For example, client device 210a can receive a first unit of unlabeled data in labeling package 121, while client device 210b can receive a second unit of unlabeled data in labeling package 122. Where the client devices 210 are in the same device group, the privatized proposed labels 212a-212c will correspond with the same unit of unlabeled data provided by the server (e.g., unlabeled data 131[i] in labeling package 121 of FIG. 1A). Although the proposed labels are for the same unit of data, the labels proposed by the client devices 210 can differ, as the labels are proposed based on individualized machine learning models on each client device, where the individualized machine learning models are individualized based on the local data stored in each client device 210a-210c.


Prior to transmission to the server 130 over the network 120, the proposed labels generated on the client devices 210 are privatized to generate the privatized proposed labels 212a-212c. The privatization is performed to mask the identity of the contributor of any proposed label in the crowdsourced dataset and can be performed using one or more data privatization algorithms or techniques. Some embodiments described herein apply a differential privacy encoding to the proposed labels, while other embodiments can implement homomorphic encryption, secure multiparty compute, or other privatization techniques.


The server 130 maintains data store of proposed label aggregate data, which is an aggregation of the privatized proposed labels 212a-212c received from the client devices 210. The format of the proposed label aggregate data 230 can vary based on the privatization technique applied to the proposed labels. In one embodiment, a multibit histogram differential privacy technique is used to privatize the proposed labels and the proposed label aggregate data 230 is a histogram containing proposed label frequency estimates. The server can process the proposed label aggregate data 230 to determine a most frequently proposed label for each unit of unlabeled data 131 and label each unit, generating a set of crowdsourced labeled data 231. The crowdsourced labeled data 231 can then be used to train and enhance machine learning models.



FIG. 3 is a block diagram of a system 300 for generating privatizing proposed labels for server provided unlabeled data, according to an embodiment. In one embodiment, the client device 110 can include a privacy engine 353 that includes a privacy daemon 356 and a privacy framework or application programming interface (API) 355. The privacy engine 353 can use various tools, such as hash functions, including cryptographic hash functions, to privatize a proposed label 333 generated by the client device 110. The client device 110, in one embodiment, additionally includes a generative adversarial network (GAN 361) to perform semi-supervised learning using unlabeled data on the client device 110 and few selections of labeled data within server provided data 332 that is provided by the server 130. The GAN 361 includes a generator module 361A and a discriminator module 361B, which can each be neural networks, including deep convolutional neural networks. The GAN 361 can generate clustered or labeled user data 363 based on user data on the client device 110 and the samples of labeled data within the server provided data 332. In one embodiment, the discriminator module 361B of the trained GAN 361 can then generate a proposed label 333 for a unit of unlabeled data (e.g., unlabeled data 131[i] as in FIG. 1A) within the server provided data 332. The proposed label 333 can then be privatized by the privacy daemon 356 within the privacy engine 353 using a privacy framework or API 355. The privatized proposed label can then be transmitted to the server 130 via the network 120.


The server 130 can include a receive module 351, and a frequency estimation module 341 to determine label frequency estimations 331, which can be stored in various data structures, such as an array as in the multibit histogram algorithm. The receive module 351 can asynchronously receive crowdsourced privatized labels of from a large plurality of client devices 110. In one embodiment, the receive module 351 can remove latent identifiers from the received sketch data. Latent identifiers can include IP addresses, metadata, session identifiers, or other data that might identify the particular client device 110 that sent the sketch. The frequency estimation module 341 can also process received privatized proposed labels using operations such as, but not limited to a privatized count-mean-sketch operation. The label frequency estimations 331 can be analyzed by a labeling and training module 330, which can determine labels for unlabeled server data by applying a highest frequency label received for each unit of unlabeled server data. The labeling and training module 330 can use the determined labels to train an existing server-side machine learning model 135 into an improved server-side machine learning model 346. In one embodiment, the client device 110 and the server 130 can engage in an iterative process to enhance the accuracy of a machine learning model. For example, the improved machine learning model 346 can be deployed to the client device 110 via a deployment module 352, where portions of the improved machine learning model 346 can be incorporated into the GAN 361 on the client device 110, to generate refined label data to further improve the server side model.



FIGS. 4A-4B illustrate systems 400, 410 to train machine learning models to generate proposed labels for unlabeled data, according to embodiments. FIG. 4A illustrates a system 400 to train an initialized GAN 415 using unlabeled local client data 404 and a small amount of labeled data provided by the server (e.g., labeled server data 402). FIG. 4B illustrates a system 410 in which a trained GAN 417 is used to generate a proposed label 418 for a unit of unlabeled server data 412. The systems 400, 410 can be implemented on a client device as described herein, such as, but not limited to the client devices 210 of FIG. 2. The initialized GAN 415 and trained GAN 417 can each represent instances of the GAN 361 of FIG. 3 before and after on-device semi-supervised learning is performed on the client device 110.


The system 400 of FIG. 4A includes an initialized GAN 415 that includes a generator network 403 and a discriminator network 406. In one embodiment, the generator network 403 is a generative neural network including fully-connected, convolutional, strided convolutional and/or deconvolutional layers. The specific implementation of the generator network 403 can vary based on the GAN implementation, and different implementations can use different numbers and combinations of neural network layers. The generator network 403 is configured to transform random input data (e.g., noise vector 401) into generated data 405. The discriminator network 406 is trained to distinguish between generated data 405 output by the generator network 403 and actual data within a dataset. The generator network 403 and the discriminator network 406 are trained together.


During training, the generator network 403 learns to generate more authentic generated data 405 based on feedback from the discriminator network 406. Initial versions of the generated data 405 resemble random noise, while subsequent iterations of the generated data, during training, begin to resemble authentic data. During training, the discriminator network 406 learns to distinguish between authentic data and generated data 405. Training the initialized GAN 415 improves the accuracy of each network; such that the discriminator network learns how to accurately discriminate between generated data 405 and authentic data, while the generator network 403 learns how to produce generated data 405 that the discriminator network 406 may inaccurately interpret as genuine data.


In the illustrated system 400, the authentic data set used to train the initialized GAN 415 includes labeled server data 402 and unlabeled local client data 404 on a client device. The training process of the GAN 415 includes finding the parameters of the discriminator network 406 that maximize classification accuracy, while finding the parameters of a generator which maximally confuse the discriminator. The generator network 403 and the discriminator network 406 can each interact with a training module 407 that directs the training path of each network. The training module 407 can provide feedback to the generator network 403 and the discriminator network 406 regarding the output of each network. For example, when the discriminator network 406 correctly identifies generated data 405 as synthetic, the training module 407 can provide information to the generator network 403 to enable the network to generate more authentic generated data 405. When the discriminator network 406 incorrectly identifies generated data 405 as authentic, then training module 407 can provide information to the discriminator network 406 to enable the network to better distinguish between authentic data and the generated data 405.


In one embodiment, the training module 407 can be configured to enable semi-supervised learning for the initialized GAN 415 using the unlabeled local client data 404 in conjunction with the labeled server data 402. Semi-supervised training enables machine learning to be performed when only a subset of the training data set has corresponding classification labels. In one embodiment, during the semi-supervised training process the training module 407 can enable the initialized GAN 415 to output labeled local client data 408, which includes clusters of previously unlabeled local client data 404 with coarse grained labels applied based on samples within the labeled server data 402. In some embodiments, successive rounds of training can be performed using the labeled local client data 408 to boost the accuracy of the discriminator network 406. In such embodiments, the training module 407 can prioritize the optimization of the accuracy of the discriminator network 406, potentially at the expense of the accuracy of the generator network 403 at generating authentic appearing generated data 405.


The system 410 of FIG. 4B includes the trained GAN 417, which includes a trained generator network 413 and a trained discriminator network 416. The trained GAN 417 is trained in a semi-supervised manner as described in FIG. 4A, such that the trained discriminator network 416 is trained to be able to generate a proposed label 418 for a unit of unlabeled server data 412 with an accuracy of at least slightly better than uniformly guessing at random. The required accuracy of any given proposed label is reduced by aggregating, at the server, a large plurality (e.g., over 100) of proposed labels for each unit of unlabeled server data 412. The proposed labels are privatized before transmission to the server. The server then processes the aggregate proposed label data according to a server-side algorithm associated with the privatization technique used to privatize the proposed label 418.


Proposed Label privatization via Differential Privacy.


In some embodiments, one or more differential privacy techniques are applied to the crowdsourced proposed labels to mask the identity of contributors of the proposed labels. As a general overview, local differential privacy introduces randomness to client user data prior to sharing the user data. Instead of having a centralized data source D={d1, . . . , dn}, each data entry di belongs to a separate client i. Given the transcript Ti of the interaction with client i, it is may not be possible for an adversary to distinguish Ti from the transcript that would have been generated if the data element were to be replaced by null. The degree of indistinguishability (e.g., degree of privacy) is parameterized by ε, which is a privacy parameter that represents a tradeoff between the strength of the privacy guarantee and the accuracy of the published results. Typically, ε is considered to be a small constant. In some embodiments, the ε value can vary based on the type of data to be privatized, with more sensitive data being privatized to a higher degree. The following is a formal definition of local differential privacy.


Let n be the number of clients in a client-server system, let Γ be the set of all possible transcripts generated from any single client-server interaction, and let Ti be the transcript generated by a differential privacy algorithm A while interacting with client i. Let di ∈ S be the data element for client i. Algorithm A is ε-locally differentially private if, for all subsets T ⊆ Γ, the following holds:









i


[
n
]



,

d

S

,




ln



Pr


[




T
i


T



d
1


=
d

]



Pr


[




T
1


T



d
1


=
null

]








ɛ
.






Here, di=null refers to the case where the data element for client i is removed. In other words, an adversary having n−1 data points of a data set cannot reliably test whether the n-th data point was a particular value. Thus, a differentially privatized dataset cannot be queried in a manner that enables the determination of any particular user's data.


In one embodiment, a privatized multibit histogram model can be implemented on the client device and the server, with an optional transition to a count-mean-sketch privatization technique when the universe of labels exceeds a threshold. The multibit histogram model can send p bits to a server, where p corresponds to size of the universe of data values corresponding with potential proposed labels. The server can perform a summation operation to determine a frequency of user data values. The multibit histogram model can provide an estimated frequency variance of (cε2−1)/4)n, where n is the number of users and







c
ɛ

=




e
ɛ

+
1



e
ɛ

-
1


.





When the universe of data values corresponding with potential proposed labels exceeds a threshold, the server can use a count-mean-sketch differential privacy mechanism to estimate the frequency of proposed labels in a privatized manner.



FIGS. 5A-5C illustrate exemplary privatized data encodings that can be used in embodiments described herein that implement privatization via differential privacy. FIG. 5A illustrates proposed label encoding 500 on a client device. FIG. 5B illustrates a proposed label histogram 510 on a server. FIG. 5C illustrates a server-side proposed label frequency sketch 520.


As shown in FIG. 5A, in one embodiment a proposed label encoding 500 is created on a client device in which a proposed label value 502 is encoded into a proposed label vector 503. The proposed label vector 503 is a one-hot encoding in which a bit is set that corresponds with a value associated with a proposed label generated by a client device. In the illustrated proposed label encoding 500, the universe of labels 501 is the set of possible labels that can be proposed for an unlabeled unit of data provided to a client device by the server. The number of values in the universe of labels 501 is related to the machine-learning model that will be trained by the crowdsourced labeled data. For example, for a classifier that will be trained to infer a classification selected from a universe of p classifications, a universe size of p can be used for the universe of labels. However, such relationship is not required for all embodiments, and the size of the universe of labels is not fixed to any specific size. It should be noted that a vector is described herein for convenience and mathematical purposes, but any suitable data structure can be implemented, such as a string of bits, an object, etc.


As shown in FIG. 5B, in one embodiment the server can aggregate privatized proposed labels into a proposed label histogram 510. For each unit of unlabeled data, the server can aggregate the proposed labels 512 and count the number of proposals 511 for each of the proposed labels 512. The selected label 513 will be the proposed label with the greatest number of proposals 511.


As shown in FIG. 5C, in one embodiment the server can generate a proposed label frequency sketch 520 for use with a count-mean-sketch differential privacy algorithm. The server can accumulate privatized proposed labels from multiple different client devices. Each client device can transmit a privatized encoding of a proposed label along with an index value (or a reference to the index value) of a random variant used when privatizing the proposed label. The random variant is a randomly selected variation on a proposed label to be privatized. Variants can correspond to a set of k values (or k index values) that are known to the server. The accumulated proposed labels can be processed by the server to generate the proposed label frequency sketch 520. The frequency table can be indexed by the set of possible variant index values k. A row of the frequency table corresponding to the index value of the randomly selected variant is then updated with the privatized vector. More detailed operations of the multi-bit histogram and count-mean-sketch methods are further described below.



FIGS. 6A-6B are example processes 600, 610, 620 for encoding and differentially privatizing proposed labels to be transmitted to a server, according to embodiments described herein. In embodiments described herein, each client device that participates in crowdsourcing a label for a unit of server provided data can generate a proposed label for the unit of data and privatized the label before transmitting the label to the server. The proposed label can be a label within a universe of potential proposed labels, where a specific label value is associated with a proposed label selected by the client device.


In one embodiment, as shown in example process flow 600 of FIG. 6A, a specific label value 601 is associated with a proposed label selected by the client device. The system can encode the label value 601 in the form of a vector 602, where each position of the vector corresponds with a proposed label. The label value 601 can correspond to a vector or bit position 603. For example, illustrated proposed label value G corresponds to position 603 while potential proposed label values A and B correspond to different positions within the vector 602. The vector 602 can be encoded by updating the value (e.g., setting the bit to 1) at position 603. To account for any potential bias of a 0 or null value, the system may use an initialized vector 605. In one embodiment, the initialized vector 605 can be a vector v←{−cε}m. It should be noted that the values are used as mathematical terms, but can be encoded using bits (e.g., 0=+cε, 1=−cε). Accordingly, vector 602 may use the initialized vector 605 to create an encoding 606 wherein the value (or bit) at position 603 is changed (or updated). For example, the sign of the value at position 603 can be flipped such that the value is cε (or +cε) and all other values remain −cε as shown (or vice versa).


The client device can then create a privatized encoding 608 by changing at least some of the values with a predetermined probability 609. In one embodiment, the system may flip the sign (e.g., (−) to (+), or vice versa) of a value with the predetermined probability 609. As further described herein, the predetermined probability may be 1/(1+eε).


Accordingly, the label value 601 is now represented as a privatized encoding 608, which individually maintains the privacy of the user that generated the proposed label. This privatized encoding 609 can be stored on the client device and subsequently transmitted to the server 130. The server 130 can accumulate privatized encodings (e.g., vectors) from various client devices. The accumulated encodings may then be processed by the server for frequency estimation. In one embodiment, the server may perform a summation operation to determine a sum of the value of user data. In one embodiment, summation operation includes performing a summation operation from all of the vectors received by the client devices.


In one embodiment, as shown in example process 610 of FIG. 6B, is an example process flow of differentially privatizing an encoding of user data to be transmitted to a server according to an embodiment of the disclosure. A client device can select a proposed label 611 to transmitted to the server. The proposed label 611 can be represented as a term 612 in any suitable format, where the term is a representation of the proposed label. In one embodiment, the term 612 can be converted to a numeric value using a hash function. As illustrated, a SHA256 hash function is used in one embodiment. However, any other hash function may also be used. For example, variants of SHA or other algorithms may be used such as SHA1, SHA2, SHA3, MD5, Blake2, etc. with various bit sizes. Accordingly, any hash function may be used in implementations given they are known to both the client and server. In one embodiment, a block cipher or another cryptographic function that is known to the client and server can also be used.


In one embodiment, computational logic on a client device can use a portion of a created hash value along with a variant 614 of the term 612 to address potential hash collisions when performing a frequency count by the server, which increases computational efficiency while maintaining a provable level of privacy. Variants 614 can correspond to a set of k values (or k index values) that are known to the server. In one embodiment, to create a variant 614, the system can append a representation of an index value 616 to the term 612. As shown in this example, an integer corresponding to the index value (e.g., “1,”) may be appended to the term 612 to create a variant (e.g., “1,face”, or “face1”, etc.). The system can then randomly select a variant 619 (e.g., variant at random index value r). Thus, the system can generate a random hash function 617 by using a variant 614 (e.g., random variant 309) of the term 612. The use of variants enables the creation of a family of k hash functions. This family of hash functions is known to the server and the system can use the randomly selected hash function 617 to create a hash value 613. In one embodiment, in order to reduce computations, the system may only create the hash value 613 of the randomly selected variant 619. Alternatively, the system may create a complete set of hash values (e.g., k hash values), or hash values up to the randomly selected variant r. It should be noted that a sequence of integers is shown as an example of index values, but other forms of representations (e.g., various number of character values) or functions (e.g., another hash function) may also be used as index values given that they are known to both the client and server.


Once a hash value 613 is generated, the system may select a portion 618 of the hash value 613. In this example, a 16-bit portion may be selected, although other sizes are also contemplated based on a desired level of accuracy or computational cost of the differential privacy algorithm (e.g., 8, 16, 32, 64, etc. number of bits). For example, increasing the number of bits (or m) increases the computational (and transmission) costs, but an improvement in accuracy may be gained. For instance, using 16 bits provides 216−1 (e.g., approximately 65 k) potential unique values (or m range of values). Similarly, increasing the value of the variants k, increases the computational costs (e.g., cost to compute a sketch), but in turn increases the accuracy of estimations. In one embodiment, the system can encode the value into a vector, as in FIG. 6A, where each position of the vector can correspond to a potential numerical value of the created hash 613.


For example, process flow 620 of FIG. 6B illustrates that the created hash value 613, as a decimal number, can be correspond to a vector/bit position 625. Accordingly, a vector 626 may be encoded by updating the value (e.g., setting the bit to 1) at position 625. To account for any potential bias of a 0 or null value, the system may use an initialized vector 627. In one embodiment, the initialized vector 627 may be a vector v←{−cε}m. It should be noted that the values are used as mathematical terms, but may be encoded using bits (e.g., 0=+cε, 1=−cε.). Accordingly, vector 626 may use the initialized vector 627 to create an encoding 628 wherein the value (or bit) at position 625 is changed (or updated). For example, the sign of the value at position 625 may be flipped such that the value is cε (or +cε) and all other values remain −cε as shown (or vice versa).


The system can then create a privatized encoding 632 by changing at least some of the values with a predetermined probability 633. In one embodiment, the system can flip the sign (e.g., (−) to (+), or vice versa) of a value with the predetermined probability 633. As further described herein, in one embodiment the predetermined probability is 1/(1+eε). Accordingly, the proposed label 611 is now represented as a privatized encoding 632, which individually maintains the privacy of the user when the privatized encoding 632 of the proposed label 611 is aggregated by the server.



FIGS. 7A-7D are block diagrams of multibit histogram and count-mean-sketch models of client and server algorithms according to an embodiment. FIG. 7A shows an algorithmic representation of the client-side process 700 of the multibit histogram model as described herein. FIG. 7B shows an algorithmic representation of the server-side process 710 of the multibit histogram model as described herein. FIG. 7C shows an algorithmic representation of a client-side process 720 of a count-mean-sketch model as described herein. FIG. 7D shows an algorithmic representation of a server-side process 730 of a count-mean-sketch model as described herein. The client-side process 700 and server-side process 710 can use the multibit histogram model to enable privacy of crowdsourced data while maintaining the utility of the data. Client-side process 700 can initialize vector v←{−cε}m. Where the user is to transmit d ∈ [p], client-side process 700 can be applied to flip the sign of v[h(d)], where h is a random hash function. To ensure differential privacy, client-side process 700 can flip the sign of each entry v with a probability of 1/(1+eε). The client-side process 720 can also use hash functions to compress frequency data for when the universe of proposed labels exceeds a threshold.


As shown FIG. 7A, client-side process 700 can receive input including a privacy parameter ε, a universe size p, and data element d ∈ S, as shown at block 701. At block 702, client-side process 700 can set a constant







c
ɛ





e
ɛ

+
1



e
ɛ

-
1






and initialize vector v←{−cε}p, as shown in block 702. Constant cε allows noise added to maintain privacy and remain unbiased. Added noise should be large enough to mask individual items of user data, but small enough to allow any patterns in the dataset to appear. As shown at block 703 client-side process 700 can then set v[d]←cε and, at block 704, sample vector b ∈ {−1, +1}p, with each bj being independent and identically distributed and outputs +1 with probability








e
ɛ



e
ɛ

+
1


.




As shown at block 705, client-side algorithm 700 can then generate a privatized vector







v
priv

=


{


(




v


[
j
]


*

b
j


+
1

2

)

,



j


[
p
]




}

.





At block 706, client-side algorithm 700 can return vector vpriv, which is a privatized version of vector v.


As shown in FIG. 7B, server-side process 710 aggregates the client-side vectors and, given input including privacy parameter ε, universe size p, and data element s ∈ S, whose frequency is to be estimated, can return an estimated frequency based on aggregated data received from crowdsourcing client devices. As shown at block 711, server-side process 710 (e.g., Aserver), given privacy parameters and a universe size p, can obtain n vectors v1, . . . , vn corresponding to the data set D={d1, . . . , dn}, such that vi←Aclient (ε, p, di). At block 712, server-side process 710 can initialize a counter fs (e.g., fs←0). Server-side process 710, for each tuple vi, i ∈ [n], can set fs=fs+vi[s], as shown at block 713. At block 714, server-side process 710 can return fs, which is a frequency of the value of user data amongst the aggregate data set.


Client-side process 700 and server-side process 710 provide privacy and utility. Client-side process 700 and server-side process 710 are jointly locally differentially private. Client-side process 700 is E-locally differentially private and server-side process 710 does not access raw data. For arbitrary output v ∈ {−cε, cε}p, the probability of observing the output is similar whether the user is present or not. For example, in the case of an absent user, the output of Aclient (ε, p, h, φ) can be considered, where φ is the null element. By the independence of each bit flip,








Pr


[



A
client



(

ɛ
,
p
,
h
,
d

)


=
v

]



Pr


[



A
client



(

ɛ
,
p
,
d
,
ϕ

)


=
v

]





e
ɛ







Similarily
,







Pr


[



A
client



(

ɛ
,
p
,
h
,
d

)


=
v

]



Pr


[



A
client



(

ɛ
,
p
,
d
,
ϕ

)


=
v

]





e
ɛ






Server-side process 710 also has a utility guarantee for frequency estimation. Privacy and utility are generally tradeoffs for differential privacy algorithms. For a differential privacy algorithm to achieve maximal privacy, the output of the algorithm may not be a useful approximation of the actual data. For the algorithm to achieve maximal utility, the output may not be sufficiently private. The multibit histogram model described herein achieves ε-local differential privacy while achieving optimal utility asymptotically.


The utility guarantee for server-side process 710 be stated as follows: Let ε>0 and s ∈ S be an arbitrary element in the universe. Let fs be the output of server-side process 710 (e.g., Aserver (ε, p, s)) and Xs be the true frequency of s. Then, for any b>0,








Pr


[





f
s

-

X
s




>



b





σ


n





]


<

1
-

erf


(

b


/



2


)


+


1.12
·
ρ



σ
3



n





,






where






c
ɛ


=



e
ɛ

+
1



e
ɛ

-
1



,

σ
=




c
ɛ
2

-
1

4



,


and





ρ

=




c
ɛ
3

-

1


/



c
ɛ



8

.






The overall concepts for the count-mean-sketch algorithm are similar to those of multi-bit histogram, excepting that data to be transferred is compressed when the universe size p becomes very large. The server can use a sketch matrix M of dimension k×m to aggregate the privatized data.


As shown FIG. 7C, a client-side process 720 can receive input including a data element d ∈ S, a privacy parameter ε, a universe size p, and a set of k hash functions H={h1, h2, . . . hk} that each map [p] to [m], can select random index j from [k] to determine hash function hi, as shown at block 721. Client-side process 720 can then set a constant







c
ɛ





e
ɛ

+
1



e
ɛ

-
1






and initialize vector v←{−cε}m, as shown in block 722. Constant cε allows noise added to maintain privacy and remain unbiased. Added noise should be large enough to mask individual items of user data, but small enough to allow any patterns in the dataset to appear.


As shown at block 723 client-side process 720 can use randomly selected hash function hj to set v[hj(d)]←cε. At block 724, client-side process 720 can sample vector b ∈ {−1, +1}m, with each bj being independent and identically distributed and outputs +1 with probability








e
ɛ



e
ɛ

-
1


.




As shown at block 725, client-side algorithm 720 can then generate a privatized vector







v
priv

=


{


(




v


[
j
]


*

b
j


+
1

2

)

,



j


[
m
]




}

.





At block 726, client-side algorithm 720 can return vector vpriv, which is a privatized version of vector v, and randomly selected index j.


As shown in FIG. 7D, a server-side process 730 can aggregate client-side vectors from client-side process 720. Server-side process 730 can receive input including a set of n vectors and indices {(v1, j1), . . . (vn, jn)}, a privacy parameter ε, and a set of k hash functions H={h1, h2, . . . hk} that each map [p] to [m], as shown at block 731. Server-side process 730 can then initialize matrix M←0, where M has k rows and m columns, such that M ∈ {0}k×m, as shown at block 732. As shown at block 733, for each tuple (vi, ji), i ∈ [n], server-side process 730 can add vi to the ji row of M, such that M[ji][:]←M[ji][:]+vi. At block 734, the server-side process 730 can return sketch matrix M. Given the sketch matrix M, it is possible to estimate the count for entry d ∈ S by de-biasing the counts and averaging over the corresponding hash entries in M.


While specific examples of proposed label privatization via multibit histogram and/or count-mean-sketch differential privacy techniques are described above, embodiments are not limited to differential privacy algorithms for implementing privacy of the crowdsourced labels. As described herein, homomorphic encryption techniques can be applied, such that encrypted values received from client devices can be summed on the server without revealing the privatized data to the server. For example, the client devices can employ a homomorphic encryption algorithm to encrypt proposed labels and send the proposed labels to the server. The server can then perform a homomorphic addition operation to sum the encrypted proposed labels without requiring the knowledge of the unencrypted proposed labels. In one embodiment, secure multi-party computation techniques can also be applied, such that the client device and the server can jointly compute aggregated values for the proposed labels without exposing the user data directly to the sever.


Process Logic for Crowdsourcing Proposed Labels

Embodiments described herein provide logic that can be implemented on a client device and a server device as described herein to enable a server to crowdsource the generation of labels for training data. The crowdsourced labels can be generated across an array of client devices that can use a semi-supervised training technique to train a local generative adversarial network to propose labels for units of data provided by the server. The semi-supervised learning is performed using local user data stored on or accessible to the client device, as well as a sample of labeled data provided by the server. The systems described herein can enable crowdsourced labeling for various types of data including, but not limited to image data, text data, application access sequences, location sequences, and other types of data that can be used to train classifiers and/or predictors, such as image classifiers, text data classifiers, and text predictors. The trained classifiers and predictors can be used to enhance user experience when operating a computing device.



FIGS. 8A-8B illustrates logic 800, 810 to generate a proposed label on a client device, according to an embodiment. FIG. 8A illustrates general logic 800 to enable a client device to generate a crowdsourced proposed label. FIG. 8B illustrates more specific logic 810 to determine, on a client device, a label for a unit of unlabeled data provided by the server.


As shown in FIG. 8A, in one embodiment logic 800 can enable a client device, such as but not limited to one of the client devices 210 of FIG. 2, to receive a set of labeled data from a server, as shown at block 801. The client device, as shown at block 802, can also receive a unit of data from the server, the unit of data of a same type as the set of labeled data. For example, the set of labeled data and the unit of data from the server can each be of an image data type, a text data type, or another type of data that can be used to train a machine learning network, such as, but not limited to a machine learning classifier network or a machine learning predictor network. The logic 800 can enable the client device to determine a proposed label for the unit of data via a classification model on the mobile electronic device, as shown at block 803. The machine learning model can determine the proposed label for the unit of data based on the set of labeled data from the server and a set of unlabeled data associated with the mobile electronic device. The unlabeled data associated with the mobile electronic device can be data stored locally on the mobile electronic device or data retrieved from a remote storage service associated with a user of the mobile electronic device. The logic 800 can then enable the client device to encode the proposed label via a privacy algorithm to generate a privatized encoding of the proposed label, as shown at block 804. The logic 800 can then enable the client device to transmit the privatized encoding of the proposed label to the server, as shown at block 805.


As shown in FIG. 8B, in one embodiment, logic 810 can enable a client device as described herein to determine a proposed label via on-device semi-supervised learning. The on-device semi-supervised learning can be performed using a generative adversarial network as described herein.


In one embodiment, logic 810 can enable a client device to cluster a set of unlabeled data on a client device based on a set of labeled data received from a server. The logic 810 can enable the client device to cluster a set of unlabeled data based on a set of labeled data received from the server, as shown at block 811. The client device can then generate a first set of labeled data on the client device from the set of clustered unlabeled data, as shown at block 812. The logic 810 can then enable the client device to infer a classification score for the unit of data from the server based on a comparison of feature vectors of the first local set of labeled data and the unit of data, as shown at block 813. At block 814, the client device, based on logic 810, can determine a proposed label for the unit of data based on the classification score.



FIG. 9 illustrates logic 900 to enable a server to crowdsource labeling of unlabeled data, according to an embodiment. In one embodiment, the logic 900 can enable crowdsourced labeling that enables a set of unlabeled training data to be labeled via a set of proposed labels contributed by a large plurality of client devices. The crowdsourced labeling can be performed in a privatized manner, such that the database that stored the crowdsourced labels cannot be queried to determine the identity of any single contributor of crowdsourced data. The logic 900 can be performed on a server as described herein, such as the server 130 of FIG. 1A, FIG. 2, and FIG. 3.


In one embodiment, the logic 900 configures a server to send a set of labeled data to a set of multiple mobile electronic devices, each of the mobile electronic devices includes a first machine learning model, as shown at block 901. As shown at block 902, the logic 900 can configure the server to send a unit of data to the set of multiple mobile electronic devices. The set of multiple electronic devices can then generate a set of proposed labels for the unit of data. The server, based on logic 900, can then receive a set of proposed labels for the unit of data from the set of mobile electronic devices, as shown at block 903. The set of proposed labels can be encoded to mask individual contributors of each proposed label in the set of proposed labels. The encoding can be performed based on any of the privatization techniques described herein. As shown at block 904, the logic 900 can enable the server to process the set of proposed labels to determine a label to assign to the unit of data. The server can process the set of proposed labels to determine the most frequently proposed label for a unit of unlabeled data provided to the client device by the server. As shown at block 905, the logic 900 can enable the server to add the unit of data and the determined label to a training set for a second machine learning model. In one embodiment, the second machine learning model can be a variant of the first machine learning model, such that the client and server can engage in an iterative process to enhance the accuracy of a machine learning model. For example, the first machine learning model on the client devices can be used to train data that will be used to enhance the accuracy of a second machine learning model based on the server.


The second machine learning model can be trained using unlabeled data that is labeled via the crowdsourced labeling technique described herein. The second machine learning model can then be deployed to the client devices, for example, during an operating system update. The second machine learning model can then be used to generate proposed labels for data that can be used to train a third machine learning model. Additionally, data for multiple classifier and predictor models can be labeled, with the various classifier and predictor models being iteratively deployed to client devices as the various models mature and gain enhanced accuracy as classification and prediction techniques.



FIG. 10 illustrates compute architecture 1000 on a client device that can be used to enable on-device, semi-supervised training and inferencing using machine learning algorithms, according to embodiments described herein. In one embodiment, compute architecture 1000 includes a client labeling framework 1002 that can be configured to leverage a processing system 1020 on a client device. The client labeling framework 1002 includes a vision/image framework 1004, a language processing framework 1006, and one or more other frameworks 1008, which each can reference primitives provided by a core machine learning framework 1010. The core machine learning framework 1010 can access resources provided via a CPU acceleration layer 1012 and a GPU acceleration layer 1014. The CPU acceleration layer 1012 and the GPU acceleration layer 1014 each facilitate access to a processing system 1020 on the various client devices described herein. The processing system includes an application processor 1022 and a graphics processor 1024, each of which can be used to accelerate operations of the core machine learning framework 1010 and the various higher-level frameworks that operate via primitives provided via the core machine learning framework. In one embodiment, the various frameworks and hardware resources of the compute architecture 1000 can be used for inferencing operations via a machine learning model, as well as training operations for a machine learning model. For example, a client device can use the compute architecture 1000 to perform semi-supervised learning via a generative adversarial network (GAN) as described herein. The client device can then use the trained GAN to infer proposed labels for a unit of unlabeled data provided by a server.


Additional Exemplary Computing Devices


FIG. 11 is a block diagram of a device architecture 1100 for a mobile or embedded device, according to an embodiment. The device architecture 1100 includes a memory interface 1102, a processing system 1104 including one or more data processors, image processors and/or graphics processing units, and a peripherals interface 1106. The various components can be coupled by one or more communication buses or signal lines. The various components can be separate logical components or devices or can be integrated in one or more integrated circuits, such as in a system on a chip integrated circuit.


The memory interface 1102 can be coupled to memory 1150, which can include high-speed random-access memory such as static random-access memory (SRAM) or dynamic random-access memory (DRAM) and/or non-volatile memory, such as but not limited to flash memory (e.g., NAND flash, NOR flash, etc.).


Sensors, devices, and subsystems can be coupled to the peripherals interface 1106 to facilitate multiple functionalities. For example, a motion sensor 1110, a light sensor 1112, and a proximity sensor 1114 can be coupled to the peripherals interface 1106 to facilitate the mobile device functionality. One or more biometric sensor(s) 1115 may also be present, such as a fingerprint scanner for fingerprint recognition or an image sensor for facial recognition. Other sensors 1116 can also be connected to the peripherals interface 1106, such as a positioning system (e.g., GPS receiver), a temperature sensor, or other sensing device, to facilitate related functionalities. A camera subsystem 1120 and an optical sensor 1122, e.g., a charged coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS) optical sensor, can be utilized to facilitate camera functions, such as recording photographs and video clips.


Communication functions can be facilitated through one or more wireless communication subsystems 1124, which can include radio frequency receivers and transmitters and/or optical (e.g., infrared) receivers and transmitters. The specific design and implementation of the wireless communication subsystems 1124 can depend on the communication network(s) over which a mobile device is intended to operate. For example, a mobile device including the illustrated device architecture 1100 can include wireless communication subsystems 1124 designed to operate over a GSM network, a CDMA network, an LTE network, a Wi-Fi network, a Bluetooth network, or any other wireless network. In particular, the wireless communication subsystems 1124 can provide a communications mechanism over which a media playback application can retrieve resources from a remote media server or scheduled events from a remote calendar or event server.


An audio subsystem 1126 can be coupled to a speaker 1128 and a microphone 1130 to facilitate voice-enabled functions, such as voice recognition, voice replication, digital recording, and telephony functions. In smart media devices described herein, the audio subsystem 1126 can be a high-quality audio system including support for virtual surround sound.


The I/O subsystem 1140 can include a touch screen controller 1142 and/or other input controller(s) 1145. For computing devices including a display device, the touch screen controller 1142 can be coupled to a touch sensitive display system 1146 (e.g., touch-screen). The touch sensitive display system 1146 and touch screen controller 1142 can, for example, detect contact and movement and/or pressure using any of a plurality of touch and pressure sensing technologies, including but not limited to capacitive, resistive, infrared, and surface acoustic wave technologies, as well as other proximity sensor arrays or other elements for determining one or more points of contact with a touch sensitive display system 1146. Display output for the touch sensitive display system 1146 can be generated by a display controller 1143. In one embodiment, the display controller 1143 can provide frame data to the touch sensitive display system 1146 at a variable frame rate.


In one embodiment, a sensor controller 1144 is included to monitor, control, and/or processes data received from one or more of the motion sensor 1110, light sensor 1112, proximity sensor 1114, or other sensors 1116. The sensor controller 1144 can include logic to interpret sensor data to determine the occurrence of one of more motion events or activities by analysis of the sensor data from the sensors.


In one embodiment, the I/O subsystem 1140 includes other input controller(s) 1145 that can be coupled to other input/control devices 1148, such as one or more buttons, rocker switches, thumb-wheel, infrared port, USB port, and/or a pointer device such as a stylus, or control devices such as an up/down button for volume control of the speaker 1128 and/or the microphone 1130.


In one embodiment, the memory 1150 coupled to the memory interface 1102 can store instructions for an operating system 1152, including portable operating system interface (POSIX) compliant and non-compliant operating system or an embedded operating system. The operating system 1152 may include instructions for handling basic system services and for performing hardware dependent tasks. In some implementations, the operating system 1152 can be a kernel.


The memory 1150 can also store communication instructions 1154 to facilitate communicating with one or more additional devices, one or more computers and/or one or more servers, for example, to retrieve web resources from remote web servers. The memory 1150 can also include user interface instructions 1156, including graphical user interface instructions to facilitate graphic user interface processing.


Additionally, the memory 1150 can store sensor processing instructions 1158 to facilitate sensor-related processing and functions; telephony instructions 1160 to facilitate telephone-related processes and functions; messaging instructions 1162 to facilitate electronic-messaging related processes and functions; web browser instructions 1164 to facilitate web browsing-related processes and functions; media processing instructions 1166 to facilitate media processing-related processes and functions; location services instructions including GPS and/or navigation instructions 1168 and Wi-Fi based location instructions to facilitate location based functionality; camera instructions 1170 to facilitate camera-related processes and functions; and/or other software instructions 1172 to facilitate other processes and functions, e.g., security processes and functions, and processes and functions related to the systems. The memory 1150 may also store other software instructions such as web video instructions to facilitate web video-related processes and functions; and/or web shopping instructions to facilitate web shopping-related processes and functions. In some implementations, the media processing instructions 1166 are divided into audio processing instructions and video processing instructions to facilitate audio processing-related processes and functions and video processing-related processes and functions, respectively. A mobile equipment identifier, such as an International Mobile Equipment Identity (IMEI) 1174 or a similar hardware identifier can also be stored in memory 1150.


Each of the above identified instructions and applications can correspond to a set of instructions for performing one or more functions described above. These instructions need not be implemented as separate software programs, procedures, or modules. The memory 1150 can include additional instructions or fewer instructions. Furthermore, various functions may be implemented in hardware and/or in software, including in one or more signal processing and/or application specific integrated circuits.



FIG. 12 is a block diagram illustrating a computing system 1200 that can be used in conjunction with one or more of the embodiments described herein. The illustrated computing system 1200 can represent any of the devices or systems (e.g., client device 110, server 130) described herein that perform any of the processes, operations, or methods of the disclosure. Note that while the computing system illustrates various components, it is not intended to represent any particular architecture or manner of interconnecting the components as such details are not germane to the present disclosure. It will also be appreciated that other types of systems that have fewer or more components than shown may also be used with the present disclosure.


As shown, the computing system 1200 can include a bus 1205 which can be coupled to a processor 1210, ROM (Read Only Memory) 1220, RAM (Random Access Memory) 1225, and storage memory 1230 (e.g., non-volatile memory). The RAM 1225 is illustrated as volatile memory. However, in some embodiments the RAM 1225 can be non-volatile memory. The processor 1210 can retrieve stored instructions from one or more of the memories 1220, 1225, and 1230 and execute the instructions to perform processes, operations, or methods described herein. These memories represent examples of a non-transitory machine-readable medium (or computer-readable medium) or storage containing instructions which when executed by a computing system (or a processor), cause the computing system (or processor) to perform operations, processes, or methods described herein. The RAM 1225 can be implemented as, for example, dynamic RAM (DRAM), or other types of memory that require power continually in order to refresh or maintain the data in the memory. Storage memory 1230 can include, for example, magnetic, semiconductor, tape, optical, removable, non-removable, and other types of storage that maintain data even after power is removed from the system. It should be appreciated that storage memory 1230 can be remote from the system (e.g., accessible via a network).


A display controller 1250 can be coupled to the bus 1205 in order to receive display data to be displayed on a display device 1255, which can display any one of the user interface features or embodiments described herein and can be a local or a remote display device. The computing system 1200 can also include one or more input/output (I/O) components 1265 including mice, keyboards, touch screen, network interfaces, printers, speakers, and other devices. Typically, the I/O components 1265 are coupled to the system through an input/output controller 1260.


Modules 1270 (or components, units, functions, or logic) can represent any of the functions or engines described above, such as, for example, the privacy engine 353. Modules 1270 can reside, completely or at least partially, within the memories described above, or within a processor during execution thereof by the computing system. In addition, modules 1270 can be implemented as software, firmware, or functional circuitry within the computing system, or as combinations thereof.


In addition, the hardware-accelerated engines/functions are contemplated to include any implementations in hardware, firmware, or combination thereof, including various configurations which can include hardware/firmware integrated into the SoC as a separate processor, or included as special purpose CPU (or core), or integrated in a coprocessor on the circuit board, or contained on a chip of an extension circuit board, etc. Accordingly, although such accelerated functions are not necessarily required to implement differential privacy, some embodiments herein, can leverage the prevalence of specialized support for such functions (e.g., cryptographic functions) to potentially improve the overall efficiency of implementations.


It should be noted that the term “approximately” or “substantially” may be used herein and may be interpreted as “as nearly as practicable,” “within technical limitations,” and the like. In addition, the use of the term “or” indicates an inclusive or (e.g., and/or) unless otherwise specified.


Embodiments described herein provide a technique to crowdsource labeling of training data for a machine learning model while maintaining the privacy of the data provided by crowdsourcing participants. Client devices can be used to generate proposed labels for a unit of data to be used in a training dataset. One or more privacy mechanisms are used to protect user data when transmitting the data to a server.


One embodiment provides for a mobile electronic device comprising a non-transitory machine-readable medium to store instructions, the instructions to cause the mobile electronic device to receive a set of labeled data from a server; receive a unit of data from the server, the unit of data of a same type of data as the set of labeled data; determine a proposed label for the unit of data via a machine learning model on the mobile electronic device, the machine learning model to determine the proposed label for the unit of data based on the set of labeled data from the server and a set of unlabeled data associated with the mobile electronic device; encode the proposed label via a privacy algorithm to generate a privatized encoding of the proposed label; and transmit the privatized encoding of the proposed label to the server.


One embodiment provides for a data processing system comprising a memory device to store instructions and one or more processors to execute the instructions stored on the memory device. The instructions cause the data processing system to perform operations comprising sending a set of labeled data to a set of multiple mobile electronic devices, each of the mobile electronic devices including a first machine learning model; sending a unit of data to the set of multiple mobile electronic devices, the set of multiple electronic devices to generate a set of proposed labels for the unit of data; receiving a set of proposed labels for the unit of data from the set of mobile electronic devices, the set of proposed labels encoded to mask individual contributors of each proposed label in the set of proposed labels; processing the set of proposed labels to determine a label to assign to the unit of data; and adding the unit of data and the label to a training set for use in training a second machine learning model.


In the foregoing description, example embodiments of the disclosure have been described. It will be evident that various modifications can be made thereto without departing from the broader spirit and scope of the disclosure. The specification and drawings are, accordingly, to be regarded in an illustrative sense rather than a restrictive sense. The specifics in the descriptions and examples provided may be used anywhere in one or more embodiments. The various features of the different embodiments or examples may be variously combined with some features included and others excluded to suit a variety of different applications. Examples may include subject matter such as a method, means for performing acts of the method, at least one machine-readable medium including instructions that, when performed by a machine cause the machine to perform acts of the method, or of an apparatus or system according to embodiments and examples described herein. Additionally, various components described herein can be a means for performing the operations or functions described herein. Accordingly, the true scope of the embodiments will become apparent to the skilled practitioner upon a study of the drawings, specification, and following claims.

Claims
  • 1. A mobile electronic device comprising: a non-transitory machine-readable medium to store instructions;one or more processors to execute the instructions stored on the non-transitory machine-readable medium, the instructions to cause the mobile electronic device to: receive a set of labeled data from a server;receive a unit of data from the server, the unit of data of a same type of data as the set of labeled data;determine a proposed label for the unit of data via a machine learning model on the mobile electronic device, the machine learning model to determine the proposed label for the unit of data based on the set of labeled data from the server and a set of unlabeled data associated with the mobile electronic device;encode the proposed label via a privacy algorithm to generate a privatized encoding of the proposed label; andtransmit the privatized encoding of the proposed label to the server.
  • 2. The mobile electronic device as in claim 1, wherein the machine learning model is included in a system image installed to the mobile electronic device.
  • 3. The mobile electronic device as in claim 1, the mobile electronic device to receive the machine learning model from the server.
  • 4. The mobile electronic device as in claim 1, wherein the set of unlabeled data associated with the mobile electronic device is at least temporarily stored on the mobile electronic device.
  • 5. The mobile electronic device as in claim 4, wherein the mobile electronic device is associated with an account of a remote storage service and a subset of the set of unlabeled data is retrieved from the remote storage service.
  • 6. The mobile electronic device as in claim 1, wherein to determine the proposed label for the unit of data from the server, the machine learning model is to cause the one or more processors to: cluster the set of unlabeled data based on the set of labeled data from the server;compare the unit of data with a set of clustered unlabeled data; anddetermine the proposed label for the unit of data based on the comparison.
  • 7. The mobile electronic device as in claim 6, the machine learning model additionally to cause the one or more processors to: generate a first local set of labeled data from the set of clustered unlabeled data based on the set of labeled data from the server; andinfer a classification score for the unit of data from the server based on a comparison of feature vectors of the first local set of labeled data and the unit of data.
  • 8. The mobile electronic device as in claim 7, the one or more processors to determine the classification score for the unit of data from the server via a machine learning framework stored on the mobile electronic device.
  • 9. The mobile electronic device as in claim 7, the machine learning model to determine the proposed label for the unit of data from the server based additionally on a set of labeled data associated with the mobile electronic device that is distinct from the set of labeled data from the server.
  • 10. The mobile electronic device as in claim 1, wherein the machine learning model is part of a generative adversarial network.
  • 11. The mobile electronic device as in claim 1, wherein the privacy algorithm is to cause the mobile electronic device to transform the proposed label to mask an individual contributor of the proposed label.
  • 12. The mobile electronic device as in claim 11, wherein the privacy algorithm includes a secure multi-party compute operation or a homomorphic encryption operation.
  • 13. The mobile electronic device as in claim 12, wherein the privacy algorithm is a differential privacy algorithm.
  • 14. The mobile electronic device as in claim 13, wherein the privacy algorithm is a histogram-based differential privacy algorithm.
  • 15. The mobile electronic device as in claim 1, wherein the unit of data from the server, the set of labeled data from the server, and the set of unlabeled data associated with the mobile electronic device each have an image data type and the machine learning model on the mobile electronic device is an image classifier.
  • 16. The mobile electronic device as in claim 1, wherein the unit of data from the server, the set of labeled data from the server, and the set of unlabeled data associated with the mobile electronic device each have a text data type and the machine learning model on the mobile electronic device is a text data classifier.
  • 17. A data processing system comprising: a memory device to store instructions;one or more processors to execute the instructions stored on the memory device, the instructions to cause the data processing system to perform operations comprising: sending a set of labeled data to a set of multiple mobile electronic devices, each of the mobile electronic devices including a first machine learning model;sending a unit of data to the set of multiple mobile electronic devices, the set of multiple mobile electronic devices to generate a set of proposed labels for the unit of data;receiving a set of proposed labels for the unit of data from the set of multiple mobile electronic devices, the set of proposed labels encoded to mask individual contributors of each proposed label in the set of proposed labels;processing the set of proposed labels to determine a label to assign to the unit of data; andadding the unit of data and the label to a training set for use in training a second machine learning model.
  • 18. The data processing system as in claim 17, the operations additionally including training the second machine learning model on the data processing system using the training set, wherein the second machine learning model is an update of the first machine learning model.
  • 19. The data processing system as in claim 17, wherein the set of labeled data and the unit of data sent to the set of multiple mobile electronic devices each include image data and wherein the first and second machine learning models include image classifiers.
  • 20. The data processing system as in claim 17, wherein the set of labeled data and the unit of data sent to the set of multiple mobile electronic devices each include text data and wherein the first and second machine learning models include a text data classifier.
  • 21. The data processing system as in claim 17, wherein the set of proposed labels are at least partially encoded using a homomorphic encryption algorithm and processing the set of proposed labels includes performing a homomorphic addition operation.
  • 22. The data processing system as in claim 17, wherein the set of proposed labels are at least partially encoded using a differential privacy algorithm and processing the set of proposed labels includes generating a proposed label histogram.
  • 23. The data processing system as in claim 17, wherein the set of proposed labels are at least partially encoded using a differential privacy algorithm and processing the set of proposed labels includes applying a count-mean-sketch algorithm to the set of proposed labels.