Skip to content Skip to navigation

Connexions

You are here: Home » Content » Probably Approximately Correct (PAC) Learning

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Endorsed by Endorsed (What does "Endorsed by" mean?)

This content has been endorsed by the organizations listed. Click each link for a list of all content endorsed by the organization.

Recently Viewed

This feature requires Javascript to be enabled.
Download
x

Download module as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...
Reuse / Edit
x

Module:

Add to a lens
x

Add module to:

Add to Favorites
x

Add module to:

 

Probably Approximately Correct (PAC) Learning

Module by: Robert Nowak. E-mail the author

Introduction

Overview of the Learning Problem

The fundamental problem in learning from data is proper Model Selection. As we have seen in the previous lectures, a model that is too complex could overfit the training data (causing an estimation error) and a model that is too simple could be a bad approximation of the function that we are trying to estimate (causing an approximation error). The estimation error arises because of the fact that we do not know the true joint distribution of data in the input and output space, and therefore we minimize the empirical risk (which, for each candidate model, is a random number depending on the data) and estimate the average risk again from the limited number of training samples we have. The approximation error measures how well the functions in the chosen model space can approximate the underlying relationship between the output space on the input space, and in general improves as the “size” of our model space increases.

Lecture Outline

In the preceding lectures, we looked at some solutions to deal with the overfitting problem. The basic approach followed was the Method of Sieves, in which the complexity of the model space was chosen as a function of the number of training samples. In particular, both the denoising and classification problems we looked at consider estimators based on histogram partitions. The size of the partition was an increasing function of the number of training samples. In this lecture, we will refine our learning methods further introduce model selection procedures that automatically adapt to the distribution of the training data, rather than basing the model class solely on the number of samples. This sort of adaptivity will play a major role in the design of more effective classifiers and denoising methods. The key to designing data-adaptive model selection procedures is obtaining useful upper bounds on the estimation error. To this end, we will introduce the idea of “Probably Approximately Correct” learning methods.

Recap: Method of Sieves

The method of Sieves underpinned our approaches in the denoising problem and in the histogram classification problem. Recall that the basic idea is to define a sequence of model spaces F1F1, F2F2, ...of increasing complexity, and then given the training data {Xi,Yi}i=1n{Xi,Yi}i=1n select a model according to

f n ^ = arg min f F n R ^ n ( f ) . f n ^ = arg min f F n R ^ n ( f ) . (1)

The choice of the model space FnFn (and hence the model complexity and structure) is determined completely by the sample size nn, and does not depend on the (empirical) distribution of training data. This is a major limitation of the sieve method. In a nutshell, the method of sieves tells us to average the data in a certain way ( e.g., over a partition of XX) based on the sample size, independent on the sample values themselves.

In general, learning basically comprises of two things:

  1. Averaging data to reduce variability
  2. Deciding where (or how) to average

Sieves basically force us to deal with (2) a priori (before we analyze the training data). This will lead to suboptimal classifiers and estimators, in general. Indeed deciding where/how to average is the really interesting and fundamental aspect of learning; once this is decided we have effectively solved the learing problem. There are at least two possibilities for breaking the rigidity of the method of sieves, as we shall see in the following section.

Data Adaptive Model Spaces

Structural Risk Minimization (SRM)

The basic idea is to select FnFn based on the training data themselves. Let F1F1, F2F2, ...be a sequence of model spaces of increasing sizes/complexities with

lim k inf f F k R ( f ) = R * . lim k inf f F k R ( f ) = R * . (2)

Let

f ^ n , k = arg min f F k R ^ n ( f ) f ^ n , k = arg min f F k R ^ n ( f ) (3)

be a function from FkFk that minimizes the empirical risk. This gives us a sequence of selected models f^n,1,f^n,2,f^n,1,f^n,2, Also associate with each set FkFk a value Cn,k>0Cn,k>0 that measures the complexity or “size” of the set FkFk. Typically, Cn,kCn,k is monotonically increasing with kk (since the sets are of increasing complexity) and decreasing with nn (since we become more confident with more training data). More precisely, suppose that the Cn,kCn,k chosen so that

P sup f F k | R ^ n ( f ) - R ( f ) | > C n , k < δ P sup f F k | R ^ n ( f ) - R ( f ) | > C n , k < δ (4)

for some small δ>0δ>0. Then we may conclude that with very high probability (at least 1-δ1-δ) the empirical risk R^nR^n is within Cn,kCn,k of RR uniformly on the class FkFk. This type of bound suffices to bound the estimation error (variance) of the model selection process of the form R(f)R^n(f)+Cn,kR(f)R^n(f)+Cn,k, and SRM selects the final model by minimizing this bound over all functions in k1Fkk1Fk. The selected model is given by f^n,k^f^n,k^, where

k ^ = arg min k 1 R ^ n ( f ^ n , k ) + C n , k . k ^ = arg min k 1 R ^ n ( f ^ n , k ) + C n , k . (5)

A typical example could be the use of VC dimension to characterize the complexity of the collection of model spaces i.e.,Cn,kCn,k is derived from a bound on the estimation error.

Complexity Regularization

Consider a very large class of candidate models FF. To each fFfF assign a complexity value Cn(f)Cn(f). Assume that the complexity value is chosen so that

P sup f F | R ^ n ( f ) - R ( f ) | > C n ( f ) < δ . P sup f F | R ^ n ( f ) - R ( f ) | > C n ( f ) < δ . (6)

This probability bound also implies an upper bound on the estimation error and complexity regularization is based on the criterion

f ^ n = arg min f F R ^ n ( f ) + C n ( f ) . f ^ n = arg min f F R ^ n ( f ) + C n ( f ) . (7)

Complexity Regularization and SRM are very similar and equivalent in certain instances. A distinguishing feature of SRM and complexity reqularization techniques is that the complexity and structure of the model is not fixed prior to examining the data; the data aid in the selection of the best complexity. In fact, the key difference compared to the Method of Sieves is that these techniques can allow the data to play an integral role in deciding where and how to average the data.

Probably Approximately Correct (PAC) learning

Probability bounds of the forms in Equation 4 and Equation 6 are the foundation for SRM and complexity regularization techniques. The simplest of these bounds are known as PAC bounds in the machine learning community.

Approximation and Estimation Errors

In order to develop complexity regularization schemes we will need to revisit the estimation error / approximation error trade-off. Let f^n=argminfFR^n(f)f^n=argminfFR^n(f) for some space of models FF.

R ( f ^ n ) - R * = R ( f ^ n ) - inf f F R ( f ) estimation Error + inf f F R ( f ) - R * approximation error R ( f ^ n ) - R * = R ( f ^ n ) - inf f F R ( f ) estimation Error + inf f F R ( f ) - R * approximation error (8)

The approximation error depends on how close f*f* is close to FF, and without making assumptions, this is unknown. The estimation error is quantifiable, and depends on the complexity or size of FF. The error decomposition is illustrated in Figure 1. The estimation error quantifies how much we can “trust” the empirical risk minimization process to select a model close to the best in a given class.

Figure 1: Relationship between the errors
Figure 1 (newfig.png)

Probability bounds of the forms in Equation 4 and Equation 6 guarantee that the empirical risk is uniformly close to the true risk, and using Equation 4 and Equation 6 it is possible to show that with high probability the selected model f^nf^n satisfies

R ( f ^ n ) - inf f F k R ( f ) C ( n , k ) R ( f ^ n ) - inf f F k R ( f ) C ( n , k ) (9)

or

R ( f ^ n ) - inf f F k R ( f ) C n ( f ) . R ( f ^ n ) - inf f F k R ( f ) C n ( f ) . (10)

The PAC Learning Model

The estimation error will be small if R(f^n)R(f^n) is close to inffFR(f)inffFR(f). PAC learning expresses this as follows. We want f^nf^n to be a “probably approximately correct” (PAC) model from FF. Formally, we say that f^nf^n is εε accurate with confidence 1-δ1-δ, or (ε,δ)-(ε,δ)-PAC for short, if

P R ( f ^ n ) - inf f F R ( f ) > ε < δ . P R ( f ^ n ) - inf f F R ( f ) > ε < δ . (11)

This says that the difference between R(f^n)R(f^n) and inffFR(f)inffFR(f) is greater than εε with probability less than δδ. Sometimes, especially in the machine learning community, PAC bounds are stated as, “with probability of at least 1-δ1-δ, |R(f^n)-inffFR(f)|ε|R(f^n)-inffFR(f)|ε

To introduce PAC bounds, let us consider a simple case. Let FFconsist of a finite number of models, and let |F||F| denote that number. Furthermore, assume that minfFR(f)=0minfFR(f)=0.

Example 1

FF= set of all histogram classifiers with M bins |F|=2M|F|=2M.

min f F R ( f ) = 0 a classifier in F that has a zero probability of error min f F R ( f ) = 0 a classifier in F that has a zero probability of error (12)

Theorem 1

Assume |F|<|F|< and minfFR(f)=0minfFR(f)=0, where R(f)=P(f(X)Y)R(f)=P(f(X)Y). Let f^n=argminfFR^n(f)f^n=argminfFR^n(f), where R^n(f)=1ni=1n1{f(Xi)Yi}R^n(f)=1ni=1n1{f(Xi)Yi}. Then for every nn and ε>0ε>0,

P R ( f ^ n ) > ε | F | e - n ε δ . P R ( f ^ n ) > ε | F | e - n ε δ . (13)
Proof

Since minfFR(f)=0minfFR(f)=0, it follows that R^n(f^n)=0R^n(f^n)=0. In fact, there may be several fFfF such that R^n(f)=0R^n(f)=0. Let G={f:R^n(f)=0}G={f:R^n(f)=0}.

P ( R ( f ^ n ) > ε ) P f G { R ( f ) > ε } = P f F { R ( f ) > ε , R ^ n ( f ) = 0 } = P f F : R ( f ) > ε { R ^ n ( f ) = 0 } f F : R ( f ) > ε P ( R ^ n ( f ) = 0 ) | F | . ( 1 - ε ) n P ( R ( f ^ n ) > ε ) P f G { R ( f ) > ε } = P f F { R ( f ) > ε , R ^ n ( f ) = 0 } = P f F : R ( f ) > ε { R ^ n ( f ) = 0 } f F : R ( f ) > ε P ( R ^ n ( f ) = 0 ) | F | . ( 1 - ε ) n (14)

The last inequality follows from the fact that if R(f)=P(f(X)Y)>εR(f)=P(f(X)Y)>ε, then the probability that nn i.i.d. samples will satisfy f(X)=Yf(X)=Y is less than or equal to (1-ε)n(1-ε)n. Note that this is simply the probability that R^n(f)=1ni=1n1{f(Xi)Yi}=0R^n(f)=1ni=1n1{f(Xi)Yi}=0. Finally apply the inequality 1-xe-x1-xe-x to obtain the desired result.

Note that for nn sufficiently large, δ=|F|e-nεδ=|F|e-nε is arbitrarily small. To achieve a (ε,δ)(ε,δ)-PAC bound for a desired ε>0ε>0 and δ>0δ>0 we require at least n=log|F|-logδεn=log|F|-logδε training examples.

Corollary 1

Assume that |F|<|F|< and minfFR(f)=0minfFR(f)=0. Then for every nn

E [ R ( f ^ n ) ] 1 + log | F | n . E [ R ( f ^ n ) ] 1 + log | F | n . (15)
Proof

Recall that for any non-negative random variable ZZ with finite mean, E[Z]=0P(Z>t)dtE[Z]=0P(Z>t)dt. This follows from an application of integration by parts.

E [ R ( f ^ n ) ] = 0 P ( R ( f ^ n ) > t ) d t = 0 u P ( R ( f ^ n ) > t ) 1 d t + u P ( R ( f ^ n ) > t ) d t , for any u > 0 u + | F | u e - n t d t = u + | F | n e - n u E [ R ( f ^ n ) ] = 0 P ( R ( f ^ n ) > t ) d t = 0 u P ( R ( f ^ n ) > t ) 1 d t + u P ( R ( f ^ n ) > t ) d t , for any u > 0 u + | F | u e - n t d t = u + | F | n e - n u (16)

Minimizing with respect to uu produces the smallest upper bound with u=log|F|nu=log|F|n

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.