ADJUSTING A CLASSIFICATION MODEL BASED ON ADVERSARIAL PREDICTIONS
This application addresses techniques to de-correlate classifiers (e.g., render them neutral) to certain target groups. Classifiers can, for example, determine the intent of content (e.g., shopping, news, etc.), flag target content, etc. Sometimes, these classification categories may be incorrectly associated with certain types, groups, characteristics, etc. Exemplary embodiments retrain a classifier's model in an adversarial manner to render it no better than chance at detecting whether content originated from an entity embodying a target type, group, characteristic, etc.
1 . A method comprising:
accessing a classification model, the classification model applying a parameter to classify an input;
applying an adversarial classifier to predict whether the input originated with the target group; and
adjusting the parameter of the classification model to render the adversarial classifier worse at predicting whether the input originated with the target group.
2 . The method of claim 1 , wherein a main classifier classifies the input based on the model and provides the classification to the adversarial classifier, the classification used by the adversarial classifier to predict whether the input originated with the target group.
3 . The method of claim 1 , wherein a main classifier classifies the input based on the model, and the classification model collapses to a cost function exposed to both the adversarial classifier and the main classifier.
4 . The method of claim 1 , wherein a decorrelator compares the prediction of the adversarial classifier to a label associated with the input to determine whether the adversarial classifier's prediction corresponds to the label.
5 . The method of claim 1 , wherein the applying and adjusting are repeated until a stopping condition is met, the stopping condition comprising one or more of:
the adversarial classifier becomes no better than chance at predicting whether the input originated with the target group, or
a prediction accuracy of the adversarial classifier's drops by more than a predetermined threshold amount after adjusting the parameter of the classification model.
6 . The method of claim 1 , wherein a main classifier classifies the input based on the classification model, and further comprising:
applying the classification model having the adjusted parameter to classify language with the main classifier as the language is generated,
determining that the language is classified in a target classification; and
generating an instruction for a display device to display a warning that the language may be classified in the target classification.
7 . The method of claim 1 , wherein a main classifier classifies the input based on the classification model, and further comprising:
applying the classification model having the adjusted parameter to classify pre-existing content,
determining that the content is classified in a target classification; and
flagging the pre-existing content for review.
8 . A non-transitory computer-readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to:
access a classification model, the classification model applying a parameter to classify an input;
apply an adversarial classifier to predict whether the input originated with the target group; and
adjust the parameter of the classification model to render the adversarial classifier worse at predicting whether the input originated with the target group.
9 . The medium of claim 8 , wherein a main classifier classifies the input based on the model and provides the classification to the adversarial classifier, the classification used by the adversarial classifier to predict whether the input originated with the target group.
10 . The medium of claim 8 , wherein a main classifier classifies the input based on the model, and the classification model collapses to a cost function exposed to both the adversarial classifier and the main classifier.
11 . The medium of claim 8 , wherein a decorrelator compares the prediction of the adversarial classifier to a label associated with the input to determine whether the adversarial classifier's prediction corresponds to the label.
12 . The medium of claim 8 , wherein the applying and adjusting are repeated until a stopping condition is met, the stopping condition comprising one or more of:
the adversarial classifier becomes no better than chance at predicting whether the input originated with the target group, or
a prediction accuracy of the adversarial classifier's drops by more than a predetermined threshold amount after adjusting the parameter of the classification model.
13 . The medium of claim 8 , wherein a main classifier classifies the input based on the classification model, and further storing instructions for:
applying the classification model having the adjusted parameter to classify language with the main classifier as the language is generated,
determining that the language is classified in a target classification; and
generating an instruction for a display device to display a warning that the language may be classified in the target classification.
14 . The medium of claim 8 , wherein a main classifier classifies the input based on the classification model, and further storing instructions for:
applying the classification model having the adjusted parameter to classify pre-existing content,
determining that the content is classified in a target classification; and
flagging the pre-existing content for review.
15 . An apparatus comprising:
a non-transitory computer-readable medium configured to store a classification model, the classification model applying a parameter to classify an input;
a hardware processor circuit;
an adversarial classifier executable on the processor circuit to predict whether the input originated with the target group; and
a decorrelator executable on the processor circuit to adjust the parameter of the classification model to render the adversarial classifier worse at predicting whether the input originated with the target group.
16 . The apparatus of claim 15 , wherein a main classifier classifies the input based on the model and provides the classification to the adversarial classifier, the classification used by the adversarial classifier to predict whether the input originated with the target group.
17 . The apparatus of claim 15 , wherein a main classifier classifies the input based on the model, and the classification model collapses to a cost function exposed to both the adversarial classifier and the main classifier.
18 . The apparatus of claim 15 , wherein a decorrelator compares the prediction of the adversarial classifier to a label associated with the input to determine whether the adversarial classifier's prediction corresponds to the label.
19 . The apparatus of claim 15 , wherein the applying and adjusting are repeated until a stopping condition is met, the stopping condition comprising one or more of:
the adversarial classifier becomes no better than chance at predicting whether the input originated with the target group, or
a prediction accuracy of the adversarial classifier's drops by more than a predetermined threshold amount after adjusting the parameter of the classification model.
20 . The apparatus of claim 15 , wherein a main classifier classifies the input based on the classification model, and the processor circuit is further configured to:
apply the classification model having the adjusted parameter to classify language with the main classifier as the language is generated,
determine that the language is classified in a target classification; and
generate an instruction for a display device to display a warning that the language may be classified in the target classification.