+ All Categories
Home > Documents > Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism...

Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism...

Date post: 05-Jul-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
40
Learning from Snapshot Examples Jacob Beal MIT CSAIL April, 2005
Transcript
Page 1: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Learning from Snapshot Examples

Jacob BealMIT CSAILApril, 2005

Page 2: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

Page 3: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

Page 4: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

● Space is cluttered with objects

Page 5: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

● Space is cluttered with objects

Page 6: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

● Time may be skewed externally or internally

Page 7: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

● Time may be skewed externally or internally

Page 8: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

● Time may be skewed externally or internally

Page 9: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

● Time may be skewed externally or internally

Page 10: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Associating a Lemon

Learner

● Time may be skewed externally or internally

Page 11: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Snapshot Learning Framework

Learner

SnapshotMechanism

LearningMechanism

Targets, Examples

Target Models

Per

cept

ual C

hann

els

● Bootstrapping feedback cycle– better model → better examples → better model

Page 12: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Mind

Snapshot Learning Framework

Learner

SnapshotMechanism

LearningMechanism

Targets, Examples

Target Models

Per

cept

ual C

hann

els

● What are the targets?● How can it choose good examples?

Page 13: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Targets

“Lemon” would be best, settle for its components● Each percept is a target● Learn each target independently

This means we'll learn each association several times

Page 14: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Examples from Samples

Input is DT sampling of evolving perceptual state● Incrementally select examples from samples● Can only learn about things coextensive in time

Solvable by buffering w. short term memory

Page 15: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Relevance of a Sample

● Create a relevance measure for each channel– High-relevance should indicate useful content

ColorRelevanceMeasure

Page 16: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Sparseness Assumptions

At the right level of abstraction, the world is sparse● Percepts are sparse across time

most of life doesn't involve lemons

● Percepts are sparse at each sample

most of life doesn't appear when the lemon does

Page 17: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Sparseness→ Irrelevant periods

Lots of irrelevant periods → lots of relevant periods

Time

Page 18: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Be choosy!

Many chances → take only the best– a few good >> many iffy

– avoid overfitting from closely correlated examples

Relevance peaks?

Time

Page 19: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Are peaks a good idea?

Color

Time

Rel

evan

ce

0

1

0

1

0

1

Shape

Smell

Consider the relevance measures as signals:

Sum

0

1

2

Projecting to a single measure loses a lot of info...

Page 20: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Top-Cliff Heuristic

● Generalizing “peak” to multiple dimensions– Some channel's relevance is falling

– No channel's relevance is rising

– All relevant channels have risen since their last drop

(channels recently co-active with currently active channels)

Color

Time

Rel

evan

ce0

10

10

1

Shape

Smell

Color

Time

Rel

evan

ce0

10

10

1

Shape

Smell

Page 21: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Top-Cliff Examples

Time

Rel

evan

ce

snapshot snapshot

1 2 3 4 5 6

0

1

0

1

0

1

Color

Shape

Smell

Page 22: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Experiment: Learning from Examples

● Sequence of randomly generated examples● Transition between examples in random order

Mind

Learner

SnapshotMechanism

LearningMechanism

Page 23: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Learning from Examples

● Sequence of randomly generated examples● Transition between examples in random order

Mind

Learner

SnapshotMechanism

LearningMechanism

Page 24: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Learning from Examples

● Sequence of randomly generated examples● Transition between examples in random order

Mind

Learner

SnapshotMechanism

LearningMechanism

Page 25: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Learning from Examples

● Sequence of randomly generated examples● Transition between examples in random order

Mind

Learner

SnapshotMechanism

LearningMechanism

Page 26: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Learning from Examples

● Sequence of randomly generated examples● Transition between examples in random order

Mind

Learner

SnapshotMechanism

LearningMechanism

Page 27: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Learning from Examples

● Sequence of randomly generated examples● Transition between examples in random order

Mind

Learner

SnapshotMechanism

LearningMechanism

Page 28: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Applying Snapshot Learning

● Target Model: {possible associate, confidence}● Modified Hebbian Learning● Relevance = # of possible associates present● Extra virtual channel for target percept

– Relevance 1 if present, 0 if absent

– Determines if example is positive or negative

Page 29: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Modified Hebbian Learning

● Initial set: percepts from first relevant period– Late entry is possible but difficult

● Examples adjust confidence levels– Positive Example: +1 if present, -1 if absent

– Negative Example: -1 if present, 0 if absent

– Confidence < P → prune out associate!● Same channel as target are harder to prune● If no associates, restart

Page 30: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Experimental Parameters

● 50 features● 2 channels● 1 percept/feature/channel = 100 targets● Randomly generated examples, 2-6 features/exa● Random transition between examples

Page 31: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Top-Cliff vs. Controls

● 10 trials of 1000 examples each

Page 32: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Predictable Variation w. Parameters

Page 33: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Resilient to Adverse Conditions

Page 34: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

...much more than the controls...

Page 35: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Experiment: Learning w/o a Teacher

What if there's no teacher providing examples?– A teacher guarantees there are associations...

– ... but world has lots of structure!

● Without a teacher, the system will still find targets and examples.

Will they teach it anything?

Page 36: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

4-Way Intersection Model

● 5 locations (N,S,E,W,Center)● 11 types of vehicle (Sedan, SUV, etc.)

– Cars arrive randomly, with random exit goals.

– Arrive moving, but queue up if blocked.

– Moving or starting moving takes 1 second.

– Left turns only when clear.

● 6 lights (NS-red, EW-green, etc.)– 60 second cycle: 27 green, 3 yellow, 30 red

– Go on green, maybe yellow, right on red when clear.

Page 37: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Intersection Percepts

● 6 channels: N, S, E, W, Center, Light– Cardinal directions: type of 1st in queue, exiting cars

– Center: types of cars there

– Light: two active lights

● Distinguishable copy of previous percepts● Random transitions, as before

(L NS_GREEN EW_RED PREV_NS_GREEN PREV_EW_RED) (N) (S PREV_CONVERTIBLE) (C CONVERTIBLE)

(E SEDAN PREV_SEDAN) (W COMPACT PREV_COMPACT)

Page 38: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

What does it learn?● After 16 light cycles:

– Lights don't depend on cars

– Stoplight state transitions (97% perfect)

EW_GREEN = PREV_NS_RED, PREV_EW_GREEN, PREV_NS_YELLOW, NS_REDEW_YELLOW = PREV_EW_YELLOW, NS_RED, PREV_EW_GREEN, PREV_NS_REDEW_RED = NS_YELLOW, PREV_EW_RED, PREV_NS_GREEN, NS_GREENNS_GREEN = PREV_EW_RED, PREV_NS_GREEN, EW_RED, PREV_EW_YELLOWNS_YELLOW = PREV_NS_YELLOW, EW_RED, PREV_NS_GREEN, PREV_EW_REDNS_RED = PREV_NS_RED, PREV_EW_GREEN, EW_GREEN, PREV_NS_YELLOW

PREV_EW_GREEN = PREV_NS_RED, NS_RED, EW_GREENPREV_EW_YELLOW = PREV_NS_GREEN, PREV_NS_RED, NS_GREEN EW_REDPREV_EW_RED = PREV_NS_YELLOW, NS_YELLOW, EW_RED, NS_GREEN, PREV_NS_GREENPREV_NS_GREEN = PREV_NS_YELLOW, NS_YELLOW, PREV_EW_RED, EW_RED, NS_GREENPREV_NS_YELLOW = EW_GREEN, NS_RED, PREV_EW_RED, NS_YELLOWPREV_NS_RED = PREV_EW_RED, EW_RED, PREV_EW_YELLOW, NS_GREEN

Page 39: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Reconstructed FSM

Page 40: Jacob Beal MIT CSAIL April, 2005€¦ · Snapshot Learning Framework Learner Snapshot Mechanism Learning Mechanism Targets, Examples Perceptual Channels Target Models Bootstrapping

Summary

● Snapshot learning simplifies a hard problem– Top-Cliff finds sparse examples incrementally

– Feedback improves quality of examples over time

– It's easier to find good examples for single targets

● Snapshot learning works for sequences of examples or a predictably evolving state

● Pretending there's a teacher helps learn!


Recommended