Can Past Experience Accelerate LLM Reasoning?
Bo Pan, Liang Zhao
TL;DR
Can past experience accelerate LLM reasoning? The paper formalizes this as a problem of decreasing reasoning cost across sequences of questions with varying similarity and introduces SpeedupLLM, a framework combining adaptive compute budgets and memory. It provides a theoretical analysis proving conditions under which the expected compute budget is non-increasing as exposure grows, and it validates the framework with extensive experiments across memory methods and test-time scaling strategies, reporting up to $56\%$ compute reductions for highly similar questions. The findings show that episodic, in-context memory yields the strongest speedups and that speedup tends to accompany improved accuracy, especially when question similarity is high. The work offers a practical pathway to make LLM reasoning more efficient in real-world, high-throughput settings.
Abstract
Allocating more compute to large language models (LLMs) reasoning has generally been demonstrated to improve their effectiveness, but also results in increased inference time. In contrast, humans can perform tasks faster and better with increased experience and exposure. Hence, this paper aims to investigate the question: Can LLMs also become faster at reasoning through recurrent exposure on relevant tasks, and if so, how can it be achieved? To address these questions, we first formalize the problem setting of LLM reasoning speedup systematically in the dimensions of task relevancy and compute budget calculation. We then propose SpeedupLLM, a theoretically guaranteed framework to implement and benchmark such reasoning speedup behaviour based on adaptive compute allocation and memory mechanisms. We further conduct comprehensive experiments to benchmark such behaviour across different question similarity levels, memory methods, and reasoning methods. Results show that LLMs can generally reason faster with past experience, achieving up to a 56% reduction in compute cost when equipped with appropriate memory and reasoning methods.
