arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.17697cs.LGcs.SE
收藏

优化大语言模型:利用变异性建模来调整推理超参数

Pimp My LLM: Leveraging Variability Modeling to Tune Inference Hyperparameters

Univ. Lille, CNRS, Inria, Centrale Lille, UMR 9189 CRIStAL, F-59000, Lille(里尔大学、国家科学研究中心、法国国家信息与自动化技术研究所、中央理工学院、UMR 9189 CRIStAL、法国里尔)

Nada Zine, Clément Quinton, Romain Rouvoy

AI总结:

本文通过变异性建模系统分析大语言模型推理配置,揭示超参数间的权衡关系,并支持基于有限测量预测推理行为,推动软件工程与机器学习的结合。

摘要:

大型语言模型(LLMs)正在被广泛应用于各种任务,但其巨大的计算需求引发了训练和推理的能源效率及可持续性问题。推理尤其主导了总计算使用量,因此其优化至关重要。近期研究探讨了优化技术并分析了配置选择对能耗的影响。然而,推理服务器的庞大配置空间使得全面的经验评估不可行。本文通过将LLMs视为可配置系统并应用变异性管理技术,系统分析推理时间的配置选择。我们在Hugging Face Transformers库上评估了我们的方法,通过特征基变异性模型表示生成超参数及其约束,采样代表性配置,测量其能耗、延迟、准确率,并从收集的数据中学习预测模型。我们的结果表明,变异性建模有效管理了LLM推理配置的复杂性,使超参数的影响和交互分析系统化,揭示了权衡关系,并支持基于有限测量预测推理行为。整体而言,本文开辟了通过利用变异性建模高效可持续配置LLMs的新研究方向,将软件工程与机器学习相结合。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑