{"title": "SLIDE : In Defense of Smart Algorithms over Hardware Acceleration for Large-Scale Deep Learning Systems", "book": "Proceedings of Machine Learning and Systems", "page_first": 291, "page_last": 306, "abstract": "Deep Learning (DL) algorithms are the central focus of modern machine learning systems. As data volumes keep growing, it has become customary to train large neural networks with hundreds of millions of parameters to maintain enough capacity to memorize these volumes and obtain state-of-the-art accuracy. To get around the costly computations associated with large models and data, the community is increasingly investing in specialized hardware for model training. However, specialized hardware is expensive and hard to generalize to a multitude of tasks. The progress on the algorithmic front has failed to demonstrate a direct advantage over powerful hardware such as NVIDIA-V100 GPUs. This paper provides an exception. We propose SLIDE (Sub-LInear Deep learning Engine) that uniquely blends smart randomized algorithms, with multi-core parallelism and workload optimization. Using just a CPU, SLIDE drastically reduces the computations during both training and inference outperforming an optimized implementation of Tensorflow (TF) on the best available GPU. Our evaluations on industry-scale recommendation datasets, with large fully connected architectures, show that training with SLIDE on a 44 core CPU is more than 3.5 times (1 hour vs. 3.5 hours) faster than the same network trained using TF on Tesla V100 at any given accuracy level. On the same CPU hardware, SLIDE is over 10x faster than TF. We provide codes and scripts for reproducibility.", "full_text": "                        SLIDE:INDEFENSEOFSMARTALGORITHMSOVERHARDWARE\r\n                          ACCELERATION FOR LARGE-SCALE DEEP LEARNING SYSTEMS\r\n                    Beidi Chen1 TharunMedini1 JamesFarwell2 SamehGobriel2 CharlieTai2 AnshumaliShrivastava1\r\n                                                                        ABSTRACT\r\n                    Deep Learning (DL) algorithms are the central focus of modern machine learning systems. As data volumes\r\n                    keep growing, it has become customary to train large neural networks with hundreds of millions of parameters\r\n                    to maintain enough capacity to memorize these volumes and obtain state-of-the-art accuracy. To get around the\r\n                    costly computations associated with large models and data, the community is increasingly investing in specialized\r\n                    hardware for model training. However, specialized hardware is expensive and hard to generalize to a multitude of\r\n                    tasks. The progress on the algorithmic front has failed to demonstrate a direct advantage over powerful hardware\r\n                    such as NVIDIA-V100 GPUs. This paper provides an exception. We propose SLIDE (Sub-LInear Deep learning\r\n                    Engine)thatuniquelyblendssmartrandomizedalgorithms,withmulti-coreparallelismandworkloadoptimization.\r\n                    Using just a CPU, SLIDE drastically reduces the computations during both training and inference outperforming\r\n                    an optimized implementation of Tensor\ufb02ow (TF) on the best available GPU. Our evaluations on industry-scale\r\n                    recommendation datasets, with large fully connected architectures, show that training with SLIDE on a 44 core\r\n                    CPUismorethan3.5times(1hourvs. 3.5 hours) faster than the same network trained using TF on Tesla V100 at\r\n                    any given accuracy level. On the same CPU hardware, SLIDE is over 10x faster than TF. We provide codes and\r\n                    scripts for reproducibility.\r\n               1    INTRODUCTION                                                  risky because they require signi\ufb01cant investment and time to\r\n               DeepLearning (DL) has become a topic of signi\ufb01cant inter-          develop. Moreover, dedicated hardware caters to a speci\ufb01c\r\n               est in the research community. The last few years have seen        algorithm for which they are designed. Thus, change in the\r\n               a remarkable growth of using DL to signi\ufb01cantly improve            state-of-the-art algorithms can render specialized hardware\r\n               the state-of-the-art in many applications, particularly image,     less effective in the future. However, for the case of DL, this\r\n               text classi\ufb01cation, and speech recognition.                        investment is justi\ufb01ed due to the lack of signi\ufb01cant progress\r\n                                                                                  in the algorithmic alternatives for years.\r\n               The Need for Hardware Acceleration: Vast amounts of                Unsuccessful Alternatives to Matrix Multiplication: On\r\n               data powered by the exponential increase in computing ca-          the orthogonal side, there have been several works on replac-\r\n               pabilities have been instrumental in the success of DL. More       ingthecostlymatrixmultiplicationwithcheaperalgorithmic\r\n               notably, with the advent of the powerful Graphic Processing        alternatives (Le Gall, 2014). Unfortunately, we have seen\r\n               Unit (GPU) (Owens et al., 2008), training processes of the         minimalpractical bene\ufb01ts from the algorithmic front. So far,\r\n               DLmodelshavebeendrastically accelerated.                           there has been no demonstration, even remotely, that a smart\r\n               Fast Matrix Multiplication has been heavily researched for         algorithmic implementation in any form can outperform the\r\n               the past several decades. We are now reaching a limit on           advantages of hardware acceleration.\r\n               speeding up matrix multiplication further. Furthermore,            Exploiting Adaptive Sparsity in Neural Networks: In\r\n               the need for astronomical size neural networks and un-             popular frameworks like Tensor\ufb02ow (TF), Sampled Soft-\r\n               precedented growth in the data volumes have worsened               max(Jeanetal., 2015) is deployed to approximate the full\r\n               this problem. As a result, the community is heavily invest-        softmax ef\ufb01ciently. While sampled softmax offers computa-\r\n               ing in dedicated hardware to take DL further beyond this           tional savings, it has high estimation bias (Blanc & Rendle,\r\n               point (Jouppi et al., 2017). Designing dedicated hardware is       2018). This leads to poor convergence behavior which is\r\n                  1Rice University 2Intel Corporation. Correspondence to: Beidi   empirically veri\ufb01ed in our experiments in section 5. In this\r\n               Chen<beidi.chen@rice.edu>.                                         paper, we will exploit the idea of adaptive sparsity (Blanc &\r\n                                                                                  Rendle, 2018) or adaptive dropouts (Ba & Frey, 2013). The\r\n               Proceedings of the 3rd MLSys Conference, Austin, TX, USA,          idea stems from several recent observations (Makhzani &\r\n               2020. Copyright 2020 by the author(s).                             Frey, 2015; 2013) that we can accurately train neural net-\r\n                       SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n              works by selectively sparsifying most of the neurons, based        sis of SLIDE using Intel VTune Performance Analyzer\r\n               on their activation, during every gradient update. (Srivas-       and show that memory-bound inef\ufb01ciencies reduce for\r\n               tava et al., 2014) has also shown that selective sparsi\ufb01cation    SLIDEwithanincreasing number of cores while it is the\r\n               canin-fact be superior in accuracy due to implicit regulariza-    opposite for TF-CPU.\r\n               tion. However, selective sparsi\ufb01cation does not directly lead  \u2022 Our analysis suggests that SLIDE is a memory-bound\r\n               to computational savings. (Spring & Shrivastava, 2017b)           application, prone to some bottlenecks described in ap-\r\n               shows the \ufb01rst possibility of an algorithmically ef\ufb01cient so-     pendix D. With careful workload and cache optimizations\r\n               lution by employing Locality Sensitive Hash (LSH) tables          (eg. Transparent Hugepages) and a data access pattern\r\n               to identify a sparse set of neurons ef\ufb01ciently during each        (eg. SIMD instructions), we further speed up SLIDE by\r\n               update. The proposed algorithm has an added advantage of          roughly 1.3x, making the overall speed up to 3.5x faster\r\n               makingthegradientupdateHOGWILDstyleparallel(Recht                 than TF-GPU and over 10x faster than TF-CPU.\r\n               et al., 2011). Such parallelism does not hurt convergence be-\r\n               causeextremelysparseandindependentupdatesareunlikely           2    LOCALITY SENSITIVE HASHING\r\n               to overlap and cause con\ufb02icts of considerable magnitude.\r\n               Despite all the niceness presented, current implementation     Ourpaperisbasedonseveral recent and classical ideas in\r\n               of (Spring & Shrivastava, 2017b) fails to demonstrate that     Locality Sensitive Hashing (LSH) and adaptive dropouts\r\n               the computational advantage can be translated into a faster    in neural networks. LSH is a family of functions with the\r\n               implementation when directly compared with hardware ac-        property that similar input objects in the domain of these\r\n               celeration of matrix multiplication. In particular, it is not  functions have a higher probability of colliding in the range\r\n               clear if we can design a system that can effectively leverage  space than non-similar ones. A popular technique for ap-\r\n               the computational advantage and at the same time compen-       proximate nearest-neighbor search uses the underlying the-\r\n               sate for the hash table overheads using limited (only a few    ory of Locality Sensitive Hashing (Indyk & Motwani, 1998).\r\n               cores) parallelisms. In this paper, we provide the \ufb01rst such   In formal terms, consider H to be a family of hash functions\r\n               implementation for large fully connected neural networks.      mappingRD tosomesetS.\r\n               1.1  OurContributions                                          De\ufb01nition 2.1 (LSH Family) A family H is called           D\r\n                                                                              (S ,cS ,p ,p )-sensitive if for any two points x,y \u2208 R\r\n               Ourmaincontributions are as follows:                              0   0   1   2\r\n                                                                              andhchosenuniformly from H satis\ufb01es the following:\r\n                                                                              \u2022 if Sim(x,y) \u2265 S then Pr(h(x) = h(y)) \u2265 p\r\n               \u2022 We show the \ufb01rst C++ OpenMP based system SLIDE                                   0                             1\r\n                 with modest multi-core parallelism on a standard CPU         \u2022 if Sim(x,y) \u2264 cS0 then Pr(h(x) = h(y)) \u2264 p2\r\n                 that can outperform the massive parallelism of a powerful    Typically, for approximate nearest-neighbor search, we need\r\n                 V100GPUonahead-to-headtime-vs-accuracy compari-              p >p andc<1tohold. AnLSHallowsustoconstruct\r\n                 son. This unique possibility is because the parallelism in     1    2\r\n                 SLIDEisnaturally asynchronous by design. We have our         data structures that give provably ef\ufb01cient query time algo-\r\n                 code and benchmark scripts for reproducibility1.             rithms for the approximate nearest-neighbor problem with\r\n               \u2022 We make several novel algorithmic and data-structural        the associated similarity measure.\r\n                 choices in designing the LSH based sparsi\ufb01cation to          Onesuf\ufb01cient condition for a hash family H to be an LSH\r\n                 minimize the computational overheads to a few memory         family is that the collision probability PrH(h(x) = h(y))\r\n                 lookups only (truly O(1)). At the same time, it does not     should be a monotonically increasing with the similarity, i.e.\r\n                 affect the convergence of the DL algorithm. The imple-\r\n                 mentation further takes advantage of the sparse gradient                PrH(h(x) = h(y)) = f(Sim(x,y)),               (1)\r\n                 updates to achieve negligible update con\ufb02icts, which cre-    where f is a monotonically increasing function. In fact,\r\n                 ates ideal settings for Asynchronous SGD (Stochastic         most of the popular known LSH families, such as Simhash\r\n                 Gradient Descent) (Recht et al., 2011). These contribu-      (Gionis et al., 1999) and WTA hash (Yagnik et al., 2011;\r\n                 tions could be of independent interest in both the LSH       Chen&Shrivastava, 2018), satisfy this strong property. It\r\n                 and DLliterature.                                            can be noted that Equation 1 automatically guarantees the\r\n               \u2022 Weprovide a rigorous evaluation of our system on two         two required conditions in the De\ufb01nition 2.1.\r\n                 large benchmark datasets involving fully connected net-\r\n                 works. We show that SLIDE, on a modest CPU can be            It was shown in (Indyk & Motwani, 1998) that having an\r\n                 upto2.7xfaster, in wall clock time, than the best possi-     LSHfamilyforagivensimilaritymeasureissuf\ufb01cientforef-\r\n                 ble alternative with the best possible choice of hardware,   \ufb01ciently solving nearest-neighbor search in sub-linear time.\r\n                 at any accuracy. We perform a CPU-ef\ufb01ciency analy-           TheAlgorithm: TheLSHalgorithmusestwoparameters,\r\n                  1https://github.com/keroro824/HashingDeepLearning           (K,L). We construct L independent hash tables. Each\r\n                                  SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                                     LSH as Samplers                                                  This sampling view of LSH was the key for the algorithm\r\n                                                                       h    h\r\n                                                               h        1    k    Buckets                             proposed in paper (Spring & Shrivastava, 2017b) that shows\r\n                                                                1                     \u2026\r\n                                                                       00 00          \u2026                               the \ufb01rst possibility of adaptive dropouts in near-constant\r\n                                                                       00 01\r\n                                                        RD      h      00 10      Empty                               time, leading to ef\ufb01cient backpropagation algorithm.\r\n                                                                 2     \u2026 \u2026          \u2026\r\n                                          h ,h : RD \u2192 {0,1,2,3}        11 11        \u2026\r\n                                           1  2                                                                       2.1.1      MIPSSampling\r\n                      Figure 1. Schematic diagram of LSH. For an input, we obtain hash                                Recent advances in maximum inner product search (MIPS)\r\n                      codes and retrieve candidates from the respective buckets.                                      using asymmetric locality sensitive hashing has made it\r\n                                                                                                                      possible to sample large inner products.                             Given a col-\r\n                                                                                                                      lection C of vectors and query vector Q, using (K,L)-\r\n                      hash table has a meta-hash function H that is formed by                                         parameterized LSH algorithm with MIPS hashing (Shrivas-\r\n                      concatenating K random independent hash functions from                                          tava & Li, 2014a), we get a candidate set S. Every element\r\n                      the collection F. Given a query, we collect one bucket                                          in x \u2208 C gets sampled into S with probability p , where p\r\n                                                                                                                            i                                                                  i              i\r\n                      from each hash table and return the union of L buckets.                                         is a monotonically increasing function of Q \u00b7 xi. Thus, we\r\n                      Intuitively, the meta-hash function makes the buckets sparse                                    can pay a one-time linear cost of preprocessing C into hash\r\n                      andreducesthenumberoffalsepositives,becauseonlyvalid                                            tables, and any further adaptive sampling for query Q only\r\n                      nearest-neighbor items are likely to match all K hash values                                    requires few hash lookups.\r\n                      for a given query. The union of the L buckets decreases\r\n                      the number of false negatives by increasing the number                                          Algorithm 1 SLIDE Algorithm\r\n                      of potential buckets that could hold valid nearest-neighbor                                       1: Input: data X, iterations n, batch size B\r\n                      items. The candidate generation algorithm works in two                                            2: Output: \u03b8\r\n                      phases [See (Spring & Shrivastava, 2017a) for details]:                                           3: Initialize weights w for each layer l\r\n                                                                                                                                                           l\r\n                                                                                                                        4: Create hash tables HT , functions h for each layer l\r\n                      1. Pre-processingPhase: WeconstructLhashtablesfrom                                                                                       l                   l\r\n                                                                                                                        5: Compute hl(wa) for all neurons\r\n                          the data by storing all elements x. We only store pointers                                                               l\r\n                                                                                                                        6: Insert all neuron ids a, into HT according to h (wa)\r\n                          to the vector in the hash tables because storing whole                                                                                            l                        l    l\r\n                          data vectors is very memory inef\ufb01cient.                                                       7: for i = 1 : n do\r\n                      2. Query Phase: Given a query Q; we search for its                                                8:      Input0 = Batch(X,B)\r\n                          nearest-neighbors. We report the union from all of the                                        9:      for l = 1 : Layers do\r\n                                                                                                                      10:           S =Sample(Input                   , HT ,h ) (Algorithm 2)\r\n                          buckets collected from the L hash tables. Note that we                                                      l                          l\u22121         l    l\r\n                          do not scan all the elements but only probe L different                                     11:           Activation = Forward Propagation (Inputl\u22121, Sl)\r\n                          buckets, one bucket for each hash table.                                                    12:           Inputl = Activation\r\n                                                                                                                      13:       endfor\r\n                      After generating the set of potential candidates, the nearest-                                  14:       for l = 1 : Layers do\r\n                      neighbor is computed by comparing the distance between                                          15:           Backpropagation (Sl)\r\n                      each item in the candidate set and the query.                                                   16:       endfor\r\n                                                                                                                      17: end for\r\n                      2.1     LSHforEstimationandSampling                                                             18: return \u03b8\r\n                      Although LSH provides provably fast retrieval in sub-linear                                     Algorithm 2 Algorithm for LSH Sampling\r\n                      time, it is known to be very slow for accurate search because\r\n                      it requires very large number of tables, i.e. large L. Also,                                      1: Input: Q, HT, h\r\n                      reducing the overhead of bucket aggregation and candidate                                         2: Output: Sl (a set of active neurons on layer l)\r\n                      \ufb01ltering is a problem on its own. Consequent research led                                         3: Compute h(Q).\r\n                      to the sampling view of LSH (Spring & Shrivastava, 2017b;                                         4: for t = 1 : L do\r\n                                                                                                                        5:      S = S\u2229Query(h (Q ), HTt)\r\n                      Chen et al., 2018; 2019; Luo & Shrivastava, 2018) that                                                                              l     l         l\r\n                      alleviates costly searching by ef\ufb01cient sampling, as shown                                        6: end for\r\n                      in \ufb01gure 1. It turns out that merely probing a few hash                                           7: return S\r\n                      buckets (as low as 1) is suf\ufb01cient for adaptive sampling.\r\n                      Observe that an item returned as a candidate from a (K,L)-                                      3      PROPOSEDSYSTEM: SLIDE\r\n                      parameterized LSH algorithm is sampled with probability\r\n                      1\u2212(1\u2212pK)L,wherepisthecollisionprobability of LSH                                                3.1      Introduction to the overall system\r\n                      function (sampling probability is monotonic in p). Thus,\r\n                      with LSHalgorithm, the candidate set is adaptively sampled                                      Before introducing SLIDE in details, we de\ufb01ne important\r\n                      where the sampling probability changes with K and L.                                            notations: 1) B: input batch size 2) Nj: Neuron j in layer l\r\n                                                                                                                                                                               l\r\n                                               SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                              Network                                                             1                                                                                                                      Neuron\r\n                                                                                                                                   Layer                                                                                                       BatchSize\r\n                                               1                      1                 1                          \u2026                 Hash\tTable\t1                                Hash\tTable\tL                                                ActiveInputs\r\n                                               2                                                                 5                 \" \u2026         \"      Buckets                  $ \u2026         $      Buckets            1                     1    0     1     \u2026\u2026\r\n                                                                                        2                                         \u210e          \u210e                               \u210e           \u210e\r\n                                                                     2                                             \u2026               \" \u2026         #           \u2026                   \" \u2026         #           \u2026                              Activation for each Inputs\r\n                                               3                     3                  3                                        00          00    1 9                       00          00    1\r\n                                               4                     4                  4                                        00    \u2026     01    2       \u2026           \u202600 \u2026 01 9                      \u2026             2                    0.1   0.2   0.5   \u2026\u2026\r\n                                                                                                                 9               00    \u2026     10       Empty                  00    \u2026    10        Empty                                 AccumulatedGradients\r\n                                               5                   Hidden\t1          Hidden\t2                                    \u2026     \u2026     \u2026          \u2026                    \u2026     \u2026     \u2026          \u2026                \u2026                      ActiveInputs\r\n                                                                                                                   \u2026                                                                           5                                          0.3   0.8   0.7   \u2026\u2026\r\n                                              Input                                                                              11    \u2026     11         \u2026                    11    \u2026     11         \u2026                                          Weights\r\n                                                                                                             Output                                                                                                                        -0.3   0.8   -0.5     \u2026\r\n                                                                                                                                                                                                                                             Previous Layer Size\r\n                             Figure 2. Architecture: The central module of SLIDE is Network. The network is composed of few-layer modules. Each layer module is\r\n                              composedofneuronsandafewhashtablesintowhichtheneuronidsarehashed. Each neuron module has multiple arrays of batch size\r\n                              length: 1) a binary array suggesting whether this neuron is active for each input in the batch 2) activation for each input in the batch 3)\r\n                              accumulated gradients for each input in the batch. 4) The connection weights to the previous layer. The last array has a length equal to the\r\n                              numberofneuronsintheprevious layer.\r\n                              3) x : inputs for layer l in the network 4) wa: weights for                                                                                                  Forward\tPass\r\n                                      l                                                                                    l\r\n                                th                                                                                                                   a\r\n                              a       neuron in layer l 5) h : hash functions in layer l 6) N :                                                                                                            1\t|1                           1\t|3\r\n                                                                                   l                                                                 l\r\n                              the set of active neurons in layer l for the current input.                                                                                                    H1            2\t|\t2,4             H2         2\t|\t1,4\r\n                                                                                                                                                                                                           3\t|\t3                          3\t|\t2                1\r\n                              Initialization: Figure 2 shows the modular structure of                                                                                                                                                                          \u2026\r\n                              SLIDE and algorithm 1 shows the detailed steps. Every                                                                                                           1                1                             1\r\n                                                                                                                                                                                              2                2                             2                 5\r\n                              layer object contains a list of neurons and a set of LSH                                                                                                        3                3                             3                  \u2026\r\n                              sampling hash tables. Each hash table contains ids of the                                                                                                       4                4                             4                 9\r\n                              neurons that are hashed into the buckets. During the net-                                                                                                       5           Hidden\t1                       Hidden\t2               \u2026\r\n                             workinitialization, the weights of the network are initialized                                                                                                 Input\r\n                                                                                                                                                                                                                                                           Output\r\n                              randomly. Afterwards, K \u00d7L LSH hash functions are ini-                                                                              Figure 3. Forward Pass: Given an input, we \ufb01rst get the hash code\r\n                              tialized along with L hash tables for each of the layers. For                                                                       H1forthe input, query the hash table for the \ufb01rst hidden layer,\r\n                              instance, the example network in Figure 2 maintains hash                                                                            and obtain the active neurons. We get the activations for only this\r\n                              tables in two hidden layers as well as the output layer. The                                                                        set of active neurons. We do the same for the subsequent layers\r\n                              details of using various hash functions are discussed in ap-                                                                        and obtain a \ufb01nal sparse output. In practice, we use multiple hash\r\n                              pendixA.TheLSHhashcodeshl(wa)oftheweightvectors                                                                                     tables per layer.\r\n                                                                                                        l\r\n                              of neurons in the given layer are computed according to the\r\n                              hash functions. The id a of the neuron is saved into the                                                                            Theabove-described operations are performed sequentially\r\n                              hash buckets mapped by the LSH function hl(wa). This                                                                                in every layer, starting from the very \ufb01rst layer where the\r\n                                                                                                                                       l\r\n                              construction of LSH hash tables in each layer is a one-time                                                                         input is the data itself. Even in the output layer, which has\r\n                              operation which can easily be parallelized with multiple                                                                            softmax activation, only neurons sampled from hash tables\r\n                              threads over different neurons in the layer independently.                                                                          are treated as active neurons. For softmax, for every active\r\n                                                                                                                                                                                                                                                                             x wk\r\n                              Sparse Feed-Forward Pass with Hash Table Sampling:                                                                                  neuron, we compute its output as \u03c3(Nk) =                                                                 e o o            .\r\n                                                                                                                                                                                                                                                       o             P xowk\r\n                                                                                                                                                                                                                                                                             a e         o\r\n                                                                                                                                                                                                                                                                          N\r\n                              In the feed-forward phase, given a single training instance,                                                                                                                                                                                   o\r\n                             we compute the network activation until the \ufb01nal layer,                                                                              Note that the normalizing constant for softmax is no longer\r\n                             which gives us the output. In SLIDE, instead of calcu-                                                                               the sum over all neurons but only the active ones.\r\n                              lating all the activations in each layer, the input to each layer                                                                   SparseBackpropagationorGradientUpdate: Theback-\r\n                              x is fed into hash functions to compute h (x ). The hash                                                                            propagation step follows the feed-forward step. After com-\r\n                                 l                                                                                      l     l\r\n                              codes serve as a query to retrieve ids of active (or sampled)                                                                       puting the output of the network, we compare it with the\r\n                              neurons from the matching buckets in hash tables. For ex-                                                                           knownlabel of the input and backpropagate the errors layer-\r\n                              ample, in the \ufb01gure 3, h (x ) is \ufb01rst computed and then                                                                             by-layer to calculate the gradient and update the weights.\r\n                                                                                   1      1\r\n                              used to retrieve N2 and N4 as the active neurons. Only the                                                                          Here we use the classical backpropagation message passing\r\n                                                                   1                1\r\n                              activations of active neurons are calculated and passed on as                                                                       type implementation rather than vector multiplication based.\r\n                              the inputs to the next layer. The other activations, like those                                                                     For every training data instance, after updating the weights\r\n                              of N1 and N3, are directly treated as 0 and never computed.                                                                         of any given neuron, the neuron propagates the partial gra-\r\n                                       1                1\r\n                             Wedescribe our design choices that reduce the sampling                                                                               dients (using error propagation) back to only active neurons\r\n                              overheads signi\ufb01cantly in section 4.1.                                                                                              in previous layers via the connected weights. As a result,\r\n                        SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n               wenever access any non-active neuron or any non-active              3.2   Details of Hash Functions and Hash Tables\r\n               weight, which is not part of the feed-forward process on a          SLIDEprovidesanatural trade-off between the ef\ufb01ciency\r\n               given input. This process ensures that we take full advan-          of retrieving active neurons and the quality of the retrieved\r\n               tage of sparsity. Our computation over each input is only           ones. To facilitate this, we have three tunable parameters\r\n               of the order of active neurons and weights rather than the          K,L,B. Asmentionedinsection2,Lservesasthenumber\r\n               total number of parameters. It should be noted that if we           of hash tables. To determine which bucket to choose, we use\r\n               compute activation for s < 1 fraction of neurons in each            Khashcodesforeachhashtable. Hence, SLIDE generates\r\n               layer (on an average), the fraction of weights that needs to        K\u00d7Lrandomizedhashfunctionsallbelongingtoonehash\r\n                               2\r\n               be updated is s only, which is a signi\ufb01cant reduction when          family for each layer. In every bucket in a hash table, the\r\n               s is small (as is the case for our experiments).                    number of entries is limited to a \ufb01xed bucket size. Such a\r\n               Update Hash Tables after Weight Updates: After the                  limit helps with the memory usage and also balances the\r\n               weights are updated, we need to modify the positions of             load on threads during parallel aggregation of neurons.\r\n               neurons in the hash tables accordingly. Updating neurons\r\n               typically involves deletion from the old bucket followed by         In our implementation of SLIDE, we support four types of\r\n               an addition to the new bucket, which can be expensive. We           hash functions from LSH family: 1) Simhash 2) WTA hash\r\n               discuss several design tricks that we use to overcome this          3) DWTAhashand4)Minhashrespectively. Each of these\r\n               overhead of updating hash tables in section 4.2.                    hash families preserves different similarities and hence is\r\n               OpenMPParallelization across a Batch: For any given                 useful for various scenarios. We discuss the implementa-\r\n               training instance, both the feed-forward and backpropaga-           tion details of Simhash and DWTA hash below and others\r\n               tion operations are sequential as they need to be performed         in appendix A. SLIDE also provides the interface to add\r\n               layer by layer. SLIDE uses usual Batch Gradient Descent             customized hash functions based on need.\r\n               with Adam optimizer, where the batch size is generally in           Simhash(Gionis et al., 1999): SimHash is a popular LSH\r\n               the order of hundreds. Each data instance in the batch runs         for the cosine similarity measure. We use K \u00d7 L number\r\n               in a separate thread and its gradients are computed in par-         of random pre-generated vectors with components taking\r\n               allel. To ensure the independence of computation across             only three values {+1,0,\u22121}. The reason behind using\r\n               different threads, every neuron stores two additional arrays,       only +1s and \u22121s is for fast implementation. It requires\r\n               each of whose length is equal to the batch size. These arrays       additions rather than multiplications, thereby reducing the\r\n               keep track of the input speci\ufb01c neuron activations and error        computation and speeding up the hashing process. To fur-\r\n               gradients. Every input is assigned an id, which can be used         ther optimize the cost of Simhash in practice, we can adopt\r\n               as an index to locate its activation (or error gradient) on any     the sparse random projection idea (Li et al., 2006). A simple\r\n               neuron. Besides, we also have a bit array at each neuron to         implementation is to treat the random vectors as sparse vec-\r\n               determine whether the particular input activates a neuron or        tors and store their nonzero indices in addition to the signs.\r\n               not. This small memory overhead is negligible for CPUs              For instance, let the input vector for Simhash be in Rd. Sup-\r\n               but it ensures that the gradient computation is independent         pose we want to maintain 1/3 sparsity, we may uniformly\r\n               across different instances in the batch.                            generate K \u2217 L set of d/3 indices from [0,d \u2212 1]. In this\r\n               Theextremesparsity and randomness in gradient updates al-           way, the number of multiplications for one inner product\r\n               low us to asynchronously parallelize the accumulation step          operation during the generation of the hash codes would\r\n               of the gradient across different training data without leading      simply reduce from d to d/3. Since the random indices are\r\n               to a considerable amount of overlapping updates. SLIDE              produced from one-time generation, the cost can be ignored.\r\n               heavily capitalizes on the theory of HOGWILD (Recht et al.,         DWTAhash(Chen&Shrivastava,2018): DWTAhash\r\n               2011), which shows that a small amount of overlap is tol-           transforms the input feature space into binary codes such\r\n               erable. It does not hurt the convergence even if we resolve         that the Hammingdistanceintheresulting space closely cor-\r\n               the concurrent updates randomly. Thus, after independently          relates with rank similarity measure for sparse data. We gen-\r\n               computing the gradients, each thread pushes the updates             erate KLm number of permutations and every permutation\r\n                                                                                            d\r\n               directly to the weights asynchronously. This asynchronous           is split into d bins. DWTA loops through all the nonzero\r\n               update avoids synchronization during batch accumulation                           m\r\n               which is otherwise sequential in the batch.                         (NNZ)indices of the sparse input. For each of them, we up-\r\n                                                                                   date the current maximum index of the corresponding bins\r\n               In section 5.3, we observe that due to this asynchronous            according to the mapping in each permutation. It should be\r\n               choice, we obtain near-perfect scaling of our implemen-             noted that the number of comparisons and memory lookups\r\n               tation with an increasing number of cores. Such perfect             in this step is O(NNZ\u2217 KLm), whichissigni\ufb01cantly more\r\n                                                                                                                d\r\n               scaling is particularly exciting because even highly opti-          ef\ufb01cient than simply applying WTA hash to sparse input.\r\n               mized implementation of TF on CPUs shows poor scaling               For empty bins, the densi\ufb01cation scheme proposed in (Chen\r\n               behavior with increasing cores beyond 16 cores.                     &Shrivastava, 2018) is applied.\r\n                                      SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                                                                                                                                           Table 1. Statistics of the datasets\r\n                                                                 MseigetartS SPI                                                                       Feature Dim    Feature Sparsity   Label Dim     Training Size   Testing Size\r\n                                                                                                                                    Delicious-200K       782,585          0.038 %         205,443        196,606       100,095\r\n                                                                                                                                     Amazon-670K         135,909          0.055 %         670,091        490,449       153,025\r\n                                         10\u22121\r\n                                                      agnilpmaS allinV                                                            4.2       UpdatingOverhead\r\n                                       Temi           ognilpmaS KpT\r\n                                         10\u22122         HgnidlosherhT dra                                                           We introduce the following heuristics for addressing the\r\n                                                                                                                                  expensive costs of updating the hash tables:\r\n                                         10\u22123                                                                                     1)Recomputingthehashcodesaftereverygradientupdateis\r\n                                             2000      3000     4000      5000      6000      7000                                computationally very expensive. Therefore, we dynamically\r\n                                                                    #selpmaS                                                      change the update frequency of hash tables to reduce the\r\n                        Figure 4. Time consumed (in seconds) for various sampling strate-                                         overhead. Assume that we update the hash tables for the\r\n                        gies for retrieving active neurons from hash tables.                                                      \ufb01rst time after N iterations. Let t \u2212 1 be the number of\r\n                                                                                                                                                               0\r\n                                                                                                                                  times the hash tables have already been updated. We apply\r\n                                                                                                                                  exponential decay on the update frequency such that the tth\r\n                                                                                                                                                                                                   P\r\n                        4       REDUCINGOVERHEAD                                                                                  hash table update happens on iteration                               t\u22121N e\u03bbi, where\r\n                                                                                                                                                                                                       i=0       0\r\n                        4.1      SamplingOverhead                                                                                 \u03bb is a tunable decay constant. The intuition behind this\r\n                                                                                                                                  scheme is that the gradient updates in the initial stage of the\r\n                        ThekeyideaofusingLSHforadaptivesamplingofneurons                                                          training are larger than those in the later stage, especially\r\n                        is sketched in section 3.1. We have designed three strategies                                             while close to convergence.\r\n                        to sampleneuronswithlargeactivation: 1)VanillaSampling                                                    2)SLIDEneedsapolicyforaddinganewneurontoabucket\r\n                        2) TopkSampling3)HardThresholding. Weintroducethem                                                        when it is already full. To solve such a problem, we use\r\n                        here and discuss their utility and ef\ufb01ciency in appendix B.                                               the same solution in (Wang et al., 2018) that makes use\r\n                        Vanilla Sampling:                    Denote \u03b2l as the number of active                                    of Vitters reservoir sampling algorithm (Vitter, 1985) as\r\n                        neurons we target to retrieve in layer l. After computing                                                 the replacement strategy. It was shown that reservoir sam-\r\n                        the hash codes of the input, we randomly choose a table                                                   pling retains the adaptive sampling property of LSH tables,\r\n                        and only retrieve the neurons in its corresponding bucket.                                                making the process sound. Additionally, we implement a\r\n                        Wecontinueretrieving neurons from another random table                                                    simpler alternative policy based on FIFO (First In First Out).\r\n                        until \u03b2l neurons are selected or all the tables have been                                                 3)ForSimhash,thehashcodesarecomputedbyhsign(x) =\r\n                                                                                                                                                                                                                    w\r\n                        looked up. Let us assume we retrieve from \u03c4 tables in total.                                              sign(wTx). During backpropagation, only the weights con-\r\n                        Formally, the probability that a neuron Nj gets chosen is,\r\n                                                                                               l                                  necting the active neurons across layers get updated. Only\r\n                                   j             K \u03c4               K L\u2212\u03c4                                                                                                                                    T\r\n                        Pr(N ) = (p ) (1 \u2212 p )                                 , where p is the collision                         those weights contribute to the change of w x. Therefore,\r\n                                  l\r\n                        probability of the LSH function that SLIDE uses. The time                                                 wecanalso memorize the result of wTx besides the hash\r\n                        complexity of vanilla sampling is O(\u03b2 ).                                                                                                      d                                        \u2032\r\n                                                                                        l                                         codes. When x \u2208 R gets updated in only d out of d di-\r\n                                                                                                                                                                  \u2032                                           \u2032\r\n                        TopKSampling: In this strategy, the basic idea is to ob-                                                  mensions, where d \u226a d, we only need O(d ) rather than\r\n                        tain those neurons that occur more frequently among all                                                   O(d)addition operations to compute the new hash codes.\r\n                        Lhash tables. After querying with the input, we \ufb01rst re-\r\n                        trieve all the neurons from the corresponding bucket in                                                   5       EVALUATIONS\r\n                        each hash table and aggregate their frequencies across all                                                In this section, we\u2019re going to empirically investigate\r\n                        hash tables. The frequencies are sorted, and only the neu-                                                SLIDE\u2019s performance on multiple fronts such as: 1) SLIDE\r\n                        rons with top \u03b2 frequencies are selected. This requires\r\n                                                   l                                                                              against TF-GPU with V100s 2) SLIDE against TF-CPU 3)\r\n                        additional O(|Na|) space for maintaining the hashmap and\r\n                                                   l                                                                              SLIDE\u2019s adaptive sampling against sampled softmax (plain\r\n                        O(|Na|+|Na|log|Na|)timeforbothsamplingandsorting.\r\n                                 l            l            l                                                                      random sampling) 4) Scalability against TF-CPU with CPU\r\n                        Hard Thresholding: In this strategy, we bypass the sort-                                                  core count 5) Effect of batch size 6) Bene\ufb01ts of Design\r\n                        ing step in TopK sampling by selecting neurons that ap-                                                   Choices. While we focus on evaluating the basic aspects\r\n                        pear at least m times in the retrieved buckets. Here, the                                                 of SLIDE, we additionally perform several CPU optimiza-\r\n                        probability that a neuron Nj gets chosen is, Pr(Nj) =                                                     tions like support for Kernel Hugepages to reduce cache\r\n                        P \u0001                                            l                                        l\r\n                            L         L       K i              K L\u2212i\r\n                            i=m i (p ) (1\u2212p )                             .                                                       misses which improve SLIDE\u2019s performance by \u2248 30%.\r\n                        Figure 4 is a preview of the empirical ef\ufb01ciency comparison                                               The optimization details are given in appendix D and the\r\n                        of above three strategies shown in appendix B. We see that                                                improvement in performance is shown in section 5.4.\r\n                        Vanilla sampling is a lot more time ef\ufb01cient than the other                                               Fully-Connected Large Architecture: Fully connected\r\n                        two strategies at the cost of sample quality.                                                             networks are common in most applications.                                           To show\r\n                                  SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                          DeK002s-uoicil                                  DeK002s-uoicil                                  AK076-nozam                                      AK076-nozam\r\n                         054.                                            054.                                                     SPUC DEIL                                        SDEIL PUC\r\n                                                                                                                         003.     TPUG-F                                 003.      TPUG-F\r\n                         004.                                            004.                                                     TUPC-F\r\n                                                                                                                         052.                                            052.\r\n                         053.                                            053.                                            002.                                            002.\r\n                        Aycarucc                                        Aycarucc                                         Aycarucc051.                                    Aycarucc051.\r\n                         003.                                            003.                                            001.                                            001.\r\n                                                         SPUC DEIL\r\n                         052.                            TPUG-F          052.                            SDEIL PUC       050.                                            050.\r\n                                                         TUPC-F                                          TPUG-F\r\n                                   102               103                     102                    103                              103          104          105            103               104\r\n                                            Ts)( emi                                        Isnoitaret                                      Ts)( emi                                        Isnoitaret\r\n                      Figure 5. It shows the comparison of SLIDE (in red) against TF-GPU (in blue) and TF-CPU (in black). The x-axis is plotted in log scale\r\n                      to accommodate the otherwise slow TF-CPU curve. We notice that the time required for convergence is 2.7x lower than that of TF-GPU.\r\n                      Whencomparedagainstiterations, the convergence behavior is identical, which con\ufb01rms that the superiority of SLIDE is due to algorithm\r\n                      and implementation and not due to any optimization bells and whistles.\r\n                      SLIDE\u2019s real advantage, we will need large networks where                                        to the full softmax. We use the optimized Sampled Softmax\r\n                      even a slight decrease in performance is noticeable. Thus,                                       functionality provided in TF-GPU. This comparison sheds\r\n                      the publicly available extreme classi\ufb01cation datasets, requir-                                   light on the necessity of LSH based input dependent adap-\r\n                      ing more than 100 million parameters to train due to their                                       tive sampling compared to static sampling scheme which is\r\n                      extremely wide last layer, \ufb01t this setting appropriately. For                                    the only other alternative in practice.\r\n                      these tasks, most of the computations (more than 99%) are                                        Hyper Parameters: For both the datasets, we adopt the\r\n                      in the \ufb01nal layer.                                                                               same model architecture in (Yen et al., 2018). We choose\r\n                      Datasets: We employ two large real datasets, Delicious-                                          the standard fully connected neural network with one hid-\r\n                      200KandAmazon-670K,fromtheExtremeClassi\ufb01cation                                                   den layer of size 128. We choose a batch size of 128 for\r\n                      Repository (Kush Bhatia). Delicious-200K dataset is a sub-                                       Delicious-200K dataset and 256 for Amazon-670K dataset\r\n                      sampled dataset generated from a vast corpus of almost                                           as the input dimension for the former is very large. We run\r\n                      150million bookmarks from Social Bookmarking Systems                                             all algorithms until convergence. To quantify the superiority\r\n                      (del.icio.us). Amazon-670K dataset is a product to product                                       of SLIDE over other baselines, we also use the same opti-\r\n                      recommendation dataset with 670K labels. The statistics of                                       mizer, Adam (Kingma & Ba, 2014) by varying the initial\r\n                                                                                                                                                  \u22125           \u22123\r\n                      the datasets are included in Table 5.                                                            step size from 1e               to 1e        which leads to better conver-\r\n                      Infrastructure: All the experiments are conducted on a                                           gence in all experiments. For SLIDE, we maintain the hash\r\n                      server equipped with two 22-core/44-thread processors (In-                                       tables for the last layer, where we have a computational bot-\r\n                      tel Xeon E5-2699A v4 2.40GHz) and one NVIDIA Tesla                                               tleneck of the models. For speci\ufb01c LSH setting, we choose\r\n                      V100Volta32GBGPU.TheserverhasanUbuntu16.04.5                                                     Simhash, K = 9, L = 50 for Delicious dataset and DWTA\r\n                      LTSsystemwiththeinstallation of TF-GPU 1.12. We com-                                             hash, K = 8,L = 50 for Amazon-670k dataset. We update\r\n                                                                                                                       the hash tables with an initial update period of N                                = 50\r\n                      piled TF-CPU 1.12 from source with GCC5.4 in order to                                                                                                                           0\r\n                      support FMA, AVX, AVX2, SSE4.1, and SSE4.2 instruc-                                              iterations and then exponentially decaying (section 4.2).\r\n                      tions, which boost the performance of TF-CPU by about                                            MainResults: We show the time and iteration wise com-\r\n                      35%. SLIDEiswritteninC++andcompiledunderGCC5.4                                                   parisons for SLIDE vs TF GPU/CPU in Figure 5. Note that\r\n                      with OpenMP \ufb02ag. The most exciting part is that SLIDE                                            the x-axis is in log-scale, and all the curves have a long \ufb02at\r\n                      only uses vanilla CPU thread parallelism and yet outper-                                         converged portion when plotted on a linear scale indicat-\r\n                      forms TF-GPU(V100)byalargemargininperformance.                                                   ing clear convergence behavior. Red, blue and black lines\r\n                      Baselines: WebenchmarkthetaskswithoursystemSLIDE,                                                represent the performance of SLIDE, TF-GPU, TF-CPU,\r\n                      and compare against highly optimized TF framework for                                            respectively. We can see from the plots that SLIDE on CPU\r\n                      bothCPUandGPU.Speci\ufb01cally,thecomparisonisbetween                                                 achieves any accuracy faster than TF on V100. TF-GPU\r\n                      the same tasks, with the exact same architecture, running                                        is always faster than TF-CPU which is expected. It should\r\n                      on TF-CPUandTF-GPU.Theoptimizerandthelearning                                                    be noted that these datasets are very sparse, e.g., Delicious\r\n                      hyperparameters (details later) were also the same to avoid                                      dataset has only 75 non-zeros on an average for input fea-\r\n                      unfair comparisons. Most of the computations in our archi-                                       tures, and hence the advantage of GPU over CPU is not\r\n                      tecture are in the softmax layer. Hence, to corroborate the                                      always noticeable.\r\n                      advantage of adaptive sampling (Yen et al., 2018) vs vanilla                                     SLIDEisaround1.8timesfasterthanTF-GPUonDelicious\r\n                      sampling, we also compare against the popular sampled                                            200k. On the larger Amazon 670k dataset, where we need\r\n                      softmax algorithm (Jean et al., 2015) which is a fast proxy                                      morecomputations,thegainsaresubstantiallymore. SLIDE\r\n                                                              SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                                                                          Table 2. Core Utilization                                                                                                     lyzer tool, the Intel VTune Performance Analyzer (Malladi,\r\n                                                                                                                            8               16             32                                                           2009). Table 2 exhibits the results for core utilization com-\r\n                                                                            Tensor\ufb02ow-CPU                                45% 35% 32%                                                                                    parison between both frameworksusing8, 16, 32 threads for\r\n                                                                                       SLIDE                             82% 81% 85%                                                                                    the above tasks. We can see that for TF-CPU, the utilization\r\n                                                                                                                                                                                                                        is generally low (< 50%). It further decreases with more\r\n                                                          Tensorflow-CPU Inefficiencies Ratioin CPU Usage                                    SLIDE\tInefficiencies Ratioin CPU Usage                                     threads. For SLIDE, the core utilization is stable (around\r\n                                             0.6                                                                          0.6                                                                                           80%)across all threads presented in the table 2.\r\n                                             0.5                                                                          0.5\r\n                                             0.4                                                                          0.4                                                                                           Figure 6 presents the distribution of inef\ufb01ciencies in CPU\r\n                                             0.3                                                                          0.3\r\n                                             0.2                                                                          0.2                                                                                           usage for TF-CPU and SLIDE. Based on core utilization,\r\n                                             0.1                                                                          0.1                                                                                           the overall inef\ufb01ciencies of TF-CPU is much more than\r\n                                               0                                                                            0\r\n                                                         8\t\tThreads            16\tThreads            32\tThreads                       8\t\tThreads            16\tThreads            32\tThreads                            those of SLIDE. Figure 6 provides a detailed distribution\r\n                                                   Front-End\tBound    Memory\tBound     Retiring\tBound   Core\tBound              Front-End\tBound    Memory\tBound      Retiring\tBound   Core\tBound                        of different types of inef\ufb01ciencies. It is obvious that being\r\n                                                                                                                                                                                                                        memory-boundisamajorissueforanynumberofthreads\r\n                                       Figure 6. Inef\ufb01ciencies in CPU Usage: Memory-bound inef\ufb01cien-                                                                                                                    in the histogram. The biggest bottleneck is that a signi\ufb01cant\r\n                                       cies (orange bars) are the most signi\ufb01cant ones for either algorithm.                                                                                                            fraction of execution pipeline slots are stalled due to demand\r\n                                       For TF-CPU, memory-bound inef\ufb01ciency rises with an increasing                                                                                                                    memoryloadandstore. Observe that the higher the number\r\n                                       number of cores. For SLIDE, the memory bottleneck reduces                                                                                                                        of cores TF-CPU uses, the more memory-bound it gets.\r\n                                       with an increasing number of cores. Hence, SLIDE takes better\r\n                                       advantage of higher CPU cores, as observed in section 5.3.                                                                                                                       Ontheotherhand, the higher the number of cores SLIDE\r\n                                                                                                                                                                                                                        uses, the less memory-bound it becomes. Recall that the\r\n                                                                                                                                                                                                                        critical advantage of SLIDE is that it has a lot fewer active\r\n                                       is around 2.7 (2 hrs vs. 5.5 hrs) times faster than TF-GPU.                                                                                                                      neurons and sparse gradient updates. Naturally, memory\r\n                                       Most of the computational bene\ufb01ts of SLIDE come from                                                                                                                             accesses are a lot fewer than TF-CPU due to very sparse\r\n                                       samplingasmallsubsetofactiveneuronsintheoutputlayer.                                                                                                                             memoryaccesseswithin each thread. Our choice of using\r\n                                       After a few iterations into the training process, the average                                                                                                                    extra arrays to separate the computations of each thread with\r\n                                       numberofneuronssampledintheoutputlayerforDelicious-                                                                                                                              asynchronous gradient updates (section 3.1) across all the\r\n                                       200Kis\u22481000. Similarly, for Amazon-670K, we sample                                                                                                                               threads ensures that simple OpenMPparallelism is suf\ufb01cient\r\n                                       \u22483000neurons. With fewer than 0.5% of active neurons,                                                                                                                            to get near-peak utilization.\r\n                                       SLIDE outperforms TF-GPU on time by a huge margin\r\n                                       on either dataset. It is interesting to note that even after                                                                                                                     5.1             ComparisonwithotherHeuristics\r\n                                       compiling TF-CPU with AVX2 instructions, it is nowhere\r\n                                       close to the performance of SLIDE or TF-GPU (SLIDE is                                                                                                                            During the full softmax process in training on Tensor\ufb02ow,\r\n                                       8x faster than TF-CPU). Therefore, it is exciting to note                                                                                                                        for every training instance, it needs to compute logits (out-\r\n                                       that without any rigorous optimization in our prototype,                                                                                                                         put of the last layer before applying softmax function) for\r\n                                       SLIDEoutperforms both baselines using smart randomized                                                                                                                           all classes. This step is followed by computing the softmax\r\n                                       algorithms with OpenMP parallelism.                                                                                                                                              (normalized sigmoid) of logits. In extreme classi\ufb01cation\r\n                                       For Iteration vs. Accuracy plots in Figure 5, we can ob-                                                                                                                         tasks (with a large number of classes), computing these\r\n                                       serve that SLIDE achieves the same accuracy per iteration                                                                                                                        logits gets expensive. Therefore, there has been a line of re-\r\n                                       even though it adaptively selects neurons in some layers.                                                                                                                        search working on reducing this cost (Mikolov et al., 2013;\r\n                                                                                                                                                                                                                                                                                                            \u00a8\r\n                                       This observation con\ufb01rms that adaptively selecting neurons                                                                                                                       Bengioetal.; Gutmann &Hyvarinen,2010). Themostcom-\r\n                                       and performing asynchronous SGD does not hurt the con-                                                                                                                           monmethodsaresampling-based (static sampling weights)\r\n                                       vergence from an optimization perspective. The plot also                                                                                                                         methods which shortlist a candidate set of classes for ev-\r\n                                       con\ufb01rms that the advantage of SLIDE is not due to any                                                                                                                            ery batch of training data. By doing this, the number of\r\n                                       bells and whistles in the optimization process as the conver-                                                                                                                    computed logits gets reduced signi\ufb01cantly. Due to its popu-\r\n                                       gence with iteration has very similar behavior. For this plot,                                                                                                                   larity, Tensor\ufb02ow supports an optimized implementation of\r\n                                       weonlyshowTF-GPUasthecurveforTF-CPUwouldbe                                                                                                                                       sampled softmax (Jean et al., 2015).\r\n                                       identical because the optimization algorithm is the same.                                                                                                                        WeexplorehowsampledsoftmaxonTensor\ufb02ow-GPUper-\r\n                                       Since SLIDE performs much fewer computations and mem-                                                                                                                            formscomparedtoSLIDE.LSHsamplingprocessinSLIDE\r\n                                       ory accesses on the last layer, each iteration is faster than                                                                                                                    is principally very similar to the process of sampled softmax\r\n                                       the baselines. This is the critical reason why SLIDE outper-                                                                                                                     but with sampling probabilities changing dynamically with\r\n                                       forms other baselines when compared on wall-clock time.                                                                                                                          inputs. We adopt the exact same settings in the previous\r\n                                                                                                                                                                                                                        section for the experiments. Recall that the average num-\r\n                                       Inef\ufb01ciency Diagnosis: We pro\ufb01le and analyze TF-CPU                                                                                                                              ber of sampled classes for SLIDE for both the datasets is\r\n                                       and SLIDEbyastate-of-the-art parallel performance ana-                                                                                                                           \u22480.5%. Forsampledsoftmax, we try a various number of\r\n                                  SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                          DeK002s-uoicil                                  DeK002s-uoicil                                  AK076-nozam                                      AK076-nozam\r\n                         054.                                            054.                                                     SPUC DEIL                                        SDEIL PUC\r\n                         004.                                            004.                                            003.     TMSS PUG-F                             003.      TMSS PUG-F\r\n                         053.                                            053.                                            052.                                            052.\r\n                         003.                                            003.                                            002.                                            002.\r\n                         052.                                            052.                                            051.                                            051.\r\n                        Aycarucc002.                                    Aycarucc002.                                     Aycarucc                                        Aycarucc\r\n                         051.                                            051.                                            001.                                            001.\r\n                         001.                          SPUC DEIL         001.                          SDEIL PUC         050.                                            050.\r\n                         050.                          TMSS PUG-F        050.                          TMSS PUG-F\r\n                                        102            103                   102             103            104          000.  102          103          104             000. 103          104         105\r\n                                            Ts)( emi                                        Isnoitaret                                      Ts)( emi                                        Isnoitaret\r\n                      Figure 7. It shows the comparison of SLIDE (in red) against the popular Sampled Softmax heuristic (in green). The plots clearly establish\r\n                      the limitations of Sampled Softmax. On Amazon-670K dataset, we notice that Sampled Softmax starts to grow faster than SLIDE in the\r\n                      beginning stages of training but saturates quickly to lower accuracy. SLIDE starts to grow slowly but attains much higher accuracy than\r\n                      SampledSoftmax. SLIDEhasthecontext of choosing the most informative neurons at each layer. Sampled Softmax always chooses a\r\n                      randomsubset of neurons in the \ufb01nal layer. This re\ufb02ects in the superior performance of SLIDE over Sampled Softmax.\r\n                      samples. However, with a comparable number of samples,                                           In \ufb01gure 8, we observe that SLIDE outperforms Tensor\ufb02ow-\r\n                      sampled softmax leads to poor accuracy. We empirically                                           GPUbyasigni\ufb01cantmarginirrespective of the batch size.\r\n                      observe that we have to sample 20% of the total number of                                        This observation could be attributed to the fact that SLIDE\r\n                      classes to obtain any decent accuracy.                                                           performs very few computations per instance. Our data\r\n                      Theresults are shown in Figure 7. The red lines represent                                        structures allow us to process all samples in a batch in\r\n                      SLIDE,andthegreenlines represent sampled softmax on                                              parallel, and the gradient updates are made asynchronously\r\n                      Tensor\ufb02ow-GPU. We can see that both time and iteration                                           among threads as described in section 3.1, which enables\r\n                      wise, the red lines outperform the green lines signi\ufb01cantly.                                     effective use of parallel threads and it re\ufb02ects in superior\r\n                      Sampledsoftmax uses static sampling strategies which are                                         performance over Tensor\ufb02ow. It is interesting to note that\r\n                      fast compared to SLIDE which in contrast uses adaptively                                         the gap between SLIDE and Tensor\ufb02ow widens as the batch\r\n                      changing hash tables for input speci\ufb01c dynamic sampling.                                         size grows from 64 to 256.\r\n                      Unfortunately, the uninformative static sampling of softmax                                      5.3      Scalability Tests\r\n                      leads to poor accuracy as shown in the plot. Noted that in\r\n                      these plots, sampled softmax uses signi\ufb01cantly more neu-                                         In this section, we try to understand the effect of increasing\r\n                      rons than SLIDE and still shows poor convergence behavior.                                       CPUcoresonthescalabilityofSLIDEandTensor\ufb02ow-CPU.\r\n                      Figure 7 clearly con\ufb01rms the need for adaptive sampling                                          Besides, we intend to know the number of cores SLIDE\r\n                      of neurons (in proportion to input dependent activation) for                                     needs to outperform Tensor\ufb02ow. As mentioned before, our\r\n                      sparsifying neural networks in order to retain good conver-                                      machine has 44 cores, and each core can have 2 threads.\r\n                      gence. This phenomenon supports our choice of LSH based                                          However, we disable multithreading and the effective num-\r\n                      adaptive sampling.                                                                               ber of threads and cores is the same. Hence, we interchange-\r\n                                                                                                                       ably use the words \u201cthreads\u201d and \u201ccores\u201d from here on. We\r\n                      5.2      Effect of Batch Size                                                                    benchmark both frameworks with 2, 4, 8, 16, 32, 44 threads.\r\n                      Batch size is a crucial parameter that can affect the training                                   For the different number of threads, we run the same clas-\r\n                      speed and model quality in Machine Learning. In general, a                                       si\ufb01cation experiments on SLIDE and Tensor\ufb02ow-CPU for\r\n                      large batch size may help in reducing the training time per                                      both datasets and clock the corresponding convergence time.\r\n                      epoch as we process more gradient updates at a time (Goyal                                       Figure 9 presents the results. The red, blue, black lines\r\n                      et al., 2017). But large batches are known to be bad from                                        represent SLIDE, Tensor\ufb02ow-GPU, and Tensor\ufb02ow-CPU,\r\n                      optimization perspective as they reduce the generalization                                       respectively. It should be noted that the blue line is \ufb02at\r\n                      capability (Keskar et al., 2016). In the case of extreme clas-                                   because GPU computations were done on V100 with thou-\r\n                      si\ufb01cation datasets, the number of computations performed                                         sands of cores and are mostly oblivious about the number\r\n                      is huge owing to large input dimension and a large number                                        of CPU cores. When the number of cores increases, the\r\n                      of classes. Hence, a larger batch size may not necessarily                                       convergence time for both SLIDE and Tensor\ufb02ow-CPU\r\n                      translate into faster training per epoch. To clarify this, we                                    starts to decrease. This decrease is expected due to the ben-\r\n                      study the effect of varying batch size on the results. We                                        e\ufb01ts brought by more parallelism on each training batch.\r\n                      choose the larger Amazon-670k dataset for this task. Please                                      For Delicious dataset, the red line and the black line cross\r\n                      note that when the batch size is larger than the number of                                       each other at around 8 cores, which means that with more\r\n                      threads, the default scheduling type of OpenMP is static.                                        than 8 cores, SLIDE can beat Tensor\ufb02ow-CPU. The red\r\n                                  SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                               AK076-nozam,46=ezi_ShctBa                                Anozam-821=ezi_ShctBa ,K076                   053.       AK076-nozam,652=ezi_ShctBa \r\n                                   003.      SPUC DEIL                                                SPUC DEIL                                                SPUC DEIL\r\n                                             TPUG-F                                         003.      TPUG-F                                          003.     TPUG-F\r\n                                   052.      TMSS PUG-F                                     052.      TMSS PUG-F                                      052.     TMSS PUG-F\r\n                                   002.                                                     002.                                                      002.\r\n                                  Aycarucc051.                                              Aycarucc051.                                             Aycarucc051.\r\n                                   001.                                                     001.                                                      001.\r\n                                   050.                                                     050.                                                      050.\r\n                                   000.                                                     000.                                                      000.\r\n                                                102         103         104                       102          103         104                                 102         103         104\r\n                                                       Ts)( emi                                                  Ts( emi)                                                 Ts)( emi\r\n                      Figure 8. Performance of SLIDE vs. Tensor\ufb02ow-GPU vs. Sampled Softmax at different batch sizes. SLIDE outperforms the baselines at\r\n                      all batch sizes. As the batch size gets larger, the gap between SLIDE and TF-GPU gets wider.\r\n                                          DeK002s-uoicil                                  Amazon-670K                                     AK076-nozam                                DeK002s-uoicil\r\n                                                           SDEIL                                           SLIDE                                                    054.\r\n                                                           TUPC-F         105                              TF-CPU        003.\r\n                                                           TPUG-F                                          TF-GPU                                                   004.\r\n                                                                                                                         052.\r\n                                                                                                                         002.                                       053.\r\n                                                                                                                         Aycarucc051.                              Aycarucc\r\n                         CemiT ecnegrevno103                             Convergence Time                                001.                                       003.\r\n                                                                                                                                                 SPUC-DEIL                                  SPUC-DEIL\r\n                                                                          104                                            050.                    SdezimitpO PUC-DEIL052.                    SdezimitpO PUC-DEIL\r\n                                                                                                                                                 TPUG-F                                     TPUG-F\r\n                              21     22      23     24     25                 21     22      23     24     25                           103            104                      102                 103\r\n                                            #seroC                                          # Cores                                          Temi s)(                                  Ts)( emi\r\n                      Figure 9. Scalability Tests: Comparison of performance gains with                                Figure 10. Impact of Hugepages and SIMD Optimization: The\r\n                      the number of CPU cores for SLIDE (in red ) vs. Tensor\ufb02ow-                                       comparison of training time for optimized version of SLIDE\r\n                      CPU (in black) vs. Tensor\ufb02ow-GPU (in blue). The blue line                                        against a plain version of SLIDE and TF-GPU. We can see that\r\n                      is \ufb02at because the performance of TF-GPU does not depend on                                      SLIDE-Optimized is roughly 1.3x faster than the un-optimized\r\n                      CPUcores. Wenotice that the convergence time drops steeply for                                   one on both datasets (x-axis is log scale).\r\n                      SLIDEcomparedtoTF-CPU/GPU.OnDelicious-200Kdataset,\r\n                      SLIDE beats TF-CPU with just 8 cores and TF-GPU with less\r\n                      than 32 cores. Similarly, on Amazon-670K dataset, SLIDE beats                                    Wenotice that Cache-Optimized SLIDE (in green) is \u2248 1.3\r\n                      TF-CPUwithjust2coresandTF-GPUwithjust8cores.                                                     times faster than basic SLIDE (in red). Since we already\r\n                                                                                                                       have a 2.7x speed-up over TF-GPU on Amazon-670K, it\r\n                      and blue lines intersect between 16 and 32 cores. Hence,                                         translates to 3.5x speedup over TF-GPU and a 10x speedup\r\n                      with fewer than 32 cores, SLIDE outperforms Tensor\ufb02ow-                                           over TF-CPU.\r\n                      GPUonDelicious dataset. Similarly, for larger Amazon                                             In appendix D.1, we measure the impact of HugePages\r\n                      dataset, the red and black line never intersect, and the red                                     on various CPU-counter metrics like TLB miss rates and\r\n                      and blue line intersects on 8 cores. This means that SLIDE                                       PageFaults. Concisely, we notice that HugePages reduces\r\n                      beats Tensor\ufb02ow-GPU with as few as 8 CPU cores and                                               the misses by a large margin.\r\n                      Tensor\ufb02ow-CPUwithasfewas2CPUcores.\r\n                      5.4      Additional Speedup with Threading Model and                                             6      CONCLUSIONANDFUTUREWORK\r\n                               Platform Micro-architecture                                                             Weprovide the \ufb01rst evidence that a smart algorithm with\r\n                      In this section, we perform several CPU optimizations out-                                       modest CPUOpenMPparallelismcanoutperformthebest\r\n                      lined in appendix D to reduce cache misses. We \ufb01rst install                                      available hardware NVIDIA-V100, for training large deep\r\n                      Hugepages package for Ubuntu, which offers 2MB and                                               learning architectures. Our system SLIDE is a combination\r\n                      1GB cache pages in addition to default 4KB ones. We                                              of carefully tailored randomized hashing algorithms with\r\n                      pre-allocate 1000 2MB Hugepages and 10 1GB Hugepages                                             the right data structures that allow asynchronous parallelism.\r\n                      which are found to be enough for both Delicious-200K and                                         We show up to 3.5x gain against TF-GPU and 10x gain\r\n                      Amazon-670K datasets. To resolve the issue of the false                                          against TF-CPU in training time with similar precision on\r\n                      sharing for OpenMP mutli-thread, we give a provision to                                          popularextremeclassi\ufb01cationdatasets. Ournextstepsareto\r\n                      our data structures to align on cache line boundaries. Be-                                       extend SLIDE to include convolutional layers. SLIDE has\r\n                      sides using Hugepages, we also used SIMD instructions                                            unique bene\ufb01ts when it comes to random memory accesses\r\n                      (speci\ufb01cally, Intel-AVX) to facilitate per thread batching.                                      and parallelism. We anticipate that a distributed imple-\r\n                      In \ufb01gure 10, we compare the bene\ufb01t of aforementioned op-                                         mentation of SLIDE would be very appealing because the\r\n                      timizations against an un-optimized SLIDE and TF-GPU.                                            communication costs are minimal due to sparse gradients.\r\n                        SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n               7    ACKNOWLEDGEMENTS                                             Hasabnis, N. Auto-tuning tensor\ufb02ow threading model for\r\n               TheworkwassupportedbyNSF-1652131,NSF-BIGDATA                        CPU backend. CoRR, abs/1812.01665, 2018. URL\r\n               1838177, AFOSR-YIPFA9550-18-1-0152, Amazon Re-                      http://arxiv.org/abs/1812.01665.\r\n               search Award, and ONR BRC grant for Randomized Nu-                Indyk, P. and Motwani, R. Approximate nearest neigh-\r\n               merical Linear Algebra.                                             bors: towards removing the curse of dimensionality. In\r\n                                                                                   Proceedings of the thirtieth annual ACM symposium on\r\n               REFERENCES                                                          Theory of computing, pp. 604\u2013613. ACM, 1998.\r\n               Ba,J.andFrey,B. Adaptivedropoutfortrainingdeepneural              Jean, S., Cho, K., Memisevic, R., and Bengio, Y. On using\r\n                  networks. In Advances in Neural Information Processing           very large target vocabulary for neural machine transla-\r\n                  Systems, pp. 3084\u20133092, 2013.                                    tion. In Proceedings of the 53rd Annual Meeting of the\r\n               Basu, A., Gandhi, J., Chang, J., Hill, M., and Swift, M.            Association for Computational Linguistics and the 7th\r\n                  Ef\ufb01cient virtual memory for big memory servers. In               International Joint Conference on Natural Language Pro-\r\n                  International Symposium on Computer Architecture, pp.            cessing (Volume 1: Long Papers), volume 1, pp. 1\u201310,\r\n                  237\u2013248, 2013.                                                   2015.\r\n               Bengio, Y. et al. Quick training of probabilistic neural nets     Jouppi, N. P., Young, C., Patil, N., Patterson, D., Agrawal,\r\n                  byimportance sampling.                                           G., Bajwa, R., Bates, S., Bhatia, S., Boden, N., Borchers,\r\n                                                                                   A., et al. In-datacenter performance analysis of a tensor\r\n               Blanc, G. and Rendle, S. Adaptive sampled softmax with              processing unit. In 2017 ACM/IEEE 44th Annual Inter-\r\n                  kernel based sampling. In International Conference on            national Symposium on Computer Architecture (ISCA),\r\n                 Machine Learning, pp. 589\u2013598, 2018.                              pp. 1\u201312. IEEE, 2017.\r\n               Chen,B.andShrivastava, A. Densi\ufb01ed winner take all (wta)          Karakostas, V., Unsal, O., Nemirovsky, M., Cristal, A.,\r\n                  hashing for sparse datasets. In Uncertainty in arti\ufb01cial         and Swift, M. Performance analysis of the memory\r\n                  intelligence, 2018.                                              management unit under scale-out workloads. In Inter-\r\n               Chen, B., Shrivastava, A., and Steorts, R. C. Unique entity         national Symposium on Workload Characterization, pp.\r\n                  estimation with application to the syrian con\ufb02ict. THE           1\u201312, 2014.\r\n                 ANNALS,2018.                                                    Keskar, N. S., Mudigere, D., Nocedal, J., Smelyanskiy,\r\n               Chen, B., Xu, Y., and Shrivastava, A. Fast and accurate             M., and Tang, P. T. P. On large-batch training for deep\r\n                  stochastic gradient estimation. In Advances in Neural            learning: Generalization gap and sharp minima. arXiv\r\n                  Information Processing Systems, pp. 12339\u201312349, 2019.           preprint arXiv:1609.04836, 2016.\r\n               Corbet,    J.      Transparent    huge pages in 2.6.38.           Kingma, D. P. and Ba, J. Adam: A method for stochastic\r\n                  http://lwn.net/Articles/423584/, 2011.                           optimization. arXiv preprint arXiv:1412.6980, 2014.\r\n               Gionis, A., Indyk, P., and Motwani, R. Similarity search          Kumar, A., Soltis, D., Esmer, I., Yoaz, I., and Kottapalli, S.\r\n                  in high dimensions via hashing. In Proceedings of the            Thenewintelxeonscalable processor(formerly skylake-\r\n                  25th International Conference on Very Large Data Bases,          sp). In Hot Chips, 2017.\r\n                  VLDB\u201999,pp.518\u2013529,SanFrancisco, CA, USA, 1999.                Kush Bhatia, Kunal Dahiya, H. J. Y. P. M. V.             The\r\n                  MorganKaufmannPublishers Inc. ISBN 1-55860-615-                  extreme classi\ufb01cation repository: Multi-label datasets\r\n                  7.  URL http://dl.acm.org/citation.cfm?                          code.    http://manikvarma.org/downloads/\r\n                  id=645925.671516.                                                XC/XMLRepository.html#Prabhu14.\r\n                                  \u00b4\r\n               Goyal, P., Dollar, P., Girshick, R., Noordhuis, P.,\r\n                 Wesolowski, L., Kyrola, A., Tulloch, A., Jia, Y., and           LeGall, F. Powers of tensors and fast matrix multiplication.\r\n                  He, K. Accurate, large minibatch sgd: Training imagenet          In Proceedings of the 39th international symposium on\r\n                  in 1 hour. arXiv preprint arXiv:1706.02677, 2017.                symbolic and algebraic computation, pp. 296\u2013303. ACM,\r\n                                                                                   2014.\r\n                                        \u00a8\r\n               Gutmann, M. and Hyvarinen, A. Noise-contrastive esti-\r\n                  mation: A new estimation principle for unnormalized            Li, P., Hastie, T. J., and Church, K. W. Very sparse random\r\n                  statistical models. In Proceedings of the Thirteenth Inter-      projections. In Proceedings of the 12th ACM SIGKDD\r\n                  national Conference on Arti\ufb01cial Intelligence and Statis-        international conference on Knowledge discovery and\r\n                  tics, pp. 297\u2013304, 2010.                                         data mining, pp. 287\u2013296. ACM, 2006.\r\n                        SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n               Luo, C. and Shrivastava, A. Scaling-up split-merge mcmc             Vitter, J. S.   Random sampling with a reservoir. ACM\r\n                  with locality sensitive sampling (lss).      arXiv preprint         Transactions on Mathematical Software (TOMS), 11(1):\r\n                  arXiv:1802.07444, 2018.                                             37\u201357, 1985.\r\n               Makhzani, A. and Frey, B. K-sparse autoencoders. arXiv              Wang,Y., Shrivastava, A., Wang, J., and Ryu, J. Random-\r\n                  preprint arXiv:1312.5663, 2013.                                     ized algorithms accelerated over cpu-gpu for ultra-high\r\n               Makhzani, A. and Frey, B. J. Winner-take-all autoencoders.             dimensional similarity search. In ACM SIGMOD Record,\r\n                  In Advances in neural information processing systems,               pp. 889\u2013903. ACM, 2018.\r\n                  pp. 2791\u20132799, 2015.                                             Wicaksono, B., Tolubaeva, M., and Chapman, B. Detecting\r\n                                                                                      false sharing in openmp applications using the darwin\r\n                                             R\r\n               Malladi, R. K. Using intel\r vtune performance analyzer                 framework. In Lecture Notes in Computer Science, pp.\r\n                  events/ratios & optimizing applications. http:/software.            282\u2013288, 2011.\r\n                  intel. com, 2009.\r\n               Meng,J. and Skadron, K. Avoiding cache thrashing due to             Yagnik, J., Strelow, D., Ross, D. A., and Lin, R.-s. The\r\n                  private data placement in last-level cache for manycore             powerofcomparative reasoning. In 2011 International\r\n                  scaling. In International ConferenceonComputerDesign,               Conference on Computer Vision, pp. 2431\u20132438. IEEE,\r\n                  pp. 283\u2013297, 2009.                                                  2011.\r\n               Mikolov, T., Sutskever, I., Chen, K., Corrado, G. S., and           Yen,I.E.-H.,Kale,S.,Yu,F.,Holtmann-Rice,D.,Kumar,S.,\r\n                  Dean,J. Distributed representations of words and phrases            and Ravikumar, P. Loss decomposition for fast learning\r\n                  and their compositionality. In Advances in neural infor-            in large output spaces. In International Conference on\r\n                  mation processing systems, pp. 3111\u20133119, 2013.                     Machine Learning, pp. 5626\u20135635, 2018.\r\n               Owens, J. D., Houston, M., Luebke, D., Green, S., Stone,\r\n                  J. E., and Phillips, J. C. Gpu computing. 2008.                  A DIFFERENTHASHFUNCTIONS\r\n               Recht, B., Re, C., Wright, S., and Niu, F. Hogwild: A lock-         Signed Random Projection (Simhash) : Refer (Gionis\r\n                  free approach to parallelizing stochastic gradient descent.      et al., 1999) for explanation of the theory behind Simhash.\r\n                  In Advances in neural information processing systems,            Weuse K \u00d7L number of random pre-generated vectors\r\n                  pp. 693\u2013701, 2011.                                               with components taking only three values {+1,0,\u22121}. The\r\n               Shrivastava, A. and Li, P. Asymmetric lsh (alsh) for sub-           reason behind using only +1s and \u22121s is for fast imple-\r\n                  linear time maximum inner product search (mips). In              mentation. It requires additions rather than multiplications,\r\n                  Advances in Neural Information Processing Systems, pp.           thereby reducing the computation and speeding up the hash-\r\n                  2321\u20132329, 2014a.                                                ing process. To further optimize the cost of Simhash in\r\n                                                                                   practice, we can adopt the sparse random projection idea (Li\r\n               Shrivastava, A. and Li, P. Densifying one permutation               et al., 2006). A simple implementation is to treat the random\r\n                  hashing via rotation for fast near neighbor search. In           vectors as sparse vectors and store their nonzero indices in\r\n                  International Conference on Machine Learning, pp. 557\u2013           addition to the signs. For instance, let the input vector for\r\n                  565, 2014b.                                                      Simhash be in Rd. Suppose we want to maintain 1/3 spar-\r\n                                                                                   sity, we may uniformly generate K \u2217 L set of d/3 indices\r\n               Spring, R. and Shrivastava, A. A new unbiased and ef\ufb01cient          from [0,d \u22121]. In this way, the number of multiplications\r\n                  class of lsh-based samplers and estimators for partition         for one inner product operation during the generation of the\r\n                  function computationinlog-linear models. arXiv preprint          hash codes would simply reduce from d to d/3. Since the\r\n                  arXiv:1703.05160, 2017a.                                         randomindices are produced from one-time generation, the\r\n                                                                                   cost can be safely ignored.\r\n               Spring, R. and Shrivastava, A. Scalable and sustainable             Winner Takes All Hashing (WTA hash) :               In SLIDE,\r\n                  deep learning via randomized hashing. In Proceedings             weslightly modify the WTA hash algorithm from (Yagnik\r\n                  of the 23rd ACM SIGKDD International Conference on               et al., 2011) for memory optimization. Originally, WTA\r\n                  Knowledge Discovery and Data Mining, pp. 445\u2013454.                takes O(KLd) space to store the random permutations \u0398\r\n                  ACM,2017b.                                                       given the input vector is in Rd. m << d is a adjustable\r\n               Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I.,          hyper-parameter. We only generate KLm rather than K \u2217L\r\n                                                                                                                            d\r\n                  and Salakhutdinov, R. Dropout: a simple way to prevent           permutations and thereby reducing the space to O(KLm).\r\n                  neural networks from over\ufb01tting. The Journal of Machine          Every permutation is split into d parts (bins) evenly and\r\n                                                                                                                      m\r\n                  Learning Research, 15(1):1929\u20131958, 2014.                        each of them can be used to generate one WTA hash code.\r\n                                     SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                        Computing the WTA hash codes also takes O(KLm) oper-                                                     weretrieve from \u03c4 tables in total. Formally, the probability\r\n                        ations.                                                                                                  that a neuron Nj gets chosen is,\r\n                                                                                                                                                           l\r\n                        Densi\ufb01edWinnerTakesAllHashing(DWTAhash): As                                                                                               j           K \u03c4               K L\u2212\u03c4\r\n                                                                                                                                                       Pr(N )=(p ) (1\u2212p )                                   ,                 (2)\r\n                        arguedin(Chen&Shrivastava,2018),whentheinputvector                                                                                       l\r\n                        is very sparse, WTA hashing no longer produces represen-                                                 where p is the collision probability of the LSH function that\r\n                        tative hash codes. Therefore, we use DWTA hashing, the                                                   SLIDEuses. For instance, if Simhash is used,\r\n                        solution proposed in (Chen & Shrivastava, 2018). Similar                                                                                                  \u0010                      \u0011\r\n                                                                       KLm                                                                                                              (wj)Tx\r\n                        to WTAhash, we generate                                  number of permutations                                                                cos\u22121                l      l\r\n                                                                          d                                                                                                          ||wj|| \u00b7||x ||\r\n                        and every permutation is split into d bins. DWTA loops                                                                         p = 1\u2212                            l   2     l  2    .\r\n                                                                                    m                                                                                                   \u03c0\r\n                        through all the nonzero (NNZ) indices of the sparse input.\r\n                        For each of them, we update the current maximum index                                                    From the previous process, we can see that the time com-\r\n                        of the corresponding bins according to the mapping in each                                               plexity of vanilla sampling is O(\u03b2l).\r\n                        permutation.                                                                                             TopKSampling: Inthisstrategy,thebasicideaistoobtain\r\n                        It should be noted that the number of comparisons and                                                    those neurons that occur more frequently among all L hash\r\n                        memorylookupsinthis step is O(NNZ \u2217 KLm), which is                                                       tables. After querying with the input, we \ufb01rst retrieve all\r\n                                                                                                   d\r\n                        signi\ufb01cantly more ef\ufb01cient than simply applying WTA hash                                                 the neurons from the corresponding bucket in each hash\r\n                        to sparse input. For empty bins, the densi\ufb01cation scheme                                                 table. While retrieving, we use a hashmap to keep track\r\n                        proposed in (Chen & Shrivastava, 2018) is applied.                                                       of the frequency with which each neuron appears. The\r\n                        Densi\ufb01ed One Permutation Minwise Hashing(DOPH):                                                          hashmap is sorted based on the frequencies, and only the\r\n                        The implementation mostly follows the description of                                                     neurons with top \u03b2l frequencies are selected. This requires\r\n                                                                                                                                 additional O(|Na|) space for maintaining the hashmap and\r\n                        DOPHin(Shrivastava & Li, 2014b). DOPH is mainly de-                                                                                 l\r\n                                                                                                                                 O(|Na|+|Na|log|Na|)timeforbothsamplingandsorting.\r\n                        signed for binary inputs. However, the weights of the inputs                                                       l           l            l\r\n                        for each layer are unlikely to be binary. We use a thresh-                                               HardThresholding: The TopK Sampling could be expen-\r\n                        olding heuristic for transforming the input vector to binary                                             sive due to the sorting step. To overcome this, we propose\r\n                        representation before applying DOPH. The k highest values                                                a simple variant that collects all neurons that occur more\r\n                        among all d dimensions of the input vector are converted                                                 than a certain frequency. This bypasses the sorting step and\r\n                        to 1s and the rest of them become 0s. De\ufb01ne idxk as the                                                  also provides a guarantee on the quality of sampled neurons.\r\n                        indices of the top k values for input vector x. Formally,                                                Supposeweonlyselectneuronsthatappearatleast m times\r\n                                                                        (                                                        in the retrieved buckets, the probability that a neuron Nj\r\n                                           Threshold(x ) =                 1,      if i \u2208 idxk.                                                                                                                                  l\r\n                                                                i          0,      otherwise.                                    gets chosen is,\r\n                                                                                                                                                                       L\r\n                                                                                                                                                            j        X \u0001\r\n                                                                                                                                                                              L       K i              K L\u2212i\r\n                       Wecouldusesortingalgorithms to get the top k indices, but                                                                 Pr(N )=                          (p ) (1\u2212p )                     ,           (3)\r\n                                                                                                                                                           l                  i\r\n                        it induces at least O(dlogd) overhead. Therefore, we keep                                                                                    i=m\r\n                        a priority queue with indices as keys and the corresponding                                              Figure 11 shows a sweep of curves that present the relation\r\n                        data values as values. This requires O(dlogk) operations.                                                between collision probability of h (wj) and h (x ) and the\r\n                                                                                                                                                                                          l     l             l    l\r\n                                                                                                                                 probability that neuron Nj is selected under various values\r\n                        B REDUCINGTHESAMPLINGOVERHEAD                                                                                                                      l\r\n                                                                                                                                 of m when L = 10. We can visualize the trade-off between\r\n                        ThekeyideaofusingLSHforadaptivesamplingofneurons                                                         collecting more good neurons and omitting bad neurons by\r\n                        with large activation is sketched in \u2018Introduction to over-                                              tweaking m. For a high threshold like m = 9, only the\r\n                        all system\u2019 section in the main paper. We have designed                                                  neurons with p > 0.8 have more than Pr > 0.5 chance of\r\n                        three strategies to sample large inner products: 1) Vanilla                                              retrieval. This ensures that bad neurons are eliminated but\r\n                        Sampling 2) Topk Sampling 3) Hard Thresholding. We \ufb01rst                                                  the retrieved set might be insuf\ufb01cient. However, for a low\r\n                        introduce them one after the other and then discuss their                                                threshold like m = 1, all good neurons are collected but\r\n                        utility and ef\ufb01ciency. Further experiments are reported in                                               bad neurons with p < 0.2 are also collected with Pr > 0.8.\r\n                        section C.                                                                                               Therefore, depending on the tolerance for bad neurons, we\r\n                                                                                                                                 choose an intermediate m in practice.\r\n                        Vanilla Sampling:                    Denote \u03b2l as the number of active\r\n                        neurons we target to retrieve in layer l. After computing the                                            C DESIGNCHOICECOMPARISONS\r\n                        hashcodesoftheinput,werandomlychooseatableandonly\r\n                        retrieve the neurons in that table. We continue retrieving                                               In the main paper, we presented several design choices in\r\n                        neurons from another random table until \u03b2 neurons are                                                    SLIDE which have different trade-offs and performance\r\n                                                                                                   l\r\n                        selected or all the tables have been looked up. Let us assume                                            behavior, e.g., executing MIPS ef\ufb01ciently to select active\r\n                         SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                                rgnidlosherhT ycneuqerF rof ffo edaT                       Table 3. Time taken by hash table insertion schemes\r\n                      10.                                                                                       Insertion to HT     Full Insertion\r\n                                                                                       Reservoir Sampling            0.371 s        18s\r\n                      08.                                                                      FIFO                  0.762 s        18s\r\n                      06.\r\n                     Pr\r\n                      04.                                        m1=\r\n                                                                 m3=                 Figure 12 presents the results. The blue, red and green dots\r\n                      02.                                        m5=                 represent Vanilla sampling, TopK thresholding, and Hard\r\n                                                                 m7=                 thresholding respectively. It shows that the TopK thresh-\r\n                      00.                                        m9=                 olding strategy takes magnitudes more time than Vanilla\r\n                          01.  02.  03.   04.  05.p 06.  07.   08.  09.              sampling and Hard thresholding across all number of sam-\r\n                                                                                     ples consistently. Also, we can see that the green dots are\r\n                Figure 11. Hard Thresholding: Theoretical selection probability      just slightly higher than the blue dots meaning that the time\r\n                Prvsthecollision probabilities p for various values of frequency     complexity of Hard Thresholding is slightly higher than\r\n                threshold m (eqn. 3). High threshold (m = 9) gets less number        Vanilla Sampling. Note that the y-axis is in log scale. There-\r\n                of false positive neurons but misses out on many active neurons.     fore when the number of samples increases, the rates of\r\n                Alowthreshold (m = 1) would select most of the active neurons        change for the red dots are much more than those of the\r\n                along with lot of false positives.                                   others. This is not surprising because TopK thresholding\r\n                                                                                     strategy is based on sorting algorithms which has O(nlogn)\r\n                                         MseigetartS SPI                             running time. Therefore, in practice, we suggest choos-\r\n                                                                                     ing either of Vanilla Sampling or Hard Thresholding for\r\n                    10\u22121                                                             ef\ufb01ciency. For instance, we use Vanilla Sampling in our\r\n                                                                                     extreme classi\ufb01cation experiments because it is the most\r\n                                agnilpmaS allinV                                     ef\ufb01cient one. Furthermore, the difference between iteration\r\n                   Temi         ognilpmaS KpT                                        wise convergence of the tasks with TopK Thresholding and\r\n                    10\u22122        HgnidlosherhT dra                                    Vanilla Sampling are negligible.\r\n                                                                                     C.2    Addition to Hashtables\r\n                    10\u22123                                                             SLIDEsupportstwoimplementations of insertion policies\r\n                        2000    3000     4000    5000    6000    7000                for hash tables described in section 3.1 in main paper. We\r\n                                           #selpmaS                                  pro\ufb01le the running time of the two strategies, Reservoir\r\n                                                                                     Sampling and FIFO. After the weights and hash tables ini-\r\n                Figure 12. Sampling Strategies: Time consumed (in seconds) for       tialization, we clock the time of both strategies for insertions\r\n                various sampling methods after retrieving active neurons from        of all 205,443 neurons in the last layer of the network, where\r\n                HashTables.                                                          205,443isthenumberofclassesforDeliciousdataset. Then\r\n                                                                                     wealsobenchmarkthetimeofwholeinsertionprocess in-\r\n                neurons, adopting the optimal policies for neurons insertion         cluding generating the hash codes for each neuron before\r\n                in hash tables, etc. In this section, we substantiate those          inserting them into hash tables.\r\n                design choices with key metrics and insights. In order to            Theresults are shown in Table C.2. The column \u201cFull Inser-\r\n                better analyze them in more practical settings, we choose            tion\u201d represents the overall time for the process of adding all\r\n                to benchmark them in real classi\ufb01cation tasks on Delicious-          neurons to hash tables. The column \u201cInsertion to HT\u201d repre-\r\n                200Kdataset.                                                         sents the exact time of adding all the neurons to hash tables\r\n                C.1   Evaluating Sampling Strategies                                 excluding the time for computing the hash codes. Reservoir\r\n                                                                                     Sampling strategy is more ef\ufb01cient than FIFO. From an al-\r\n                Sampling is a crucial step in SLIDE. The quality and quan-           gorithmic view, Reservoir Sampling inserts based on some\r\n                tity of selected neurons and the overhead of the selection           probability, but FIFO guarantees successful insertions. We\r\n                strategy signi\ufb01cantly affect the SLIDE performance. We               observe that there are more memory accesses with FIFO.\r\n                pro\ufb01letherunningtimeofthesestrategies, includingVanilla              However, compared to the full insertion time, the bene\ufb01ts\r\n                sampling, TopK thresholding, and Hard thresholding, for              of Reservoir Sampling are still negligible. Therefore we\r\n                selecting a different number of neurons from the hash tables         can choose either strategy based on practical utility. For\r\n                during the \ufb01rst epoch of the classi\ufb01cation task.                     instance, we use FIFO in our experiments.\r\n                        SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n               D THREADINGMODELANDPLATFORM                                       dation. Muchpreviouswork(e.g., (Wicaksonoetal.,2011))\r\n                     MICRO-ARCHITECTURE                                          have tried to detect and resolve the issue of false sharing for\r\n                     OPTIMIZATION                                                OpenMPmulti-threadsmainlyusingcompileroptimizations\r\n                                                                                 and hardware performance counters. However, generally\r\n               Ourexperimental analysis shows that SLIDE is a memory-            speaking, carefully allocating data structures and aligning\r\n               boundworkload. Weshowthatacarefulworkloadoptimiza-                them on cache line boundaries (e.g., by padding) signi\ufb01-\r\n               tion to design a threading model and a data access pattern to     cantly reduce the false sharing opportunities. We chose to\r\n               take into consideration the underlying platform architecture      use the later alternative for SLIDE.\r\n               leads to a signi\ufb01cant performance boost.                          Address     Translation     and    Support     for   Kernel\r\n               OpenMP and Cache Optimizations: A key metric for                  Hugepages:       Virtual memory provides applications\r\n               the identi\ufb01cation of memory and cache performance bottle-         with a \ufb02at address space and an illusion of suf\ufb01ciently large\r\n               necks in a multi-threaded application, e.g., SLIDE, is the        and linear memory. The addressed memory is divided into\r\n               numberofdatamissesinthecoreprivate caches. This is a              \ufb01xed-size pages, and a page table is used to map virtual\r\n               signi\ufb01cant source of coherence traf\ufb01c, potentially making         pages to physical ones. The address lookup is accelerated\r\n               the shared bus a bottleneck in a symmetric multiprocessor         using Translation Lookaside Buffers (TLBs).\r\n               (SMP)architecture, thus increasing memory latency.                Since SLIDE is a workload with a large memory footprint,\r\n               OpenMPprovidesastandard, easy to use model for scaling            the performance of virtual memory paging can suffer due\r\n               upaworkloadamongalltheavailable platform cores. The               to stagnant TLB sizes. TLB address translation is on the\r\n               master thread forks a speci\ufb01ed number of worker threads           processors critical path. It requires low access times which\r\n               to run concurrently, and by default, threads are kept un-         constrain TLB size (and thus, the number of pages it holds).\r\n               bound and are spread across available cores, if any. Gen-         OnaTLBmiss,thesystemmustwalkthepagetable,which\r\n               erally speaking, an inclusive last level cache (LLC) can          may incur additional cache misses. Recent studies show\r\n               improve data sharing, because a new thread created to run         that workloads with large memory footprints can experience\r\n               on a remote core, can probably \ufb01nd a copy of a shared data        a signi\ufb01cant performance overhead due to excessive page\r\n               structure in the LLC, this is especially true if the accesses     table walks (Karakostas et al., 2014; Basu et al., 2013).\r\n               are mostly read-only, and ignoring the effect of evictions        WeemployHugepagesforSLIDE,whichisatechnology\r\n               overhead from private core caches (Meng & Skadron, 2009).         for x86-64 architectures to map much larger pages than the\r\n               With the new trend in CPU architecture of a non-inclusive         default 4KB normal-sized pages on the orders of 2 MB to\r\n               LLC(e.g. Intel\u2019s Skylake architecture (Kumar et al., 2017))       1GB.Useofhugepages(TransparentHugepagesandlib-\r\n               multi-threaded workloads can operate on larger data per           hugetlbfs (Corbet, 2011)) increases TLB reach substantially,\r\n               thread (due to increased L2 size). However, due to the new        and reduces the overhead associated with excessive TLB\r\n               design of a non-inlusive LLC remote thread missing on a           misses and table walks.\r\n               shareddatastructurecancausecachethrashing,invalidation,\r\n               and bouncing of shared data among cores. We noticed that          Vector Processing, Software Pipelining, and Prefetch-\r\n               SLIDEispronetothis bottleneck.                                    ing: We further use software optimization techniques to\r\n               Fortunately, OpenMP provides a control for thread af\ufb01nity         improve workload performance in SLIDE. In particular,\r\n               where a mask is set by an af\ufb01nity preference and checked          we use Vector processing which is capable of exploiting\r\n               during runtime for possible locations for a thread to run.        data-level parallelism through the use of Single-Instruction-\r\n               Whenthreadsareaccessing mostly private independent data           Multiple-Data (SIMD) execution, where a function is called\r\n               items, it is best to scatter these among the available possi-     with a batch of inputs instead of an individual input (e.g.,\r\n               ble cores for an almost linear speedup with the available         the function to update a large matrix of weights in the back-\r\n               cores due to no data dependency. On the other hand, if            propagation phase). The implementation uses SIMD instruc-\r\n               these threads are accessing items in a shared data struc-         tions (e.g., Intel AVX (Kumar et al., 2017)) to implement\r\n               ture, it is generally better to schedule these threads in a       the update to multiple weights simultaneously. Implement-\r\n               morecompactpacking(using the OpenMP Af\ufb01nity=close)                ing a software pipeline is an excellent way to hide memory\r\n               where threads are scheduled closer (same CPU socket) as           latency for memory-bound workloads. Our implementation\r\n               the master thread.                                                divides the processing of data items into stages of a pipeline,\r\n                                                                                 where explicit software prefetch stage (using, for example,\r\n               Furthermore, CPU caches are arranged into cache lines.            x86PREFETCHT0instructionset)isfollowedbyaprocess-\r\n               Multiple threads updating data items that happen to co-           ing stage(s). The data items that are accessed in the future\r\n               locate into the same cache line (called false sharing) can        are prefetched into the core caches in advance to the time\r\n               also cause cache thrashing, since these updates need to be se-    when they are needed to get processed. In particular, for\r\n               rialized to ensure correctness, leading to performance degra-     a vector processing of updating of N weights, a software\r\n                                                SLIDE:InDefenseofSmartAlgorithmsoverHardwareAccelerationforLarge-ScaleDeepLearningSystems\r\n                              implementation can prefetch weight Wi+d (where d is the                                                                                 we observe that the bene\ufb01ts of using more cores are not\r\n                              depth of the pipeline) while updating weight Wi, as a result,                                                                           obvious after 16 cores for Tensor\ufb02ow-CPU. Coincidentally,\r\n                              whenit is time to process weight W                                                     it is already in the                             a very recent work (Hasabnis, 2018) introduces the hardness\r\n                                                                                                             i+d\r\n                              CPUcache.                                                                                                                               of \ufb01nding the optimal parameter settings of Tensor\ufb02ows\r\n                                                                                                                                                                      threading model for CPU backends. It argues that getting\r\n                              D.1           MeasuringtheImpactofTransparentHugepages                                                                                  the best performance from a CPU needs manual, tedious\r\n                              In table 4, we show the results for examining the impact of                                                                             and time-consuming tuning and it still may not guarantee\r\n                              Transparent Hugepages on various CPU-counter metrics.                                                                                   the best performance. While analyzing the scalability and\r\n                                                                                                                                                                      core utilization of Tensor\ufb02ow-CPU can be an independent\r\n                              Adirect bene\ufb01t of employing Transparent Hugepages is                                                                                    research interest, we explore a small aspect of it in the fol-\r\n                              the drastic reduction in TLB miss rate. For example, the                                                                                lowing paragraphs.\r\n                              \ufb01rst row in table 4 shows that the TLB load miss rate for\r\n                              data reduces from 5.12% to 0.25%. Similarly, TLB load                                                                                                               DeK002s-uoicil                                                      Amazon-670K\r\n                                                                                                                                                                           10 1                                           TUPC-F             6\u00d7 100                                          TF-CPU\r\n                              miss rate for instruction also decreases from 56.12% to                                                                                                                                     SDEIL                                                              SLIDE\r\n                              20.96%. Consequently, we expect a huge reduction in page                                                                                                                                                       4\u00d7 100\r\n                              table walks (PTW) incurred due to TLB misses. This is                                                                                                                                                          3\u00d7 100\r\n                                                                                                                                                                          Roita                                                             Ratio\r\n                              corroborated in rows 3 and 4 of table 4. We see that the                                                                                                                                                       2\u00d7 100\r\n                              ratios of CPU cycles spent by PTWs caused by data and\r\n                              instruction TLB misses have reduced from 7.74% to 0.72%                                                                                      10 0                                                                100\r\n                                                                                                                                                                                 21         22        23        2 4        25                       2 1        22        2 3        24        25\r\n                              and0.02%to0.015%respectively. Asmentionedinsection                                                                                                                     #seroC                                                              # Cores\r\n                              D, TLBmisses cause expensive main memory reads. Using\r\n                              Hugepages,wereducethememoryreadscausedbydataand                                                                                         Figure 13. Scalability Tests: Comparison of performance gains\r\n                              instruction TLB misses from 3,062,039/s to 749,485/s                                                                                    with the number of CPU cores for SLIDE (in red ) vs. Tensor\ufb02ow-\r\n                              and 12,060/s and 11,580/s respectively. Finally, we also                                                                                CPU (in black) vs. Tensor\ufb02ow-GPU (in blue). The blue line\r\n                              report the reduction in page faults (which can possibly occur                                                                           is \ufb02at because the performance of TF-GPU does not depend on\r\n                              whenthere is a TLB miss) from 32,548/s to 26,527/s.                                                                                     CPUcores. Wenotice that the convergence time drops steeply for\r\n                                                                                                                                                                      SLIDEcomparedtoTF-CPU/GPU.OnDelicious-200Kdataset,\r\n                                  Metric                                                     Without                          With                                    SLIDE beats TF-CPU with just 8 cores and TF-GPU with less\r\n                                                                                              Hugepages                       Hugepages                               than 32 cores. Similarly, on Amazon-670K dataset, SLIDE beats\r\n                                                                                                                                                                      TF-CPU with just 2 cores and TF-GPU with just 8 cores. The\r\n                                                                                                                                                                         nd              th\r\n                                  dTLBloadmissrate                                            5.12%                           0.25%                                   2        and 4           plots compare the ratio of the convergence time at a\r\n                                  iTLBloadmissrate                                            56.12%                          20.96%                                  various number of CPU cores to the minimum time required (when\r\n                                  PTWdTLB-miss                                               7.74%                            0.72%                                   weuseall44CPUcores).\r\n                                  PTWiTLB-miss                                                0.02%                           0.015%\r\n                                  RAMreaddTLB-miss                                           3,062,039/s 749,485/s\r\n                                  RAMreadiTLB-miss                                           12,060/s                         11,580/s\r\n                                  PageFault                                                  32,548/s                         26,527/s\r\n                              Table 4. Comparison of various CPU-counter metrics for both\r\n                              cases; with and without using Transparent Hugepages.\r\n                               E MOREDISCUSSIONONSCALABILITY\r\n                              Moreover, based on the statistics collected through experi-\r\n                              mentsasmentionedabove,weshowtheratioofconvergence\r\n                              time with the different number of cores to the minimum con-\r\n                              vergence time (using 44 cores). The results are exhibited in\r\n                              Figure 13. Again, the red line represents SLIDE, and the\r\n                              black line represents Tensor\ufb02ow-CPU. When the number\r\n                              of cores increases, that ratio decreases for both SLIDE and\r\n                              Tensor\ufb02ow-CPU. However, it is explicit that the ratio drops\r\n                              more drastically for the red line than the black line. This\r\n                              behavior concludes that the scalability of SLIDE is much\r\n                              better than that of Tensor\ufb02ow-CPU. Moreover, in the plot,\r\n", "award": [], "sourceid": 105, "authors": [{"given_name": "Beidi", "family_name": "Chen", "institution": "Rice University"}, {"given_name": "Tharun", "family_name": "Medini", "institution": "Rice University"}, {"given_name": "James", "family_name": "Farwell", "institution": "Intel Corporation"}, {"given_name": "sameh", "family_name": "gobriel", "institution": "Intel Corp."}, {"given_name": "Charlie", "family_name": "Tai", "institution": "Intel Corporation"}, {"given_name": "Anshumali", "family_name": "Shrivastava", "institution": "Rice University"}]}