Research Articles
Memory-Aware Training of Deep Networks: Concurrent Changes
Anika Belmere (Machine Learning Laboratory, Glenwick University), Idris Crestmere (Machine Learning Laboratory, Ivermere University), Omar Faldenwood (Machine Learning Laboratory, Thornmere Polytechnic), Kian Fallowby (Machine Learning Laboratory, Glenwick University), Devon Crestmere (Machine Learning Laboratory, Ivermere University), Mara Meadowick (Machine Learning Laboratory, Pinewick School of Engineering)
Vol. 2 No. 1 (2018) · pp. 91–106 · Published 19 June 2018
Abstract
We ask whether recomputing selected activations according to their memory and compute costs performs better than uniform activation checkpointing by layer count in a test fixture with overlapping transitions. The evaluation is synthetic. Each configuration is evaluated on the same 200 cases. In the 50 stress cases, one unusually wide intermediate layer must dominate memory; both changes are replayed together as well as separately to distinguish an interaction from an isolated error. A case counts as a pass only if it meets this criterion: an update must fit the memory budget without exceeding the step-time limit. The comparison holds the training and selection splits fixed across alternatives; evaluation cases are not reused for tuning. Compute or memory assigned to an alternative counts toward its budget even if training does not finish. The first configuration passes 148 of 200 cases, versus 141 for the comparator. In the stress subset, the respective counts are 32 and 24 of 50. The alternative exceeds the comparator overall by 3.5 percentage points. The practical trade-off is that additional recomputation can erase any throughput gained from larger batches. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.
Keywords: activation checkpointing, memory, training, concurrent changes, synthetic evaluation
References
- Bengio, Y., Lamblin, P., Popovici, D., & Larochelle, H. (2007). Greedy layer-wise training of deep networks. Advances in Neural Information Processing Systems, 19, 153–160.
- Chen, T., Xu, B., Zhang, C., & Guestrin, C. (2016). Training deep nets with sublinear memory cost. arXiv:1604.06174.
- Conneau, A., Schwenk, H., Barrault, L., & LeCun, Y. (2017). Very deep convolutional networks for text classification. Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, 1107–1116.
- Courbariaux, M., Bengio, Y., & David, J.-P. (2015). BinaryConnect: Training deep neural networks with binary weights during propagations. Advances in Neural Information Processing Systems, 28, 3123–3131.
- Courbariaux, M., Hubara, I., Soudry, D., El-Yaniv, R., & Bengio, Y. (2016). Binarized neural networks: Training deep neural networks with weights and activations constrained to +1 or −1. arXiv:1602.02830.
- Dahl, G. E., Yu, D., Deng, L., & Acero, A. (2012). Context-dependent pre-trained deep neural networks for large-vocabulary speech recognition. IEEE Transactions on Audio, Speech, and Language Processing, 20(1), 30–42.
- Ghoshal, A., Swietojanski, P., & Renals, S. (2013). Multilingual training of deep neural networks. Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing, 7319–7323.
- Glorot, X., & Bengio, Y. (2010). Understanding the difficulty of training deep feedforward neural networks. Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, 249–256.
- Huang, G., Sun, Y., Liu, Z., Sedra, D., & Weinberger, K. Q. (2016). Deep networks with stochastic depth. Computer Vision – ECCV 2016, Lecture Notes in Computer Science, 9908, 646–661.
- Larochelle, H., Bengio, Y., Louradour, J., & Lamblin, P. (2009). Exploring strategies for training deep neural networks. Journal of Machine Learning Research, 10, 1–40.
- Rhu, M., Gimelshein, N., Clemons, J., Zulfiqar, A., & Keckler, S. W. (2016). vDNN: Virtualized deep neural networks for scalable, memory-efficient neural network design. Proceedings of the 49th Annual IEEE/ACM International Symposium on Microarchitecture, Article 18.
- Salimans, T., & Kingma, D. P. (2016). Weight normalization: A simple reparameterization to accelerate training of deep neural networks. Advances in Neural Information Processing Systems, 29, 901–909.
- Zen, H., Senior, A., & Schuster, M. (2013). Statistical parametric speech synthesis using deep neural networks. Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing, 7962–7966.
