Reasoning ability, a core component of human intelligence, continues to pose a significant challenge for Large Language Models (LLMs) in the pursuit of AGI. Although model performance has improved under the training scaling law, significant challenges remain, particularly with respect to training algorithms, such as catastrophic forgetting, and the limited availability of novel training data. As an alternative, test-time scaling enhances reasoning performance by increasing test-time computation without parameter updating. Unlike prior methods in this paradigm focused on token space, we propose leveraging latent space for more effective reasoning and better adherence to the test-time scaling law. We introduce LatentSeek, a novel framework that enhances LLM reasoning through Test-Time Instance-level Adaptation (TTIA) within the model's latent space. Specifically, LatentSeek leverages policy gradient to iteratively update latent representations, guided by self-generated reward signals. LatentSeek is evaluated on a range of reasoning benchmarks, including GSM8K, MATH-500, and AIME2024, across multiple LLM architectures. Results show that LatentSeek consistently outperforms strong baselines, such as Chain-of-Thought prompting and fine-tuning-based methods. Furthermore, our analysis demonstrates that LatentSeek is highly efficient, typically converging within a few iterations for problems of average complexity, while also benefiting from additional iterations, thereby highlighting the potential of test-time scaling in the latent space. These findings position LatentSeek as a lightweight, scalable, and effective solution for enhancing the reasoning capabilities of LLMs.
翻译:推理能力作为人类智能的核心组成部分,在追求通用人工智能(AGI)的过程中,对大型语言模型(LLMs)仍构成重大挑战。尽管模型性能在训练缩放定律下有所提升,但仍存在显著挑战,特别是在训练算法方面(如灾难性遗忘)以及新颖训练数据的有限可用性。作为替代方案,测试时缩放通过增加测试时计算量(无需参数更新)来提升推理性能。与先前聚焦于词元空间的该范式方法不同,我们提出利用潜在空间以实现更有效的推理并更好地遵循测试时缩放定律。我们引入了LatentSeek,一种通过在模型潜在空间内进行测试时实例级自适应(TTIA)来增强LLM推理能力的新颖框架。具体而言,LatentSeek利用策略梯度,在自生成奖励信号的引导下迭代更新潜在表示。我们在多个LLM架构上,对一系列推理基准(包括GSM8K、MATH-500和AIME2024)评估了LatentSeek。结果表明,LatentSeek在多个基准上持续优于强基线方法,如思维链提示和基于微调的方法。此外,我们的分析表明LatentSeek具有高效性,对于平均复杂度的问题通常能在数次迭代内收敛,同时也能从额外迭代中获益,从而凸显了潜在空间中测试时缩放的潜力。这些发现使LatentSeek成为一种轻量级、可扩展且有效的解决方案,用于增强LLMs的推理能力。