shortest path and neighborhood subgraph extraction on a … · we intend to plan to investigate...

43
ORNL is managed by UT-Battelle, LLC for the US Department of Energy Shortest Path and Neighborhood Subgraph Extraction on a Spiking Memristive Neuromorphic Implementation Catherine D. Schuman, Kathleen Hamilton, Tiffany Mintz, Md Musabbir Adnan, Bon Woong Ku, Sung-Kyu Lim and Garrett S. Rose Oak Ridge National Laboratory, University of Tennessee and Georgia Institute of Technology

Upload: vokiet

Post on 15-Jul-2019

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

ORNL is managed by UT-Battelle, LLC for the US Department of Energy

Shortest Path and Neighborhood Subgraph Extraction on a Spiking MemristiveNeuromorphic ImplementationCatherine D. Schuman, Kathleen Hamilton, Tiffany Mintz, Md MusabbirAdnan, Bon Woong Ku, Sung-Kyu Lim and Garrett S. Rose

Oak Ridge National Laboratory, University of Tennessee and Georgia Institute of Technology

Page 2: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

2

TENNLab Neuromorphic Research

Materials

Devices

Microarchitecture

System Architecture/Organization

System Software and Communications

Algorithms

Applications

neuromorphic.eecs.utk.edu

Page 3: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

3

What are Spiking Neuromorphic Systems?

• Non von-Neumann computers inspired by biological brains

• Can perform certain workloads with significantly less power than traditional architectures

• Resurgence in neuromorphic systems in recent years due to the rise of machine learning and deep learning applications

Source: https://www.nextplatform.com/2016/02/09/the-second-coming-of-neuromorphic-computing/

Page 4: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

4

Properties of Spiking Neuromorphic Systems

• Massively parallel computation

• Collocated processing and memory

• Simple processing elements that perform specific computations

• Simple communication between elements

• Event driven computation

• Stochastically firing neurons for noise

• Inherently scalable architectures

Page 5: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

5

Key research question: Can we use these properties for non-neural network and non-machine learning applications?

Page 6: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

6

Why do we care about non-neural network applications?

?

Page 7: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

7

How are spiking neuromorphic systems used?

• Through January 2017, less than 1 percent of the papers in neuromorphic computing that implemented an application did so with a non-neural network application

Source: Schuman, Catherine D., et al. "A survey of neuromorphic computing and neural networks in hardware." arXiv preprint arXiv:1705.06963 (2017).

Page 8: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

8

Example Non-Neural Network Applications

• Graph algorithms– See Abdullahi Ali’s poster on network flow

• Scientific simulations

• Constraint satisfaction and optimization problems– Several talks earlier this week (e.g., Sudoku and graph coloring)

• Solving partial differential equations through neural algorithms and Markov random walks– See Leah Reeder’s poster and Brad Aimone’s talk yesterday

• Composite algorithms through utility and numerical kernels

Page 9: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

9

Memristive Spiking Neuromorphic System

• Leaky integrate-and-fire neurons with programmable thresholds and refractory periods

• Synapses with programmable delays and weights, and some form of STDP

Accumulation Fire Learning IdleNeuron 9.81 pJ 12.5 pJ - 7.2 pJSynapse 1.45 pJ - 2.58 pJ 0.07 pJ

Source: • M. M. Adnan, S. Sayyaparaju et al., “A twin memristor synapse for spike timing dependent learning in neuromorphic systems,” in Proceedings of the 31st

IEEE International System-On-Chip Conference (SOCC). IEEE, 2018. To appear.• G. Chakma, M. M. Adnan et al., “Memristive mixed-signal neuromorphic systems: Energy-efficient learning at the circuit-level,” IEEE Journal on

Emerging and Selected Topics in Circuits and Systems, vol. 8, no. 1, pp. 125–136, 2018.• C. D. Schuman, R. Pooser et al., “Simulating and estimating the behavior of a neuromorphic co-processor,” in Proceedings of the Second International

Workshop on Post Moores Era Supercomputing. ACM, 2017, pp. 8–14.

Page 10: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

10

How do you map a problem onto neuromorphic systems?

• Need to convert your problem into using neurons, synapses, and spikes

• Need to define:– How to set up your network (network topology, parameters)– Where/when spikes should be applied– How long to run your neuromorphic systems– Where/when to read and write network properties

• We’ll walk through two graph problems:– Single source shortest path– Neighborhood subgraph extraction

Page 11: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

11

Single Source Shortest Path Embedding

• Graph G to Network N:– Vertex in G Neuron in network N with 0 threshold and a long enough

refractory period to make sure it fires only once– Edge in G Synapse in network N with weight of 1 and delay proportional to

the length of the edge in G

Page 12: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

12

Single Source Shortest Path Embedding

• Graph G to Network N:– Vertex in G Neuron in network N with 0 threshold and a long enough

refractory period to make sure it fires only once– Edge in G Synapse in network N with weight of 1 and delay proportional to

the length of the edge in G

• Steps for shortest path algorithm:1. Stimulate source neuron2. Simulate for long enough a single spike travel along every edge in the

network3. Read out spike times and updated graph

1. Spike times of each neuron give the length of the shortest path from the source node to each destination node

2. Potentiated edges give shortest paths

Page 13: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

13

Page 14: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

14

Stimulate source neuron

Page 15: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

15

0Simulate long enough to let spikes propagate

Page 16: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

16

10

1

Simulate long enough to let spikes propagate

Page 17: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

17

21

2

2

0

1

Simulate long enough to let spikes propagate

Page 18: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

18

3

21

2

2

3

3

0

1

3

Simulate long enough to let spikes propagate

Page 19: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

19

3

2

4

1

2

2

3 4

3

0

14

3

Simulate long enough to let spikes propagate

Page 20: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

20

3

2

4

51

2

2

3

5

4

3

0

14

5

3

Simulate long enough to let spikes propagate

Page 21: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

21

3

2

4

51

2

2

3

5

4

3

0

14

5

6

3

Read out spike times and updated graph

Page 22: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

22

Neighborhood Subgraph Extraction

• Initial Graph G to Network N:– Vertex in G Neuron in network N with threshold of 1 and refractory period of

1– Edge in G Synapse in network N with weight of 1 and delay of 2

Page 23: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

23

Neighborhood Subgraph Extraction

• Initial Graph G to Network N:– Vertex in G Neuron in network N with threshold of 1 and refractory period of

1– Edge in G Synapse in network N with weight of 1 and delay of 2

• Steps for neighborhood subgraph extraction1. Stimulate source neuron2. Simulate for two time steps3. Read out spike times to determine nodes in subnetwork NS

4. Update graph so that threshold of all other neurons outside of NS is too high to fire

5. Simultaneously fire all neurons in set NS and simulate for two time steps.6. Read out graph to get potentiated edges, which are the edges for the

subgraph

Page 24: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

24

Stimulate source neuron

Page 25: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

25

Simulate to get immediate neighbors

Page 26: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

26

Read out which neurons spiked

Page 27: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

27

Update graph to set high thresholds for other neurons

Page 28: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

28

Update graph to set high thresholds for other neurons

Page 29: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

29

Fire all neurons that spiked

Page 30: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

30

Fire all neurons that spiked

Page 31: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

31

Read out updated graph to find neighborhood edges

Page 32: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

32

Neuromorphic/CPU Breakdown

Shortest Path Neighborhood Subgraph Extraction

Spiking Neuromorphic Co-Processor (SNC) Run Time

O(|E(G|) O(1)

CPU Run Time O(|E(G)|) O(|V(G)|+|E(G)|)CPU -> SNC Network Loads

1 2

SNC -> GPU Network Reads

1 1

Page 33: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

33

Real-World Graphs

Graph Type Vertices EdgesroadNet-CA Undirected 1,965,206 2,766,607Ca-HepPh Undirected 12,008 118,521Amazon0621 Directed 403,394 3,387,388

• roadNet-CA: Road network in California

• Ca-HepPh: Collaboration network graph from the high energy physics topic on Arxiv

• Amazon0621 – Amazon co-purchasing network from June 1, 2003

Page 34: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

34

Energy Estimates for Each Graph

roadNet-CA ca-HepPh amazon0601Shortest Path 161.35 J 48.85 mJ 21.28 JNeighborhood 58.32 μJ 999.14 nJ 12.56 μJ

Page 35: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

35

Energy Estimates for Each Graph

roadNet-CA ca-HepPh amazon0601Shortest Path 161.35 J 48.85 mJ 21.28 JNeighborhood 58.32 μJ 999.14 nJ 12.56 μJ

020406080

100120140160180

Shortest Path - roadNet-CA

Page 36: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

36

What about other hardware?

Page 37: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

37

Types of Neuromorphic Implementations

SOENmrDANNADANNA2

• Mixed analog-digital implementation

• Synapses implemented with twin memristors

• Programmable

• Optoelectronic • Neurons implemented using

superconducting optoelectronics

• Delays are on neurons, not synapses

• Fully digital implementation• Two versions:

• DANNA2-dense is programmable

• DANNA2-sparse is application-specific

Mitchell, J. Parker, et al. "DANNA 2: Dynamic adaptive neural network arrays." Proceedings of the International Conference on Neuromorphic Systems. ACM, 2018.

Chakma, Gangotree, et al. "Memristive mixed-signal neuromorphic systems: Energy-efficient learning at the circuit-level." IEEE Journal on Emerging and Selected Topics in Circuits and Systems 8.1 (2018): 125-136.

Buckley, Sonia, et al. "Design of superconducting optoelectronic networks for neuromorphic computing." 2018 IEEE International Conference on Rebooting Computing (ICRC). IEEE, 2018.

Page 38: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

38

Another Example Benchmark Graph

• Example graph has 961 nodes and 2280 edges

• Graph is inspired by city-street layouts with some one-way streets and avenues and some two-way streets

• Find shortest path from source node to all other nodes

Page 39: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

39

Shortest Path

Implementation Neurons Synapses EnergyDANNA2-dense 961 2280 8.27 uJDANNA2-sparse 961 2280 1.47 uJmrDANNA 961 2280 1.84 uJSOEN 3242 4560 0.0599 uJ

Page 40: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

40

Summary• Mapping non-machine learning tasks to neuromorphic systems is

non-trivial, even for graph algorithms where the mapping is relatively natural.

• Different tasks can have radically different performance profiles.

• The goal of this work was not to give a direct comparison of neuromorphic vs. CPU or GPU approaches to graph algorithms, but we intend to plan to investigate that in future work.

Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based primitives for graph algorithms.” Available on arXiv: https://arxiv.org/abs/1903.10574

Page 41: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

41

Acknowledgements

• This work is funded by the Laboratory Directed Research and Development Program of Oak Ridge National Laboratory.

• The research used resources of the Oak Ridge Leadership Computing Facility.

Md MusabbirAdnan

Garrett Rose Bon WoongKyu

Sung KyuLim

Tiffany MintzKathleen Hamilton

Page 42: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

4242

International Conference on Neuromorphic Systems

• Join us at ICONS!• July 23-25, 2019• Knoxville, Tennessee• Submission deadline:

– April 15, 2019• Short and full papers• Posters/short talk

submissions• Tutorials and workshops• Special sessions https://ornlcda.github.io/icons2019

Page 43: Shortest Path and Neighborhood Subgraph Extraction on a … · we intend to plan to investigate that in future work. Kathleen Hamilton, Tiffany Mintz, and Catherine Schuman. “Spike-based

4343

Thank you!Email: [email protected]

Website: CatherineSchuman.com