generic sensory prediction

34
Generic Sensory Prediction Bill Softky Telluride Neuromorphic Engineering Workshop Summer 2011

Upload: kevlyn

Post on 23-Feb-2016

51 views

Category:

Documents


0 download

DESCRIPTION

Generic Sensory Prediction. Bill Softky Telluride Neuromorphic Engineering Workshop Summer 2011. ----------------- Abstract trends -----------------. Predictive feedback. Feedforward “compression”. ----------------- raw sensory stream ---------------. Today: ONE compressor. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Generic Sensory Prediction

Generic Sensory Prediction

Bill SoftkyTelluride Neuromorphic Engineering WorkshopSummer 2011

Page 2: Generic Sensory Prediction

Feedforward “compression”

Predictive feedback

----------------- Abstract trends -----------------

----------------- raw sensory stream ---------------

Page 3: Generic Sensory Prediction

Today: ONE compressor.

Use the white images to predict the moving green ones

Page 4: Generic Sensory Prediction

Axioms

• Trans-modality: light, sound, tactile• Temporal • Unsupervised• Spatiotemporal compression• Strictly non-linear problem• Fake data for ground-truth validation

Page 5: Generic Sensory Prediction

Tricks

• Reversible piece-wise linear interpolation/extrapolation

• Represent sub-manifold• Compress space and time

separately• Sparse• CPU-intensive (for now)• ”Hello World” reference

implementation

Page 6: Generic Sensory Prediction

The sensory input space

• Low noise• High-dim: 8x8 = 64-pixel vector• Continuous motion 360 degrees• Constant speed• Toroidal boundary conditions

8

8

Page 7: Generic Sensory Prediction

How to learn this unsupervised?

• Discover/interpolate/extrapolate low-dim manifold• Discover/predict temporal evolution• Generalize across speeds

Page 8: Generic Sensory Prediction

Intrinsic generating structure• Points generated from 2-d (x,y) + toroidal manifold• HIGHLY nonlinear

X

Y

Page 9: Generic Sensory Prediction

Using “Isomap” to discover manifolds

1. Points on continuous low-dim manifold embedded in N-dim

2. i) inter-point matrix Dij ii) convert to via-neighbor Dij

iii) Pick top few Principal Components (u, v) as axes

3. Result: matched lists of low-dim and N-dim for each point (x1, x2, x3, x4, … x64 ) (u, v)

u

v

Page 10: Generic Sensory Prediction

Isomap discovers toroidal point-cloud

Page 11: Generic Sensory Prediction

Manifold stored by 30-1000 “parallel pearl pair” table

64-dim

4-dim

Page 12: Generic Sensory Prediction

Parallel paired pearl-polygon projection (“interpolation”)

i) Find 3 closest high-dim pearlsii) On their triangle, interpolate

to closest matchiii) Project to corresponding low-

dim mix (same convex weights)

Page 13: Generic Sensory Prediction

Bi-directional: same scheme low-dim to high-dim!“Pseudo-inversion”? “Cleaning up”?

Page 14: Generic Sensory Prediction

RECONSTRUCTION fidelity = 64-dim dot product =

Page 15: Generic Sensory Prediction

Dim-reduction recipe doesn’t matter: Isomap ~ Local Linear Embedding (“LLE”)

Page 16: Generic Sensory Prediction

Reconstruction fidelity varies by…• # pearls• Manifold & sensory dimension

Why?

“grid” d=2 5 x 5 8 x 8 11 x 11

“box” d=3 4 x 4 x 4 6 x 6 x 6

Page 17: Generic Sensory Prediction

Scaling heuristic: minimum “pearls per axis”

• (low-D + 1) points define local interpolation (cont’s plane/polygon)

• # axes = {25, 64, 121}

• Min # pearls = (low-D + 1 ) X (#axes)

Page 18: Generic Sensory Prediction

#pearls > min-pearls good reconstruction

Page 19: Generic Sensory Prediction

EXTRAPOLATION fidelity = 64-dim dot product = actual vs. “constant velocity” extrapolation actual

“constant velocity” extrapolation

Page 20: Generic Sensory Prediction

For prediction, measure extrapolation fidelity:

Page 21: Generic Sensory Prediction

Scaling redux: minimum “pearls per axis”….now curved saddle (not plane) for continuous derivative

• (low-D + 3) points define local saddle• # axes = {25, 64, 121}

• Min # pearls = (low-D + 3 ) X (#axes)

Page 22: Generic Sensory Prediction

#pearls > Min-pearls good reconstruction

.97

1.0

Page 23: Generic Sensory Prediction

• Discover/interpolate/extrapolate manifold• Discover/predict temporal evolution• Generalize across speeds

Page 24: Generic Sensory Prediction

Local “motion” extrapolation needs state+direction

Bi-linear “Reichart detector” A x B D

Now: tril-linear mapping A x B x C D

A’

BD

A

BC

D

A

D’

Page 25: Generic Sensory Prediction

Cross/outer product tri-linear vectorequal time-intervalsA x B x C = 4x4x4 = 64-dim

A4A1 A3A2B4B1 B3B2 B4B1 B3B2B4B1 B3B2B4B1 B3B2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

C4

C1

C3

C2

BC

ADT

DT

Page 26: Generic Sensory Prediction

Accumulate linear “transition matrix” A x B x C D4 x 4 x 4=64-dim 4-dim(like 4th-rank tensor, 3rd-order Markov)

Accumulate every outer product{A x B x C, D}

A x B x C

D

A x B x C(64-dim in)

D(4-dim out)

Page 27: Generic Sensory Prediction

Make one prediction for state D(t) – Choose many recent triplets with different DT– Use all recent history

A1

DT1 DT1DT1

D1(t)C1B1

A2

DT2 DT2 DT2

C2B2

A3

DT3 DT3 DT3

C3B3

D2(t)

D3(t)

Average these to predict D(t)

Transition matrix

Page 28: Generic Sensory Prediction

30 paired-pearls: • “bad” prediction• Avg accuracy 0.50

Page 29: Generic Sensory Prediction

1000 paired-pearls: • “good” prediction• Avg accuracy 0.97

Page 30: Generic Sensory Prediction

• Discover/interpolate/extrapolate manifold• Discover/predict temporal evolution• Generalize across speeds

Page 31: Generic Sensory Prediction

“Speed invariance”

• Learn on one “speed”• Assume transitions apply to all speeds• Rescale DT by d/dt(raw distance)

dist{ X(t) - X(t-Dt)

Dt

fast

slow

Page 32: Generic Sensory Prediction

Learnedspeed Double-speed Half-speed

Page 33: Generic Sensory Prediction

• Discover/interpolate/extrapolate manifold• Discover/predict temporal evolution• Generalize across speeds

Page 34: Generic Sensory Prediction

Future Directions• Echo-cancelling (“go backwards in time”)• Sudden onset• Multiple objects• Control• Hierarchy

Current needs:• Cool demo problems w/”ground truth”• Haptic? Rich structure?• Helpers!