调参优化让开源大模型数学推理更快更省,平均提速24%、降本29%
Systematic Optimization of Open Source Large Language Models for Mathematical Reasoning
- 系统搜索温度、推理步数等参数,找到各模型最优配置
- 平均计算成本降29.4%,推理速度提升23.9%,准确率不降
- 结果适用于多种模型,适合工业部署与高效推理场景
本文针对数学推理任务,对五种主流开源大模型(Qwen2.5-72B、Llama-3.1-70B、DeepSeek-V3、Mixtral-8x22B、Yi-Lightning)进行系统性参数优化。通过在温度(0.1–0.5)、推理步数(4–12)、规划周期(1–4)、核采样率(0.85–0.98)等空间中搜索,结合数学推理基准测试,确定最优配置。实验表明,较低温度(0.1–0.4)和较少推理步数(4–6)能显著提升效率且不牺牲准确率。整体实现平均29.4%的计算成本降低和23.9%的推理速度提升,所有模型均达到100%优化成功率。DeepSeek-V3准确率最高达98%,Mixtral-8x22B最经济,每正确回答仅需361.5个词元。贡献包括:首次全面优化五类SOTA模型;构建标准化生产级参数优化框架;发现跨架构通用优化规律;提供可直接部署的性能配置。
原文摘要 · Abstract (English)
This paper presents a practical investigation into fine-tuning model parameters for mathematical reasoning tasks through experimenting with various configurations including randomness control, reasoning depth, and sampling strategies, careful tuning demonstrates substantial improvements in efficiency as well as performance. A holistically optimized framework is introduced for five state-of-the-art models on mathematical reasoning tasks, exhibiting significant performance boosts while maintaining solution correctness. Through systematic parameter optimization across Qwen2.5-72B, Llama-3.1-70B, DeepSeek-V3, Mixtral-8x22B, and Yi-Lightning, consistent efficiency gains are demonstrated with 100% optimization success rate. The methodology achieves an average 29.4% reduction in computational cost and 23.9% improvement in inference speed across all tested models. This framework systematically searches parameter spaces including temperature (0.1-0.5), reasoning steps (4-12), planning periods (1-4), and nucleus sampling (0.85-0.98), determining optimal configurations through testing on mathematical reasoning benchmarks. Critical findings show that lower temperature regimes (0.1-0.4) and reduced reasoning steps (4-6) consistently enhance efficiency without compromising accuracy. DeepSeek-V3 achieves the highest accuracy at 98%, while Mixtral-8x22B delivers the most cost-effective performance at 361.5 tokens per accurate response. Key contributions include: (1) the first comprehensive optimization study for five diverse SOTA models in mathematical reasoning, (2) a standardized production-oriented parameter optimization framework, (3) discovery of universal optimization trends applicable across model architectures, and (4) production-ready configurations with extensive performance characterization.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。