ArticleslgStudy

science

Discriminative model

Discriminative model is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Discriminative model rather than just read about it. In short: 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.

Key takeaways

  • Discriminative model belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Discriminative model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Discriminative model from memory before moving on to harder problems.

Reference excerpt

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.

Worked examples

Example 1 — a first encounter with Discriminative model

Start with the simplest possible case. Write down what Discriminative model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Discriminative model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Discriminative model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Discriminative model

In research
Discriminative model appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Discriminative model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Discriminative model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Regression models, so understanding it makes those chapters shorter.
In everyday life
Look for Discriminative model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Discriminative model” →

How to study Discriminative model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Discriminative model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Discriminative model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Discriminative model in simple terms?

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.

Why does Discriminative model matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Discriminative model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Discriminative model.

Tags

  • Regression models

Keep exploring