$\nabla$-Reasoner: LLM Reasoning via Test-Time Gradient Descent in Latent Space

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Peihao, Cai, Ruisi, Wang, Zhen, Mei, Hongyuan, Liu, Qiang, Li, Pan, Wang, Zhangyang
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918372367663104
author Wang, Peihao
Cai, Ruisi
Wang, Zhen
Mei, Hongyuan
Liu, Qiang
Li, Pan
Wang, Zhangyang
author_facet Wang, Peihao
Cai, Ruisi
Wang, Zhen
Mei, Hongyuan
Liu, Qiang
Li, Pan
Wang, Zhangyang
contents Scaling inference-time compute for Large Language Models (LLMs) has unlocked unprecedented reasoning capabilities. However, existing inference-time scaling methods typically rely on inefficient and suboptimal discrete search algorithms or trial-and-error prompting to improve the online policy. In this paper, we propose $\nabla$-Reasoner, an iterative generation framework that integrates differentiable optimization over token logits into the decoding loop to refine the policy on the fly. Our core component, Differentiable Textual Optimization (DTO), leverages gradient signals from both the LLM's likelihood and a reward model to refine textual representations. $\nabla$-Reasoner further incorporates rejection sampling and acceleration design to robustify and speed up decoding. Theoretically, we show that performing inference-time gradient descent in the sample space to maximize reward is dual to aligning an LLM policy via KL-regularized reinforcement learning. Empirically, $\nabla$-Reasoner achieves over 20% accuracy improvement on a challenging mathematical reasoning benchmark, while reducing number of model calls by approximately 10-40% compared to strong baselines. Overall, our work introduces a paradigm shift from zeroth-order search to first-order optimization at test time, offering a cost-effective path to amplify LLM reasoning.
format Preprint
id arxiv_https___arxiv_org_abs_2603_04948
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle $\nabla$-Reasoner: LLM Reasoning via Test-Time Gradient Descent in Latent Space
Wang, Peihao
Cai, Ruisi
Wang, Zhen
Mei, Hongyuan
Liu, Qiang
Li, Pan
Wang, Zhangyang
Machine Learning
Scaling inference-time compute for Large Language Models (LLMs) has unlocked unprecedented reasoning capabilities. However, existing inference-time scaling methods typically rely on inefficient and suboptimal discrete search algorithms or trial-and-error prompting to improve the online policy. In this paper, we propose $\nabla$-Reasoner, an iterative generation framework that integrates differentiable optimization over token logits into the decoding loop to refine the policy on the fly. Our core component, Differentiable Textual Optimization (DTO), leverages gradient signals from both the LLM's likelihood and a reward model to refine textual representations. $\nabla$-Reasoner further incorporates rejection sampling and acceleration design to robustify and speed up decoding. Theoretically, we show that performing inference-time gradient descent in the sample space to maximize reward is dual to aligning an LLM policy via KL-regularized reinforcement learning. Empirically, $\nabla$-Reasoner achieves over 20% accuracy improvement on a challenging mathematical reasoning benchmark, while reducing number of model calls by approximately 10-40% compared to strong baselines. Overall, our work introduces a paradigm shift from zeroth-order search to first-order optimization at test time, offering a cost-effective path to amplify LLM reasoning.
title $\nabla$-Reasoner: LLM Reasoning via Test-Time Gradient Descent in Latent Space
topic Machine Learning
url https://arxiv.org/abs/2603.04948