21
In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Embed Size (px)

Citation preview

Page 1: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

In-memory Accelerators with Memristors

Yuval CassutoKoby Crammer

Avinoam KolodnyTechnion – EEICRI-CI Retreat

May 8, 2013

PUMEMNVM

Page 2: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

3-way Collaboration

A. Kolodny

Y. Cassuto

K. CrammerML App.

Devices

Representations

Page 3: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

The Data Deluge

Mobile, Cloud

Computing

Page 4: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Non-Volatile Memories 101

functionality

density

PROM EPROM E2PROM

Memristors

Mass StorageNANDFlash

+ logic!

Page 5: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Non-Volatile Memories 101

functionality

density

PROM EPROM E2PROM

NANDFlash

Main Memory

Memristors+ logic!

Page 6: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Memristor Crossbar Arrays

Page 7: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Vg

RL

Vo

cij

cij=0 high resistance low current sensedcij=1 low resistance high current sensed

Memristor Readout

Page 8: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Vg

RL

Vo

0 1

1

1

Desired PathSneak Path

1

1

cij=0 high resistance low current sensedcij=1 low resistance high current sensed

Sneak Paths

Page 9: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Two Solutions

1 1 1

1 1 1

0 00

0 00

1

1

0 0 0 0 0

0 0 0 0 001 0 0 0 0

00 0 0 0 0

Poor capacityHigh read power

Page 10: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Our Mixed Solution

YC, E. Yaakobi, S. Kvatinsky, ISIT 2013

b

Page 11: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Results Summary

YC, E. Yaakobi, S. Kvatinsky, ISIT 2013

1) Fixed partition 2) Sliding window

• Higher capacity • e.g. 0.465 vs. 0.423 for

b=7 • Column-by-column encoding,

optimal

Page 12: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

In-memory Acceleration

• Motivation: transfer bottlenecks• Method: compute in memory,

transfer results• What to compute?

Page 13: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Similarity Inner Products

110011000101

000011011011

010111010101

Hyp. 1 Hyp. 2

Trial

110011000101

000011000001

∑ =3

110011000101

010011000101

∑ =5

More similarLess similar

Page 14: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Inner Products in ML

• K-Nearest Neighbors– Distance (Euclidean or Hamming)

• Kernel Methods– Low-dim nonlinear → high-dim linear– -2 high dimension image for K

• Graph based ML

Page 15: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Memristor Inner Products (ideal)

Trial

Hyp. 1

110011000101

000011011011

R=∞

GT=3/2R

R

2R 2R 2R

Output = 3· Const Inner product

Page 16: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Ideal Inner Products

𝒙

𝒚

Hamming distance in 3 measurements:

1 2 3

Page 17: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Real Inner Products

𝒙

𝒚

Error terms

Page 18: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Evaluation

• Can compute Hamming distance as if ideal– 3 measurements– plus arithmetic

• Cannot compute inner product precisely in 1 measurement

Page 19: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Continued Research

Transform input vectors to maximize precision

• ML Theory: provable optimality (information-theoretic learning)

• ML Practice: optimize transformations within real ML algorithms

Page 20: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Multi-level Inner Products

R=∞

R1

R1+R2

R2

R3

R3+R12R3

+ +

Page 21: In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013 PU MEM NVM

Thank You!