Skip to content

Research Articles

Precision Changes across an Accelerator Boundary: Heterogeneous Partitions

Ravi Vesperwick (Data Engineering Group, Glenwick University), Imani Viremont (Distributed Systems Group, Cairnwell Research Institute)

Vol. 3 No. 1 (2024) · pp. 14–17 · Published 26 February 2024

Abstract

For a collection of partitions with different input and resource profiles, we construct a synthetic comparison between assigning numerical formats from error sensitivity at each boundary and using the smallest supported format throughout. Each configuration is evaluated on the same 240 cases. In the 60 stress cases, an intermediate result must have a larger range than expected; held-out partitions are selected before configuration so that tuning cannot target their particular failure cases. A case counts as a pass only if it meets this criterion: outputs must remain within tolerance under the stated bandwidth limit. The comparison uses a bounded device model and equalizes the applicable work allowance. It includes control and interface overhead rather than assuming that a change in intrinsic device speed transfers to the whole calculation. Across the full set, 180 cases meet the criterion with the first configuration and 166 with the second. The stress cases account for 45 and 35 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that more format changes create conversion overhead. The modeled comparison identifies which costs to include in a physical benchmark; it makes no claim about hardware performance outside the fixture.

Keywords: mixed precision, accelerator interfaces, numerical error, heterogeneous partitions, synthetic evaluation

References

  1. Chen, T., et al. (2014). DianNao: A small-footprint high-throughput accelerator for ubiquitous machine-learning. Proceedings of the 19th International Conference on Architectural Support for Programming Languages and Operating Systems, 269–284.
  2. Davies, M., et al. (2018). Loihi: A neuromorphic manycore processor with on-chip learning. IEEE Micro, 38(1), 82–99. IEEE
  3. Fowler, A. G., Whiteside, A. C., & Hollenberg, L. C. L. (2012). Towards practical classical processing for the surface code. Physical Review Letters, 108, 180501. DOI
  4. Jia, X., et al. (2018). Highly scalable deep learning training system with mixed-precision: Training ImageNet in four minutes. arXiv:1807.11205.
  5. Kandala, A., et al. (2017). Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets. Nature, 549, 242–246. DOI
  6. Lane, N. D., et al. (2016). DeepX: A software accelerator for low-power deep learning inference on mobile devices. Proceedings of the 15th ACM/IEEE International Conference on Information Processing in Sensor Networks, Article 23.
  7. Lin, X., et al. (2018). All-optical machine learning using diffractive deep neural networks. Science, 361(6406), 1004–1008. DOI
  8. Micikevicius, P., et al. (2017). Mixed precision training. arXiv:1710.03740.
  9. Preskill, J. (2018). Quantum computing in the NISQ era and beyond. Quantum, 2, 79. DOI
  10. Shafiee, A., et al. (2016). ISAAC: A convolutional neural network accelerator with in-situ analog arithmetic in crossbars. Proceedings of the 43rd Annual International Symposium on Computer Architecture, 14–26. DOI
  11. Shen, S., et al. (2019). Q-BERT: Hessian based ultra low precision quantization of BERT. arXiv:1909.05840.
  12. Temme, K., Bravyi, S., & Gambetta, J. M. (2017). Error mitigation for short-depth quantum circuits. Physical Review Letters, 119, 180509. DOI
  13. Wetzstein, G., et al. (2020). Inference in artificial intelligence with deep optics and photonics. Nature, 588, 39–47. DOI