GradCuit: Credit-Assigned Gradient Flow Enables Robust and Interpretable Test-Time Latent Reasoning

Hugging Face Daily Papers Papers

Summary

This paper introduces GradCuit, a method for test-time latent reasoning that inserts optimizable latent states at a selected Transformer layer. It achieves 64.5% average accuracy across five backbones and three reasoning benchmarks, outperforming chain-of-thought prompting and showing improved robustness and interpretability.

Optimization-based latent reasoning improves large language model outputs by optimizing instance-specific continuous states at test time while keeping model parameters frozen. Existing methods, however, typically connect these states to the reasoning trajectory through decoded tokens, making sequence-level credit assignment indirect and obscuring how latent updates shape subsequent reasoning. We introduce GradCuit (gradient through circuit), which inserts optimizable latent states at a selected Transformer layer between the hidden representations of the prompt and the generated continuation. Causal self-attention provides every continuation-token log-probability with a differentiable path to every preceding latent state through the remaining Transformer blocks, enabling reward-weighted gradients from the entire continuation to be assigned directly to the latents. Across five instruction-tuned backbones, three reasoning benchmarks, and two answer formats, GradCuit achieves an average accuracy of 64.5%, outperforming chain-of-thought prompting by 6.6 percentage points and the strongest competing method by 2.4 points. GradCuit also demonstrates greater robustness: across seven learning-rate settings, it consistently outperforms LatentSeek while reducing the standard deviation of accuracy from 1.53 to 0.82, and even its random-walk variant remains competitive with LatentSeek. For interpretability, token-level gradient attribution reveals that latent influence concentrates on reasoning-connector tokens, while layer analysis identifies early-to-middle Transformer layers as the most effective optimization space. By directly optimizing internal reasoning from outcome feedback, GradCuit opens a new axis of robust and interpretable test-time scaling, where LLMs adapt how they reason rather than merely regenerate, sample, or rerank outputs.
Original Article
View Cached Full Text

Cached at: 08/04/26, 09:38 AM

Paper page - GradCuit: Credit-Assigned Gradient Flow Enables Robust and Interpretable Test-Time Latent Reasoning

Source: https://huggingface.co/papers/2608.02585

Abstract

Optimization-basedlatentreasoningimproveslargelanguagemodeloutputsbyoptimizinginstance-specificcontinuousstatesattesttimewhilekeepingmodelparametersfrozen.Existingmethods,however,typicallyconnectthesestatestothereasoningtrajectorythroughdecodedtokens,makingsequence-levelcreditassignmentindirectandobscuringhowlatentupdatesshapesubsequentreasoning.WeintroduceGradCuit(gradientthroughcircuit),whichinsertsoptimizablelatentstatesataselectedTransformerlayerbetweenthehiddenrepresentationsofthepromptandthegeneratedcontinuation.Causalself-attentionprovideseverycontinuation-tokenlog-probabilitywithadifferentiablepathtoeveryprecedinglatentstatethroughtheremainingTransformerblocks,enablingreward-weightedgradientsfromtheentirecontinuationtobeassigneddirectlytothelatents.Acrossfiveinstruction-tunedbackbones,threereasoningbenchmarks,andtwoanswerformats,GradCuitachievesanaverageaccuracyof64.5%,outperformingchain-of-thoughtpromptingby6.6percentagepointsandthestrongestcompetingmethodby2.4points.GradCuitalsodemonstratesgreaterrobustness:acrosssevenlearning-ratesettings,itconsistentlyoutperformsLatentSeekwhilereducingthestandarddeviationofaccuracyfrom1.53to0.82,andevenitsrandom-walkvariantremainscompetitivewithLatentSeek.Forinterpretability,token-levelgradientattributionrevealsthatlatentinfluenceconcentratesonreasoning-connectortokens,whilelayeranalysisidentifiesearly-to-middleTransformerlayersasthemosteffectiveoptimizationspace.Bydirectlyoptimizinginternalreasoningfromoutcomefeedback,GradCuitopensanewaxisofrobustandinterpretabletest-timescaling,whereLLMsadapthowtheyreasonratherthanmerelyregenerate,sample,orrerankoutputs.

View arXiv pageView PDFProject pageGitHub3Add to collection

Get this paper in your agent:

hf papers read 2608\.02585

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2608.02585 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2608.02585 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2608.02585 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

Reason Through the Latent! Making Latent Visual Reasoning Necessary

Hugging Face Daily Papers

The paper introduces Causal Visual Recurrent Reasoning (CVRR), a method that enforces recurrent hidden-state computation for visual reasoning, improving performance on benchmarks while distinguishing latent informativeness from actual predictive use.

Can Latent Reasoning Drive LLM Outputs Without a Trace?

Hugging Face Daily Papers

This paper shows that LLMs can perform deep complete latent reasoning (CLR) to pursue hidden objectives while producing chain-of-thought explanations that appear task-appropriate, evading output-based monitors; an auxiliary loss enables latent computation 5x deeper than previously reported, and activation patching confirms the CoT plays no role in the decision.