• No results found

Learning theory, linear seperability and noisy data

N/A
N/A
Protected

Academic year: 2020

Share "Learning theory, linear seperability and noisy data"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Leaming Theory, Linear Separability

and

Noisy Data

Griff

L.

Bilbro

Wesley E. Snyder

Center for Communications and Signal Procesing

Department of Electrical and Computer Engineering

North Carolina State University

(2)

Learning Theory, Linear Separability, and

Noisy Data

GRIFF BILBRO AND WESLEY SNYDER

CENTER FOR COMMUNICATIONS AND SIGNAL PROCESSING

,

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

,

NORTH CAROLINA STATE UNIVERSITY, RALEIGH, NC 27695-7914.

Abstract

We apply the statistical mechanical theory of learning[6] to the deter-mination from examples of a line separating two classes, a simple enough example to admit intuition and comparision. We report the resulting depen-dence of the average prediction probability on the size, quality, and other features of the training set as well as the error to which the system is trained on the set.

1

Introduction

A theory of learning is distinct from any particular learning strategy and attempts to understand how the degree of learning depends on the number of examples, the size of the net (or more generally, the complexity of the family of models), the desired performance of the final trained net on unseen data, and the noise in the training examples.

Linear least squares fitting is a simple and familiar special case of the general issue. When the set of models is a linear combination of terms and the measure of error is the squared deviation between observation and model, then there is a uniquely determined choice for the best model. In the sim-plest such case, the best estimate of a constant

c,

given a training set of

(3)

A feedforward neural net of a given architecture can be regarded as a family of models parametrized by its weights. Training such a net involves the selection of a "best" weight vector on the basis of a set of examles, The selection is often made by minimizing an error that measures the consistency between a given member of the family of functions and the training set. The "best" model or weight vector can be chosen by backpropagation on a training set of input-output pairs. Little is understood about choosing the best architecture or determining how much data is necessary for training that particular architecture or how how well the resulting model will perform on unseen data.

This problem is important and timely enough to have elicited some con-troversy in the neural net community. One approach [5] is based on the techniques of Statistical Mechanics [6]

[4]

and attempts to predict "average" behavior of the net after training to a specified error on a specified num-ber of examples. The actual training set is used to define the "average" via a maximum entropy technique. In this paper we concern ourselves with this approach. The other approach[2] is based on the Vapnik-Chervonenkis dimension[l] of the family of models. It attempts to determine the num-ber of training examples necessary to acceptably bound the probability of unacceptable behavior. It is independent of the actual training set.

The principal attraction of the statistical mechanical theory is the promise of a simple Monte Carlo procedure to predict whether a given set of exam-ples is of sufficient size and quality to train a given net to a specified level of performance. Although the procedure may be simple, it has remained somewhat mysterious, perhaps because it has been applied only to problems that are too difficult to admit other analysis or even intuition. However, the theory is general and can be applied to problems that can be analysed in other ways and that can be understood intuitively.

(4)

2

The Problem

Given a finite number of possibly noisy samples from two linearly separable classes in the plane, how is the determination of a separating line affected by the number of samples, the distribution of samples, by the error to which the family of models is trained, or the fraction of samples that are incorrect. We do not exclude the possibility of incorrect samples. The goal here is not to find the best model, but to explore the predictions that statistical mechanics makes about finding the best line.

2.1

The Data

A line of slope a and intercept

b

divides the unit square, x,y E [0,1], into two regions, identified by an indicator function

-

{I

if y

>

ax

+

b

f (

e ,y)

=

-1 if y

<

ax

+

b ·

(

1)

Following Tishby ei ale

[6],

we use the overline to distinguish the true (un-known) quantity from a variable used to estimate it. We draw samples s from a joint distribution

p(s,x,y) == p(slx,y)p(x,y),

(2)

{

I -

i

if s

==

1(

z , y )

p(slx,y) =

~

otherwise' (3)

where q E [0, 1] is the fraction of incorrect samples. Ifthere is no noise, q

=

0 and at any certain x,y, every measurement s

=

f(x,y). If q

=!'

a value

s of a training example contains no information about the line

a,

b,but the

locations of the measurements still follow p(e ,y).

where p(e ,y) describes the location of measurements (the distribution of inputs) and

2.2

The

Family

of Models

(4)

We model the true line y

=

ax

+

b

with family of lines y

=

ax

+

bparametrized by real values of a, band associate each with an indicator

{

I if y > ax

+

b

(5)

where the absence of the overline means that these a, b are variables. We define a model conditional distribution

e{3~(81:1:,y,a,b)

p(s!x,y,a,b) = 2cosh,B

in terms of an error measure

€(

S

I

z ,Y, a,b)== sf(z ,Y, a,b)

(5)

(6)

and a sensitivity f3, which is determined by specifying a desired value E for the average error and solving

'" (3.J

f

( ) ( ) LJ8-±1 e S hf.J

E

=

f

=

sf == -

=

tan fJ

2coshf3

(7)

for

f3.

Note that our choice of an error measure leads to an average error which is the correlation between the model function

f

and a measurement s

and is independent of a,b as required by the theory[6, Equation (6) on page 11-404] .

2.3

Theory

In this section we briefly review the statistical mechanical theory of learning as reported by Tishby, Levin, and Solla[6]. The quantity of interest is p(m) the average prediction probability [6, Equation (23), page 11-408] which is the probability that the system trained to a specified average error E on m examples will agree with an unseen example. They obtain the expression

(8)

which is the the ratio of two successive moments of a histogram h(O)C·Y). The mth moment is

The histogram is

h(O)(-y)

=

J

da

J

db p(O)(a, b)8(g(a, b) -,),

(9)

(6)

where 6 is the usual Dirac function, p(O)(a,b) is an initial distribution of models, and

g(a,b)

=

f

dx

f

dy

L

p(s,x,y)p(slx,y,a,b)

6=±1

(11)

is the average generalization of a certain model a,b in our notation. Using the delta function in Equation 10, we can rewrite Equation 9 as

(12)

which will prove convenient to implement.

The most controversial issue of this approach centers on the prior distri-bution of models p(O)(a, b). A similar question arises in Bayesian estimation theory, but is more serious here. Here the prior distribution is not the distri-bution of models before training, but rather the estimate of the distridistri-bution of trained models prior to the refinement of that estimate in accordance with the examples. If the training procedure were based on simulated annealing, the two alternatives would coincide[5]. Otherwise the prior must be chosen somehow to reflect the training algorithm of interest. As in Bayesian theory, some predictions are not very sensitive to the details of the prior.

2.4

Im plernent.at.ion

It is easy[3] to write Monte Carlo estimates of the above integrals. Using Equation 2 and the fact that the x,y inputs are drawn from p(x,y), we can write a Monte Carlo estimate of Equation 11 as

(13)

where N is the total number of examples. Since the output values s are presumably drawn from

p(SIXi,Yi)'

we further obtain

g(a,

b)

=

1 [

L

e13! (z;,IJ;,a,")

+

L

e-13! (Z;,y;,a,,,)] , (14)

2N cosh,8 iI6j=+1 iI6i=-1

(7)

(15)

~ m+l

(m) _ LJk 9k

P - ~ m'

LJk9k

We construct a collection of models ale, ble by statistically sampling the initial distribution p(O)(a, b) and use Equation 14 to associate agk == g(ale, ble )

with each possible model. The average prediction probability after training to an average error of E tanh (3 on m examples is given by Equation 8 which becomes

where we have used Equation 12.

3

Results

We report several experiments. A typical experiment involves two samples from two distributions: the training set of examples and the sample of lines drawn from the prior distribution of models.

3.1

Baseline exper-iment

A typical training set is shown in Figure 1. In this case the training set comprises 40 8,:£,Y triples with 20 positive 8

==

1 samples at locations drawn from a uniform distribution in the upper half of the unit square and and 20 negative s == -1 samples drawn similarly from the bottom half. The two set are linearly separable by a line y

==

x

+

b

that divides the unit square in half with a

==

1/2 and

b

==

o.

The prior set comprises 100 a,bpairs drawn independently from uniform distributions on -1

<

~l-'and 0

<

b

<

1. These sample sizes are small for Monte Carlo estimates, but sufficient for present purposes as shown by independent experiments.

A plot of the prediction probability p(m) as a function of training set size m is shown for several values of sensitivity {3in Figure 2. TIle prediction probability rises with increasing number of examples as expected. This shape arises from the elimination of members of the family of lines that are incon-sistent with the current m examples and the tendency of the surviving lines to better agree with the training set. By Equation 7, tanh{3 is the average correlation between prediction and observation, so that a high {3 corresponds to a more stringent requirement on the predictive performance of the system so that the curve climbs higher. In addition high {3 also implies that the

(8)

cess of eliminating inconsistent candidates is faster so the curve also climbs

faster. ~

((t\

~or.noise free ~~mplesq =~n Equation 3,

f3

= .8 is low. In Figure 3 the

prediction probabjlity shows a correlation of over 90% for (3 = 3 after only 8 or 10 examples. The average distance between locations of members of a

subset of

10

samples is O(

01/10) :::::::

O( .3) and only about half are on either

side of the line so that it seems likely to require about this many samples to bracket both sides of the separating line to within 10%.

3.2

Widely separated classes

If the distribution of locations p{z ,y)in Equation 2is chosen as in Figure 4, then the p(m) versus m rises faster and higher than for uniform p{z ,

y)

for corresponding values of

f3.

Even the rather low maximum value of (3 = .8 shows a correlation of over 80% after 5 examples.

3.3

N arrowly separated classes

If the distribution of locations p{z ,

y)

in Equation 2is chosen to be strongly peaked near the separating line as in Figure 6, then the p(m) versus m rises

slowly at first, but then very rapidly and ultimately somewhat higher than for uniform p{z ,y) at corresponding values of

r;.

Even for the highest curve of Figure 7, most of the training is predicted to occur at around 10examples.

3.4

Sensitivity to the prior distribution

p(O)(a,

b)

One important open question in the statistical mechanical theory of learning is how to choose the prior distribution of models p(O){a,b). Some features of

the theory depend strongly on the prior. In general, the prior cannot vanish in important regions of parameter space without jeopardizing the results qualitatively. However some features of the theory, such as the the general shape and the asymptotic values of p(m) versus m are often not sensitive to

some details of p(O). Even the numerical values of p(m) versus m can nearly

agree for apparently very different priors.

To demonstrate both disagreement and agreement, consider Figures 8, 9, and 10. All deal with the same set of noise free samples, but differ in prior distributions from which the collection of ak,bk were drawn.

,

(9)

(16)

In Figure 8, for reference, the prior was uniform in -1

<

a

<

1 and

o

<

b

<

1 as in the baseline case.

In Figure 9, the prior was strongly peaked at the true values

1

(,,_\)2

p(O)(a,b)=6(a-a) ~e- 2(r , y21rlT

a Dirac delta at the true value of the slope a

=

a

=

0, which effectively re-duces the dimension of the problem, and a Gaussian distribution on intercept

b,centered at the true value of b

=

b

=

1/2 and with a very small standard deviation ofIT

=

11

2 (i.e. a variance of less than .01). In this case, the system

starts at essentially the correct linear separator and practically no additional learning occurs.

In Figure 10, the prior distribution for a remains a delta on the true a as in Figure 9 but the distribution for the intercepts was shifted to be strongly peaked (and even weakly divergent) at b= 0 according to

(17)

which is properly normalized on the domain. Here the values of p(m) are depressed relative to Figure 8 by about 10% for highest curves shown and the knee at which most learning is done has shifted to training set sizes that are about 50% larger; from m

=

10 to m

=

15 for (3

=

1.0. It is remarkable that such an extreme modification of the prior changes nothing by even a factor of two.

3.5

Noise

If the value of qin Equation 3 is positive then a given example is incorrect with probability

i

and some of the information in the training set is lost. In general, the resulting training set is not linearly separable even though the true classes are. In any real situation, there is some positive chance that a given measurement is incorrect and a theory of learning that can treat noise is desirable.

Figure 11 shows how the a.verage prediction probability p(m) is reduced by

(10)

4

Conclusion

We have applied the new statistical mechanical theory of learning to the determination of linear separability in the plane. We study this problem to facilitate evaluation and development of the theory. We conclude that the resulting Monte Carlo estimates of learning are easy to compute, consistent with intuition, and probably useful in more complex problems.

5

Acknowledgements

We are pleased to thank B. Krishnakumar who studied the dependence of the predictions on p(~,y) the distribution of locations of samples in the training set; M. Vrhel for studying the effect of higher values of {3; F. Barry who studied the dependence of the predictions on variations of the prior; J. Hood and H. Potlapalli for investigating the effects of noise in the training set; T. Chase for studying the statistical variation of the Monte Carlo estimates; and K. Leinfelder, D. Nissman, and H. Zhou for independent examination of the baseline case.

References

[1] Y. S. Abu-Mostafa. The vapnik-chervonenkis dimension: Information versus complexity in learning. Neural Computation, 1:312-317, 1989.

[2] E. Baum. The perceptron algorithm is fast at modified valiant learning, 1989. Presented by E. Baum on Nov. 30 at IEEE Conf on NIPS.

[3]

G.

Bilbro. The statistical mechanics of learning a distribution. Technical report, The Center for Communications and Signal Processing at North Carolina State University, 1989.

[4] J. Denker, D. Schwartz, B. Wittner, S. Solla, R. Howard, L. Jackel, and J. Hopfield. Large automatic learning, rule extraction, and generaliza.tion.

Complex Systems, 1:877-922, 1987.

[5] S. Solla, N. Tishby, and E. Levin. Supervised learning: a theoretical framework, 1989. Presented by S. Solla on Nov. 28 at IEEE Conf on

(11)
(12)

I I I

f for ~ f

+

0.8

-

+

-++

+

+

+

+

+

+

+

+

+

+

+

0.6

-

-+

+

0 0

0.4 ~

-0 0

0

0.2 ~ 0

-0 0

0 0

0 0

0

00 I

I I 1

(13)

Curve set#1

0.95

0.9

0.85

0.8

Beta

=0.8

,_

... ...

-

---..-~~.. ...----~

---~~

...

~

---0.75

0.7

,. "" ~' / " / ' / ' " / , / , I , / ---~­ ..-.... _..

---Beta=0.3

---

_--

---

-,-

---...

-

...

. -....- - "

~--

---..-...

Beta

=

0.4

---

_-

--

-

, , -, ,. -",' ,. ,. ,. ,. ,. ,. ,. " ,. ~ I , I , I , I , I , I

0.6

0.65 0.55

(14)

10.00

9 •.=.:00~_ _

p(m) (xIO-I )

B.OO

1.00 6.00

o o

I

I I

(.A)

---\J

r

,

I\

:J

I

I.

I

• •

I

II

~

I

I,

O@

.- It ~

~~

(15)

1

r;/or

~

2-+ 1 1 I I

+

+

+

+

Points set#2

+

++

+

+

++

+

+

+ + +

+

0.8

-+

0.6

-0.4 ~

0.2

~

I

0.2

I

0.4

I

0.6

c

I

0.8

-o

o

<> c _

<> <>

o

°0 00

<> <>

o

<> <>

o

o

(16)

Curve set#2

0.95

0.9

0.85

Beta=O.8

-

---0.8

0.75

/

,

/

I

/

/

,

I

Beta

=

0.2

"

,

I

,

I

,

I I

,

I

Be~:~~

-

--

,,-"

"., "., ".,

"

,.

" , " , ",

///

-~-~~-~_Q~---/

---/

---/

--/

/ /

0.7

0.6

0.65

0.55

(17)

I

Points set#5

I

I

I

l---~---r---.---_,_----__,

0.8 ~

-0.6 -

-+

+

+

+

+

+

++

+

++

+++

+

+

+

+

+

0 00 0

0 0 0 0

0 0

0

o

0 0 0 0

0

0 0 0

0.4 ~

-0.2 -

-I

0.2

I

0.4

I

0.6

I

(18)

PIer1J, /7

Curveset #5

0.95 0.9 0.85 ~-~-~---~---­ ~----~ 30 25 " 20 ",' " ,'" 15 10 5 " ~/' / ~

Beta=O.8 I,/

I I I I I I I I I I , I , I I I , I , I , I , I , I , I , I , I I I , I , I I I , I I I I / , / , / , / ' / ...-"'~­

-

--,," " "

"

/

"

/

"

/ / / / /' / / / /' /' / /' Beta=0.4 /'/ /' / / / / / /

"

/

"

",,"Beta

=

0.3,,'" " ,

",-"

---

- '

- - - _- -- -- ' .... .... Beta=

_-=~_-:z:":

=-:: ________

-_\.L~----'

0.7

0.8

0.6

0.50~ -:-_---:~---~--_---Jl-.._-_--l-_-_--1 0.75

0.65

(19)

AI

1" -:: 5"iJ

N ,. ~ 50

i

deo.\

€A )

\.1)

::

(0)

o.

~)

nOise

=

¢

nlioc5

=-

/00

(vwOll?i/o{

rv.(~Y'

/iYlcs)

l---~--.---.----r----,----,----r_-_,

.§..-:

c'~

---

1)

---'1l4.out'

'ID.out' 'll5.out'

p-;,

1,0

l

P f~ ~

-~;.VIU

_---\

---\

---J--~ I.- __

-,- - \ --,:;,0,tI _

-,,-,-'

\---,..:_---~ "

,

-, "

, /'

I " f1.,~0.Lt - - --

---, /' ¥

-, /'

~

-r---I / /

_1---/

0.8

0.4

0.2

0<x<99inc= 10

o<

Y< 1 inc

=

0.2

(20)

l r r r r , .

-"11g.outS"

"11g.out4"

"llg.out3"

"11g.out2"

0.8

" .-f, ;., O·l

__

---7---.

---~:~~~---__ ---

t-.e :

().L-f

---i---0.6

.t::

o.

1.---,---

I

0.4

0.2

o

<x <100inc

=

20

o

<Y<1 inc

=

0.2

100

80

60 40

20

(21)

---~:~~~~?_---!/

O,~

---

_---1---P:.0,I,J

---~---­

."".-~~

f

=o.1.

-_

...---~

~---

---~ ~~­

~-"

-~--,

,

, ,

,

---,

,..-, ,..

, ,..

, , . . /

, /

, /

"

/

I / I / I /

" I . > - '

" I I _ , /

, / »"

0.6 ,/'

/

,,' 1

"llg.outS" "llg.out4" "llg.out3" "llg.out2"

"llg.outl"

0.8

---0.4

0.2

o

<x < 100 inc=20

o

<

y

<

1 inc

=

0.2

(22)

~

s

' - ' ~

0.8

0.7

Beta

=

0.8

Noise %age

=

0,25,50.

40

m

.-

.~)

\.tV\

F~

H,

P

'1J).

u~~~

~ ~

'-KsJ.

~·d .~.

II

References

Related documents

The purpose of this research is to know the effect of giving Strychnine bush extract to the dosage to get the dose of songga extract of wood which is effective to give the

It refers to a notarial act in which an individual on a single occasion: (a) appears in person before the notary public and presents an instrument or document; (b) is personally

education courses and conclude this instructional alternative is in the best interests of student learning, it is imperative to hire state certified physical education teachers,

This study aims to provide a systematic overview of the current global literature on differences in key health behaviours (that is, tobacco smoking, physical activity and

19% serve a county. Fourteen per cent of the centers provide service for adjoining states in addition to the states in which they are located; usually these adjoining states have

A basic task in sentiment analysis is classifying the polarity of a given text at the document, sentence, or feature/aspect level—whether the expressed opinion in

National Certificate in Beauty Services (Cosmetology) Level 3 Diploma in Beauty Therapy Level 5 Pat hway s Diagram: Di ploma i n Be auty T he rapy National Certificate in

The results were sensitive to: the remission rates maintained in responders to 'usual care' and to 5 mg/kg infliximab, the rate of remission induced by adalimumab in non-responders to