Evaluating Quantized Large Language Models for Code Generation on Low-Resource Language Benchmarks
Not on the map. Why?
Abstract (arXiv)
Democratization of AI is an important topic within the broader topic of the digital divide. This issue is relevant to LLMs, which are becoming popular as AI co-pilots but suffer from a lack of accessibility due to high computational demand. In this study, we evaluate whether quantization is a viable approach toward enabling LLMs on generic consumer devices. The study assesses the performance of five quantized code LLMs in Lua code generation tasks. To evaluate the impact of quantization, the models with 7B parameters were tested on a consumer laptop at 2-, 4-, and 8-bit integer precisions and compared to non-quantized code LLMs with 1.3, 2, and 3 billion parameters. Lua is chosen as a low-level resource language to avoid models' biases related to high-resource languages. The results suggest that the models quantized at the 4-bit integer precision offer the best trade-off between performance and model size. These models can be comfortably deployed on an average laptop without a dedicated GPU. The performance significantly drops at the 2-bit integer precision. The models at 8-bit integer precision require more inference time that does not effectively translate to better performance. The 4-bit models with 7 billion parameters also considerably outperform non-quantized models with lower parameter numbers despite having comparable model sizes with respect to storage and memory demand. While quantization indeed increases the accessibility of smaller LLMs with 7 billion parameters, these LLMs demonstrate overall low performance (less than 50%) on high-precision and low-resource tasks such as Lua code generation. While accessibility is improved, usability is still not at the practical level comparable to foundational LLMs such as GPT-4o or Llama 3.1 405B.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 21 of its 35 references that are in the map. First posted on arXiv 18 Oct 2024.
Builds on
21 of 35 references.
References · 21
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Qwen Technical Reportcited by 3,344
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2023A Survey on Model Compression for Large Language Modelscited by 269
- 2023Challenges and Applications of Large Language Modelscited by 254
- 2023LLM Lies: Hallucinations are not Bugs, but Features as Adversarial Examplescited by 177
- 2019SPoC: Search-based Pseudocode to Codecited by 176
9 more
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 107
- 2024Evaluating Quantized Large Language Modelscited by 77
- 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
- 2020The De-democratization of AI: Deep Learning and the Compute Divide in Artificial Intelligence Researchcited by 67
- 2024A Comprehensive Evaluation of Quantization Strategies for Large Language Modelscited by 48
- 2023Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMscited by 45
- 2024McEval: Massively Multilingual Code Evaluationcited by 44
- 2023AI-assisted coding: Experiments with GPT-4cited by 43
- 2024When to Stop? Towards Efficient Code Generation in LLMs with Excess Token Preventioncited by 21
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025A Systematic Evaluation of On-Device LLMs: Quantization, Performance, and Resources
- 2025Systematic Characterization of LLM Quantization: A Performance, Energy, and Quality Perspective
- 2024A Comprehensive Study on Quantization Techniques for Large Language Models
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generation
- 2026From Bits to Chips: An LLM-based Hardware-Aware Quantization Agent for Streamlined Deployment of LLMs
- 2025LLMPi: Optimizing LLMs for High-Throughput on Raspberry Pi
- 2024An exploration of the effect of quantisation on energy consumption and inference time of StarCoder2
- 2023Efficient LLM Inference on CPUs