QDA:基于智能体的闭环大语言模型量化设计 QDA: Closed-Loop LLM Quantization Design with Agents 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-17
👁️ 预览文献
💡 AI 中文简介
大模型部署需要量化压缩,但最佳量化方案因模型而异,人工设计费时且效果不佳。QDA让AI智能体自动设计量化方案:通过多轮构建和评估候选方案,用输出KL散度在几分钟内快速评分,再用长文本生成检查重复循环等故障。在四个推理模型上,QDA比最强公开方案在W4A16、W4A8、W3A16精度下平均提升0.9、1.4和2.2个百分点,每次搜索仅需64 GPU小时;在320B参数MoE模型上恢复FP8模型98.3%的精度,超过厂商最佳检查点的96.9%。
领域大语言模型压缩与推理优化
适合谁读需要一定专业背景(了解模型量化与推理部署)
核心贡献1. 提出闭环智能体框架,自动为每个模型和精度设计量化方案,替代人工试错;2. 构建兼容的PTQ方法库和快速评估器,将单次评估从数十GPU小时缩短到几分钟,且量化检查点无推理开销。
关键数据在四个推理模型上,W4A16、W4A8、W3A16平均精度分别提升0.9、1.4、2.2个百分点;每次搜索64 GPU小时;320B MoE模型NVFP4 W4A4下恢复FP8模型98.3%精度(厂商最佳96.9%)。
推荐理由如果你苦于为每个新模型手动调量化方案,这篇工作用智能体自动搜索,省时又提精度,还开源了工具链,值得一读!
关键词["训练后量化", "大语言模型", "智能体", "闭环设计", "推理加速", "混合精度量化"]

原文摘要

查看英文原文摘要

Post-training quantization is the standard way to serve large language models at low cost. However, the best quantization recipe differs across models and precisions. As a result, experts must redesign it for every new model, which is time-consuming and often sub-optimal. Fortunately, an LLM agent can take over this design by refining the recipe over rounds of building and evaluating candidates, so that more rounds lead to better recipes. However, evaluating one quantized reasoning model takes tens of GPU-hours, and combining methods from different codebases means porting each to the new architecture by hand. We present QDA, a system in which an agent designs the recipe for each model and precision. To make evaluation fast, QDA scores each candidate in minutes by its output KL divergence from the original model on reasoning traces that the agent never sees, and checks promising ones with long generations to catch failures such as repetition loops. To make building fast, QDA provides a library of public PTQ methods that are compatible with one another and with new model architectures. Across four reasoning models, QDA improves accuracy over the strongest public recipe by 0.9, 1.4 and 2.2 percentage points on average at W4A16, W4A8 and W3A16, using 64 GPU-hours per search. On the 320B-parameter MoE model GLM-5.3-Flash at NVFP4 W4A4, it recovers 98.3% of the FP8 model's accuracy, against 96.9% for the best vendor checkpoint. Every QDA checkpoint also runs on existing serving kernels with no inference overhead. We will release the library, the evaluator and the harness.