基于潜在信息信号的推理时思维链剪枝
Inference-Time Chain-of-Thought Pruning with Latent Informativeness Signals
AI总结:
提出KAPPA推理时方法,结合KL散度、置信度和熵进行渐进式剪枝,在保持准确率的同时显著降低内存和token使用。
摘要:
大型语言模型(LLMs)在测试时生成多个候选解能提升推理准确率,但Best-of-N(BoN)等标准方法因完整生成所有分支而产生高计算成本。Self-Truncation Best-of-N(ST-BoN)通过提前截断无望路径来缓解此问题,但其依赖基于一致性的启发式方法,未直接评估分支质量,存在局限。我们提出KL-Adjusted Pruned Path Algorithm(KAPPA),一种推理时方法,将Kullback-Leibler散度、置信度和熵结合为原则性评分函数以指导渐进式剪枝。通过在探索时促进多样性并选择性消除低分分支,KAPPA在保持准确率的同时显著降低内存和token使用。在GSM8K和MATH500上使用DeepSeek-R1-Distill-Qwen-1.5B和Qwen2.5-7B-Instruct的实验表明,KAPPA稳定了较小模型的性能,相比BoN峰值内存减少约60%,总token生成减少约90%,且对准确率影响极小。
英文摘要:
Large language models (LLMs) improve reasoning accuracy when generating multiple candidate solutions at test time, but standard methods like Best-of-N (BoN) incur high computational cost by fully generating all branches. Self-Truncation Best-of-N (ST-BoN) mitigates this by truncating unpromising paths early, but its reliance on consistency-based heuristics is a limitation as it does not directly evaluate branch quality. We present KL-Adjusted Pruned Path Algorithm (KAPPA), an inference-time method that combines Kullback-Leibler divergence, confidence, and entropy into a principled scoring function to guide progressive pruning. By promoting diversity during exploration and selectively eliminating low-scoring branches, KAPPA maintains accuracy while substantially reducing memory and token usage. Experiments on GSM8K and MATH500 with DeepSeek-R1-Distill-Qwen-1.5B and Qwen2.5-7B-Instruct demonstrate that KAPPA stabilizes performance in smaller models and achieves up to ~60% reduction in peak memory and ~90% reduction in total token generation relative to BoN, with minimal impact on accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。