Discriminative models, also referred to as conditional models, are a class of models frequently used for classification. In machine learning, it typically models the conditional distribution P(Y∣X), or it learns a direct decision rule that maps inputs X to outputs Y. Discriminative models are commonly used for classification and regression, where the main goal is accurate prediction on new data. They are typically used to solve binary classification problems, i.e. assign labels, such as pass/fail, win/lose, alive/dead or healthy/sick, to existing datapoints. Discriminative models are usually trained to separate classes or to minimize prediction error under a chosen loss function. They are often contrasted with generative models, which aim to model how the data are generated and can be used to sample new data. Types of discriminative models include logistic regression (LR), conditional random fields (CRFs), decision trees among many others.
Definition Unlike generative modelling, which studies the joint probability P(x,y), discriminative modeling studies the P(y|x) or maps the given unobserved variable (target) x to a class label y dependent on the observed variables (training samples). For example, in object recognition, x is likely to be a vector of raw pixels (or features extracted from the raw pixels of the image). Within a probabilistic framework, this is done by modeling the conditional probability distribution P(y|x), which can be used for predicting y from x. Note that there is still distinction between the conditional model and the discriminative model, though more often they are simply categorised as discriminative model.
Pure discriminative model vs. conditional model A conditional model models the conditional probability distribution, while the traditional discriminative model aims to optimize on mapping the input around the most similar trained samples.
Contrast with generative model In statistical classification, two main approaches are called the generative approach and the discriminative approach. These compute classifiers by different approaches, differing in the degree of statistical modelling. Terminology is inconsistent, but three major types can be distinguished:
A generative model is a statistical model of the joint probability distribution P(X,Y) on a given observable variable X and target variable Y; A generative model can be used to "generate" random instances (outcomes) of an observation x. A discriminative model is a model of the conditional probability P(Y∣X=x) of the target Y, given an observation x. It can be used to "discriminate" the value of the target variable Y, given an observation x. Classifiers computed without using a probability model are also referred to loosely as "discriminative". The distinction between these last two classes is not consistently made. An alternative division defines these symmetrically as:
a generative model is a model of the conditional probability of the observable X, given a target y, symbolically, P(X∣Y=y) a discriminative model is a model of the conditional probability of the target Y, given an observation x, symbolically, P(Y∣X=x) Regardless of precise definition, the terminology is constitutional because a generative model can be used to "generate" random instances (outcomes), either of an observation and target (x,y), or of an observation x given a target value y, while a discriminative model or discriminative classifier (without a model) can be used to "discriminate" the value of the target variable Y, given an observation x.
Contrast in approaches Let's say we are given the m class labels (classification) and n feature variables, Y:{y1,y2,…,ym},X:{x1,x2,…,xn}, as the training samples. A generative model takes the joint probability P(x,y), where x is the input and y is the label, and predicts the most possible known label y~∈Y for the unknown variable x~ using Bayes' theorem. Discriminative models, as opposed to generative models, do not allow one to generate samples from the joint distribution of observed and target variables. However, for tasks such as classification and regression that do not require the joint distribution, discriminative models can yield superior performance (in part because they have fewer variables to compute). On the other hand, generative models are typically more flexible than discriminative models in expressing dependencies in complex learning tasks. In addition, most discriminative models are inherently supervised and cannot easily support unsupervised learning. Application-specific details ultimately dictate the suitability of selecting a discriminative versus generative model. Discriminative models and generative models also differ in introducing the posterior possibility. To maintain the least expected loss, the minimization of result's misclassification should be acquired. In the discriminative model, the posterior probabilities, P(y|x), is inferred from a parametric model, where the parameters come from the training data. Points of estimation of the parameters are obtained from the maximization of likelihood or distribution computation over the parameters. On the other hand, considering that the generative models focus on the joint probability, the class posterior possibility P(k) is considered in Bayes' theorem, which is
P(y|x)=p(x|y)p(y)∑ip(x|i)p(i)=p(x|y)p(y)p(x).
Advantages and disadvantages in application In the repeated experiments, logistic regression and naive Bayes are applied here for different models on binary classification task, discriminative learning results in lower asymptotic errors, while generative one results in higher asymptotic errors faster. However, in Ulusoy and Bishop's joint work, Comparison of Generative and Discriminative Techniques for Object Detection and Classification, they state that the above statement is true only when the model is the appropriate one for data (i.e.the data distribution is correctly modeled by the generative model).
Advantages Significant advantages of using discriminative modeling are:
Higher accuracy, which mostly leads to better learning result. Allows simplification of the input and provides a direct approach to P(y|x) Saves calculation resource Generates lower asymptotic errors Compared with the advantages of using generative modeling:
… excerpt ends here. Continue reading the full article.