Gemma-4 31B 草稿模型做免训练循环层实验:接受率提升但拖慢推理,得不偿失
有人实测了在 Gemma-4 31B 草稿模型上循环中间两层,接受率未必划算,草稿速度掉得厉害。想玩推测解码优化的开发者可以看看这个负结果,少走弯路。
开发者 Mervenoyann 在 Gemma-4 31B 的推测解码草稿模型上尝试了一种免训练的层循环方法,看能否提高草稿接受率进而提升吞吐。该草稿模型共有 4 个 transformer 层,实验做法是让中间的 2 层反复循环执行。
结果并不理想:循环虽然理论上能让草稿模型更深、生成更贴近目标模型的 token,但实测中草稿模型本身的速度被大幅拖慢,增加的每步开销超过了接受率提升带来的收益,整体吞吐反而不如原来的 4 层结构。作者明确结论是这条路在当前设置下不值得。
这个实验的价值在于给出一个反例:推测解码的优化不只看接受率一个指标,草稿模型的单步延迟同样关键。对想免训练调优草稿模型的开发者来说,这是一个可以直接参考的实测数据点。
out of curiosity I tried training-free looping on Gemma-4 31B's drafter to see if I can increase acceptance rates that could cause increase throughput
this drafter has 4 transformer layers where I loop middle 2 layers it has slowed down drafter a lot that it's not worth it https://t.co/kIQTdjGV3b
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Gemma-4, speculative decoding, inference optimization.
Source attribution: curated from Merve Noyan (@mervenoyann).