arXiv:2505.19481cs.LGcs.AI2025-05NeurIPS被引 13

让大模型在快与准之间动态平衡,提升实时决策表现

Win Fast or Lose Slow: Balancing Speed and Accuracy in Latency-Sensitive Decisions of LLMs

  • 根据实时需求自动切换模型大小和量化精度
  • 在竞速游戏和高频交易中分别提升80%胜率和26.52%收益
  • 首个系统研究大模型延迟-质量权衡的实证工作

大语言模型在推理与生成任务中表现卓越,正被广泛部署于代码生成、推荐系统等动态环境。然而,在高频交易、实时竞技游戏等场景中,严格延迟约束下快速响应直接带来更高回报。尽管延迟与性能间的权衡至关重要,却尚未在基于大模型的智能体中得到充分研究。本文首次系统性地探索实时决策中的这一权衡问题,为此构建了两个新基准:HFTBench(高频交易模拟)与StreetFighter(竞技对战平台)。分析发现,最优延迟-质量平衡因任务而异,牺牲部分精度换取更低延迟可显著提升下游表现。为此提出FPX自适应框架,根据实时需求动态调整模型规模与量化级别。该方法在两个基准上均取得最佳表现,使街机游戏胜率最高提升80%,交易日收益率最高提升26.52%,凸显了面向延迟感知的评估与部署策略的重要性。相关基准已开源。

原文摘要 · Abstract (English)

Large language models (LLMs) have shown remarkable performance across diverse reasoning and generation tasks, and are increasingly deployed as agents in dynamic environments such as code generation and recommendation systems. However, many real-world applications, such as high-frequency trading and real-time competitive gaming, require decisions under strict latency constraints, where faster responses directly translate into higher rewards. Despite the importance of this latency quality trade off, it remains underexplored in the context of LLM based agents. In this work, we present the first systematic study of this trade off in real time decision making tasks. To support our investigation, we introduce two new benchmarks: HFTBench, a high frequency trading simulation, and StreetFighter, a competitive gaming platform. Our analysis reveals that optimal latency quality balance varies by task, and that sacrificing quality for lower latency can significantly enhance downstream performance. To address this, we propose FPX, an adaptive framework that dynamically selects model size and quantization level based on real time demands. Our method achieves the best performance on both benchmarks, improving win rate by up to 80% in Street Fighter and boosting daily yield by up to 26.52% in trading, underscoring the need for latency aware evaluation and deployment strategies for LLM based agents. These results demonstrate the critical importance of latency aware evaluation and deployment strategies for real world LLM based agents. Our benchmarks are available at Latency Sensitive Benchmarks.

大模型推理延迟优化自适应调度

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