{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T20:15:45Z","timestamp":1784232945192,"version":"3.55.0"},"reference-count":44,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2020,11,13]],"date-time":"2020-11-13T00:00:00Z","timestamp":1605225600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,11,13]]},"abstract":"<jats:p>Traditionally, IoT devices send collected sensor data to an intelligent cloud where machine learning (ML) inference happens. However, this course is rapidly changing and there is a recent trend to run ML on the edge IoT devices themselves. An intelligent edge is attractive because it saves network round trip (efficiency) and keeps user data at the source (privacy). However, the IoT devices are much more resource constrained than the cloud, which makes running ML on them challenging. Specifically, consider Arduino Uno, a commonly used board, that has 2KB of RAM and 32KB of read-only Flash memory. Although recent breakthroughs in ML have created novel recurrent neural network (RNN) models that provide good accuracy with KB-sized models, deploying them on tiny devices with such hard memory requirements has remained elusive.<\/jats:p>\n          <jats:p>We provide, Shiftry, an automatic compiler from high-level floating-point ML models to fixed-point C-programs with 8-bit and 16-bit integers, which have significantly lower memory requirements. For this conversion, Shiftry uses a data-driven float-to-fixed procedure and a RAM management mechanism. These techniques enable us to provide first empirical evaluation of RNNs running on tiny edge devices. On simpler ML models that prior work could handle, Shiftry-generated code has lower latency and higher accuracy.<\/jats:p>","DOI":"10.1145\/3428250","type":"journal-article","created":{"date-parts":[[2020,11,24]],"date-time":"2020-11-24T23:36:06Z","timestamp":1606260966000},"page":"1-30","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":13,"title":["Shiftry: RNN inference in 2KB of RAM"],"prefix":"10.1145","volume":"4","author":[{"given":"Aayan","family":"Kumar","sequence":"first","affiliation":[{"name":"Microsoft Research, India"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Vivek","family":"Seshadri","sequence":"additional","affiliation":[{"name":"Microsoft Research, India"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rahul","family":"Sharma","sequence":"additional","affiliation":[{"name":"Microsoft Research, India"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2020,11,13]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314597"},{"key":"e_1_2_2_2_1","unstructured":"Sridhar Gopinath Nikhil Ghanathe Vivek Seshadri and Rahul Sharma. 2019b. Microsoft EdgeML Repository. https: \/\/github.com\/microsoft\/EdgeML\/tree\/51c5ae0b81ab259f3bcab12741d7b489b7fe49de  Sridhar Gopinath Nikhil Ghanathe Vivek Seshadri and Rahul Sharma. 2019b. Microsoft EdgeML Repository. https: \/\/github.com\/microsoft\/EdgeML\/tree\/51c5ae0b81ab259f3bcab12741d7b489b7fe49de"},{"key":"e_1_2_2_3_1","volume-title":"Gudovskiy and Luca Rigazio","author":"Denis","year":"2017"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.5555\/3305381.3305519"},{"key":"e_1_2_2_5_1","volume-title":"Simultaneously Optimizing Weight and Quantizer of Ternary Neural Network Using Truncated Gaussian Approximation","author":"He Zhezhi","year":"1810"},{"key":"e_1_2_2_6_1","volume-title":"Advances in Neural Information Processing Systems 32, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alch\u00e9-Buc","author":"Hou Lu"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1109\/72.991427"},{"key":"e_1_2_2_8_1","volume-title":"Advances in Neural Information Processing Systems 29","author":"Hubara Itay"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1109\/34.291440"},{"key":"e_1_2_2_10_1","unstructured":"Forrest N. Iandola Matthew W. Moskewicz Khalid Ashraf Song Han William J. Dally and Kurt Keutzer. 2016. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <1MB model size. CoRR abs\/1602.07360 ( 2016 ). https:\/\/arxiv.org\/ abs\/1602.07360v1  Forrest N. Iandola Matthew W. Moskewicz Khalid Ashraf Song Han William J. Dally and Kurt Keutzer. 2016. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <1MB model size. CoRR abs\/1602.07360 ( 2016 ). https:\/\/arxiv.org\/ abs\/1602.07360v1"},{"key":"e_1_2_2_11_1","unstructured":"Benoit Jacob Skirmantas Kligys Bo Chen Menglong Zhu Matthew Tang Andrew G. Howard Hartwig Adam and Dmitry Kalenichenko. 2017. Quantization and Training of Neural Networks for Eficient Integer-Arithmetic-Only Inference. CoRR abs\/1712.05877 ( 2017 ). arXiv: 1712.05877 http:\/\/arxiv.org\/abs\/1712.05877  Benoit Jacob Skirmantas Kligys Bo Chen Menglong Zhu Matthew Tang Andrew G. Howard Hartwig Adam and Dmitry Kalenichenko. 2017. Quantization and Training of Neural Networks for Eficient Integer-Arithmetic-Only Inference. CoRR abs\/1712.05877 ( 2017 ). arXiv: 1712.05877 http:\/\/arxiv.org\/abs\/1712.05877"},{"key":"e_1_2_2_12_1","volume-title":"Rethinking floating point for deep learning. CoRR abs\/1811.01721 ( 2018 ). https:\/\/arxiv.org\/abs\/","author":"Johnson Jef","year":"1811"},{"key":"e_1_2_2_13_1","volume-title":"Flexpoint: An Adaptive Numerical Format for Eficient Training of Deep Neural Networks. CoRR abs\/1711.02213 ( 2017 ). https:\/\/arxiv.org\/abs\/1711.02213","author":"K\u00f6ster Urs","year":"2017"},{"key":"e_1_2_2_14_1","volume-title":"Quantizing deep convolutional networks for eficient inference: A whitepaper. CoRR abs\/","author":"Krishnamoorthi Raghuraman","year":"1806"},{"key":"e_1_2_2_16_1"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.5555\/3327546.3327577"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1109\/5.726791"},{"key":"e_1_2_2_19_1","first-page":"I","article-title":"Training Quantized Nets: A Deeper Understanding","volume":"30","author":"Li Hao","year":"2017","journal-title":"Advances in Neural Information Processing Systems"},{"key":"e_1_2_2_20_1","unstructured":"Zhouhan Lin Matthieu Courbariaux Roland Memisevic and Yoshua Bengio. 2015. Neural Networks with Few Multiplications. CoRR abs\/1510.03009 ( 2015 ). arXiv: 1510.03009 http:\/\/arxiv.org\/abs\/1510.03009  Zhouhan Lin Matthieu Courbariaux Roland Memisevic and Yoshua Bengio. 2015. Neural Networks with Few Multiplications. CoRR abs\/1510.03009 ( 2015 ). arXiv: 1510.03009 http:\/\/arxiv.org\/abs\/1510.03009"},{"key":"e_1_2_2_21_1","volume-title":"Relaxed Quantization for Discretized Neural Networks. In International Conference on Learning Representations. https:\/\/openreview.net\/forum? id=HkxjYoCqKX","author":"Louizos Christos","year":"2019"},{"key":"e_1_2_2_22_1","volume-title":"The European Conference on Computer Vision (ECCV). https:\/\/openaccess.thecvf.com\/ content_ECCV_2018\/papers\/Julieta_Martinez_LSQ_lower_runtime_ECCV_2018_paper.pdf","author":"Martinez Julieta"},{"key":"e_1_2_2_23_1","volume-title":"Same But Diferent-Recovering Neural Network Quantization Error Through Weight Factorization. CoRR abs\/","author":"Meller Eldad","year":"1902"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/581630.581674"},{"key":"e_1_2_2_25_1","doi-asserted-by":"crossref","volume-title":"Machine Learning","author":"Mitchell Tom M.","DOI":"10.1007\/978-1-4613-2279-5"},{"key":"e_1_2_2_26_1","unstructured":"Daisuke Miyashita Edward H. Lee and Boris Murmann. 2016. Convolutional Neural Networks using Logarithmic Data Representation. CoRR abs\/1603.01025 ( 2016 ). https:\/\/arxiv.org\/abs\/1603.01025  Daisuke Miyashita Edward H. Lee and Boris Murmann. 2016. Convolutional Neural Networks using Logarithmic Data Representation. CoRR abs\/1603.01025 ( 2016 ). https:\/\/arxiv.org\/abs\/1603.01025"},{"key":"e_1_2_2_27_1","first-page":"1325","volume-title":"Data-Free Quantization Through Weight Equalization and Bias Correction. In 2019 IEEE\/CVF International Conference on Computer Vision, ICCV 2019","author":"Nagel Markus","year":"2019"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1109\/DATE.2001.915108"},{"key":"e_1_2_2_29_1","volume-title":"Chirag Pabbaraju, Rajanikant Deshmukh, Harsha Simhadri, Manik Varma, and Prateek Jain.","author":"Patil Shishir","year":"2018"},{"key":"e_1_2_2_30_1","unstructured":"Mohammad Rastegari Vicente Ordonez Joseph Redmon and Ali Farhadi. 2016. XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks. CoRR abs\/1603.05279 ( 2016 ). arXiv: 1603.05279 http:\/\/arxiv.org\/abs\/1603.05279  Mohammad Rastegari Vicente Ordonez Joseph Redmon and Ali Farhadi. 2016. XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks. CoRR abs\/1603.05279 ( 2016 ). arXiv: 1603.05279 http:\/\/arxiv.org\/abs\/1603.05279"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/2503210.2503296"},{"key":"e_1_2_2_32_1","volume-title":"Manik Varma, and Prateek Jain.","author":"Saha Oindrila","year":"2020"},{"key":"e_1_2_2_33_1","volume-title":"Per-Tensor Fixed-Point Quantization of the Back-Propagation Algorithm. In International Conference on Learning Representations. https:\/\/openreview.net\/forum?id=rkxaNjA9Ym","author":"Sakr Charbel","year":"2019"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/2666356.2594302"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/2025113.2025133"},{"key":"e_1_2_2_36_1","unstructured":"STMicroelectronics. 2020. STM32 Nucleo-144 development board with STM32F439ZI MCU supports Arduino ST Zio and morpho connectivity. https:\/\/www.st.com\/en\/evaluation-tools\/nucleo-f439zi.html  STMicroelectronics. 2020. STM32 Nucleo-144 development board with STM32F439ZI MCU supports Arduino ST Zio and morpho connectivity. https:\/\/www.st.com\/en\/evaluation-tools\/nucleo-f439zi.html"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1023\/B:VISI.0000046589.39864.ee"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1109\/JIOT.2018.2837347"},{"key":"e_1_2_2_39_1","volume-title":"Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition. arXiv","author":"Warden Pete","year":"2018"},{"key":"e_1_2_2_40_1","volume-title":"Proc. International Conference on Signal Processing Applications and Technology 1997 (ICSPAT-97)","author":"M.","year":"1997"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICCV.2009.5459172"},{"key":"e_1_2_2_42_1","volume-title":"Advances in Neural Information Processing Systems 32, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alch\u00e9-Buc","author":"Zhao Yiren"},{"key":"e_1_2_2_43_1","volume-title":"5th International Conference on Learning Representations, ICLR","author":"Zhou Aojun","year":"2017"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2018.00982"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2103621.2103710"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428250","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3428250","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T22:02:57Z","timestamp":1750197777000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428250"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,11,13]]},"references-count":44,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2020,11,13]]}},"alternative-id":["10.1145\/3428250"],"URL":"https:\/\/doi.org\/10.1145\/3428250","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,11,13]]},"assertion":[{"value":"2020-11-13","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}