DMR:面向多步LLM交互的动态混合精度路由框架
Dynamic Mixed-Precision Routing for Efficient Multi-step LLM Interaction
针对多步LLM交互中固定低精度量化会显著降低任务成功率的问题,DMR框架在每一步决策时自适应选择同一LLM的高精度或低精度版本,仅训练轻量路由器识别约1%的关键步骤,精度切换开销低于1ms、路由延迟增加不足0.11%。在三个长程智能体基准上,DMR配合嵌套量化实现平均2.44倍解码加速,任务成功率与FP16相当,内存占用平均降低39%。
arXiv:2602.02711v4 Announce Type: replace Abstract: Large language models (LLMs) achieve strong performance in long-horizon agentic tasks through multi-step interaction and reasoning at test time. However, repeatedly invoking these models incurs substantial inference cost over an episode. Post-training quantization (PTQ) reduces this cost, but using a fixed low precision throughout an episode can sharply lower task success. We observe that interaction steps differ sharply in their sensitivity to quantization: given the same context, decoding a step at low precision turns a success into a failure at only about 1% of the steps, which we call critical steps. Based on this observation, we propose Dynamic Mixed-Precision Routing (DMR), a framework that adaptively selects between high-precision and low-precision versions of the same LLM at each decision step. Leveraging an entire-space factorization to jointly predict a step's divergence and its effect on the outcome, DMR learns to recognize these critical steps by training only a lightweight router on the model's hidden state. By reusing a shared high-precision KV cache and the hidden states, DMR avoids redundant context prefill and a separate text encoder, enabling precision switching with less than 1 ms of overhead per step and adding less than 0.11% to step latency for routing. This mixed-precision design also enables nested quantization, reducing the memory footprint by 39% on average compared with FP16. Across three long-horizon agentic benchmarks with nested quantization, DMR achieves an average 2.44x decode speedup over FP16 at comparable task success rates, without fine-tuning the underlying model. On ALFWorld with GPTQ, DMR achieves a 1.71x decode speedup with 86.9% success, compared with 87.2% for FP16.
来源:arXiv (AI + Vision + Imaging) · arxiv.org