betaFeedback

WorksComputer Science

Hybrid Reasoning Agents

Abstract

How can we build an agent that thinks beyond human language, yet still acts through it in the external environment? Modern LLM agents still reason and interact through text, while latent reasoning offers an efficient internal medium but lacks native tool access and reasoning transparency. We bridge these two directions with Hybrid Reasoning Agents (HybridAgents), which dynamically navigate between latent reasoning and text-based interaction throughout a unified generation process. Architecturally, a lightweight HybridLink enables seamless transitions between text and latent modes, while the agent's continuous working memory preserves lossless hybrid context across multiple turns. These designs preserve tool-integrated agentic capabilities while making latent thoughts directly inspectable. Building on this architecture, we further develop dedicated post-training algorithms for hybrid reasoning: HybridSFT stabilizes tool-integrated hybrid generation by teaching the backbone to coordinate with HybridLink, then HybridRL scales reasoning by learning when to think in latent space and when to act through text. We evaluate HybridAgent at 3 model scales across 11 benchmarks covering mathematics, science, medicine, search, and agentic reasoning. Compared with frontier LLM Agents and agentic frameworks spanning both text-based and latent methods, HybridAgent consistently improves performance by 10.4%, while delivering 35.5%-54.7% token reduction, 1.8x-2.6x faster inference, and 2.7x-3.7x cost savings. Code and data are available at https://github.com/togethercomputer/HybridAgent.

Code: https://github.com/togethercomputer/HybridAgent

Correspondence: [email protected], [email protected]

Introduction

Frontier intelligence no longer scales through the model’s reasoning alone, but depends increasingly on its ability to interact with the external world [33, 65, 23]. To solve a hard problem, an LLM agent must reach beyond the model itself by continually invoking specialized tools, observing feedback from the environment, and adapting its next move [19, 62] (Qu et al. 2025). Beneath this expanding repertoire of agent harnesses lies a single lingua franca: text, the common medium of both the agent’s autoregressive generation and its environment interaction [64, 88]. All intermediate reasoning trajectories are generated token by token as text before the agent can act on the environment.

A separate line of work on latent reasoning points in a different direction [9, 94]. By unfolding computation directly in continuous hidden space, latent models bypass the need to decode and verbalize every intermediate step, providing more efficient internal reasoning within the model’s “own language” [25, 72] (Yu et al. 2026). However, today’s latent reasoners remain largely sealed behind the model boundary. Unlike decoded text, continuous latent vectors (i) lack native pathways for tool invocation across multi-turn agentic reasoning [7], and (ii) do not readily expose human-interpretable semantics, leaving them difficult to supervise during training (Chen et al., 2026) and to audit or debug at inference [32]. These constraints keep latent reasoning models from operating as capable agents in their own right.

Taken together, agentic interaction and efficient inner reasoning have so far required a different medium each, leaving the two lines of work apart in the development of next-generation agents. We believe this division can be closed by building a new type of agent that combines both strengths to think beyond text while still acting through it. We call this unified design HybridAgent, one that dynamically navigates between latent reasoning and text-based interaction within a single generation.

Building such an agent is hard, since it needs to handle both dense continuous vectors and sparse discrete tokens as hybrid inputs, and determine when to transition between text and latent modes to balance agentic actions and reasoning efficiency. To offset the hardness, we first revisit the model architecture and extend its autoregressive generation interface to support hybrid inputs. At the heart of this design is HybridLink, a lightweight residual adapter that bridges latent thoughts from the last-layer hidden space back into the input embedding space and enables sequence-wise recurrence within latent mode. Then, we realize multi-turn hybrid generation through the agent’s own working memory, carrying complete hybrid trajectories of text, latent thoughts, and tool observations across turns. Surprisingly, we find that HybridAgent can render its thoughts in latent mode as human-readable pseudo-text, making latent reasoning transparent and directly inspectable rather than opaque.

To further unlock the potential of hybrid reasoning, we equip HybridAgent with dedicated post-training algorithms. HybridSFT first stabilizes tool-integrated hybrid generation through activation and self-conditioned training, which adapts the backbone to reason over latent thoughts produced by its own HybridLink, enabling reliable coordination between the two components and closing the train-inference mismatch. Then, HybridRL scales agentic reasoning capabilities by training HybridAgent to adaptively balance latent reasoning and text-based interaction. To realize this, we enable policy optimization over hybrid trajectories through hybrid policy factorization and exact rollout replay.

We provide theoretical grounding for HybridAgent through complementary analyses of multi-turn context continuation and hybrid policy optimization. From an architectural standpoint, we show that continuous working memory losslessly preserves the entire hybrid context across different turns. From a learning perspective, the hybrid policy factorization and exact latent-context replay in HybridRL provide a well-founded basis for policy updates over complete hybrid trajectories.

Empirically, we evaluate HybridAgent on 11 benchmarks spanning mathematics, science, medicine, knowledge-intensive search, and challenging agentic reasoning. We instantiate and train HybridAgent with Qwen3-Base models Yang et al. [77] across 4B, 8B, and 14B scales. Compared with frontier LLM agents and agentic frameworks spanning both text-based and latent reasoning, HybridAgent achieves an average performance improvement of 10.4% and exhibits strong test-time scalability. In terms of efficiency, HybridAgent reduces token usage by 35.5%–54.7%, delivers 1.8×–2.6× inference speedup, and lowers computational cost by 2.7×–3.7×. Additional in-depth analyses of training dynamics, reasoning auditability, and agentic tool-use reliability reveal a clear division of labor between the two reasoning modes: HybridAgent shifts more internal reasoning into semantically rich and interpretable latent thoughts, while reserving text for external inspection and tool interaction.

Preliminary

Hybrid Generation in LLMs. We consider an LLM agent fθf_\theta built upon a standard Transformer parameterized by θ\theta. To enable hybrid generation, the agent operates autoregressively in two modes: (i) text, which performs explicit generation in the token space, and (ii) latent, which performs implicit generation in the continuous representation space. Formally, given an input context xx with corresponding input embeddings E=[e1,…,et]∈Rt×dhE = [e_1, \ldots, e_t] \in\mathbb{R}^{t \times d_h}, the agent computes the last-layer hidden state hth_t through a forward pass, and the hybrid input representation for the next step t+1t+1 is:

et+1={Emb⁡(yt+1),yt+1∼Softmax⁡(Woutht),if text mode,ht,if latent mode,(1)e_{t+1} = \begin{cases} \operatorname{Emb}(y_{t+1}), \quad y_{t+1} \sim\operatorname{Softmax}(W_{\mathrm{out}}h_t), & \text{if text mode},\\ h_t, & \text{if latent mode}, \end{cases} \tag*{(1)}

where WoutW_{\mathrm{out}} is the vocabulary projection matrix, Emb⁡(⋅)\operatorname{Emb}(\cdot) is the token embedding function, and hth_t is directly reused as the next latent input in standard latent reasoning [11, 12, 25]. The next hidden state of fθf_\theta is then computed as:

ht+1=fθ([E≤t;et+1]).(2)h_{t+1} = f_\theta([E_{\leq t}; e_{t+1}]). \tag*{(2)}

Throughout inference, the hybrid agent dynamically switches between the two generation modes, producing a hybrid trajectory that balances the model’s inner reasoning with external interaction.

Tool-Integrated Agentic Reasoning. A hybrid agent can leverage its text mode to interact with external environments. Similar to standard LLM agents, the hybrid agent generates a tool call as a sequence of text, invokes the corresponding tool (e.g., Python, Search), and receives the resulting observations. A complete single-turn hybrid reasoning trajectory τ\tau can be represented as:

[text] ⟨latent⟩ ⋯ [text] [tool_call]→Tool Execution[tool_response](3)[\mathrm{text}] \ \langle\mathrm{latent}\rangle\ \cdots\ [\mathrm{text}] \ [\mathrm{tool\_call}] \xrightarrow{\text{Tool Execution}} [\mathrm{tool\_response}] \tag*{(3)}

where [⋅][\cdot] and ⟨⋅⟩\langle\cdot\rangle denote text chunks and latent vectors, respectively. The whole trace is then appended as input for the next generation turn, and the process continues until a final text answer is produced.

Building a Hybrid Reasoning Agent

We introduce HybridAgent, a hybrid framework that dynamically navigates between explicit text and continuous latent reasoning within a single unified generation process. As illustrated in Figure 1, the architecture preserves an LLM agent’s autoregressive generation and tool-calling interfaces while accommodating both text and latent inputs. Below, we first present the hybrid interface for seamless text-latent mode transition (§ 3.2), followed by multi-turn hybrid generation (§ 3.3).

Figure 1. HybridAgent Architecture Overview. Left: A HybridLink maps last-layer hidden states back into the input embedding space, letting the agent enter latent mode for recurrent, fast, inspectable inner thinking and return to text mode for tool calls and external monitoring. Right: HybridAgent performs hybrid reasoning that thinks in latent space and acts through text within a single generation process. Building on this architecture, HybridAgent (i) achieves multi-turn hybrid generation by carrying the entire hybrid context through its own working memory (§ 3), and (ii) can be converted from any standard pre-trained LLM through a dedicated post-training pipeline (§ 4).

Hybrid Mode Interface

Hybrid Mode Interface

Existing latent reasoning models typically feed the last-layer hidden state hth_t directly back as the next-step input et+1e_{t+1}. This design is not well suited to hybrid generation, as substituting hth_t for a token embedding creates a representation mismatch with the pretrained input space, making transitions between continuous latent states and discrete tokens difficult. To support both latent and text modes in a shared input interface, we add a lightweight adapter HybridLink to work alongside the backbone.

HybridLink as a Bridge. An LLM agent’s last-layer hidden states naturally encode the semantics of its current generation, so the HybridLink R\mathcal{R} is designed to carry this information from the hidden representation space back into the input embedding space. Formally, given any last-layer hidden state hth_t, HybridLink simulates its corresponding next-step input embedding as:

et+1=R(ht)=ht+W2σ(W1ht),(4)e_{t+1} = \mathcal{R}(h_t) = h_t + W_2 \sigma(W_1h_t), \tag*{(4)}

where W1,W2W_1, W_2 are standard linear projections, σ\sigma is an activation function (e.g., GELU). As the residual connection largely preserves the original semantics of hth_t, HybridLink only needs to align the distributional difference rather than learn the entire projection from scratch. Accordingly, the link module is lightweight, with approximately 2dh22d_h^2 parameters (e.g., ∼10\sim10M parameters for a 4B LLM).

Dynamic Text-Latent Mode Transition. Next, we describe how HybridAgent transitions between text and latent modes during generation, together with the entry and exit decisions for each mode.

In text mode, HybridAgent behaves exactly as a standard LLM, sampling the next token from the vocabulary at each step. The process continues until the agent generates one special token <latent>, which serves as the entry anchor for the latent mode. For the next forward pass, the agent uses HybridLink for latent reasoning in place of the LM head and token embedding layer.

In latent mode, each step’s last-layer hidden state is passed through HybridLink via Eq. (4), allowing HybridAgent to continue its generation flow entirely in latent space without token decoding and re-embedding. This sequence-wise recurrent computation over continuous representations extends the agent’s effective reasoning depth, enabling more expressive internal reasoning. The latent reasoning span terminates when the semantics of the last-layer hidden state hth_t align with the exit anchor </latent>. Specifically, at any latent step tt, the latent mode closes by satisfying the condition:

arg⁡max⁡v∈V cos⁡(R(ht),Emb⁡(v))=⟨/latent⟩.(5)\underset{v \in\mathcal{V}}{\arg\max}\ \cos(\mathcal{R}(h_t), \operatorname{Emb}(v)) = \langle/\text{latent}\rangle. \tag*{(5)}

HybridAgent then returns to its text mode, and this transition continues during generation. At each step, the agent adaptively decides whether to remain in its current mode or switch, allowing the length and frequency of text and latent spans to emerge dynamically rather than follow preset configurations.

Interpretable Latent Mode. During hybrid generation, a useful property of HybridAgent is that its latent mode remains decoding-free yet directly interpretable. To inspect any latent reasoning span, one can easily recover its semantics by mapping each latent step produced by HybridLink to its nearest token embedding, as in Eq. (5). We illustrate this interpretability property clearly in Figure 2.

Interpretable latent mode in HybridAgent

Figure 2. Interpretable Latent Mode in HybridAgent. All latent steps can be expressed as readable pseudo-text carrying their semantics for external inspection. Left: Quantitatively, latent thoughts are highly readable and context-specific (see Appendix § 17). Right: Qualitatively, latent pseudo-text stays semantically aligned with surrounding text reasoning and tool calls. (“Steps” counts forward passes).

Multi-Turn Hybrid Generation over Working Memory

In standard LLM agents, each turn’s generated content and tool outputs are appended to the textual context and re-encoded as the next turn’s input prefix. Hybrid trajectories, however, interleave text tokens with latent vectors and can’t be reconstructed through conventional tokenization alone. Instead, HybridAgent carries the complete context across turns through its continuous working memory.

Cross-Turn Working Memory. Recall that a single-turn hybrid trajectory τ\tau in Eq. (3) consists of model-generated text, latent thoughts, and external tool interactions. During input construction, all contents are mapped into the same input space through either the input embedding layer or HybridLink. This shared space allows the Transformer to process all three components uniformly and collect their KV entries throughout generation. We leverage these accumulated KV entries as the HybridAgent’s continuous working memory to achieve multi-turn hybrid generation.

As illustrated in Figure 3, HybridAgent first initializes its working memory M\mathcal{M} from the input context xx and then accumulates the KV entries generated throughout the first-turn trajectory τ(1)\tau^{(1)}, i.e.,

Figure 3. Multi-Turn Hybrid Generation over HybridAgent’s Own Working Memory. HybridAgent accumulates key-value (KV) entries from text, latent thoughts, and tool observations in continuous working memory, directly reusing and updating it across turns to preserve the full hybrid context.

M(0)=[K≤∣x∣,V≤∣x∣],M(1)=M(0)⊕[K≤t,V≤t],t=1,…,∣τ(1)∣.(6)\begin{aligned} \mathcal{M}^{(0)} &= [K_{\leq|x|}, V_{\leq|x|}],\\ \mathcal{M}^{(1)} &= \mathcal{M}^{(0)} \oplus[K_{\leq t}, V_{\leq t}], \quad t = 1, \ldots, |\tau^{(1)}|. \tag*{(6)} \end{aligned}

Here, M(1)\mathcal{M}^{(1)} preserves the complete first-turn hybrid context in positional order across all Transformer layers. For each subsequent turn, the agent directly resumes generation from the current working memory and updates it by appending newly generated KV entries at each step. This process continues across the sequence of hybrid trajectories {τ(1),τ(2),…,τ(n)}\{\tau^{(1)}, \tau^{(2)}, \ldots, \tau^{(n)}\} until the final answer is produced. We further provide a formal justification for this continuation process in Appendix § 12. Overall, multi-turn hybrid generation proceeds over one continuous working memory flow, preserving the complete hybrid context across turns without requiring intermediate token-space reconstruction.

Learning to Perform Hybrid Reasoning

With the overall framework in place, we now turn to training. As HybridAgent leaves the backbone architecture intact, no pre-training from scratch is required. Instead, we adapt the standard agentic post-training pipeline of supervised fine-tuning and reinforcement learning to the hybrid setting. The two training stages serve complementary roles: SFT teaches the agent to coordinate with HybridLink and instantiate reliable tool use for stable hybrid generation (§ 4.1), while RL further scales reasoning by learning when to think in latent space and when to act through text (§ 4.2).

Stabilize Generation via Hybrid Supervised Fine-tuning

As a first step toward stabilizing hybrid reasoning in HybridAgent, we design the entire HybridSFT stage through a hybrid data curation pipeline and a staged training procedure.

Hybrid Data Recipe. To curate high-quality training data, we filter existing text-based agentic SFT datasets from multiple sources and convert them into hybrid trajectories through automatic annotation. We assign reasoning steps to latent mode based on both LLM Experts’ judgments and target models’ own prediction entropy, while retaining a small set of key steps for tool interactions and external debugging/auditing in text mode (see Appendix § 16 for data curation details).

Format and HybridLink Activation. As a warm start, we adapt the backbone to the hybrid data format and initialize the HybridLink. For format activation, we perform standard text SFT to teach the backbone when to enter and exit latent mode by emitting the two special anchor tokens. We then freeze the backbone and train HybridLink to align last-layer hidden states at latent positions with their target input embeddings. For a training instance (x,y)∈DSFT(x,y) \in\mathcal{D}_{\mathrm{SFT}}, the activation objectives are:

LBackbone=CE⁡(fθ(x),y),LHybridLink=λcos⁡(1−cos⁡(R(hlat),Emb⁡(ylat)))+λmse∥R(hlat)−Emb⁡(ylat)∥2(7)\mathcal{L}_{\mathrm{Backbone}} = \operatorname{CE}(f_{\theta}(x), y), \\ \mathcal{L}_{\mathrm{HybridLink}} = \lambda_{\cos}\left(1-\cos\left(\mathcal{R}(h_{\mathrm{lat}}), \operatorname{Emb}(y_{\mathrm{lat}})\right)\right) + \lambda_{\mathrm{mse}}\left\|\mathcal{R}(h_{\mathrm{lat}})-\operatorname{Emb}(y_{\mathrm{lat}})\right\|^{2} \tag*{(7)}

where hlath_{\mathrm{lat}} is the last-layer hidden states at latent positions, ylaty_{\mathrm{lat}} is the corresponding ground-truth text tokens, and λcos⁡,λmse\lambda_{\cos}, \lambda_{\mathrm{mse}} balance directional and magnitude alignment, respectively.

Self-Conditioned HybridSFT. The activation provides a well-aligned initialization, but the backbone has not yet learned to reason over latent thoughts produced by its own HybridLink (see Appendix § 13.§ 1 for details on this train-inference mismatch). We therefore adopt a two-pass self-conditioned training scheme as illustrated in Figure 4. In the first pass, HybridAgent is teacher-forced on the ground-truth hybrid sequence. HybridLink maps the generated last-layer hidden states at latent positions one step ahead to form latent inputs for the next pass. In the second pass, HybridAgent processes the same Algorithm 1 Hybrid Reinforcement Learning (HybridRL)

Figure 4. Self-Conditioned HybridSFT. A teacher-forced first pass produces next-step latent inputs via HybridLink. A second pass replaces ground-truth latent embeddings Emb(·) with the predictions R(h)\mathcal{R}(h) and jointly trains the backbone and HybridLink using CE at text and regression at latent positions.

Input: Agent fθf_{\theta} (SFT initialized in § 4.1), HybridLink R\mathcal{R}, task set DRL\mathcal{D}_{\mathrm{RL}}, group size GG, η\eta

  1. for each training step do

  2. &nbsp;&nbsp;Sample x∼DRLx \sim\mathcal{D}_{\mathrm{RL}}; Collect {τi}i=1G←fθ(x)\{\tau_i\}_{i=1}^{G} \leftarrow f_{\theta}(x) &nbsp;&nbsp;&nbsp;&nbsp;▹ Hybrid Policy Rollout

  3. &nbsp;&nbsp;Record τi\tau_i with latent zi=R(Hi)z_i = \mathcal{R}(H_i) (Eq. (4)), text yiy_i, and tool observations oio_i

  4. &nbsp;&nbsp;Compute rewards rir_i (Eq. (11)) and group-normalized advantages AiA_i

  5. &nbsp;&nbsp;Replay τi\tau_i with (zi,yi,oi)(z_i,y_i,o_i) to obtain πθ(yi,t∣τi,<t)\pi_{\theta}(y_{i,t}\mid\tau_{i,<t}) &nbsp;&nbsp;&nbsp;&nbsp;▹ Exact Rollout Replay

  6. &nbsp;&nbsp;Compute ρi,t\rho_{i,t} via Eq. (9) and Eq. (10) &nbsp;&nbsp;&nbsp;&nbsp;▹ Hybrid Policy Factorization

  7. &nbsp;&nbsp;Update θ←θ−η∇θLRL\theta\leftarrow\theta-\eta\nabla_{\theta}\mathcal{L}_{\mathrm{RL}} (standard RL objective) &nbsp;&nbsp;&nbsp;&nbsp;▹ Hybrid Policy Update

  8. end for

sequence but replaces the ground-truth latent embeddings with its own latent inputs. We jointly supervise text and latent positions on the second pass as:

LHybridSFT=LBackbone+LHybridLink,(8)\mathcal{L}_{\mathrm{HybridSFT}}=\mathcal{L}_{\mathrm{Backbone}}+\mathcal{L}_{\mathrm{HybridLink}}, \tag*{(8)}

where the CE loss LBackbone\mathcal{L}_{\mathrm{Backbone}} and regression loss LHybridLink\mathcal{L}_{\mathrm{HybridLink}} are applied only at text and latent positions, respectively. Overall, HybridSFT trains the agent to coordinate its backbone with HybridLink for coherent reasoning across text and latent modes, supporting stable hybrid generation at inference.

Scale Reasoning via Hybrid Reinforcement Learning

A HybridAgent cannot straightforwardly adopt popular RL algorithms such as PPO [56] or GRPO [57], as they assume every generated position carries a token-level likelihood. Specifically, at each position tt, standard RL computes the per-token importance ratio as:

ρt=πθ(yt∣y<t)πθold(yt∣y<t),(9)\rho_t=\frac{\pi_{\theta}(y_t\mid y_{<t})}{\pi_{\theta_{\mathrm{old}}}(y_t\mid y_{<t})}, \tag*{(9)}

where πθ,πθold\pi_{\theta},\pi_{\theta_{\mathrm{old}}} denote the current and rollout policies. At latent positions, however, HybridAgent generates continuous vectors rather than sampled tokens, leaving no token-level likelihood. Thus, the importance ratio ρt\rho_t is undefined. We address this incompatibility with two simple components.

Hybrid Policy Factorization. Recall that, in a hybrid trajectory, latent thoughts are computed entirely in the continuous latent space through HybridLink, and tool responses are the masked observations from the environment. Thus, policy sampling during rollout is confined to model-generated text positions. To justify why policy optimization needs only to operate over these sampled positions, we formalize the hybrid policy factorization below with detailed theoretical analyses.

Proposition 4.1 (Hybrid Policy Factorization). Let τ\tau be a hybrid trajectory generated by the policy πθ\pi_{\theta} (induced by fθf_{\theta}) with fixed HybridLink R\mathcal{R}. Then the hybrid policy factorizes as:

πθ(τ∣x)=∏t∈Tπθ(yt∣x,τ<t),(10)\pi_{\theta}(\tau\mid x)=\prod_{t\in\mathcal{T}}\pi_{\theta}(y_t\mid x,\tau_{<t}), \tag*{(10)}

where T\mathcal{T} is the set of sampled text positions of trajectory τ\tau.

The proof and additional theoretical justifications are provided in Appendix § 14. Proposition 4.1 shows that likelihood-ratio updates over sampled text positions are sufficient to optimize the full hybrid trajectory, making the importance ratio in Eq. (9) well-defined for the HybridAgent policy.

Policy Update via Exact Rollout Replay. Policy optimization generally involves rebuilding a differentiable computation graph for the rollouts. Applying this to HybridAgent further requires recomputing sampled text-token likelihoods conditioned on the same preceding latent thoughts used during rollout. We satisfy this requirement via exact latent-context replay. During hybrid rollout, we record latent thoughts alongside sampled text tokens and tool observations. During policy updates, we replay the full hybrid trajectory in embedding space with a single differentiable forward pass, keeping the recorded latent inputs unchanged while recomputing the sampled likelihoods in Eq. (10).

Algorithm 1 outlines the full HybridRL training procedure. We keep the HybridLink fixed to preserve deterministic latent transitions. For the reward design, we simply formulate it as:

r(τ)=rcorrect+rformat+rtool,(11)r(\tau) = r_{\mathrm{correct}} + r_{\mathrm{format}} + r_{\mathrm{tool}}, \tag*{(11)}

where rcorrectr_{\mathrm{correct}} measures answer correctness, rformatr_{\mathrm{format}} penalizes invalid formatting, and rtoolr_{\mathrm{tool}} encourages multi-tool use. We impose no explicit reward for mode usage, allowing HybridAgent to adaptively balance text and latent generation and discover effective hybrid reasoning strategies during RL.

Empirical Evaluations

Tasks and Datasets. We conduct comprehensive evaluations of HybridAgent on 11 benchmarks across various domains: (i) Mathematical Reasoning, including AIME 25 (math ai, 2025), AIME 26 (MathArena, [42]), and MATH500 (HuggingFaceH4, [28]); (ii) Knowledge-Intensive Reasoning, including GPQA-Diamond (Rein et al., [54]), MedQA (Yang et al., [78]), and MuSiQue (Trivedi et al., [71]); and (iii) Agentic Reasoning, including General AI Assistants (GAIA) (Mialon et al., [43]), Humanity’s Last Exam (HLE) (Center for AI Safety et al., [6]), WebWalker (Wu et al., 2025), SealQA (Pham et al., [49]), and DeepSearchQA (DSQA) (Gupta et al., [24]). We adopt the standard evaluation metric for each dataset. Additional benchmark details are in Appendix § 19.§ 1.

Baselines. For baseline comparisons, we evaluate HybridAgent against (i) Text-based Agentic Methods, covering standard text SFT (with tools) and multi-turn tool-integrated RL methods such as GRPO (Shao et al., [57]) and ARPO (Dong et al., [18]); (ii) Latent Reasoning Methods, including SoftThinking (Zhang et al., [89]), Coconut (Hao et al., [25]), and SoftCoT (Xu et al., 2025b); (iii) Frontier LLM Agents, including GPT-5.6-Luna (OpenAI, [46]), Kimi-K3 (Team, [23]), GLM-5.3-Flash (GLM-5-Team et al., [23]), DeepSeek-V4.1-Flash (DeepSeek-AI, [15]), QwQ-32B (Team, 2025); and (iv) Agentic Frameworks, including ReAct (Yao et al., [81]), Search-o1 (Li et al., 2025a), and WebThinker (Li et al., 2025b). Additional baseline details are provided in Appendix § 19.§ 2.

Models and Training Setups. We instantiate HybridAgent with Qwen3-Base backbones (Yang et al., [77]) at three scales of 4B, 8B, and 14B. We then apply HybridSFT with 54K hybrid trajectories curated through our automatic annotation pipeline, followed by HybridRL with 12K deep reasoning examples (Yu et al., 2025) and 1K agentic search examples (Dong et al., [18]). During RL, we set rollout batches of 512 trajectories (64 × 8), followed by one optimization pass over 8 minibatches.

Implementation Details. HybridAgent interacts with external environments primarily through two types of tools: a Python interpreter within sandbox environments and a live search engine (e.g., Tavily). We cap tool usage at 10 calls per trajectory and retrieve the top 10 snippets for each search query. As current serving engines do not support multi-turn hybrid generation, we extend the training and inference infrastructure to enable text, latent, and tool-calling transitions and persistent KV working-memory transfer. RL rollouts use a sampling temperature of 1.0, and evaluation uses temperature 0.6, top-p 0.95, and top-k 20. We conduct experiments on H100 GPUs using five independent seeds. Additional training/inference details and hyperparameter setups are provided in Appendix § 19.§ 3.

Scaling Performance via Hybrid Reasoning

Main Results. Table 1 and Table 2 report the overall performance of HybridAgent across 11 benchmarks spanning math, science, medicine, and knowledge search domains. On challenging agentic reasoning benchmarks, HybridAgent delivers competitive performance over larger frontier LLM agents and specialized tool-use frameworks, with HybridAgent (14B) improving over the strongest agentic baseline by an average of 17.4%. In addition, under matched model sizes and training budgets, HybridSFT and HybridRL demonstrate consistent training effectiveness and improve over corresponding text/latent baselines by 18.5% at the SFT stage and 10.4% at the RL stage. Together, HybridAgent combines the strengths of text-based agentic tool use with faster and more expressive latent reasoning, allowing the agent to interact externally while achieving deeper thinking depth internally.

MethodGAIA Lv.1GAIA Lv.2GAIA Lv.3GAIA Avg.WebWalker EasyWebWalker Med.WebWalker HardWebWalker Avg.HLE NSHLE CEHLE SFHLE Avg.SealQA S-0SealQA HardDSQA Acc.DSQA F1
Frontier LLM Agents
QwQ-32B30.96.55.218.97.52.14.64.311.57.35.29.61.810.611.323.9
GLM-5.3-Flash38.528.88.330.18.98.39.99.013.314.716.814.29.022.016.038.5
DeepSeekV4.1-Flash43.642.316.739.822.216.712.716.528.525.330.528.414.433.519.338.6
Kimi-K346.242.325.041.711.111.97.010.029.432.037.931.411.728.021.746.0
GPT-5.6-Luna48.732.725.037.915.68.311.311.030.925.325.329.011.729.123.349.4
Agentic Frameworks
Search-o146.223.10.029.111.121.416.917.56.44.010.56.83.611.812.325.3
WebThinker48.726.98.333.013.323.818.319.57.04.09.57.04.512.611.724.7
ReAct48.725.08.332.011.120.212.715.55.85.310.56.67.215.014.632.3
8B-level Latent & Text Methods
Qwen3-8B (thinking)28.115.416.720.40.02.42.82.03.92.78.44.62.75.93.314.6
Coconut7.71.90.03.90.01.20.00.51.50.01.11.20.01.61.76.1
SoftThinking23.19.68.314.60.01.21.41.03.62.76.34.00.03.92.311.2
GRPO48.725.08.332.028.932.128.230.07.94.010.57.815.323.617.333.8
ARPO53.932.716.738.831.135.728.232.07.36.715.88.818.926.018.037.2
HybridAgent (8B)51.344.225.043.748.945.235.242.514.28.020.014.422.535.820.040.7
14B-level Latent & Text Methods
Qwen3-14B (thinking)33.313.50.019.46.72.44.24.05.56.711.66.83.67.94.015.1
Coconut10.35.80.06.82.22.41.42.03.94.05.34.20.02.82.07.5
SoftThinking23.111.58.315.56.73.67.05.53.95.39.55.22.76.35.715.4
GRPO51.334.60.036.935.642.935.238.57.96.712.68.617.124.418.643.9
ARPO56.440.416.743.740.044.136.640.510.310.713.710.017.122.816.338.2
HybridAgent (14B)53.855.833.352.448.952.446.549.516.113.317.916.024.337.821.746.8

Table 1. Main Results of HybridAgent over Agentic Reasoning Tasks. We report GAIA and WebWalker by difficulty level, HLE by category (NS/CE/SF), SealQA on the Seal-0 (“S-0”) and Seal-Hard (“Hard”) splits, and DSQA by full-correct rate (“Acc.”) and F1 score. Across 5 independent runs, the average standard deviations of HybridAgent are ±0.014 in accuracy, with a corresponding 95% CI of ±0.017. At 8B and 14B scales, HybridAgent consistently outperforms advanced LLM agents, agentic frameworks, and matched text and latent baselines. Best performance is highlighted.

MethodAIME25AIME26MATH500GPQA-DMedQAMuSiQue
Qwen3-8B-Base
Coconut13.19.651.426.861.714.0
SoftCoT16.517.963.628.962.019.5
Standard Text SFT30.028.378.232.369.723.5
HybridAgent (SFT)30.829.278.431.870.026.5
GRPO36.339.482.043.974.327.5
ARPO37.141.582.846.574.728.5
HybridAgent (RL)39.243.384.648.075.332.0
Qwen3-14B-Base
Coconut16.315.261.229.365.317.5
SoftCoT22.723.874.036.467.720.0
Standard Text SFT30.831.783.843.978.028.0
HybridAgent (SFT)32.531.784.245.578.729.5
GRPO40.842.587.452.581.032.0
ARPO42.143.387.054.080.331.5
HybridAgent (RL)43.345.888.255.181.734.5

Table 2. Main Results of HybridAgent on Math and Knowledge-Intensive Search. We evaluate performance across both SFT and RL stages. Small-size benchmarks like AIME25/26 are reported on avg@16 accuracy. Across all tasks, HybridAgent yields an average std. of ±0.031\pm0.031 (math) and ±0.018\pm0.018 (search), with corresponding 95% CI of ±0.038\pm0.038 and ±0.022\pm0.022. Under the same training budgets and model setups, HybridSFT and HybridRL improve both text-based and latent reasoning methods.

Scaling Hybrid Reasoning at Test Time. To further examine the test-time scalability of our hybrid reasoning paradigm, we increase inference compute budgets through additional sampling and evaluate pass@k performance. Figure 5 shows that HybridAgent exhibits a clear upward trend as sampling increases across all model scales, while benefiting more from increased test-time compute than agents with text-only RL. Additional 4B-scale experiments and case studies are in Appendix § 18 and Appendix § 21.

Scalability of HybridAgent at Test-time

Figure 5. Scalability of HybridAgent at Test-time. We evaluate pass@k (4, 8, 16, 32, 64) performance on 100 hard math and science questions and compare with text agents trained with GRPO.

Efficiency Advantage on Hybrid Generation

Beyond performance effectiveness, a key architectural advantage of HybridAgent is that its latent mode enables efficient generation without costly explicit token decoding. We evaluate this property empirically along three complementary dimensions: (i) token throughput, (ii) wall-clock inference time, and (iii) actual computation cost. As shown in Figure 6 and Figure 7, HybridAgent adaptively balances its hybrid reasoning across text and latent modes by using 2.7×2.7 \times fewer text tokens, reducing total generation steps by up to 54%, and achieving 2.1×2.1 \times faster inference than text-based baselines. Together with the cost analyses in Table 9 (see Appendix § 18.§ 2), HybridAgent generates more concise and refined reasoning trajectories, reducing inference overhead and cost.

Efficient hybrid generation across 4B, 8B, and 14B model scales

Figure 6. Efficient Hybrid Generation of HybridAgent across Model Scales. HybridAgent reduces both text-token usage and total generation steps compared with matched text-based LLM agents.

Inference time speedup of HybridAgent across all model scales

Figure 7. Inference time speedup of HybridAgent across all model scales.

Model BackboneText Agent (TFLOP)HybridAgent (TFLOP)Cost / 1M questions (Text Agent → HybridAgent)Cheaper by
Qwen3-4B-Base51.213.9$359 → $983.7×
Qwen3-8B-Base62.517.2$439 → $1213.6×
Qwen3-14B-Base66.925.1$470 → $1762.7×

Table 9. Cost Analyses on HybridAgent. We compare HybridAgent with text agents under the same backbones, reporting compute per question and estimated monetary cost per 1M questions. Each text or latent generation step is charged as one full backbone forward pass. Monetary costs assume $2.50 per H100-hour and 10% utilization of peak BF16 throughput (approximately $0.007 per PFLOP).

In-depth Analyses

RoadMap. We further analyze HybridAgent from 3 complementary perspectives to assess the method design and better understand its hybrid reasoning behavior. (i) Training Dynamics: We study how self-conditioning in HybridSFT improves reasoning performance (Table 3) and latent interpretability (Figure 8), and how HybridRL shifts more reasoning into latent mode while strengthening tool interaction (Figure 9). (ii) Latent-Mode: We intervene on latent content, ordering, and reasoning depth to examine HybridAgent’s causal reliance on latent thoughts (Table 5), and ablate HybridLink architectures to assess the benefits of residual alignment (Table 6). (iii) Text-Mode: We evaluate text-based agentic tool use (Figure 10) and auditability of HybridAgent (Table 7) to verify that text-mode supports reliable environment interaction and remains informative for external monitoring/debugging.

MethodAIME25AIME26MATH500
Coconut16.315.261.2
Standard Text SFT30.831.783.8
Qwen3-14B-Base4.93.047.0
+ Format Activation20.619.862.4
+ HybridLink Activation23.822.573.8
+ Self-Condition (HybridSFT)32.531.784.2

Table 3. Effectiveness and Interpretability of Self-Conditioned HybridSFT. Left: We compare successive HybridSFT stages with latent and text training baselines using the same Qwen3-14B-Base backbone. Right: We evaluate the readability and context-specificity across 200 downstream questions, showing how self-conditioning improves latent transparency.

Figure 8.

Training Dynamics of HybridRL

Figure 9. Training Dynamics of HybridRL. As training progresses, HybridAgent shifts more generation from text to latent mode while increasing reward and tool use. These trends reflect how HybridAgent adaptively learns to allocate its reasoning and tool calling efforts across the two modes.

Latent-Mode InterventionSetup DescriptionStrength dd8B-Scale14B-Scale
Noise Perturbation
Gaussian Noise (σ=0.5\sigma= 0.5)Add perturbation with random noise of magnitude 0.5∥v∥0.5\lVert v\rVert before latent feedback.0.572.675.0
Gaussian Noise (σ=2.0\sigma= 2.0)Add perturbation with random noise of magnitude 2.0∥v∥2.0\lVert v\rVert before latent feedback.2.066.470.2
Latent Replacement
Random-token ReplacementReplace vv with a uniformly sampled token embedding, rescaled to ∥v∥\lVert v\rVert.1.641.244.6
Cross-problem ReplacementReplace each latent span with the corresponding latents from a different partner problem.1.444.848.6
Mean-latent ReplacementReplace every vv with the mean latent vector from the original HybridAgent trajectories.1.053.658.4
Nearest-token ReplacementReplace vv with its nearest token embedding, rescaled to ∥v∥\lVert v\rVert.0.282.687.2
Latent Permutation
Within-block PermutationRandomly permute latent vectors within each block; Preserve content but disrupt order.0.873.276.4
Latent Computation Restriction
One-step Only for Latent SpanForce each latent span to terminate after one generation step.–72.275.0
Block Latent-Mode EntryPrevent entry into latent mode, forcing the agent to reason entirely in text.–80.478.8
HybridAgent (ours)No intervention; the agent feeds back its own generated latent vector vv at every latent step.0.084.688.2

Table 5. Causal Interventions on HybridAgent Latent Mode. We report MATH500 accuracy (%) for 8B and 14B scales under different interventions on latent-mode thoughts generated by HybridAgent. Performance drops substantially when latent semantics or structure are disrupted, indicating that HybridAgent causally relies on semantically meaningful latent-mode thoughts. Here, vv denotes the original latent vector and v′v' denotes the intervened counterpart. The relative perturbation strength dd is computed as ∥v′−v∥/∥v∥\lVert v' - v\rVert/\lVert v\rVert, averaged over latent steps, where d=0d = 0 means no intervention.

Figure 10. Agentic Tool-Use Analysis on HybridAgent. Left: Valid tool-call rate across 8B and 14B scales; "Execute Success" measures error-free execution among valid tool calls. Middle: Final-answer accuracy on questions where the agent performs at least one tool call. Right: Useful tool-call rate, measuring the fraction of tool calls whose execution results contain the final answer.

HybridLink DesignMATH500MedQAMuSiQue
Identity (No Alignment)71.473.724.5
1-Layer83.679.728.5
1-Layer+Res.86.480.331.0
2-Layer85.881.031.5
2-Layer+Res. (ours)88.281.734.5

Table 6. Effectiveness of HybridLink. We compare accuracy across alternative architectural designs.

MetricMeasurement8B Scale14B Scale
HybridAgentText AgentHybridAgentText Agent
Visible TraceText-Mode tokens per instance302596284497
Latent-Mode steps per instance170–183–
Key reasoning steps per 100 visible tokens ↑\uparrow0.720.570.860.67
MonitoringWeak-monitor AUROC (MATH500) ↑\uparrow0.8400.7720.8600.818
Strong-monitor AUROC (all tasks) ↑\uparrow0.9610.9350.9890.990
DebuggingFirst error correctly localized (%) ↑\uparrow99.294.298.1100.0
Error diagnosis matches reference (%) ↑\uparrow97.693.597.296.3
Useful corrective hint / Answer leakage (%) ↑\uparrow / ↓\downarrow97.6 / 0.898.7 / 0.0100.0 / 0.998.2 / 0.9
CorrectionFix-rate gain from targeted hint vs. generic retry (Δ\Delta) ↑\uparrow+9.1+3.4+5.4+3.5
SufficiencyAnswer-agreement gain from visible text only (Δ\Delta) ↑\uparrow+0.25+0.17+0.30+0.28

Table 7. Monitorability and Debuggability through HybridAgent Text-Mode. We compare HybridAgent with matched same-size text agents to examine whether its exposed text remains sufficient for external monitoring, debugging, correction, and rationale-based inspection under hybrid reasoning. All comparisons are evaluated using paired bootstrap 95% confidence intervals.

Training Dynamics on HybridSFT and HybridRL

Self-Conditioning Enables Effective and Interpretable HybridSFT. To understand why self-conditioned training is necessary for HybridAgent during SFT, we compare HybridSFT against variants with only format and HybridLink activations as well as latent SFT baselines like Coconut, from both performance and interpretability perspectives. As shown in Table 3, although all SFT variants improve the original shared Qwen3-14B-Base backbone, activation alone remains insufficient. Self-conditioned supervision further improves performance by an average of 30.5% over HybridLink activation, bringing HybridSFT to parity with standard text SFT across all three math benchmarks.

We further probe the semantics of the latent thoughts produced by each method over 200 questions spanning all downstream domains. Figure 8 reveals a clear progression, where HybridLink activation first makes latent contents more interpretable, and the additional self-conditioned training sharpens the latent readability and semantic informativeness. We then take a closer look to examine individual test instances through detailed case studies in Appendix § 21. Specifically, methods with low faithfulness and specificity generally produce largely unreadable artifacts of the embedding geometry, whereas the complete HybridSFT yields clear and semantically coherent latent readouts. Overall, these analyses reveal that self-conditioned training is essential to HybridSFT for making the latent reasoning traces in HybridAgent fully transparent and directly interpretable.

Training Dynamics of HybridRL. We analyze HybridAgent’s training behaviors to examine how it dynamically shifts and allocates reasoning effort across text/latent modes under HybridRL. In Figure 9, as the training step increases, our 14B agent progressively allocates more generation to latent mode while simultaneously strengthening its tool-invocation capability. Through training, HybridAgent adaptively learns to better utilize its two modes, shifting more reasoning into faster latent thinking while selectively exposing only key steps for external auditing and tool use through the text interface.

Reward Shaping in HybridRL. We ablate each reward component in Eq. (11) using HybridAgent (8B), removing one term at a time under otherwise identical setups.

In Table 4, all three components provide complementary supervision. Excluding rcorrectr_{\mathrm{correct}} causes the largest overall degradation, reducing performance by 6.4%–17.8%, while removing rformatr_{\mathrm{format}} consistently lowers performance by 4.7%–6.9%. The benefit of rtoolr_{\mathrm{tool}} is most pronounced on agentic benchmarks such as GAIA and WebWalker. Since the reward is granted only to trajectories that invoke both Python and search tools, removing rtoolr_{\mathrm{tool}} has a minor effect on MATH500, where Python alone is typically sufficient, but reduces GAIA and WebWalker by 11.2% and 3.5%. Overall, each reward component provides complementary supervision for answer correctness, format structure, and effective multi-tool use.

Reward DesignMATH500GAIAWebWalker
HybridRL (8B)84.643.742.5
w/o rcorrectr_{\mathrm{correct}}79.235.937.5
w/o rformatr_{\mathrm{format}}80.640.740.5
w/o rtoolr_{\mathrm{tool}}84.238.841.0

Table 4. Ablation on HybridRL rewards.

Causal Reliance and HybridLink Design in Latent Mode

Does HybridAgent Causally Rely on its Latent Mode Thoughts? To examine whether latent thoughts are functionally used during hybrid reasoning, we intervene on the latent vectors generated by 8B and 14B HybridAgent on the MATH500 downstream task. We perturb their content, ordering, and reasoning duration through 4 different types of controlled interventions, including (i) noise perturbation, (ii) latent replacement, (iii) latent permutation, and (iv) latent computation restriction. Table 5 details the intervention setups and reports performance under each scenario.

As shown in the table, disrupting latent thoughts consistently degrades performance across both scales. Specifically, cross-problem and random-token replacement reduce accuracy by 44.9-47.0% and 49.4-51.3%, while disrupting their ordering or restricting each latent span to one step leads to 13.4-15.0% degradation. Notably, cross-problem replacement causes substantially greater degradation than even stronger Gaussian perturbations, suggesting that performance depends on the semantic content of latent thoughts rather than perturbation magnitude alone. These analysis results on causal interventions indicate that HybridAgent functionally relies on the semantics, ordering, and sufficient reasoning depth of its latent thoughts during hybrid reasoning.

HybridLink Design. We next validate the effectiveness of HybridLink and its residual connection by comparing our adopted 2-layer residual design against 4 alternative architectures: (i) direct hidden-state reuse (i.e., et+1=hte_{t+1}=h_t) without learned alignment, (ii) 1-layer projection, (iii) 1-layer projection with residual connection, and (iv) 2-layer projection without residual connection. We end-to-end train each HybridLink variant with the 14B backbone under the same setup and evaluate across tasks.

As shown in Table 6, the full two-layer residual design of HybridLink yields consistent gains across all three downstream benchmarks, with the residual branch benefiting both one- and two-layer projection networks. Specifically, incorporating the residual connection contributes an average improvement of 4.3% across different layer depths. This observed trend aligns with our design motivation in § 3.2, where the residual connection preserves the semantics of input last-layer hidden states while the learned projection aligns these representations with the input embedding space. Together, these two components make HybridLink a more effective and stable interface for hybrid training and generation.

Tool Use and Reasoning Auditability in Text Mode

Does HybridAgent Text-Mode Preserve Agentic Tool Use? In Figure 10, we analyze agentic tool-calling capabilities by comparing HybridAgent with normal LLM agents trained on GRPO, examining whether hybrid reasoning preserves reliable external interactions through its text mode. Across 8B and 14B scales, HybridAgent achieves higher valid tool-call rates while matching the 99.7% execution success of valid calls, showing that hybrid reasoning preserves a reliable text-mode tool interface. More importantly, the gains extend beyond call validity, as HybridAgent improves final-answer accuracy by 2.2%–44.1% on questions where tools are invoked. The 4.5%–7.7% higher useful tool-call rate further indicates that HybridAgent not only invokes tools correctly, but also retrieves evidence that more directly contributes to solving the task. These findings suggest that HybridAgent preserves the reliable and effective agentic tool use of standard LLM agents through its text mode, while exposing fewer text tokens with interleaved latent reasoning.

Does HybridAgent Text-Mode Preserve External Auditability? A natural question of hybrid reasoning is whether shifting computation into latent mode might potentially compromise the external auditability provided by text. To examine this, we evaluate HybridAgent against matched text agents on MATH500 and AIME25/26, covering 560 problems under identical setups. For each question, an external observer sees only the exposed text steps, tool calls, and tool outputs, while latent spans remain hidden behind their boundary markers. We evaluate four complementary dimensions following commonly adopted evaluation protocols.

  • Monitoring: Measure whether a blind external monitor can predict rollout correctness from the input problem and visible trace generated by each agent, following Baker et al. [1]. We report AUROC using GPT-4o-mini [29] as a weak monitor, which relies primarily on the visible trace rather than solving the problem independently, and GPT-5.6-Luna [46] as a strong monitor with more powerful task-solving capability.

  • Debugging: Following first-error localization [90], a judge model (GPT-5.6-Luna) is deployed to identify the first erroneous visible step from a failed rollout and produces a corrective hint, with the diagnosis verified against the reference ground-truth solution.

  • Correction: Each failed problem is re-attempted using the corrective hint generated during debugging, and compared against a generic correctness-only feedback baseline [27] that simply tells the agent its previous answer was incorrect and asks it to retry.

  • Rationale Sufficiency: Following sufficiency evaluation in DeYoung et al. [16], a weak reader (GPT-4o-mini) predicts the agent’s own answer from the exposed text steps alone after removing the final answer, measuring whether the visible trace retains sufficient decision-relevant information.

As shown in Table 7, HybridAgent exposes 43%-49% fewer text-mode tokens while performing 170-183 reasoning steps in latent mode, yet the visible trace contains 26%-28% more key reasoning steps per 100 tokens. This reduction preserves external monitorability, with AUROC remaining within 0.022 of matched text agents across both weak and strong monitors. The exposed text also remains debuggable, localizing the first error in 98%-99% of failed rollouts and yielding reference-consistent diagnoses in 97%-98% of cases with below 1% answer leakage. Moreover, text-derived corrective hints produce significant fix-rate gains of 5.4 and 9.1 points at 14B and 8B, while rationale sufficiency remains comparable to or higher than text agents. As shown by the analyses above, HybridAgent uses its text mode to maintain a compact yet informative textual interface for external monitoring, debugging, and correction. This provides an important safeguard for agent generation, facilitating human auditing and intervention while preserving efficient internal reasoning.

Related Work

Latent Reasoning Beyond Text. Recent works have explored applying intermediate reasoning beyond discrete language tokens into continuous hidden spaces [25, 93] (Yu et al. 2026), allowing models to perform internal computation without explicitly verbalizing every reasoning step [21, 58, 94]. Existing approaches broadly realize this idea by inputting last-layer hidden states [55, 66], compressing textual chains of thought into latent representations [11, 87], or directly optimizing continuous reasoning trajectories [8, 67]. These methods improve reasoning efficiency and depth but make direct inspection and external interaction difficult [32] (Chen et al. 2026). HybridAgent builds on this direction by integrating directly inspectable latent reasoning as a native built-in mode within the agentic generation process, while preserving direct text-based auditing and tool interaction.

Agentic Reasoning and Tool Use. Frontier LLM agents [15, 23, 23] extend reasoning beyond static generation by interacting with external environments through tools [59] (Qu et al. 2025), such as search engines [30, 92], code interpreters [3, 19], and APIs [48, 51]. A growing line of work further improves these capabilities through post-training over multi-turn tool-use trajectories [17, 50], enabling agents to plan, act, observe, and revise their reasoning (Li et al., 2025c; Su et al., 2025). Despite this progress, existing agentic frameworks remain text-centric for both model-side reasoning and environment-side interaction, incurring large generation overhead from verbalizing every intermediate step [13] (Xu et al. 2025a). HybridAgent decouples these roles by interleaving continuous thoughts for internal reasoning and retaining text only where explicit interaction and monitoring are required.

We discuss additional related work and its relation to HybridAgent in Appendix § 15.

Discussion and Future Directions

Implications for Frontier Agent Safety and Secure Deployment. Frontier labs (e.g., OpenAI, Anthropic) provide API-based access to reasoning models while hiding the chain-of-thought from customers to protect intellectual property and limit information leakage, yet [47] show that the encrypted traces returned to clients can be replayed into a sibling model and transcribed verbatim. HybridAgent places proprietary reasoning on a different footing. Latent thoughts exist only as backbone hidden states that are readable solely through the provider-owned HybridLink (§ 3), so no text exists to leak. The same property aids monitoring. Because the latent trace is held by the provider rather than the client, providers can assess the safety of reasoning and actions over the full readout, including the portion users never see, while the agent benefits from faster inner thinking. Text mode is then reserved for what users legitimately need, such as tool calls, key decisions, and the final answer, preserving an auditable trace without exposing the full reasoning.

Future Directions on Hybrid Agent Harness and Efficient Post-Training. Future work can build a new type of agent harness around HybridAgent, where latent working memory is a first-class component. Context management can then operate on KV entries directly, workflows can schedule steps by mode, keeping tool calls and human-facing checkpoints in text while routine computation stays latent, and one agent’s hybrid trajectory can serve as its message to another. Hybrid generation can also make post-training more efficient. Because latent thoughts remain auditable during rollout, an external critic can assign step-level credit to latent spans, branch promising trajectories, or terminate ones whose latent reasoning has already gone wrong, before any text or tool call is produced.

Conclusion

We introduce HybridAgent, a unified hybrid reasoning framework that combines efficient latent reasoning with text-based inspection and tool interaction. HybridAgent enables multi-turn hybrid generation through both architectural designs and dedicated post-training algorithms on SFT and RL stages. Across 11 benchmarks and 3 model scales, HybridAgent achieves strong performance against advanced LLM agents and agentic frameworks spanning text-based and latent reasoning methods, while substantially reducing inference time, token usage, and computational cost. Overall, HybridAgent provides a scalable and efficient framework for next-generation agents that can reason beyond human language while retaining agentic interaction in environments and external inspectability.

Acknowledgments

The authors thank the members of the Zou Lab and the iDEA-iSAIL Lab for helpful discussions and feedback. Jiaru also thanks Jiuding Sun, Weiyan Shi, Martijn Bartelds, Yongchan Kwon, and many others in the Stanford NLP Group and the Together Agent Team for their support and discussions.

Appendix

Multi-turn Continuation over Working Memory

Following our notation in § 2, denote the input sequence E≤t=[e1,…,et]E_{\le t} = [e_1, \ldots, e_t] and working memory Mt=[K≤t,V≤t]\mathcal{M}_t = [K_{\le t}, V_{\le t}] at step tt, where KK and VV collect the keys and values across all layers.

Theorem A.1 (Lossless Multi-Turn Working Memory). Given the multi-turn generation process in § 3.3, consider the fixed HybridAgent fθf_\theta and HybridLink R\mathcal{R} under consistent inference settings. At step tt, let ht+1h_{t+1} be the hidden output obtained by processing et+1e_{t+1} with the complete working memory Mt\mathcal{M}_t. Then,

ht+1⏟process et+1 using Mt=fθ([E≤t;et+1])⏟apply the complete hybrid prefix.(12)\underbrace{h_{t+1}}_{\text{process }e_{t+1}\text{ using }\mathcal{M}_t} = \underbrace{f_\theta([E_{\le t};e_{t+1}])}_{\text{apply the complete hybrid prefix}} . \tag*{(12)}

Thus, working memory preserves the text, latent, and tool observations for continued reasoning, without converting latent thoughts into text.

Remark A.2. Theorem A.1 shows that retaining complete working memory preserves the effect of the full hybrid history on subsequent generation across turns. This justifies resuming HybridAgent after tool interactions without reconstructing earlier turns or converting latent thoughts into text.

Proof. Fix fθf_\theta and HybridLink R\mathcal{R}, and use the same deterministic causal operations, masks, and positional encoding, preserving all existing KV entries. Each cached forward run produces both a hidden output and an updated memory:

(et+1,Mt)⏟next input and preceding context→cached forward run(ht+1,Mt+1)⏟hidden output and updated memory.\underbrace{(e_{t+1},\mathcal{M}_t)}_{\text{next input and preceding context}} \xrightarrow{\text{cached forward run}} \underbrace{(h_{t+1},\mathcal{M}_{t+1})}_{\text{hidden output and updated memory}} .

The hidden output determines the next text distribution or latent input, while the updated memory provides the context for the following forward run. Here, layer and head indices are omitted for notation simplicity. We compare a memory-based forward run with a full-prefix forward run under the same model and inference settings.

Base case (t=1t = 1). Both forward runs start with empty memory and the same input e1e_1. At the first layer, they produce the same queries, keys, values, and attention outputs. The remaining token-wise operations produce the same input to the next layer. Repeating this argument through all layers gives

M1=[K1,V1].\mathcal{M}_1 = [K_1,V_1].

Both forward runs also produce the same final hidden output, h1=fθ([e1])h_1 = f_\theta([e_1]).

Induction hypothesis. Suppose that, after processing step tt, the stored keys and values are equal to those computed by a full-prefix forward run:

Mt⏟stored KV memory=[K≤t,V≤t]⏟KV computed from the complete prefix E≤t.\underbrace{\mathcal{M}_t}_{\text{stored KV memory}} = \underbrace{[K_{\le t},V_{\le t}]}_{\text{KV computed from the complete prefix }E_{\le t}} .

Induction step (t→t+1t \to t + 1). Causality and unchanged positional encoding preserve the earlier keys and values when et+1e_{t+1} is appended. Both forward runs start the first layer with the same input et+1e_{t+1}. If their inputs to the current layer are equal, each head computes the same query, new keys and values. The earlier KV entries are equal by the induction hypothesis. With the same attention mask, each head therefore produces the same attention output. The remaining token-wise operations produce the same input to the following layer.

Repeating this implication through all layers gives the same final hidden output:

ht+1=fθ([E≤t;et+1]).h_{t+1} = f_{\theta}([E_{\le t}; e_{t+1}]).

It also gives the same new keys and values, Kt+1,Vt+1K_{t+1}, V_{t+1}. Appending them to the stored memory and substituting the induction hypothesis yields

Mt+1=Mt⊕[Kt+1,Vt+1]=[K≤t,V≤t]⊕[Kt+1,Vt+1]=[K≤t+1,V≤t+1].\begin{aligned} \mathcal{M}_{t+1} &= \mathcal{M}_t \oplus[K_{t+1}, V_{t+1}] \\ &= [K_{\le t}, V_{\le t}] \oplus[K_{t+1}, V_{t+1}] \\ &= [K_{\le t+1}, V_{\le t+1}]. \end{aligned}

Thus, the updated memory satisfies the induction hypothesis at t+1t+1, while the hidden-output equality establishes Eq. (12). By induction, at every input position, the cached forward run produces the same hidden output and updated KV memory as the full-prefix forward run.

At the end of each turn j∈{1,…,n}j \in\{1,\ldots,n\}, let t=∣x∣+∑i=1j∣τ(i)∣t = |x| + \sum_{i=1}^{j} |\tau^{(i)}| count all input slots processed so far, including the initial context and all text, latent, and tool-observation inputs. Starting from M(0)=[K≤∣x∣,V≤∣x∣]\mathcal{M}^{(0)} = [K_{\le|x|}, V_{\le|x|}], repeated concatenation gives

M(j)=M(0)⊕[K∣x∣+1:t,V∣x∣+1:t]=[K≤∣x∣,V≤∣x∣]⊕[K∣x∣+1:t,V∣x∣+1:t]=[K≤t,V≤t].\begin{aligned} \mathcal{M}^{(j)} &= \mathcal{M}^{(0)} \oplus[K_{|x|+1:t}, V_{|x|+1:t}] \\ &= [K_{\le|x|}, V_{\le|x|}] \oplus[K_{|x|+1:t}, V_{|x|+1:t}] \\ &= [K_{\le t}, V_{\le t}]. \end{aligned}

Each new entry is appended exactly once, so turn boundaries do not change the memory used by subsequent forward runs.

Finally, the established hidden-state equality gives

Softmax⁡(Woutht)=Softmax⁡(Woutfθ(E≤t)),R(ht)=R(fθ(E≤t)).\begin{aligned} \operatorname{Softmax}(W_{\mathrm{out}}h_t) &= \operatorname{Softmax}(W_{\mathrm{out}}f_{\theta}(E_{\le t})), \\ \mathcal{R}(h_t) &= \mathcal{R}(f_{\theta}(E_{\le t})). \end{aligned}

where we retain the corresponding hidden states and tool observations, while using the same random draws for sampling and tool execution in both runs. Then, both runs process the same next input with the same memory and reasoning mode, producing the same hidden output and updated KV memory. Repeating this argument step by step gives identical subsequent hybrid sequences under the shared random draws, and hence identical generation probabilities. Therefore, working memory preserves the effect of the complete hybrid history across turns, without reconstructing latent thoughts as text.

Design and Analyses of Hybrid Supervised Fine-tuning

We expand on the method description of HybridSFT (§ 4.1), providing additional design justifications and implementation details for the overall training scheme.

Why Self-Conditioned Training?

The format and HybridLink activation provide a well-aligned initialization, but both are teacher-forced (Figure 11, left). At every latent position, the backbone consumes the ground-truth embedding Emb(yy), and HybridLink is trained only to match its output R(h)\mathcal{R}(h) to that target; the prediction itself is never fed back as an input. At inference, the agent instead runs free (Figure 11, right). Once it enters latent mode, every subsequent input is its own R(h)\mathcal{R}(h), which neither the backbone nor HybridLink has been conditioned on. This train-inference mismatch is akin to exposure bias [2, 53], a standard issue in autoregressive sequence models that are trained on ground-truth prefixes but consume their own predictions at inference.

Figure 11. Train-Inference Mismatch in Latent Reasoning. We illustrate the exposure bias that arises when teacher-forced training meets free-running inference. Left: During activation, the backbone consumes ground-truth embeddings Emb(yy) at latent positions, while HybridLink outputs R(h)\mathcal{R}(h) are only trained to match their targets and never fed back as inputs. Right: At inference, every latent input is the model’s own R(h)\mathcal{R}(h), so deviations from the target embeddings accumulate across the span.

It is worth noting that exposure bias is present in both text and latent modes, since both feed the model’s own outputs back as inputs. In text mode (as in standard LLM SFT), each fed-back input is sampled and re-embedded, and thus always corresponds to a token in the discrete vocabulary. A prediction error, where the sampled token differs from the ground-truth target, only changes which token is fed back; the input representation itself never leaves the set seen in training, so errors cannot compound in the input space. Latent mode, in contrast, has no such projection. R(h)\mathcal{R}(h) is continuous and fed back unquantized, so even a small deviation from the target embedding becomes an input the backbone has never seen in training. This deviation propagates to the next hidden state and hence the next latent input, compounding over the tens to hundreds of steps in a latent span and gradually eroding the semantic coherence of the latent trace.

Self-conditioned HybridSFT closes this gap by training both components on the model’s own generated latent inputs. As in Figure 4, the teacher-forced first pass applies HybridLink to the last-layer hidden state at each latent position, yielding the model’s own prediction of the next latent input. The second pass then replaces the ground-truth latent embeddings with these predictions and trains the backbone and HybridLink jointly, so both parts learn under the same latent inputs they encounter at inference.

Under this training scheme, the backbone learns to read, and HybridLink learns to produce, latent inputs under the same conditions they encounter at inference. Thus, HybridAgent is trained as an integrated whole rather than two separately activated components.

Learning When to Enter and Exit Latent Mode

As stated in § 3, HybridAgent transitions between modes through two special tokens, the entry anchor <latent> and the exit anchor </latent>. Within a latent span, these anchors are the only positions supervised by LBackbone\mathcal{L}_{\mathrm{Backbone}}, while every other latent position is supervised by LHybridLink\mathcal{L}_{\mathrm{HybridLink}} alone. The two transitions are not symmetric, however. Entering latent mode is decided in text mode, where the backbone samples the next token from the vocabulary as usual, whereas exiting must be decided from a continuous latent state through the readout in Eq. (5). HybridSFT therefore treats the entry anchor as an ordinary token and gives the exit anchor dedicated supervision.

Entry as a Text-Mode Decision. Since entering is a text mode decision, <latent> is simply a cross-entropy target, and the backbone learns from the preceding context when to switch. The anchor position then serves as the first latent step, with its last-layer hidden state passed through HybridLink to produce the next latent input, so the span begins without any additional mechanism.

Exit as a Latent-Mode Decision. Exiting takes place in latent mode, where no token is sampled. By Eq. (5), a span closes when the HybridLink’s output R(h)\mathcal{R}(h) is nearest to Emb⁡(</latent>)\operatorname{Emb}(\text{</latent>}), a decision depending on both components, where the backbone produces a hidden state that encodes the exit and HybridLink maps it onto the anchor embedding. HybridSFT therefore supervises the last latent step of each span from both sides. On the HybridLink side, the regression target at this step is Emb⁡(</latent>)\operatorname{Emb}(\text{</latent>}), given slightly more weight than the span interior so that the single exit signal is not diluted. On the backbone side, </latent> is also a cross-entropy target predicted from the same hidden state, so the backbone itself learns to signal the exit.

Theoretical Analyses of Hybrid Reinforcement Learning

Formulation of Hybrid Policy Factorization

Following our notation in Algorithm 1, denote τ=(z,y,o)\tau= (z, y, o) as a hybrid trajectory, where T\mathcal{T} is the set of sampled text positions. Here, πθ(τ∣x)\pi_{\theta}(\tau\mid x) denotes the likelihood of the agent’s outputs along trajectory τ\tau, given input xx. Meanwhile, tool observations are generated by the environment and serve as context for subsequent model decisions. We formalize the factorization of the hybrid policy below.

Proposition C.1 (Restatement of Hybrid Policy Factorization). Let τ\tau be a hybrid trajectory generated by the policy πθ\pi_{\theta} (induced by fθf_{\theta}) with fixed RR. Then the hybrid policy factorizes as:

πθ(τ∣x)=∏t∈Tπθ(yt∣x,τ<t),(13)\pi_{\theta}(\tau\mid x) = \prod_{t \in\mathcal{T}} \pi_{\theta}(y_t \mid x, \tau_{<t}), \tag*{(13)}

where T\mathcal{T} is the set of sampled text positions of trajectory τ\tau.

Proof. Fix θ\theta and a realized trajectory τ\tau. At a latent continuation, we have Pr⁡(et=R(ht−1)∣x,τ<t)=1\Pr(e_t = R(h_{t-1}) \mid x, \tau_{<t}) = 1 with a fixed HybridLink RR. Deterministic reasoning mode transitions (without sampling) also have conditional mass 1. The probability chain rule thus gives

πθ(τ∣x)=[∏t∈Tπθ(yt∣x,τ<t)][∏t: deterministic steps1]=∏t∈Tπθ(yt∣x,τ<t),\pi_{\theta}(\tau\mid x) = \left[\prod_{t \in\mathcal{T}} \pi_{\theta}(y_t \mid x, \tau_{<t})\right] \left[\prod_{t:\,\text{deterministic steps}} 1\right] = \prod_{t \in\mathcal{T}} \pi_{\theta}(y_t \mid x, \tau_{<t}),

where deterministic steps receive the probability of 1.

Remark C.2. Proposition C.1 shows that the hybrid policy factorizes over sampled text positions, with each text-token probability conditioned on the complete preceding hybrid context, including text, latent thoughts, and tool observations. Building on this factorization formulation, we show in the next subsection (Theorem C.3) how exact rollout replay enables HybridRL’s policy updates to assign credit to complete recorded hybrid trajectories.

Hybrid Policy Optimization

Recall that we collect {τi=(zi,yi,oi)}i=1G\{\tau_i = (z_i, y_i, o_i)\}_{i=1}^{G}, with group size G≥2G \ge2, using the rollout policy πθold\pi_{\theta_{\mathrm{old}}}. During replay, πθ(yi,t∣x,τi,<t)\pi_{\theta}(y_{i,t} \mid x, \tau_{i,<t}) scores the recorded prefix with the current model across step tt; πθ(τi∣x)\pi_{\theta}(\tau_i \mid x) is the product in Eq. (13) under this same evaluation. Let ri=r(τi)r_i = r(\tau_i) be the reward, and AiA_i be the fixed group-normalized advantage. Let Ti\mathcal{T}_i denote the sampled text positions of τi\tau_i. Define

ρi,t(θ)=πθ(yi,t∣x,τi,<t)πθold(yi,t∣x,τi,<t),(14)\rho_{i,t}(\theta) = \frac{\pi_{\theta}(y_{i,t} \mid x, \tau_{i,<t})} {\pi_{\theta_{\mathrm{old}}}(y_{i,t} \mid x, \tau_{i,<t})}, \tag*{(14)}
LRL(θ)=−1∑i∣Ti∣∑i∑t∈Timin⁡{ρi,t(θ)Ai,clip⁡(ρi,t(θ))Ai}.(15)\mathcal{L}_{\mathrm{RL}}(\theta) = -\frac{1}{\sum_i |\mathcal{T}_i|} \sum_i \sum_{t \in\mathcal{T}_i} \min\{\rho_{i,t}(\theta)A_i,\operatorname{clip}(\rho_{i,t}(\theta))A_i\}. \tag*{(15)}

Here, clip⁡(ρ)\operatorname{clip}(\rho) restricts ρ\rho to [1−ϵ,1+ϵ][1-\epsilon, 1+\epsilon], where 0<ϵ<10 < \epsilon< 1. Thus, ratios sufficiently close to 1 are unchanged: clip⁡(ρ)=ρ\operatorname{clip}(\rho) = \rho whenever ∣ρ−1∣<ϵ\lvert\rho- 1\rvert< \epsilon. In the following theorem, we connect this objective to our hybrid policy optimization over complete recorded hybrid trajectories.

Theorem C.3 (Gradient Equivalence in Hybrid Policy Optimization). Based on the rollout replay (§ 4.2), record each trajectory’s latent inputs and tool observations. Under Theorem A.1 and the replay conditions in Algorithm 1, the accumulated text-token gradient is equivalent to the advantage-weighted likelihood gradient for the complete hybrid trajectories:

−∇θLRL(θold)=1∑i∣Ti∣∑iAi∇θlog⁡πθ(τi∣x)∣θ=θold.(16)-\nabla_{\theta}\mathcal{L}_{\mathrm{RL}}(\theta_{\mathrm{old}})=\left.\frac{1}{\sum_i \lvert\mathcal{T}_i\rvert}\sum_i A_i\nabla_{\theta}\log\pi_{\theta}(\tau_i\mid x)\right|_{\theta=\theta_{\mathrm{old}}}. \tag*{(16)}

Therefore, the text-token update assigns advantage-weighted policy credit to optimize the complete recorded hybrid trajectories.

Remark C.4. At θ=θold\theta=\theta_{\mathrm{old}}, HybridRL produces the same policy update as optimizing the advantage-weighted recorded-trajectory objective. By preserving the context that produced each reward, exact rollout replay enables the backbone to learn from complete recorded hybrid trajectories.

Proof. For trajectory τi\tau_i, we omit the sample index on EE and ee for notation simplicity. At step tt of the ii-th hybrid trajectory τi\tau_i, the subsequent input can be denoted by

et={Emb⁡(yi,t),generated text token,zi,t,recorded latent input,Emb⁡(oi,t),tool observation.e_t= \begin{cases} \operatorname{Emb}(y_{i,t}), & \text{generated text token},\\ z_{i,t}, & \text{recorded latent input},\\ \operatorname{Emb}(o_{i,t}), & \text{tool observation}. \end{cases}

During replay, zi,tz_{i,t} denotes the latent input recorded under θold\theta_{\mathrm{old}} and is fixed when differentiating with respect to the current parameters θ\theta, leading to ∂zi,t∂θ=0\frac{\partial z_{i,t}}{\partial\theta}=0. Here, although the latent inputs are fixed, ht−1=fθ(E≤t−1)h_{t-1}=f_{\theta}(E_{\leq t-1}) remains parameter-dependent and retains the chain-rule contribution (∂ht−1∂θ)T∇ht−1log⁡πθ(yi,t∣x,τi,<t)\left(\frac{\partial h_{t-1}}{\partial\theta}\right)^{\mathsf{T}}\nabla_{h_{t-1}}\log\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t}), allowing trajectory-level rewards to optimize the backbone’s processing of the complete recorded hybrid context, while keeping the latent inputs fixed.

Then, by causality and Theorem A.1, full-sequence replay scores each sampled text token at position t∈Tit\in\mathcal{T}_i using the hidden state ht−1=fθ(E≤t−1)h_{t-1}=f_{\theta}(E_{\leq t-1}) computed from the recorded hybrid prefix. With this prefix, taking the logarithm and differentiating Eq. (13) gives

∇θlog⁡πθ(τi∣x)=∑t∈Ti∇θlog⁡πθ(yi,t∣x,τi,<t),(17)\nabla_{\theta}\log\pi_{\theta}(\tau_i\mid x)=\sum_{t\in\mathcal{T}_i}\nabla_{\theta}\log\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t}), \tag*{(17)}

which expresses the complete recorded-trajectory score as a sum of text-token scores. To connect this equality to the implemented loss, we next show that each token-ratio gradient equals its text-token score at the rollout policy θold\theta_{\mathrm{old}}.

The rollout probability in the denominator of Eq. (14) is fixed during differentiation. Therefore,

∇θρi,t(θ)=∇θπθ(yi,t∣x,τi,<t)πθold(yi,t∣x,τi,<t)=πθ(yi,t∣x,τi,<t)πθold(yi,t∣x,τi,<t)∇θπθ(yi,t∣x,τi,<t)πθ(yi,t∣x,τi,<t)=ρi,t(θ)∇θlog⁡πθ(yi,t∣x,τi,<t),\begin{aligned} \nabla_{\theta}\rho_{i,t}(\theta)=\frac{\nabla_{\theta}\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t})}{\pi_{\theta_{\mathrm{old}}}(y_{i,t}\mid x,\tau_{i,<t})} \\ &=\frac{\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t})}{\pi_{\theta_{\mathrm{old}}}(y_{i,t}\mid x,\tau_{i,<t})}\frac{\nabla_{\theta}\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t})}{\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t})} \\ &=\rho_{i,t}(\theta)\nabla_{\theta}\log\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t}), \end{aligned}

where the last equality uses ∇θlog⁡p=(∇θp)/p\nabla_{\theta}\log p=(\nabla_{\theta}p)/p. At θ=θold\theta=\theta_{\mathrm{old}}, exact replay reproduces the rollout probability, giving ρi,t(θold)=1\rho_{i,t}(\theta_{\mathrm{old}})=1. Therefore, evaluating the derivative yields

∇θρi,t(θ)∣θ=θold=∇θlog⁡πθ(yi,t∣x,τi,<t)∣θ=θold.\left.\nabla_{\theta}\rho_{i,t}(\theta)\right|_{\theta=\theta_{\mathrm{old}}} =\left.\nabla_{\theta}\log\pi_{\theta}(y_{i,t}\mid x,\tau_{i,<t})\right|_{\theta=\theta_{\mathrm{old}}}.

Since clipping leaves ratios near 1 unchanged, each summand in Eq. (15) equals ρi,t(θ)Ai\rho_{i,t}(\theta)A_i locally, leading to

−∇θLRL(θ)∣θ=θold=1∑i∣Ti∣∑iAi∑t∈Ti∇θρi,t(θ)∣θ=θold=1∑i∣Ti∣∑iAi∑t∈Ti∇θlog⁡πθ(yi,t∣x,τi,<t)∣θ=θold=1∑i∣Ti∣∑iAi∇θlog⁡πθ(τi∣x)∣θ=θold,\begin{aligned} -\left.\nabla_\theta\mathcal{L}_{\mathrm{RL}}(\theta)\right|_{\theta=\theta_{\mathrm{old}}} &= \left.\frac{1}{\sum_i |\mathcal{T}_i|}\sum_i A_i\sum_{t\in\mathcal{T}_i}\nabla_\theta\rho_{i,t}(\theta)\right|_{\theta=\theta_{\mathrm{old}}} \\ &= \left.\frac{1}{\sum_i |\mathcal{T}_i|}\sum_i A_i\sum_{t\in\mathcal{T}_i}\nabla_\theta\log\pi_\theta(y_{i,t}\mid x,\tau_{i,<t})\right|_{\theta=\theta_{\mathrm{old}}} \\ &= \left.\frac{1}{\sum_i |\mathcal{T}_i|}\sum_i A_i\nabla_\theta\log\pi_\theta(\tau_i\mid x)\right|_{\theta=\theta_{\mathrm{old}}}, \end{aligned}

where the second equality uses the token-ratio derivative at θold\theta_{\mathrm{old}}, and the final equality uses Eq. (17).

□

Extended Related Work

Adaptive Reasoning on Text and Latent Space. Beyond fixed-length chains of thought, recent work lets LLMs adapt how long and in which medium they reason [4, 80] (Lv et al. 2026; Ye et al. 2026), for example by learning when to stop latent reasoning or deciding whether explicit deliberation is needed [45]. Several methods interleave latent reasoning with text decoding [86], using confidence or entropy signals (Xu et al., 2026) to shift into continuous representations at uncertain steps and explore alternative reasoning paths [20, 61]. However, existing methods largely operate within one reasoning pass or switch modes only at single-turn granularity, and their latent states remain largely opaque to inspect directly. Orthogonal to this line, HybridAgent uses latent mode for efficient deeper reasoning, carries latent context across multiple turns through continuous working memory, keeps latent thoughts directly readable, and preserves the agentic tool-use abilities for long-horizon tasks.

Hybrid Communication among Agents. A recent line of work in multi-agent systems (MAS) parallel to HybridAgent studies hybrid-protocol communication, in which each inter-agent message combines two media. A latent channel carries dense intermediate signals such as hidden states or KV entries, while a text channel carries concise commitments that remain inspectable. Early instances augment each natural-language message with the sender’s internal state trajectory [68], and later work formalizes the dual-channel design by routing elaborate reasoning through latent vectors while keeping answers and decisions in text [14, 44]. More recent works take the same view from the deployment side, pairing every latent payload with a visible text commitment wherever oversight is required [38] and evaluating the security of latent transfer alongside visible text [5]. Complementary to these inter-agent protocols in the MAS setting, HybridAgent decides the medium at the level of each generation step within a single agent, switching between latent reasoning and text-based tool interaction over multi-turn trajectories.

KV-Cache Reuse. Reusing key–value (KV) entries across generation steps is standard practice for efficient serving [34, 91], and recent work extends it across requests, caching shared prefixes and prompt modules [22, 31] (Ye et al. 2024) and composing independently encoded caches so that repeated context need not be prefilled again [79] (Hu et al. 2025; Ma et al. 2025). These methods treat the KV cache as an optimization over a context that could in principle be re-encoded from text. HybridAgent likewise builds on the backbone’s own KV entries, using them as a unified working memory that stores and propagates both latent and text information across multi-turn hybrid generation.

Hybrid Data Curation

Hybrid Data Curation Pipeline

Figure 12. Hybrid Data Curation Pipeline. We convert text-based demonstrations into multi-turn hybrid trajectories using complementary signals from LLM judgments and model entropy to assign reasoning modes, followed by a visibility audit that preserves decision-critical steps in text mode.

We curate the hybrid training data by converting existing multi-turn agentic demonstrations ([18] (Yu et al. 2025)) into 54k hybrid trajectories for text and latent supervision. Specifically, an automatic annotation pipeline is designed to assign each source CoT step to either text or latent mode, based on complementary signals from external LLM judges and the target model’s entropy-based confidence, with no human labeling needed. Accordingly, high-confidence reasoning steps that the model can handle reliably are assigned as latent targets, while audit-critical reasoning and tool-interaction steps are retained as text targets. We describe the detailed curation pipeline below.

1 Step Segmentation. We first split each source trajectory into atomic reasoning steps using a deterministic procedure, recording their exact character offsets. These offsets allow subsequent annotations to identify and group steps while preserving the original content and ordering.

2 Mode Assignment. We then leverage external LLM experts (GPT-6.1-Sol/GPT-5.6-Luna) to assign each reasoning step to text or latent mode, with tool interactions and key steps needed for external inspection retained in text mode (See Prompts in Appendix § 20). Meanwhile, we complement the external selection with the target model’s prediction entropy. We teacher-force the original textual trajectory through a frozen base model and compute the mean token-level entropy for each step ss:

Hs=−1∣Is∣∑t∈Is∑v∈Vfθ(v∣x,τ<t)log⁡fθ(v∣x,τ<t),(18)H_s = -\frac{1}{\lvert I_s\rvert}\sum_{t\in I_s}\sum_{v\in\mathcal{V}} f_\theta(v \mid x,\tau_{<t})\log f_\theta(v \mid x,\tau_{<t}), \tag*{(18)}

where fθ(v∣x,τ<t)f_\theta(v \mid x,\tau_{<t}) denotes the frozen base model’s next-token probability after the vocabulary projection and softmax. Here, xx is the input question, τ<t\tau_{<t} contains preceding reasoning and tool observations, IsI_s indexes the tokens in step ss, and V\mathcal{V} is the vocabulary. Low-entropy steps become latent candidates, while high-entropy steps remain in text mode. Initial mode assignments combining the two complementary signals are then refined through the visibility audit below.

3 Visibility Audit. An independent LLM critic next examines the visible version of each annotated trajectory, with candidate latent spans hidden. The critic assesses whether the remaining text and tool interactions provide sufficient information to follow the agent’s decisions. When decision-critical information is missing, the corresponding source steps are restored to text mode. This audit helps preserve the key information needed for external debugging and inspection.

Hybrid Trajectory Construction. We merge adjacent latent-assigned steps into continuous spans and programmatically insert the special anchors <latent> and </latent>. Tool calls and observations remain in text form. Finally, we verify that removing the inserted anchors recovers the original trajectory byte for byte. This consistency check ensures that the pipeline annotates reasoning modes without rewriting or altering the source demonstrations.

Latent Interpretability Evaluation (Figures 2 and 8)

In this section, we describe the evaluation setup and metrics used to measure the readability and context specificity of latent readouts in Figure 2 and Figure 8.

Probe Setup. We evaluate HybridAgent across 200 questions spanning downstream tasks, including AIME25/26 ((math ai, 2025; MathArena, 2026)), MATH-500 ([28]), MuSiQue ([71]), GAIA ([43]), and DSQA ([24]). Figure 2 compares the final HybridRL checkpoints of HybridAgent at 4B, 8B, and 14B scales. Figure 8 compares format activation, HybridLink activation, self-conditioned HybridSFT, and Coconut on the shared Qwen3-14B-Base backbone. Generation uses temperature 0.6, top-p 0.95, top-k 20, and a fixed random seed. Each unit inside the plots is a latent span: a maximal sequence of consecutive latent steps. Each plotted point represents one span, and rings mark the means of per-span scores for each model or variant. The annotation n=200n = 200 refers to total number of questions.

Readability. For a latent span bb containing LbL_b latent inputs zb,tz_{b,t}, we measure readability score through their average nearest-token alignment, following Eq. (5):

Read⁡(b)=1Lb∑t=1Lbmax⁡v∈Vcos⁡(zb,t,Emb⁡(v)),(19)\operatorname{Read}(b) = \frac{1}{L_b} \sum_{t=1}^{L_b} \max_{v \in\mathcal{V}} \cos(z_{b,t}, \operatorname{Emb}(v)), \tag*{(19)}

where V\mathcal{V} is the vocabulary and Emb⁡(v)\operatorname{Emb}(v) is the input embedding of token vv. A score of 1 indicates that every latent input shares the direction of a vocabulary embedding, corresponding to the “exact token” reference. This alignment serves as a geometric proxy for readability. To calibrate the noise reference, we apply the same readout to 2,000 Gaussian random vectors and use their mean nearest-token similarity as the threshold τnoise\tau_{\mathrm{noise}}. Spans above this threshold exhibit stronger average token alignment than the Gaussian reference.

Context Specificity. Context specificity measures whether a span’s pseudo-text is more relevant to its originating question than to other questions from the same task. Let PbP_b denote the pseudo-text obtained by nearest-token readout of span bb, as in Eq. (5). Let W(s)W(s) extract the content words from string ss: lower-cased alphanumeric tokens longer than two characters, with stop words removed. We use Jaccard overlap, J(A,B)=∣A∩B∣/∣A∪B∣J(A,B) = \lvert A \cap B \rvert/\lvert A \cup B \rvert. For a task-specific question set {q1,…,qM}\{q_1,\ldots,q_M\} with M≥2M \ge2, let i(b)i(b) identify the question that produced span bb. We define the context specificity score as:

Spec⁡(b)=J(W(Pb),W(qi(b)))1M−1∑j=1j≠i(b)MJ(W(Pb),W(qj)),(20)\operatorname{Spec}(b) = \frac{J(W(P_b), W(q_{i(b)}))}{\frac{1}{M-1}\sum_{\substack{j=1 \\ j \ne i(b)}}^{M} J(W(P_b), W(q_j))}, \tag*{(20)}

when the denominator is positive. A score of 1×1\times indicates equal overlap, while higher scores above 1×1\times indicate greater lexical relevance to the originating question. We exclude readouts without content words and plot positive scores on a logarithmic axis.

Meaningful Region. The shaded region contains spans whose readability exceeds τnoise\tau_{\mathrm{noise}} and whose context specificity exceeds 1. The two axes are complementary: readability measures alignment with token embeddings, while context specificity measures relevance to the originating question. Together, they provide evidence of readable, question-specific latent readouts that support external inspection.

Additional Experiments

Experiments on 4B-Scale HybridAgent

To examine the effectiveness of hybrid reasoning at smaller model scales, we evaluate HybridAgent and corresponding text-based and latent baselines on Qwen3-4B-Base. As shown in Table 8, HybridSFT outperforms both latent baselines across all four benchmarks and improves over standard text SFT on AIME25 and AIME26. HybridRL further improves performance across all four benchmarks, achieving the best results and exceeding ARPO by an average of 2.0 percentage points. Together with 8B and 14B comparisons in Table 1 and Table 2, these results show that the benefits of hybrid reasoning can extend to different model scales of HybridAgent across downstream reasoning tasks.

MethodAIME25AIME26MATH500GPQA-D
Qwen3-4B-Base
Coconut10.613.340.617.2
SoftCoT14.818.555.226.3
Standard Text SFT19.022.777.431.8
HybridAgent (SFT)22.523.376.830.8
GRPO28.135.680.636.9
ARPO31.336.381.838.4
HybridAgent (RL)35.237.582.240.9

Table 8. 4B-Scale HybridAgent on Math and Knowledge-Intensive Search. We evaluate performance across both SFT and RL stages. AIME25/26 are reported on avg@16 accuracy.

Cost Analyses on HybridAgent

Cost Analyses on HybridAgent. To examine whether the efficiency of hybrid generation translates into lower computational cost, we compare HybridAgent with matched text agents across 4B, 8B, and 14B backbones. We estimate decoding compute by charging every text or latent step a full backbone forward pass, together with the cost of vocabulary projection or the HybridLink adapter, respectively. Step counts are averaged over matched evaluations with the same questions, generation budgets, and tool-call limits. We further estimate monetary costs assuming $2.50 per H100-hour and 10% utilization of peak BF16 throughput. These estimates cover generation compute and exclude prompt prefill, context-dependent attention, and external tool execution. As shown in Table 9, HybridAgent consistently reduces estimated decoding compute across all three model scales, from 51.2–66.9 TFLOP to 13.9–25.1 TFLOP per question, corresponding to reductions of 62.5%–72.9%. Under the stated pricing and utilization assumptions, the estimated cost of answering one million questions decreases from $359 to $98 at 4B, from $439 to $121 at 8B, and from $470 to $176 at 14B, yielding cost reduction factors of 3.7×, 3.6×, and 2.7×, respectively. Together with the shorter generation trajectories in Figure 6, these results demonstrate that hybrid reasoning reduces overall decoding compute while explicitly accounting for the backbone computation incurred by latent steps.

Experiment Setups

Benchmark and Evaluation Details

We evaluate HybridAgent on 11 benchmarks spanning mathematical, knowledge-intensive, and agentic reasoning. Together, these benchmarks assess complementary capabilities in multi-step problem solving, specialized knowledge application, evidence integration, and tool-assisted information seeking. We follow the setup of Dong et al. [18] and describe each benchmark in detail below.

(i) Mathematical Reasoning Tasks

AIME 25 (math ai, 2025): AIME 25 comprises 30 problems from the 2025 American Invitational Mathematics Examination, covering algebra, geometry, number theory, and combinatorics. Its integer-answer problems evaluate competition-level mathematical reasoning, requiring models to combine mathematical insights with precise multi-step calculations.

AIME 26 [42]: AIME 26 contains 30 problems from the 2026 American Invitational Mathematics Examination, following the same competition format as AIME 25. It provides a complementary assessment of mathematical problem solving across a separate annual problem set, testing sustained reasoning and accurate numerical derivation.

MATH500 [28]: MATH500 is a 500-problem subset of the MATH test set, spanning 7 mathematical subjects and 5 difficulty levels. It evaluates math reasoning across diverse problem types, including symbolic manipulation, geometric deduction, and numerical computation.

(ii) Knowledge-Intensive Reasoning Tasks

GPQA-Diamond [54]: GPQA-Diamond is a curated subset of 198 expert-written multiple-choice questions in biology, physics, and chemistry. Selected through expert and non-expert validation, these questions assess advanced scientific knowledge and reasoning that remain challenging for non-experts even with web access.

MedQA [78]: MedQA is a multiple-choice question-answering benchmark derived from professional medical licensing examinations. The dataset contains 300 questions in total. Its questions assess medical knowledge and clinical reasoning, requiring models to interpret patient information and identify appropriate diagnoses, investigations, or treatments.

MuSiQue [71]: MuSiQue is a multi-hop question-answering benchmark constructed by composing single-hop questions into connected reasoning chains of two to four hops. It evaluates the ability to combine evidence across multiple passages, with question construction designed to reduce shortcuts that bypass intermediate reasoning steps. Following Dong et al. [18], we use 200 test-set questions for downstream evaluation across all methods.

Agentic Reasoning Tasks

General AI Assistants (GAIA) [43]: GAIA evaluates general-purpose assistants on real-world questions involving reasoning, web browsing, information processing, and external tool use. Its three difficulty levels reflect increasingly demanding combinations of reasoning steps and tool interactions, assessing the ability to coordinate these capabilities toward a verifiable answer.

Humanity’s Last Exam (HLE) [6]: HLE comprises expert-authored questions across a broad range of academic disciplines, including mathematics, natural sciences, and the humanities. Its multiple-choice and short-answer problems assess advanced subject knowledge and reasoning on questions designed to resist quick answers through direct web retrieval.

WebWalker (Wu et al., 2025): WebWalkerQA, referred to as WebWalker in our evaluations, is an agentic search benchmark requiring exploration of website subpages and integration of information from one or multiple sources. Its easy, medium, and hard categories reflect increasing traversal depth, testing the ability to locate and synthesize evidence beyond surface-level search results.

SealQA [49]: SealQA evaluates search-augmented question answering on factual questions for which retrieved information may be noisy, conflicting, or unhelpful. We evaluate on Seal-0 and Seal-Hard, which test factual accuracy and reasoning under challenging retrieval conditions. Seal-0 targets questions selected for near-zero accuracy among the non-reasoning models used during benchmark construction; Seal-Hard includes a broader collection of difficult questions.

DeepSearchQA (DSQA) [24]: DeepSearchQA evaluates multi-step web research through tasks that require assembling complete answer sets from information distributed across sources. It tests search planning, evidence aggregation, entity disambiguation, and the ability to determine when sufficient information has been collected. We report both full-correct rate and F1 score to assess complete task success and the balance between answer precision and coverage.

Baseline Details

To evaluate the effectiveness and efficiency of HybridAgent, we compare with 4 categories of methods, including (i) Text-based Agentic Methods, (ii) Latent Reasoning Methods, (iii) Frontier LLM Agents, and (iv) Agentic Frameworks. We describe the implementation details of each baseline below.

Text-based Agentic Methods

Standard Text SFT: We apply standard SFT using the same training data and backbone models as HybridAgent. During evaluation, the models can invoke tools and incorporate the returned observations into subsequent reasoning. We use this baseline mostly to compare with the HybridSFT.

Agentic RL (GRPO/ARPO): We apply commonly adopted agentic RL methods after standard text SFT to further train the text agent baselines. GRPO [57] optimizes the policy using group-normalized rewards from sampled responses without requiring a separate critic. ARPO [18]: ARPO combines entropy-guided adaptive rollouts with step-level advantage attribution to improve multi-turn tool use. We train these methods using the same RL training data and backbone models as HybridAgent, primarily to evaluate the effectiveness of HybridRL.

Latent Reasoning Methods

Coconut [25]: Coconut performs continuous latent reasoning by directly feeding the model’s last hidden state back as the next input embedding. A staged training curriculum progressively replaces textual reasoning steps with latent thoughts, teaching the model to reason in continuous space before generating a textual answer.

SoftCoT (Xu et al., 2025b): SoftCoT uses a lightweight frozen assistant model to generate question-dependent soft thought representations, which a trainable projection maps into the target LLM’s representation space. These representations guide subsequent generation, enabling latent reasoning while keeping the assistant and target LLM frozen.

SoftThinking [89]: SoftThinking is a context-based method that represents intermediate reasoning as probability-weighted mixtures of vocabulary embeddings. Feeding these hidden continuous representations back into the model preserves alternatives from the next-token distribution.

We implement all latent reasoning baselines using the same backbone models and, where applicable, training settings and budgets as HybridAgent to ensure a fair comparison.

(iii) Frontier LLM Agents

To evaluate HybridAgent in a broader context, we compare it with current leading closed-source and open-source LLM agents, including GPT-5.6-Luna [46], Kimi-K3 [23], GLM-5.3-Flash [23], DeepSeek-V4.1-Flash [15], and QwQ-32B (Team, 2025), to assess both performance and inference efficiency of HybridAgent.

(iv) Agentic Frameworks

We further compare HybridAgent with established agentic frameworks that integrate multi-step reasoning with external tool calling and environmental interactions. We apply Qwen3-14B as the backbone for all these frameworks, with the same tool access and usage budgets as HybridAgent.

ReAct [81]: ReAct interleaves natural-language reasoning with actions and observations from an external environment. This interaction loop allows an agent to gather information, revise its reasoning, and determine subsequent actions based on tool feedback.

Search-o1 (Li et al., 2025a): Search-o1 augments large reasoning models with adaptive search to address knowledge gaps encountered during reasoning. Its Reason-in-Documents module analyzes retrieved documents and extracts relevant evidence before incorporating it into ongoing reasoning.

WebThinker (Li et al., 2025b): WebThinker equips LLMs with a Deep Web Explorer that supports iterative search, webpage navigation, and information extraction. Its Think-Search-and-Draft strategy interleaves reasoning, evidence collection, and report generation to support complex research tasks.

Overall, these baseline methods provide complementary comparisons across training stages, text-based and latent-space reasoning, and tool-integrated agentic settings.

Implementation Details

Models and Training Details. We instantiate HybridAgent with Qwen3-Base backbones [77] at three scales of 4B, 8B, and 14B. For HybridLink, we use the same two-layer design across all three backbones. The HybridSFT training data is constructed by converting 54K text-only sources (Dong et al., 2025a,b) into hybrid trajectories. We apply format and HybridLink activation for one epoch each, followed by one additional epoch of self-conditioned training. HybridRL training utilizes 12K deep reasoning examples (Yu et al., 2025) for math and 1K agentic reasoning and search examples [18] for deep search. We train HybridAgent with the GRPO objective and set rollout batches of 512 trajectories (64 × 8), followed by one optimization pass over 8 minibatches.

Training Hyperparameters. Table 10, 11, and 12 provide detailed parameter setups on HybridSFT and HybridRL. Following Dong et al. [18]; Yu et al. (2025), we use HybridAgent checkpoints from deep reasoning training for mathematical evaluations and the checkpoint from agentic search training for knowledge-intensive search and agentic reasoning evaluations, as detailed in Appendix § 19.§ 1.

HyperparameterValue
Base modelQwen3-4B/8B/14B-Base
Maximum sequence length16,888
Effective batch size16
Backbone learning rate7×10−67 \times10^{-6}
HybridLink learning rate (Activation / Self-conditioning)2×10−42 \times10^{-4} / 5×10−55 \times10^{-5}
Weight decay0.0
Warmup ratio0.1
Learning rate schedulerCosine
Latent regression weights (λcos\lambda_{\mathrm{cos}} / λmse\lambda_{\mathrm{mse}})1.0 / 0.2
Number of training epochs3 (1 / 1 / 1)

Table 10. Hyperparameter Setups of HybridSFT.

HyperparameterValue
Initialization8B/14B HybridSFT checkpoint
Unique prompts per rollout batch64
Rollouts per prompt (group size)8
Minibatches per rollout batch8
Optimization epochs per rollout batch1
Total rollout batch size512 trajectories (64 ×\times 8)
Optimization per rollout batch1 pass over 8 minibatches
Rollout sampling temperature1.0
Rollout sampling top-p1.0
Reward rcorrectr_{\mathrm{correct}}token-level F1 ∈[0,1]\in[0, 1]
Reward rformatr_{\mathrm{format}}0 / -1
Reward rtoolr_{\mathrm{tool}}0.1
Latent steps per latent block (min/max)16 / 256
Max tool calls per rollout10
Weight decay0.01
KL penalty coefficient0
Learning rate scheduleconstant
Training steps150
Maximum sequence length16,888
Backbone learning rate1×10−61 \times10^{-6}
OptimizerAdamW, β=(0.9,0.95)\beta= (0.9, 0.95)
Search API Setup (per call)top-10, 1000 characters each

Table 11. Hyperparameter Setups of HybridRL on Agentic Search.

Inference Setups. During inference, we set the temperature, top-p, and top-k to 0.6, 0.95, and 20, respectively. The generation budget is adjusted for each task based on its relative difficulty and counts both text tokens and latent steps, with limits of 4,096 for mathematical reasoning and knowledge-intensive search tasks, and 24,000 for challenging agentic reasoning tasks. For each latent span, we enforce a minimum of 16 and a maximum of 256 steps to ensure sustained and semantically rich latent reasoning. HybridAgent interacts with external environments primarily through two types of tools: a Python interpreter within sandbox environments and a live search engine (e.g., Tavily). We cap tool usage at 10 calls per trajectory and retrieve the top 10 snippets for each search query. We utilize GPT-5.6-Luna as both the search-page summarizer and LLM judge. All training and inference are conducted on 32 H100 GPUs. We also provide detailed prompt templates in Appendix § 20.

HyperparameterValue
Initialization4B/8B/14B HybridSFT checkpoint
Unique prompts per rollout batch64
Rollouts per prompt (group size)8
Minibatches per rollout batch8
Optimization epochs per rollout batch1
Total rollout batch size512 trajectories (64 × 8)
Optimization per rollout batch1 pass over 8 minibatches
Rollout sampling temperature1.0
Rollout sampling top-pp1.0
Reward rcorrectr_{\mathrm{correct}}Math Verify (0 / 1)
Reward rformatr_{\mathrm{format}}0 / −1
Reward rtoolr_{\mathrm{tool}}+0.1
Latent steps per latent span (min/max)16 / 256
Max tool calls per rollout5
Weight decay0.01
KL penalty coefficient0
Learning rate scheduleConstant
Training steps200
Maximum sequence length16,888
Backbone learning rate1×10−61 \times10^{-6}
OptimizerAdamW, β=(0.9,0.95)\beta= (0.9, 0.95)

Table 12. Hyperparameter Setups of HybridRL on Deep Reasoning.

Infrastructure and Configurations

As existing training and inference frameworks such as verl ([60]) and vLLM ([34]) do not directly support multi-turn hybrid generation, we extend their infrastructure to enable hybrid training and generation in HybridAgent. A shared generation loop coordinates text mode, latent mode, and tool interaction while maintaining each trajectory’s persistent KV cache as continuous working memory across turns. The agent enters latent mode through the special entry anchor <latent>, feeds HybridLink-generated latent inputs back into the backbone, and returns to text mode when the nearest-token readout matches the exit anchor </latent>, as in Eq. (5). Tool observations are tokenized and processed against the existing working memory, appending new KV entries without reconstructing or re-prefilling earlier context.

The engine also supports batched rollouts with per-sequence state tracking, allowing trajectories to occupy different generation states within the same batch. Pending tool calls execute concurrently, with waiting and completed sequences masked from further generation. Per-sequence attention masks and position tracking preserve each trajectory’s causal context as generation proceeds. For HybridRL, exact latent-context replay recomputes sampled text-token likelihoods in a single differentiable forward pass while keeping recorded latent inputs unchanged. We check rollout–replay agreement of log-probabilities at unchanged policy parameters. Multi-node data parallelism, sharded optimizer states, mixed precision, gradient checkpointing, and resumable checkpoints support full-parameter backbone optimization. Overall, the same engine supports RL rollouts, training-time validation, and downstream evaluation, ensuring consistent mode transitions and working-memory handling across configurable sampling settings, generation budgets, and tool-call setups.

Prompt Template

Prompt Template for HybridAgent Training and Inference

System Prompt (shared across examples)

You are a helpful assistant that solves the given question step by step with the help of an online live search tool and a python interpreter tool. Given a question, you first think about the reasoning process and then provide the final answer, invoking the search tool for factual information and the python interpreter tool for calculations whenever needed.

Format:

  • <think> ... </think>: your reasoning. Start every round with <think>; close it with </think> and then output exactly one of: a <search> call, a <python> call, or the final <answer>.

  • <latent> ... </latent>: latent reasoning, allowed only inside <think> ... </think>. Put routine internal reasoning (planning, recalling, restating, routine double-checking) in latent mode. Outside <latent>, write only the few decisive steps – key facts, decisions, and conclusions – as plain text. Always start and end the think block with plain text: open with a brief plain-text step (e.g. what the question or the latest result tells you), and close with the plain-text decision or conclusion that leads to your next action.

  • <search> query </search>: call the online live search tool.

  • <python> code </python>: call the python interpreter tool; use print() to show the output.

  • <result> ... </result>: the tool output, inserted by the system after your </search> or </python>. Never write <result> yourself. After each result, start the next round with <think> – or, if the result directly settles the question, give the final <answer> immediately. If a result is empty, an error, or a tool-limit notice, do not repeat the same call – adjust your approach or give your best final answer.

  • <answer> ... </answer>: the final response, with the exact final answer enclosed in \boxed{} in latex format.

Format example:

<think> This is a key first step.<latent>This is the latent reasoning process.</latent>This is a key reasoning step. </think><search>search query here</search><result>search result here</result><think> This is a key first step.<latent>This is the latent reasoning process.</latent>This is the key decision step. </think><python>python code here</python><result>python interpreter result here</result><think> This is a key first step.<latent>This is the latent reasoning process.</latent>This is the key conclusion. </think><answer>\boxed{answer here}</answer>

User Prompt (question for the current example)

{question}

Prompt Template for Downstream LLM Judge

Given a Question and its Golden Answer, verify whether the Predicted Answer is correct. The prediction is correct if it fully aligns with the meaning and key information of the Golden Answer. Respond with "Correct" if the prediction is correct and "Incorrect" otherwise.

Question: {question}
Golden Answer: {labeled_answer}
Predicted Answer: {pred_answer}

Prompt Template for LLM-Guided Hybrid Data Annotation

System Prompt

You are a data expert for classifying Chain-of-Thought (CoT) steps produced by an assistant that can use tools (search, python) and outputs a final answer.

For each CoT step you will be given, you must label it as either:
- **0 (latent mode)**: Internal thinking that is not critical for auditing or debugging. Prefer latent for routine reasoning, filler, or steps that do not need to be shown as text for correctness or interpretability.
- **1 (text mode)**: Must be text when (a) the step clearly calls an external tool or relates to a tool call (e.g. contains <search>...</search>, <python>...</python>, <result>...</result>, or <answer>...</answer>), or (b) the step is important for auditing/debugging (e.g. the step that states the final answer, or a core middle step that corresponds to the key solution decision). For efficiency, do NOT mark too many steps as text: only those that are clearly tool-related or genuinely important for understanding the solution.

Balance: Prefer latent for non-essential inner reasoning; use text only for tool steps and a small set of critical reasoning/answer steps.

When you respond, you MUST first write your reasoning, then output the final JSON array inside a ```json ... ``` code block. Do not skip the reasoning section.

User Prompt

Below are {num_steps} chain-of-thought steps from one conversation, labeled step0 to step{N}.

{steps_block}

Do the following in order:
1. Reasoning: for each step from step0 to step{N}, give its label (0 = latent, 1 = text) and a brief reason, e.g. "step0: 0 - internal planning"; "step3: 1 - contains <search>".
2. Check: confirm that every step is labeled and that your array will have exactly {num_steps} entries.
3. Final answer: end with a JSON code block containing only the array of {num_steps} integers (0 or 1), in order from step0 to step{N}:

An example of the final array format for the given steps is:

```json
[0,1,1,0]

Case Study of HybridAgent

HybridAgent on Mathematical Reasoning — MATH500

QUESTION If each point of the circle x2+y2=25x^2+y^2=25 is reflected in the point (4,1)(4,1), the set of image points satisfies the equation x2+ay2+bx+cy+d=0x^2+ay^2+bx+cy+d=0. Compute ordered quadruple (a,b,c,d)(a,b,c,d) of real numbers.

TURN 01

TEXT To solve this problem, we need to find the image of each point (x1,y1)(x_1,y_1) on the circle x2+y2=25x^2+y^2=25 when it is reflected in the point (4,1)(4,1).

LATENT The reflection of a point (x1,y1)(x_1,y_1) in another point (x0,y0)(x_0,y_0) is given by the formula:

(x2,y2)=(2x0−x1,2y0−y1)(x_2,y_2)=(2x_0-x_1,2y_0-y_1).

In this case, (x0,y0)=(4,1)(x_0,y_0)=(4,1), so the reflection of (x1,y1)(x_1,y_1) is:

(x2,y2)=(2⋅4−x1,2⋅1−y1)=(8−x1,2−y1)(x_2,y_2)=(2\cdot4-x_1,2\cdot1-y_1)=(8-x_1,2-y_1).

TEXT Now, we need to find the equation of the locus of these image points (x2,y2)(x_2,y_2).

LATENT Since (x1,y1)(x_1,y_1) lies on the circle x2+y2=25x^2+y^2=25, we substitute x1=8−x2x_1=8-x_2 and y1=2−y2y_1=2-y_2 into the circle’s equation: (8−x2)2+(2−y2)2=25(8-x_2)^2+(2-y_2)^2=25.

TEXT We will expand and simplify this equation to find the values of aa, bb, cc, and dd. Let’s start by expanding the squares:

(8−x2)2=64−16x2+x22(8-x_2)^2=64-16x_2+x_2^2

(2−y2)2=4−4y2+y22(2-y_2)^2=4-4y_2+y_2^2

Adding these together, we get: 64−16x2+x22+4−4y2+y22=2564-16x_2+x_2^2+4-4y_2+y_2^2=25.

LATENT Simplify the left side: x22+y22−16x2−4y2+68=25x_2^2+y_2^2-16x_2-4y_2+68=25. Rearrange to standard form by moving 25 to the left side:

x22+y22−16x2−4y2+43=0x_2^2+y_2^2-16x_2-4y_2+43=0.

Now we can identify the coefficients aa, bb, cc, and dd: a=1a=1, b=−16b=-16, c=−4c=-4, d=43d=43.

TEXT Let’s confirm this by implementing the steps in Python to ensure the result is accurate.

from sympy import symbols, Eq, simplify
x1, y1, x2, y2 = symbols('x1 y1 x2 y2')
...
polynomial_form = Eq(simplified_eq.lhs - simplified_eq.rhs, 0)
print(polynomial_form)

ERROR Python exited with code 1

Partial stderr: Traceback (most recent call last):

File "<string>", line 53, in <module> File "<string>", line 38, in _execute_in_module File "<python-tool>", line 12, in _execute_user_code NameError: name 'solve' is not defined

TURN 02

TEXT It seems that the symbolic computation code had an issue because the solve function was not imported. Let me correct that by importing the necessary functions from sympy. I’ll also ensure the code is properly encapsulated within the environment.

from sympy import symbols, Eq, solve, simplify
x1, y1, x2, y2 = symbols('x1 y1 x2 y2')
...
print(polynomial_form)

RESULT Eq((x2 - 8)**2 + (y2 - 2)**2 - 25, 0)

TURN 03

LATENT The output confirms our earlier manual calculation. The equation of the locus of the image points is: (x2−8)2+(y2−2)2−25=0(x_2-8)^2+(y_2-2)^2-25=0. Expanding this, we get: x22−16x2+64+y22−4y2+4−25=0x_2^2-16x_2+64+y_2^2-4y_2+4-25=0. Simplifying further: x22+y22−16x2−4y2+43=0x_2^2+y_2^2-16x_2-4y_2+43=0.

TEXT Thus, the values of aa, bb, cc, and dd are: a=1a=1, b=−16b=-16, c=−4c=-4, d=43d=43.

So, the ordered quadruple (a,b,c,d)(a,b,c,d) is:

ANSWER (1,−16,−4,43)(1,-16,-4,43) ✓ Correct answer

HybridAgent on Knowledge-Intensive Reasoning

QUESTION What field of work was the person who discovered the mathematical relationship between peaks and curves of light at different temperatures in?

TURN 01

TEXT Okay, so I need to figure out what field of work the person was who discovered the mathematical relationship between peaks and curves of light at different temperatures. Hmm, let me think about this step by step.

LATENT First, I remember that there’s a specific in in physics or to the color of light by objects at different temperature. Maybe it’s some like the black’s function or Wait, or, that’s more about the energy of energy from a black body.

TEXT Wait, the question mentions “peaks and curves of light at different temperatures.” That sounds like the relationship between temperature and the spectrum of emitted light. Oh, right! The person I’m thinking of is Max Planck. He’s known for his work on black-body radiation. Planck’s law describes the spectral density of electromagnetic radiation emitted by a black body in thermal equilibrium at a given temperature.

LATENT So the question is about for the field of work. So I need was a physics, but I need to be more. Let me do a quick search to confirm. I’ll look up the discovery related to peaks and curves of light at different temperatures and the corresponding field.

TOOL search discovery of mathematical relationship between peaks and curves of light at different temperatures field

RESULT Page 1: Wien’s displacement law states that the black-body radiation curve for different temperatures will peak at different wavelengths that are inversely

Page 2: Each blackbody curve represents a blackbody at a specific temperature, and each curve peaks at a different wavelength, so you can figure out the temperature of a blackbody by measuring the wavelength at which its […]

TURN 02

TEXT Okay, so the question is asking about the field of work of the person who discovered the mathematical relationship between peaks and curves of light at different temperatures.

LATENT From the search results, I can see that the key is to the’s distance law. The is about by William Wien. The search results mention that Wien’s displacement law was discovered by Wilhelm Wien. Now I need to find out what field of work Wilhelm Wien was in. Let me do another search to find out William Wien’s field of work.

TEXT Wait, I already have the answer from the first search. The question is about the field of work. Since the discovery is related to black-body radiation and physics, it’s safe to assume that Wilhelm Wien was a physicist.

LATENT Let me verify this through another search query:

TOOL search Wilhelm Wien field of work

RESULT Page 1: Wilhelm Wien From ETHW Jump to:navigation, search Wilhelm Wien Birthdate : 1864 Birth-place : East Prussia Associated organizations : University of Munich Fields of study : Quantum physics Awards : Nobel Prize in physics Biography Wilhelm Wien was a German physicist and Nobel-Prize winner who pioneered the study of quantum physics. […] From early in his career, Wien […]

TURN 03

TEXT Okay, so the question is asking about the field of work of the person who discovered the mathematical relationship between peaks and curves of light at different temperatures.

LATENT From the first search, I found that the person is related to William’s distance law, which was found by William Wien. Then, I did another search to find Wilhelm Wien’s field of work. The search results clearly state that Wilhelm Wien was a German physicist.

TEXT Multiple sources confirm that his primary area of work was physics, specifically in the study of thermal radiation and quantum physics. He was awarded the Nobel Prize in Physics for his work on black-body radiation.

LATENT Then the field of work is physics. The person who discovered the mathematical relationship between peaks and curves of light at different temperatures was Wilhelm Wien, and his field of work was physics.

ANSWER Physics

Correct answer

HybridAgent on Agentic Reasoning GAIA

QUESTION Use the density values from Marisa Alviar-Agnew and Henry Agnew’s CK-12-licensed Introductory Chemistry materials on LibreTexts, as compiled on 08/21/2023.

I have one gallon of honey and one gallon of mayonnaise at 25∘C25^{\circ}\mathrm{C}. If I remove one cup of honey at a time, how many cups must I remove for the remaining honey to weigh less than the mayonnaise? Assume that the containers have equal mass.

TURN 01

TEXT I need the smallest number of one-cup removals that makes the remaining honey lighter than one gallon of mayonnaise.

LATENT Because the containers have equal mass, I only need to compare their contents. I first need the densities of honey and mayonnaise at 25∘C25^{\circ}\mathrm{C} from the specified chemistry reference.

TEXT Since the containers have equal mass, I can compare their contents using m=ρVm = \rho V. I’ll first need to look up the densities at 25∘C25^{\circ}\mathrm{C}.

TOOL search

density of honey and mayonnaise in g/mL

RESULT Page 1: Plug in the values we measured earlier, and we’ll get the densities of honey and mayonnaise. The table above shows the densities of honey and mayonnaise. We can see that both substances have a density of approximately 5g/mL. Page 2: Table \PageIndex{1}: Densities of Common Substances | Substance | Density at 25∘C25^{\circ}\mathrm{C} (g/cm3) | --- | | blood | 1.035 | | body fat | 0.918 [. . . ]

TURN 02

TEXT For the calculation, I use 1.42 g/mL for honey and 0.91 g/mL for mayonnaise. I’ll convert the volumes to milliliters to calculate their masses.

LATENT Using U.S. liquid measures, one gallon is approximately 3785.41 mL and one cup is approximately 236.588 mL. The initial mass of the honey is

mhoney=1.42×3785.41=5375.2822 g.m_{\mathrm{honey}} = 1.42 \times3785.41 = 5375.2822\ \mathrm{g}.

TEXT The honey initially weighs about 5375.28 g, while the mayonnaise weighs 0.91×3785.41≈3444.720.91 \times3785.41 \approx3444.72 g. I now need the mass removed per cup to determine when the honey falls below this value.

LATENT Each cup of honey has mass

mcup=1.42×236.588=335.95496 g.m_{\mathrm{cup}} = 1.42 \times236.588 = 335.95496\ \mathrm{g}.

After removing nn cups, the required inequality is

5375.2822−335.95496n<3444.7231,5375.2822 - 335.95496n < 3444.7231,
n>5375.2822−3444.7231335.95496≈5.74648.n > \frac{5375.2822 - 3444.7231}{335.95496} \approx5.74648.

The smallest valid integer is n=6n = 6. I’ll verify this with Python.

TEXT Each cup removes 335.95496 g. The condition 5375.2822−335.95496n<3444.72315375.2822 - 335.95496n < 3444.7231 requires n>5.74648n > 5.74648. I’ll check in Python that six cups are sufficient and five are not.

TOOL python

from math import floor
rho_h, rho_m = 1.42, 0.91
gallon_ml, cup_ml = 3785.41, 236.588
m_h = rho_h * gallon_ml
m_m = rho_m * gallon_ml
m_cup = rho_h * cup_ml
n = floor((m_h - m_m) / m_cup) + 1
assert m_h - n * m_cup < m_m
assert m_h - (n - 1) * m_cup >= m_m
print(f"Number of cups to remove: {n}")

RESULT Number of cups to remove: 6

TURN 03

TEXT Python confirms the minimum: six cups leave about 3359.55 g of honey, below the mayonnaise’s 3444.72 g; five cups leave about 3695.51 g, which is still too heavy.

LATENT Six one-cup removals are therefore necessary and sufficient.

ANSWER 6   ✓ Correct answer

References

  1. [1]B. Baker, J. Huizinga, L. Gao, Z. Dou, M. Y. Guan, A. Madry, W. Zaremba, J. Pachocki, and D. Farhi. Monitoring reasoning models for misbehavior and the risks of promoting obfuscation, 2025. URL https://arxiv.org/abs/2503.11926.
  2. [2]S. Bengio, O. Vinyals, N. Jaitly, and N. Shazeer. Scheduled sampling for sequence prediction with recurrent neural networks. Advances in neural information processing systems, 28, 2015.arxiv.org/abs/1506.03099
  3. [3]F. Bianchi, Y. Kwon, A. Pappu, and J. Zou. Harnessing the collective intelligence of ai agents in the wild for new discoveries, 2026. URL https://arxiv.org/abs/2606.10402.
  4. [4]M. Bigverdi, Z. Luo, C.-Y. Hsieh, E. Shen, D. Chen, L. G. Shapiro, and R. Krishna. Perception tokens enhance visual reasoning in multimodal language models, 2024. URL https://arxiv.org/abs/2412.03548.
  5. [5]L. Brito and C. Baquero. When latent agents lie: Kv-cache integrity in multi-agent llm collaboration, 2026. URL https://arxiv.org/abs/2606.28958.
  6. [6]Center for AI Safety, Scale AI, and HLE Contributors Consortium. A benchmark of expert-level academic questions to assess AI capabilities. Nature, 649:1139–1146, 2026. doi: 10.1038/s41586-025-09962-4. URL https://arxiv.org/abs/2501.14249.
  7. [7]S. Chang, T. Bai, X. Zhang, Q. Ma, Q. Liu, Z. Liao, Y. Miao, and L. Niu. Unlocking the black box of latent reasoning: An interpretability-guided approach to intervention. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 34019–34032, 2026.
  8. [8]H. Chen, Y. Feng, Z. Liu, W. Yao, A. Prabhakar, S. Heinecke, R. Ho, P. Mui, S. Savarese, C. Xiong, et al. Language models are hidden reasoners: Unlocking latent reasoning capabilities via self-rewarding. arXiv preprint arXiv:2411.04282, 2024.arxiv.org/abs/2411.04282
  9. [9]X. Chen, A. Zhao, H. Xia, X. Lu, H. Wang, Y. Chen, W. Zhang, J. Wang, W. Li, and X. Shen. Reasoning beyond language: A comprehensive survey on latent chain-of-thought reasoning. arXiv preprint arXiv:2505.16782, 2025.arxiv.org/abs/2505.16782
  10. [11]J. Cheng and B. Van Durme. Compressed chain of thought: Efficient reasoning through dense representations. arXiv preprint arXiv:2412.13171, 2024.arxiv.org/abs/2412.13171
  11. [12]J. Coda-Forno, Z. Zhao, Q. Zhang, D. Tamboli, W. Li, X. Fan, L. Zhang, E. Schulz, and H.-P. Tseng. Exploring system 1 and 2 communication for latent reasoning in llms. arXiv preprint arXiv:2510.00494, 2025.
  12. [13]A. Cuadron, D. Li, W. Ma, X. Wang, Y. Wang, S. Zhuang, S. Liu, L. G. Schroeder, T. Xia, H. Mao, et al. The danger of overthinking: Examining the reasoning-action dilemma in agentic tasks. arXiv preprint arXiv:2502.08235, 2025.arxiv.org/abs/2502.08235
  13. [14]L. Dai, L. Xiang, and K. Yang. A token/kv-cache communication media selection and resource allocation strategy for multi-agent collaboration. Science China Information Sciences, 69(10):200306, 2026.DOI
  14. [15]DeepSeek-AI. Deepseek-v4.1-flash: Pushing the limits of kv cache compression, 2026.arxiv.org/abs/2609.19969
  15. [16]J. DeYoung, S. Jain, N. F. Rajani, E. Lehman, C. Xiong, R. Socher, and B. C. Wallace. ERASER: A benchmark to evaluate rationalized NLP models. In D. Jurafsky, J. Chai, N. Schluter, and J. Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4443–4458, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.408. URL https://aclanthology.org/2020.acl-main.408/.DOI
  16. [17]G. Dong, Y. Chen, X. Li, J. Jin, H. Qian, Y. Zhu, H. Mao, G. Zhou, Z. Dou, and J. Wen. Tool-star: Empowering llm-brained multi-tool reasoner via reinforcement learning. CoRR, abs/2505.16410, 2025a. doi: 10.48550/ARXIV.2505.16410. URL https://doi.org/10.48550/arXiv.2505.16410.
  17. [18]G. Dong, H. Mao, K. Ma, L. Bao, Y. Chen, Z. Wang, Z. Chen, J. Du, H. Wang, F. Zhang, et al. Agentic reinforced policy optimization. arXiv preprint arXiv:2507.19849, 2025b.arxiv.org/abs/2507.19849
  18. [19]J. Feng, S. Huang, X. Qu, G. Zhang, Y. Qin, B. Zhong, C. Jiang, J. Chi, and W. Zhong. Retool: Reinforcement learning for strategic tool use in LLMs. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=trk1nofSmz.arxiv.org/abs/2504.11536
  19. [20]R. Fu and G. Luo. Selar: Selective latent reasoning in large language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7073–7087, 2026.
  20. [21]J. Geiping, S. McLeish, N. Jain, J. Kirchenbauer, S. Singh, B. Bartoldson, B. Kailkhura, A. Bhatele, and T. Goldstein. Scaling up test-time compute with latent reasoning: A recurrent depth approach. Advances in Neural Information Processing Systems, 38:41340–41391, 2026.arxiv.org/abs/2502.05171
  21. [22]I. Gim, G. Chen, S.-s. Lee, N. Sarda, A. Khandelwal, and L. Zhong. Prompt cache: Modular attention reuse for low-latency inference. Proceedings of Machine Learning and Systems, 6:325–338, 2024.
  22. [23]GLM-5-Team et al. GLM-5: from vibe coding to agentic engineering, 2026. URL https://arxiv.org/abs/2602.15763.
  23. [24]N. Gupta, R. Chatterjee, L. Haas, C. Tao, A. Wang, C. Liu, H. Oiwa, E. Gribovskaya, J. Ackermann, J. Blitzer, S. Goldshtein, and D. Das. Deepresearchqa: Bridging the comprehensiveness gap for deep research agents, 2026. URL https://arxiv.org/abs/2601.20975.
  24. [25]S. Hao, S. Sukhbaatar, D. Su, X. Li, Z. Hu, J. Weston, and Y. Tian. Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769, 2024.arxiv.org/abs/2412.06769
  25. [27]J. Huang, X. Chen, S. Mishra, H. S. Zheng, A. W. Yu, X. Song, and D. Zhou. Large language models cannot self-correct reasoning yet. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=IkmD3fKBPQ.arxiv.org/abs/2310.01798
  26. [28]HuggingFaceH4. Math-500 dataset. https://huggingface.co/datasets/HuggingFaceH4/MATH-500, 2023.
  27. [29]A. Hurst, A. Lerer, A. P. Goucher, A. Perelman, A. Ramesh, A. Clark, A. Ostrow, A. Welihinda, A. Hayes, A. Radford, et al. Gpt-4o system card. arXiv preprint arXiv:2410.21276, 2024.arxiv.org/abs/2410.21276
  28. [30]B. Jin, H. Zeng, Z. Yue, J. Yoon, S. Arik, D. Wang, H. Zamani, and J. Han. Search-r1: Training llms to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516, 2025.arxiv.org/abs/2503.09516
  29. [31]J. Juravsky, B. Brown, R. S. Ehrlich, D. Y. Fu, C. Re, and A. Mirhoseini. Hydragen: High-throughput LLM inference with shared prefixes. In Workshop on Efficient Systems for Foundation Models II @ ICML2024, 2024. URL https://openreview.net/forum?id=Ye3ia34Fpp.arxiv.org/abs/2402.05099
  30. [32]T. Korbak, M. Balesni, E. Barnes, Y. Bengio, J. Benton, J. Bloom, M. Chen, A. Cooney, A. Dafoe, A. Dragan, et al. Chain of thought monitorability: A new and fragile opportunity for ai safety. arXiv preprint arXiv:2507.11473, 2025.arxiv.org/abs/2507.11473
  31. [33]T. Kwa, B. West, J. Becker, A. Deng, K. Garcia, M. Hasin, S. Jawhar, M. Kinniment, N. Rush, S. Von Arx, et al. Measuring ai ability to complete long software tasks. Advances in Neural Information Processing Systems, 38:92213–92266, 2026.arxiv.org/abs/2503.14499
  32. [34]W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. Gonzalez, H. Zhang, and I. Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th symposium on operating systems principles, pages 611–626, 2023.arxiv.org/abs/2309.06180
  33. [38]Y. Liu. Beyond tokens: a unified framework for latent communication in llm-based multi-agent systems, 2026. URL https://arxiv.org/abs/2606.05711.
  34. [42]MathArena. Aime 2026 dataset. https://huggingface.co/datasets/MathArena/aime_2026, 2026.
  35. [43]G. Mialon, C. Fourrier, T. Wolf, Y. LeCun, and T. Scialom. GAIA: a benchmark for general AI assistants. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=fibxvahvs3.arxiv.org/abs/2311.12983
  36. [44]X. Mou, S. Wang, Z. Li, Y. He, and Z. Wei. Hylat: Efficient multi-agent communication via hybrid latent-text protocol. arXiv preprint arXiv:2605.25421, 2026.arxiv.org/abs/2605.25421
  37. [45]A. Ning, Y.-L. Kuo, and G. Gomes. Learning when to stop: Adaptive latent reasoning via reinforcement learning. arXiv preprint arXiv:2511.21581, 2025.arxiv.org/abs/2511.21581
  38. [46]OpenAI. GPT-5.6 Luna. OpenAI API model documentation, 2026. URL https://developers.openai.com/api/docs/models/gpt-5.6-luna. Accessed: 2026-09-16.
  39. [47]A. Panfilov, D. Schmotz, I. Shumailov, L. Beurer-Kellner, J. Schaeffer, A. Prabhu, J. Geiping, and M. Andriushchenko. Stealing reasoning traces from proprietary llm apis, 2026. URL https://arxiv.org/abs/2608.09867.
  40. [48]S. G. Patil, H. Mao, F. Yan, C. C.-J Ji, V. Suresh, I. Stoica, and J. E. Gonzalez. The berkeley function calling leaderboard (BFCL): From tool use to agentic evaluation of large language models. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=2GmDdhBdDk.
  41. [49]T. Pham, N. P. Nguyen, P. Zunjare, W. Chen, Y.-M. Tseng, and T. Vu. SeaLQA: Raising the bar for reasoning in search-augmented language models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=zWb7ueH16c.arxiv.org/abs/2506.01062
  42. [50]C. Qian, E. C. Acikgoz, Q. He, H. WANG, X. Chen, D. Hakkani-Tür, G. Tur, and H. Ji. ToolRL: Reward is all tool learning needs. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=e0LDGbXT6t.arxiv.org/abs/2504.13958
  43. [51]Y. Qin, S. Liang, Y. Ye, K. Zhu, L. Yan, Y. Lu, Y. Lin, X. Cong, X. Tang, B. Qian, S. Zhao, L. Hong, R. Tian, R. Xie, J. Zhou, M. Gerstein, dahai li, Z. Liu, and M. Sun. ToolLLM: Facilitating large language models to master 16000+ real-world APIs. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=dHng2O0Jjr.arxiv.org/abs/2307.16789
  44. [53]M. Ranzato, S. Chopra, M. Auli, and W. Zaremba. Sequence level training with recurrent neural networks. arXiv preprint arXiv:1511.06732, 2015.arxiv.org/abs/1511.06732
  45. [54]D. Rein, B. L. Hou, A. C. Stickland, J. Petty, R. Y. Pang, J. Dirani, J. Michael, and S. R. Bowman. Gpqa: A graduate-level google-proof q&a benchmark, 2023. URL https://arxiv.org/abs/2311.12022.
  46. [55]N. Saunshi, N. Dikkala, Z. Li, S. Kumar, and S. J Reddi. Reasoning with latent thoughts: On the power of looped transformers. In International Conference on Learning Representations, volume 2025, pages 14855–14881, 2025.arxiv.org/abs/2502.17416
  47. [56]J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.arxiv.org/abs/1707.06347
  48. [57]Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300.
  49. [58]X. Shen, Y. Wang, Y. Zhou, X. Shi, P. Zhao, Y. Wang, and J. Gu. Efficient reasoning with hidden thinking. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=Hn81xuLaXY.arxiv.org/abs/2501.19201
  50. [59]Z. Shen. Llm with tools: A survey, 2024. URL https://arxiv.org/abs/2409.18807.
  51. [60]G. Sheng, C. Zhang, Z. Ye, X. Wu, W. Zhang, R. Zhang, Y. Peng, H. Lin, and C. Wu. Hybridflow: A flexible and efficient rlhf framework. In Proceedings of the Twentieth European Conference on Computer Systems, pages 1279–1297, 2025.DOI
  52. [61]D. Shi, A. Asi, K. Li, X. Yuan, L. Pan, W. Lee, and W. Xiao. Swireasoning: Switch-thinking in latent and explicit for pareto-superior reasoning LLMs. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=t33kMzEAg8.arxiv.org/abs/2510.05069
  53. [62]D. Silver and R. S. Sutton. Welcome to the era of experience. Google AI, 1(11):6, 2025.
  54. [64]T. Sumers, S. Yao, K. R. Narasimhan, and T. L. Griffiths. Cognitive architectures for language agents. Transactions on Machine Learning Research, 2024. ISSN 2835-8856. URL https://openreview.net/forum?id=1i6ZCvf1QJ. Survey Certification, Featured Certification.arxiv.org/abs/2309.02427
  55. [65]Y. Sun, X. Han, W. Zhang, Y. Pang, T. Wang, Y. Cao, Y. Huang, C. Durouio, H. Zhang, J. Lin, et al. Agents’ last exam. arXiv preprint arXiv:2606.05405, 2026.arxiv.org/abs/2606.05405
  56. [66]J. Tack, J. Lanchantin, J. Dwivedi-Yu, A. Cohen, I. Kulikov, J. Lan, S. Hao, Y. Tian, J. E. Weston, and X. Li. Llm pretraining with continuous concepts. In International Conference on Learning Representations, volume 2026, pages 54214–54231, 2026.arxiv.org/abs/2502.08524
  57. [67]W. Tan, J. Li, J. Ju, Z. Luo, R. Song, and J. Luan. Think silently, think fast: Dynamic latent compression of llm reasoning chains. Advances in Neural Information Processing Systems, 38:4646–4668, 2026.arxiv.org/abs/2505.16552
  58. [68]Y. Tang, W. Su, Y. Zhou, Y. Liu, M. Zhang, S. Ma, and Q. Ai. Augmenting multi-agent communication with state delta trajectory. In C. Christodoulopoulos, T. Chakraborty, C. Rose, and V. Peng, editors, Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 10219–10240, Suzhou, China, Nov. 2025. Association for Computational Linguistics. ISBN 979-8-89176-332-6. doi: 10.18653/v1/2025.emnlp-main.518. URL https://aclanthology.org/2025.emnlp-main.518/.
  59. [71]H. Trivedi, N. Balasubramanian, T. Khot, and A. Sabharwal. MuSiQue: Multihop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 2022.arxiv.org/abs/2108.00573
  60. [72]Q. Wang, Y. Shi, Y. Wang, Y. Zhang, P. Wan, K. Gai, X. Ying, and Y. Wang. Monet: Reasoning in latent visual space beyond images and language. arXiv preprint arXiv:2511.21395, 2025.arxiv.org/abs/2511.21395
  61. [77]A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025a.arxiv.org/abs/2505.09388
  62. [78]H. Yang, H. Chen, H. Guo, Y. Chen, C.-S. Lin, S. Hu, J. Hu, X. Wu, and X. Wang. Llm-medqa: Enhancing medical question answering through case studies in large language models. arXiv preprint arXiv:2501.05464, 2024.arxiv.org/abs/2501.05464
  63. [79]J. Yang, B. Hou, W. Wei, Y. Bao, and S. Chang. KVLink: Accelerating large language models via efficient KV cache reuse. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025b. URL https://openreview.net/forum?id=oDcAGSXZZP.arxiv.org/abs/2502.16002
  64. [80]J. Yang, C. Chen, S. Wu, Y. Liu, Y. Fan, L. Li, S. Lai, C. Qin, and Z. Guo. Demystifying hidden-state recurrence: Switchable latent reasoning with on-policy reinforcement learning. arXiv preprint arXiv:2606.13106, 2026.arxiv.org/abs/2606.13106
  65. [81]S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. R. Narasimhan, and Y. Cao. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=WE_vlYUL-X.arxiv.org/abs/2210.03629
  66. [86]Z. Yue, B. Jin, H. Zeng, H. Zhuang, Z. Qin, J. Yoon, L. Shang, J. Han, and D. Wang. Hybrid latent reasoning via reinforcement learning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=LjTgTpWH71.arxiv.org/abs/2505.18454
  67. [87]G. Zhang, M. Fu, and S. Yan. Memgen: Weaving generative latent memory for self-evolving agents. In International Conference on Learning Representations, volume 2026, pages 22555–22588, 2026a.arxiv.org/abs/2509.24704
  68. [88]J. Zhang, S. Hu, C. Lu, R. Lange, and J. Clune. Darwin gödel machine: open-ended evolution of self-improving agents. In International Conference on Learning Representations, volume 2026, pages 104223–104294, 2026b.arxiv.org/abs/2505.22954
  69. [89]Z. Zhang, X. He, W. Yan, A. Shen, C. Zhao, and X. E. Wang. Soft thinking: Unlocking the reasoning potential of LLMs in continuous concept space. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=ByQdHPGKgU.arxiv.org/abs/2505.15778
  70. [90]C. Zheng, Z. Zhang, B. Zhang, R. Lin, K. Lu, B. Yu, D. Liu, J. Zhou, and J. Lin. Processbench: Identifying process errors in mathematical reasoning. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1009–1024, 2025a.arxiv.org/abs/2412.06559
  71. [91]L. Zheng, L. Yin, Z. Xie, C. Sun, J. Huang, C. H. Yu, S. Cao, C. Kozyrakis, I. Stoica, J. E. Gonzalez, C. Barrett, and Y. Sheng. SGLang: Efficient execution of structured language model programs. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=VqkAKQibpq.arxiv.org/abs/2312.07104
  72. [92]Y. Zheng, D. Fu, X. Hu, X. Cai, L. Ye, P. Lu, and P. Liu. Deepresearcher: Scaling deep research via reinforcement learning in real-world environments. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 414–431, 2025b.arxiv.org/abs/2504.03160
  73. [93]H. Zhu, S. Hao, Z. Hu, J. Jiao, S. Russell, and Y. Tian. Reasoning by superposition: A theoretical perspective on chain of continuous thought. In ICML 2025 Workshop on Methods and Opportunities at Small Scale, 2025a. URL https://openreview.net/forum?id=1cD9i05Isv.arxiv.org/abs/2505.12514
  74. [94]R.-J. Zhu, T. Peng, T. Cheng, X. Qu, J. Huang, D. Zhu, H. Wang, K. Xue, X. Zhang, Y. Shan, et al. A survey on latent reasoning. arXiv preprint arXiv:2507.06203, 2025b.arxiv.org/abs/2507.06203

Paper details

vlnc:W_d3jugd29
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents