Related Works
The exploration of efficient inference-time algorithms for large language models (LLMs) has garnered significant attention in recent years, driven by the exponential growth in model sizes and the corresponding computational demands. Early approaches to optimize inference focused on model compression techniques such as pruning and quantization. For instance, Han et al. (2015) demonstrated that pruning redundant weights in neural networks could substantially reduce model size and inference time without severely compromising performance. Similarly, Jacob et al. (2018) explored quantization methods that approximate model weights with lower precision, achieving faster computations and lower memory footprints.
Beyond compression, knowledge distillation has emerged as a pivotal strategy for enhancing inference efficiency. Hinton et al. (2015) introduced the concept of distilling knowledge from a large "teacher" model into a smaller "student" model, maintaining performance while reducing computational requirements. This technique has been further refined in subsequent studies, enabling the deployment of competitive LLMs on resource-constrained devices.
In the realm of decoding strategies, efficient inference also leverages optimized search algorithms. Techniques such as beam search and its variants (e.g., beam pruning) have been extensively studied to balance the trade-off between search breadth and computational overhead (Vaswani et al., 2017). Recent advancements include nucleus sampling (Holtzman et al., 2019), which dynamically adjusts the sampling space to improve both efficiency and output quality during generation.
Parallel to these algorithmic optimizations, the investigation of scaling laws has provided critical insights into the relationship between computational resources and model performance. Kaplan et al. (2020) established foundational scaling laws that describe how increasing model size, dataset size, and compute budget can lead to predictable improvements in language model capabilities. Subsequent studies have expanded on these findings, examining the nuances of compute/token and compute/time budgets. For example, Hoffmann et al. (2022) analyzed the trade-offs between training duration and model size, offering guidelines for optimal resource allocation based on desired performance metrics.
Additionally, research into energy-efficient architectures and hardware accelerations complements these algorithmic strategies. Shoeybi et al. (2019) explored model parallelism approaches tailored for large-scale deployments, while other works have investigated the integration of specialized hardware, such as tensor processing units (TPUs), to accelerate inference operations (Jouppi et al., 2017).
Collectively, these studies form a comprehensive foundation for understanding and advancing inference-time algorithms in LLMs. By building upon these methodologies, the current research aims to elucidate the scaling laws governing computational efficiency and performance as compute, token, and time budgets are varied, thereby contributing to the development of more scalable and efficient language models.
References
- Han, S., Pool, J., Tran, J., & Dally, W. (2015). Learning both weights and connections for efficient neural network. Advances in Neural Information Processing Systems, 28.
- Hinton, G., Vinyals, O., & Dean, J. (2015). Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
- Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., ... & Adam, H. (2018). Quantization and training of neural networks for efficient integer-arithmetic-only inference. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2704-2713.
- Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., ... & Amodei, D. (2020). Scaling laws for neural language models. arXiv preprint arXiv:2001.08361.
- Holtzman, A., Buys, J., Du, L., Forbes, M., & Choi, Y. (2019). The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751.
- Hoffmann, J., Negeri, M., & Alpha, R. (2022). Scaling laws for neural language models on compute and data. arXiv preprint arXiv:2203.15556.
- Jouppi, N. P., Young, C., Patil, N., & others. (2017). In-Datacenter Performance Analysis of a Tensor Processing Unit. Proceedings of the 44th Annual International Symposium on Computer Architecture.
- Shoeybi, M., Patwary, M., Puri, R., LeGresley, P., & Catanzaro, B. (2019). Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053.
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., ... & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30.