210 likes | 327 Views
NVM. MEM. PU. In-memory Accelerators with Memristors. Yuval Cassuto Koby Crammer Avinoam Kolodny Technion – EE ICRI-CI Retreat May 8, 2013. 3-way Collaboration. K. Crammer. ML App. Y. Cassuto. Representations. A. Kolodny. Devices. The Data Deluge. Computing. Mobile,
E N D
NVM MEM PU In-memory Accelerators with Memristors Yuval Cassuto Koby Crammer AvinoamKolodny Technion – EE ICRI-CI Retreat May 8, 2013
3-way Collaboration K. Crammer ML App. Y. Cassuto Representations A. Kolodny Devices
The Data Deluge Computing Mobile, Cloud
Non-Volatile Memories 101 density + logic! Memristors NANDFlash Mass Storage PROM EPROM E2PROM functionality
Non-Volatile Memories 101 density + logic! Memristors NANDFlash Main Memory PROM EPROM E2PROM functionality
Memristor Readout Vg cij cij=0 high resistance low current sensed cij=1 low resistance high current sensed Vo RL
Sneak Paths Vg 1 1 0 1 cij=0 high resistance low current sensed cij=1 low resistance high current sensed 1 1 Vo RL Desired Path Sneak Path
Two Solutions 0 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0 Poor capacity High read power
Our Mixed Solution b YC, E. Yaakobi, S. Kvatinsky, ISIT 2013
Results Summary 1) Fixed partition 2) Sliding window • Higher capacity • e.g. 0.465 vs. 0.423 for b=7 • Column-by-column encoding, optimal YC, E. Yaakobi, S. Kvatinsky, ISIT 2013
In-memory Acceleration • Motivation: transfer bottlenecks • Method: compute in memory, transfer results • What to compute?
Similarity Inner Products Trial 110011000101 Hyp. 1 000011011011 010111010101 Hyp. 2 110011000101 110011000101 000011000001 010011000101 ∑ ∑ =3 =5 Less similar More similar
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
Memristor Inner Products (ideal) Trial 110011000101 Hyp. 1 000011011011 R GT=3/2R 2R 2R 2R R=∞ Output = 3· Const Inner product
Ideal Inner Products Hamming distance in 3 measurements: 1 3 2
Real Inner Products Error terms
Evaluation • Can compute Hamming distance as if ideal • 3 measurements • plus arithmetic • Cannot compute inner product precisely in 1 measurement
Continued Research Transform input vectors to maximize precision • ML Theory: provable optimality (information-theoretic learning) • ML Practice: optimize transformations within real ML algorithms
Multi-level Inner Products R3 R2 R1 R3+R1 2R3 R1+R2 R=∞ + +