Pimp My LLM: Leveraging Variability Modeling to Tune Inference Hyperparameters
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are being increasingly used across a wide range of tasks. However, their substantial computational demands raise concerns about the energy efficiency and sustainability of both training and inference. Inference, in particular, dominates total compute usage, making its optimization crucial. Recent research has explored optimization techniques and analyzed how configuration choices influence energy consumption. Yet, the vast configuration space of inference servers makes exhaustive empirical evaluation infeasible due to combinatorial explosion. In this paper, we introduce a new perspective on this problem by treating LLMs as configurable systems and applying variability management techniques to systematically analyze inference-time configuration choices. We evaluate our approach on the Hugging Face Transformers library by representing generation hyperparameters and their constraints using a feature-based variability model, sampling representative configurations, measuring their energy consumption, latency, accuracy, and learning predictive models from the collected data. Our results show that variability modeling effectively manages the complexity of LLM inference configurations. It enables systematic analysis of hyperparameters effects and interactions, reveals trade-offs, and supports prediction of inference behavior from a limited number of measurements. Overall, this work opens a new research direction that bridges software engineering and machine learning by leveraging variability modeling for the efficient and sustainable configuration of LLMs.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 20 of its 68 references that are in the map. First posted on arXiv 6 Feb 2026.
Builds on
20 of 68 references.
References · 20
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2023Power Hungry Processing: Watts Driving the Cost of AI Deployment?cited by 186
- 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 168
- 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 112
- 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 67
- 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 59
- 2025Energy Considerations of Large Language Model Inference and Efficiency Optimizationscited by 54
- 2024Offline Energy-Optimal LLM Serving: Workload-Based Energy Models for LLM Inference on Heterogeneous Systemscited by 27
- 2024Decoding Decoded: Understanding Hyperparameter Effects in Open-Ended Text Generationcited by 26
8 more
- 2024LLMCO2: Advancing Accurate Carbon Footprint Prediction for LLM Inferencescited by 19
- 2019Learning Software Configuration Spaces: A Systematic Literature Reviewcited by 14
- 2024LLM-Pilot: Characterize and Optimize Performance of your LLM Inference Servicescited by 14
- 2025A Survey on Inference Engines for Large Language Models: Perspectives on Optimization and Efficiencycited by 12
- 2025From Prompts to Power: Measuring the Energy Footprint of LLM Inferencecited by 12
- 2025Unveiling Environmental Impacts of Large Language Model Serving: A Functional Unit Viewcited by 11
- 2024Green My LLM: Studying the key factors affecting the energy consumption of code assistantscited by 6
- 2024The Impact of Hyperparameters on Large Language Model Inference Performance: An Evaluation of vLLM and HuggingFace Pipelinescited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.