Fuel Gauge: 在大型多模态模型中提前估计链式推理长度
Fuel Gauge: Estimating Chain-of-Thought Length Ahead of Time in Large Multimodal Models
AI总结:
Fuel Gauge通过提取隐藏信号提前预测链式推理长度,有效解决LMMs中的内存碎片化和推理效率问题。
摘要:
在大型多模态模型(LMMs)中,链式推理(CoT)过程在运行时往往很长且不可预测,导致计算资源使用效率低下(由于内存碎片化)和准确性不理想(由于过度思考或不足思考)。我们通过实证发现,CoT过程遵循非常简单的形式,其行为与生成的特定样本无关。这表明,CoT长度可以根据一个代表推理过程可用“燃料”量的隐藏参数提前进行估计。基于这一洞察,我们提出了Fuel Gauge,这是首个提取该隐藏信号并提前预测CoT长度的方法。我们在两个下游任务上展示了Fuel Gauge的实用性:预测KV缓存分配,以解决LMM服务系统中的内存碎片化问题,以及CoT长度调节,以缓解过度思考和不足思考。在跨文本-only、图像-文本和视频-文本问答基准的LMMs上进行了广泛的实验,证明了我们的Fuel Gauge的有效性、通用性和实用性。例如,在GPQA-Diamond基准上,我们的Fuel Gauge在CoT长度预测误差上比基线少了一半;这转化为内存分配频率的13.37倍减少。
英文摘要:
Reasoning Large Multi-modality Models (LMMs) have become the de facto choice for many applications. However, these models rely on a Chain-of-Thought (CoT) process that is lengthy and unpredictable at runtime, often resulting in inefficient use of computational resources (due to memory fragmentation) and sub-optimal accuracy (due to under- and over-thinking). We observe empirically that the CoT process follows a very simple form, whose behavior is independent of the specific generated samples. This suggests that the CoT length can be estimated ahead of time based on a hidden parameter representing the amount of "fuel" available to support the reasoning process. Based on this insight, we propose Fuel Gauge, the first method which extracts this hidden signal and predicts CoT length ahead of time. We demonstrate the utility on the Fuel Gauge on two downstream tasks: predictive KV cache allocation, which addresses memory fragmentation in LMM serving systems, and CoT length modulation, which mitigates under-thinking and over-thinking. Extensive experiments on LMMs across text-only, image-text, and video-text question answering benchmarks demonstrate the effectiveness, generalizability, and practical value of our Fuel Gauge. For example, on the GPQA-Diamond benchmark, our Fuel Gauge achieves less than half the CoT length prediction error compared to the baseline; this translates into a 13.37x reduction in the memory allocation frequency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。