Step-3:大模型也能低成本——模型-系统协同设计实现经济高效解码

Step-3 is Large yet Affordable: Model-system Co-design for Cost-effective Decoding

阶跃星辰 StepFun · StepFun · 2025-07-25 · arXiv:2507.19427 ↗ · 被引 53

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

大型语言模型在解码时面临硬件效率低下的问题,尤其是长上下文推理任务。本文提出 Step-3,一个 321B 参数的视觉语言模型,通过硬件感知的模型-系统协同设计,最小化解码成本。Step-3 在两个关键维度创新:(1)新型多矩阵分解注意力机制,显著减少 KV 缓存大小和计算量,同时保持高注意力表达能力;(2)注意力-前馈网络解耦,一种分布式推理系统,将注意力和前馈网络层解耦为专门子系统。这种协同设计实现了前所未有的成本效率:与 DeepSeek-V3 和 Qwen3 MoE 235B 等模型相比,Step-3 显著降低了理论解码成本,且优势随上下文长度增加而扩大。Step-3 在每 token 激活 38B 参数(多于 DeepSeek-V3 和 Qwen3 MoE 235B)的情况下实现低成本,表明硬件对齐的注意力算术强度、MoE 稀疏性和 AFD 对成本效益至关重要。我们在 DeepSeek-V3 的有利场景下进行了直接比较。在 Hopper GPU 上的实现中,在 50ms TPOT SLA(4K 上下文,FP8,无 MTP)下,每 GPU 解码吞吐量高达 4039 token/s,高于 DeepSeek-V3 的 2324 token/s,为 LLM 解码设立了新的帕累托前沿。

Large language models (LLMs) face low hardware efficiency during decoding, especially for long-context reasoning tasks. This paper introduces Step-3, a 321B-parameter VLM with hardware-aware model-system co-design optimized for minimizing decoding costs. Step-3 innovates in two key dimensions: (1) A novel Multi-Matrix Factorization Attention (MFA) mechanism that significantly reduces both KV cache size and computation while maintaining high attention expressiveness, and (2) Attention-FFN Disaggregation (AFD), a distributed inference system that decouples attention and Feed-Forward Network (FFN) layers into specialized subsystems. This co-design achieves unprecedented cost efficiency: Step-3 significantly reduces theoretical decoding costs compared with models like DeepSeek-V3 and Qwen3 MoE 235B, with the gains widening at longer context. Step-3 achieves low cost while activating 38B parameters per token (more than DeepSeek-V3 and Qwen3 MoE 235B), demonstrating that hardware-aligned attention arithmetic intensity, MoE sparsity, and AFD are critical to cost-effectiveness. We perform a head-to-head comparison with DeepSeek-V3 in its favorable scenarios. Our implementation on Hopper GPUs achieves a decoding throughput of up to 4,039 tokens per second per GPU under 50ms TPOT SLA (4K context, FP8, no MTP). It is higher than DeepSeek-V3's 2,324 in the same setup and sets a new Pareto frontier for LLM decoding.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 20)

阅读逐段中英对照全文 →