Auto-Tuning Framework for Efficient Large Language Model Inference on Cloud Accelerators

Authors

  • Cornelis de Plantard Department of Computer Science and Engineering, University of Nevada, Reno, Reno, NV, USA. Author
  • Baghyawati M. Nayak Department of Computer Science, Binghamton University, Binghamton, NY, USA. Author
  • Cohen Boniface Department of Computer Science, Colorado State University, Fort Collins, CO, USA. Author

Keywords:

large language model inference; cloud accelerators; auto-tuning; systems architecture; governance; sustainability; robustness; fairness; infrastructure policy

Abstract

Large language model inference on cloud accelerators has become a central systems problem because it couples model architecture, hardware heterogeneity, serving policies, energy constraints, and organizational governance. This paper develops a system-level account of an auto-tuning framework for efficient inference in cloud environments. The framework is not treated merely as a collection of parameter search routines but as a socio-technical infrastructure that continuously observes workloads, predicts latency and cost behavior, selects execution configurations, and subjects those decisions to governance and policy constraints. The analysis begins with the architectural foundations of transformer-based inference and accelerator-oriented serving, including attention optimization, memory management, quantization, adapters, speculative decoding, and distributed inference. It then examines trade-offs among throughput, latency, accuracy, robustness, fairness, and sustainability. Particular attention is given to telemetry and machine-learning-based delay prediction as an input to tuning decisions, while avoiding the reduction of auto-tuning to prediction alone. The paper argues that efficient inference requires co-design across accelerator scheduling, model compression, request routing, multi-tenant isolation, observability, and carbon-aware deployment. It also considers deployment risks such as performance instability, unfair resource allocation, vendor lock-in, and hidden environmental costs. Case illustrations from inference serving systems, adaptive model serving, and distributed transformer serving are used to show how auto-tuning frameworks can be evaluated beyond benchmark accuracy. The conclusion proposes that future auto-tuning infrastructures should be auditable, accountable, and adaptive, with explicit metrics for robustness, fairness, energy intensity, and operational resilience rather than latency alone.

References

1. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30, 5998–6008.

2. Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., ... Amodei, D. (2020). Language models are few-shot learners. Advances in Neural Information Processing Systems, 33, 1877–1901.

3. Pope, R., Douglas, S., Chowdhery, A., Devlin, J., Bradbury, J., Heek, J., ... Dean, J. (2023). Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems, 5, 606–624.

4. Dao, T., Fu, D. Y., Ermon, S., Rudra, A., & Ré, C. (2022). FlashAttention: Fast and memory-efficient exact attention with IO-awareness. Advances in Neural Information Processing Systems, 35, 16344–16359.

5. Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., ... Zhang, H. (2023). Efficient memory management for large language model serving with PagedAttention. Proceedings of the 29th Symposium on Operating Systems Principles, 611–626.

6. Zhang, J., & Gao, H. (2026, March). LLM inference delay prediction based on machine learning algorithms. In 2026 International Conference on Generative Artificial Intelligence and Information Security (GAIIS) (pp. 37-41). IEEE.

7. Dettmers, T., Lewis, M., Belkada, Y., & Zettlemoyer, L. (2022). LLM.int8(): 8-bit matrix multiplication for transformers at scale. Advances in Neural Information Processing Systems, 35, 30318–30332.

8. Frantar, E., Ashkboos, S., Hoefler, T., & Alistarh, D. (2023). GPTQ: Accurate post-training quantization for generative pre-trained transformers. The Eleventh International Conference on Learning Representations.

9. Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., ... Chen, W. (2022). LoRA: Low-rank adaptation of large language models. International Conference on Learning Representations.

10. Dettmers, T., Pagnoni, A., Holtzman, A., & Zettlemoyer, L. (2023). QLoRA: Efficient finetuning of quantized LLMs. Advances in Neural Information Processing Systems, 36, 10088–10115.

11. Xiao, G., Lin, J., Seznec, M., Wu, H., Demouth, J., & Han, S. (2023). SmoothQuant: Accurate and efficient post-training quantization for large language models. Proceedings of the 40th International Conference on Machine Learning, 202, 38087–38099.

12. Leviathan, Y., Kalman, M., & Matias, Y. (2023). Fast inference from transformers via speculative decoding. Proceedings of the 40th International Conference on Machine Learning, 202, 19274–19286.

13. Shazeer, N. (2019). Fast transformer decoding: One write-head is all you need. arXiv preprint arXiv:1911.02150.

14. Aminabadi, R. Y., Rajbhandari, S., Awan, A. A., Li, C., Li, D., Zheng, E., ... He, Y. (2022). DeepSpeed-Inference: Enabling efficient inference of transformer models at unprecedented scale. SC22: International Conference for High Performance Computing, Networking, Storage and Analysis, 1–15.

15. Crankshaw, D., Wang, X., Zhou, G., Franklin, M. J., Gonzalez, J. E., & Stoica, I. (2017). Clipper: A low-latency online prediction serving system. 14th USENIX Symposium on Networked Systems Design and Implementation, 613–627.

16. Gujarati, A., Karimi, R., Alzayat, S., Hao, W., Kaufmann, A., Vigfusson, Y., & Mace, J. (2020). Serving DNNs like clockwork: Performance predictability from the bottom up. 14th USENIX Symposium on Operating Systems Design and Implementation, 443–462.

17. Romero, F., Li, Q., Yadwadkar, N. J., & Kozyrakis, C. (2021). INFaaS: Automated model-less inference serving. 2021 USENIX Annual Technical Conference, 397–411.

18. Li, Z., Zheng, L., Zhong, Y., Liu, V., Sheng, Y., Jin, X., ... Gonzalez, J. E. (2023). AlpaServe: Statistical multiplexing with model parallelism for deep learning serving. 17th USENIX Symposium on Operating Systems Design and Implementation, 663–679.

19. Yu, G.-I., Jeong, J. S., Kim, G.-W., Kim, S., & Chun, B.-G. (2022). Orca: A distributed serving system for transformer-based generative models. 16th USENIX Symposium on Operating Systems Design and Implementation, 521–538.

20. Strubell, E., Ganesh, A., & McCallum, A. (2019). Energy and policy considerations for deep learning in NLP. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 3645–3650.

21. Schwartz, R., Dodge, J., Smith, N. A., & Etzioni, O. (2020). Green AI. Communications of the ACM, 63(12), 54–63.

22. Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., ... Sifre, L. (2022). Training compute-optimal large language models. Advances in Neural Information Processing Systems, 35, 30016–30030.

Downloads

Published

2026-06-13