AutoCompress:自动化硬件引导的模型压缩

·

研究论文 · 2026/11/09

AutoCompress 是一种硬件引导的模型压缩框架,将延迟、吞吐量和内存等硬件与工作负载约束直接融入可微分架构搜索,联合优化全局与逐层结构以生成异构架构,其成本模型经端到端测量验证。在长上下文本地编码、批量数据中心服务和延迟敏感的游戏中交互场景中,相比 Minitron,在 RTX 5070、RTX 5080 和 H100 上八项基准平均准确率分别提升 6.57、2.35 和 0.57 个百分点;并将 Nemotron 3.5 Super 从 120B 压缩至 74B,在单 B200 BF16 128K 上下文服务下保留 95% 的平均基准分数。

AutoCompress 解决了 LLM 剪枝中参数数量无法预测实际硬件性能的痛点,通过硬件引导的搜索直接优化部署约束,在多个场景和硬件上显著优于现有方法,并成功压缩大模型,具有很高的实用价值。

LLM pruning must preserve quality while meeting hardware- and workload-specific constraints on latency, throughput, and memory. Existing pruning workflows often target parameter counts, requiring practitioners to manually select model sizes that meet latency, throughput, and GPU memory limits. However, parameter count alone does not predict these metrics, which depend on the model architecture, workload, hardware, and serving engine. We introduce AutoCompress, a hardware-guided compression framework that directly incorporates such constraints into differentiable architecture search. AutoCompress jointly optimizes global and per-layer structure to produce heterogeneous architectures, guided by serving-engine cost models validated against end-to-end latency, throughput, and memory measurements. We evaluate AutoCompress on long-context local coding, batched datacenter serving, and latency-sensitive in-game interaction. Compared to the state-of-the-art Minitron pruning framework, AutoCompress improves average accuracy across eight benchmarks by 6.57, 2.35, and 0.57 percentage points on RTX 5070, RTX 5080, and H100, respectively. AutoCompress also compresses Nemotron 3.5 Super from 120B to 74B parameters for single-B200 BF16 serving at 128K context, retaining 95% of its mean benchmark score.

阅读原文

参与讨论