arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.15372cs.AI
收藏

更少的比特,更多的尝试:在内存约束下恢复模型能力

Fewer Bits, More Tries: Recovering Capability Under Memory Constraints

Texas A&M(德克萨斯农工大学);Apple(苹果公司)

Tomer Galanti, Josh Susskind, Eran Malach

AI总结:

该研究提出通过多次运行小型或压缩后的模型并并行生成候选输出,以适度延迟和更低内存、能耗,在代码生成基准上恢复模型能力,7B Qwen模型经8次并行尝试可媲美甚至超越32B模型。

摘要:

大型语言模型通常比小型模型更强大,但它们的内存需求会使本地部署变得困难。我们探究是否可以通过多次运行较小或经过压缩的模型,并利用公开测试或模型生成的测试来选择其输出,从而部分弥补这种能力差距。单用户本地推理会导致硬件利用率不足,允许并行生成候选,以适度的延迟成本,用额外的测试时计算来换取准确性。在四个代码生成基准测试中,验证重试方法可恢复因模型大小或压缩而损失的大量准确性。一个7B的Qwen模型使用8次并行尝试,在MBPP+上的性能基本与32B模型相当,在其他三个基准测试中超过32B模型,同时使用的模型内存减少约4倍,运行速度最高快6倍,且能耗更低(基于Nvidia GPU测量)。我们在不同模型大小、压缩级别和硬件选择上观察到类似的权衡,尽管确切收益取决于硬件配置和问题设置。这些结果表明,当在适度的重试预算内仍能找到正确解决方案时,模型容量可以与经过验证的测试时计算进行交换。

英文摘要:

Large language models are generally more capable than smaller ones, but their memory requirements can make local deployment difficult. We ask whether part of this capability gap can instead be recovered by running a smaller or more compressed model multiple times and selecting among its outputs using public or model-generated tests. Single-user local inference can leave hardware underutilized, allowing parallel candidate generation to trade additional test-time computation for accuracy at modest latency cost. Across four code-generation benchmarks, verified retry recovers substantial accuracy lost to model size or compression. A 7B Qwen model with eight parallel attempts essentially matches a 32B model on MBPP+ and exceeds it on the other three benchmarks, while using about $4\times$ less model memory, running up to $6\times$ faster, and using less energy, as measured on Nvidia GPU. We observe similar tradeoff across model sizes, compression levels and hardware choices, although exact benefit depends on the hardware profile and problem setting. These results show that model capacity can be traded for verified test-time computation when correct solutions remain reachable within a modest retry budget.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑