MnnFast: A Fast and Scalable System Architecture for Memory-Augmented Neural Networks

By Hanhwi Jang, Joonsung Kim, Jae-Eon Jo, Jaewon Lee, Jang-Hyun Kim. 2019

73 citations recorded by the source corpus.

Memory-augmented neural networks are getting more attention from many researchers as they can make an inference with the previous history stored in memory. Especially, among these memory-augmented neural networks, memory networks are known for their huge reasoning power and capability to learn from a large number of inputs rather than other networks. As the size of input datasets rapidly grows, the necessity of large-scale memory networks continuously arises. Such large-scale memory networks provide excellent reasoning power; however, the current computer infrastructure cannot achieve scalable performance due to its limited system architecture. In this paper, we propose MnnFast, a novel system architecture for large-scale memory networks to achieve fast and scalable reasoning performance. We identify the performance problems of the current architecture by conducting extensive performance bottleneck analysis. Our in-depth analysis indicates that the current architecture suffers from three major performance problems: high memory bandwidth consumption, heavy computation, and cache contention. To overcome these performance problems, we propose three novel optimizations. First, to reduce the memory bandwidth consumption, we propose a new column-based algorithm with streaming which minimizes the size of data spills and hides most of the off-chip memory accessing overhead. Second, to decrease the high computational overhead, we propose a zero-skipping optimization to bypass a large amount of output computation. Lastly, to eliminate the cache contention, we propose an embedding cache dedicated to efficiently cache the embedding matrix. Our evaluations show that MnnFast is significantly effective in various types of hardware: CPU, GPU, and FPGA. MnnFast improves the overall throughput by up to 5.38×, 4.34×, and 2.01× on CPU, GPU, and FPGA respectively. Also, compared to CPU-based MnnFast, our FPGA-based MnnFast achieves 6.54× higher energy efficiency.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Hardware and Architecture, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Carole-Jean Wu
  2. Song Han
  3. Hai Helen Li
  4. Hanrui Wang
  5. Yiran Chen
  6. David M. Brooks
  7. Zhekai Zhang
  8. Udit Gupta

In Computer Vision and Pattern Recognition

  1. Carole-Jean Wu
  2. Song Han
  3. Hai Helen Li
  4. Yiran Chen
  5. Hanrui Wang
  6. David M. Brooks
  7. Udit Gupta
  8. Zhekai Zhang

In Hardware and Architecture

  1. Carole-Jean Wu
  2. Stella Biderman
  3. Song Han
  4. M. Smelyanskiy
  5. Kim M. Hazelwood
  6. Markus Norman Rabe
  7. David M. Brooks
  8. Zhekai Zhang

In Model Architectures

  1. Stella Biderman
  2. Song Han
  3. Vikas Chandra
  4. Maxim Naumov
  5. Bo Peng
  6. M. Smelyanskiy
  7. Markus Norman Rabe
  8. David M. Brooks

Citations in the corpus