arXiv:2508.00305cs.CLcs.LG2025-08被引 2

系统评估长文本模型优化技术,发现组合方法可能因误差累积影响大模型表现。

Systematic Evaluation of Optimization Techniques for Long-Context Language Models

  • 对比剪枝、量化、删词等技术在长上下文中的表现
  • 700亿参数模型显示组合优化会因误差累积降低效果
  • 建议结合系统性能与任务指标综合评估效率与准确率

大语言模型在多种自然语言处理任务中表现出色,但面临资源消耗高和上下文窗口有限的问题。尽管剪枝、量化和令牌删除等技术可缓解这些问题,其在长上下文场景下的有效性及系统级评估仍不充分。本文系统地基准测试了这些优化方法,分析内存占用、延迟和吞吐量,并研究它们对文本生成质量的影响。我们首先评估两种支持长上下文的LLM架构中各优化方法的表现,随后系统考察这些技术的组合使用对性能指标的影响。进一步在700亿参数的大规模模型上研究各方法的可扩展性。新发现表明,简单组合推理优化算法在大模型中可能因误差累积产生负面影响,相较于小模型更明显。实验显示,仅依赖F1值会掩盖问答任务中精度-召回率之间的权衡。通过融合系统级剖析与任务特定洞察,本研究为从业者和研究人员在不同任务和硬件配置下平衡效率、准确性和可扩展性提供了指导。

原文摘要 · Abstract (English)

Large language models (LLMs) excel across diverse natural language processing tasks but face resource demands and limited context windows. Although techniques like pruning, quantization, and token dropping can mitigate these issues, their efficacy in long-context scenarios and system evaluation remains underexplored. This paper systematically benchmarks these optimizations, characterizing memory usage, latency, and throughput, and studies how these methods impact the quality of text generation. We first analyze individual optimization methods for two LLM architectures supporting long context and then systematically evaluate combinations of these techniques to assess how this deeper analysis impacts performance metrics. We subsequently study the scalability of individual optimization methods on a larger variant with 70 billion-parameter model. Our novel insights reveal that naive combination inference optimization algorithms can adversely affect larger models due to compounded approximation errors, as compared to their smaller counterparts. Experiments show that relying solely on F1 obscures these effects by hiding precision-recall trade-offs in question answering tasks. By integrating system-level profiling with task-specific insights, this study helps LLM practitioners and researchers explore and balance efficiency, accuracy, and scalability across tasks and hardware configurations.

大模型优化长文本生成系统评估效率与精度

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。