AI and efficiency

Compute Scaling Footnotes A In the sorting example, the “difficulty” of the problem is the length of the list. The cost for quicksort, a commonly used algorithm is denoted in Big O notation: O(nlogn) O(n\log{}n) B Inference costs dominate total costs for successful deployed systems. Inference costs scale with usage of the system, whereas training costs only need to be paid once. C Throughout this post we refer to Moore’s Law as the consistent, long-observed 2-year doubling time of dollars/flop. One could also interpret Moore’s Law as the trend in dollars/flop, that has recently slowed down. D For instance algorithmic progress could change the complexity class on some task from exponential to polynomial cost. Such efficiency gains on capabilities of interest are intractable to directly observe, though they may be observable through asymptotic analysis or extrapolating empirically derived scaling laws. E Making credible forecasts on such topics is a substantial enterprise, we’d rather avoid here than give insufficient treatment. F In fact, this work was primarily done by training PyTorch examples models, with tweaks to improve early learning. G ImageNet is the only training data source allowed for the vision benchmark. No human captioning, other images, or other data is allowed. Automated augmentation is ok. References 1 Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Fei-Fei, L. (2009). “ ImageNet: A Large-Scale Hierarchical Image Database(opens in a new window) .” In CVPR09. 2 Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). “ Imagenet classification with deep convolutional neural networks(opens in a new window) .” In F. Pereira, C. J. C. Burges, L. Bottou, & K. Q. Weinberger (Eds.), Advances in Neural Information Processing Systems 25 (pp. 1097–1105). Curran Associates, Inc. 3 4 5 Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., & Rabinovich, A. (2014). “ Going deeper with convolutions(opens in a new window) .” 6 7 8 Iandola, F. N., Han, S., Moskewicz, M. W., Ashraf, K., Dally, W. J., & Keutzer, K. (2016). “ Squeezenet: Alexnet-level accuracy with 50x fewer parameters and <0.5mb model size(opens in a new window) .” 9 Xie, S., Girshick, R., Dollár, P., Tu, Z., & He, K. (2016). “ Aggregated residual transforma- tions for deep neural networks(opens in a new window) .” 11 12 Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., An- dreetto, M., & Adam, H. (2017). “ Mobilenets: Efficient convolutional neural networks for mobile vision applications(opens in a new window) .” 13 14 15 16 17 18 19 Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmai- son, A., Antiga, L., & Lerer, A. (2017). “ Automatic differentiation in PyTorch. In NIPS Autodiff Workshop(opens in a new window) .” 20 21 22 Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). “ Attention is all you need. CoRR, abs/1706.03762(opens in a new window) .” 23 24 Silver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., Lanctot, M., Sifre, L., Kumaran, D., Graepel, T., Lillicrap, T., Simonyan, K., & Hassabis, D. (2018). “ A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 362(6419), 1140–1144(opens in a new window) .” 25 Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A., Chen, Y., Lillicrap, T., Hui, F., Sifre, L., van den Driessche, G., Graepel, T., & Hassabis, D. (2017). “ Mastering the game of go without human knowledge. Nature, 550, 354–(opens in a new window) .” OpenAI et. al, :, Berner, C., Brockman, G., Chan, B., Cheung, V., De ̨biak, P., Dennison, C., Farhi, D., Fischer, Q., Hashme, S., Hesse, C., Józefowicz, R., Gray, S., Olsson, C., Pachocki, J., Petrov, M., de Oliveira Pinto, H. P., Raiman, J., Salimans, T., Schlatter, J., Schneider, J., Sidor, S., Sutskever, I., Tang, J., Wolski, F., & Zhang, S. (2019). “ Dota 2 with Large Scale Deep Reinforcement Learning(opens in a new window) .” Cody A. Coleman, Deepak Narayanan, Daniel Kang, Tian Zhao, Jian Zhang, Luigi Nardi, Peter Bailis, Kunle Olukotun, Chris Ré, and Matei Zaharia (2017). “ High Throughput Sequencing and Cost Trends(opens in a new window) .” 28 Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmai- son, A., Antiga, L., & Lerer, A. (2017). “ DAWNBench: An End-to-End Deep Learning Benchmark and Competition. NIPS ML SYSTEMS WORKSHOP, 2017(opens in a new window) .” 29 30 31 van den Oord, A., Li, Y., Babuschkin, I., Simonyan, K., Vinyals, O., Kavukcuoglu, K., van den Driessche, G., Lockhart, E., Cobo, L. C., Stimberg, F., Casagrande, N., Grewe, D., Noury, S., Dieleman, S., Elsen, E., Kalchbrenner, N., Zen, H., Graves, A., King, H., Walters, T., Belov, D., & Hassabis, D. (2017). “ Parallel wavenet: Fast high-fidelity speech synthesis.(opens in a new window) .” 32 Authors Danny Hernandez, Tom Brown Acknowledgments We’d like to thank the following people helpful conversations and/or feedback on this post: Dario Amodei, Jack Clark, Alec Radford, Paul Christiano, Sam McCandlish, Ilya Sutskever, Jacob Steinhardt, Jared Kaplan, Amanda Askell, John Schulman, Jacob Hilton, Asya Bergal, Katja Grace, Ryan Carey, Nicholas Joseph, Geoffrey Irving, Jeff Clune, and Ashley Pilipiszyn. Thanks to Justin Jay Wang for design. Thanks to Niki Parmar for providing the relevant points from the original transformer(opens in a new window) learning curves. Also thanks to Mingxing Tan for providing the relevant points from EfficientNet(opens in a new window) learning curves and running an experiment with reduced warmup.