⏱️ Reading time: 12 min

An AI agent solving a math problem can write thousands of words of text-based reasoning before giving the final answer, word by word, as if thinking out loud. A paper published on October 13, 2026 by researchers at Stanford and Google proposes that, instead, the agent practice latent reasoning: thinking in continuous mathematical vectors without passing through human language at each intermediate step.

📑 En este artículo
  1. TL;DR
  2. What Is Latent Reasoning?
  3. Why Latent Reasoning Matters
  4. How Latent Mode Works Inside an Agent
    1. HybridLink: The Bridge Between Two Ways of Thinking
    2. Continuous Working Memory: Not Losing the Thread
  5. Case Study: How Stanford Trained an Agent to Choose Its Own Thinking Mode
  6. Practical Examples: What It Means to Think in Vectors
  7. Real-World Use Cases
  8. Common Mistakes and Best Practices
  9. Comparison with Alternatives
  10. Going Deeper: What’s at Stake for an Agent That Thinks in Vectors
  11. Frequently Asked Questions
    1. Does HybridAgents replace models that reason only in text?
    2. Does vector-based thinking work with any language model?
    3. Why is reasoning in latent space harder to audit?
    4. Can HybridAgents use external tools while thinking in vectors?
    5. Where was agents’ vector-based cognition tested?
    6. Is HybridAgents’ code public?
  12. References

The paper is called Hybrid Reasoning Agents and presents a concrete architecture called HybridAgents, but the underlying idea is much broader than that specific implementation. It’s a shift in how the internal mind of an AI agent is designed.

TL;DR

  • Latent reasoning chains continuous vectors instead of words between an agent’s thinking steps.
  • HybridAgents, the model that combines it with text, improves performance by 10.4% over text-only or latent-only agents.
  • That combination cuts tokens generated per task by between 35.5% and 54.7%, according to Stanford’s October 2026 paper.
  • Inference runs 1.8x to 2.6x faster and cost drops by up to 3.7x across the 11 benchmarks evaluated.
  • Inspecting the thinking becomes harder: a vector can’t be read word by word like text-based reasoning.

What Is Latent Reasoning?

Latent reasoning is the technique that lets a language model process the intermediate steps of its thinking as continuous vectors in its internal space, instead of converting each step into readable words before continuing to think.

The difference from a traditional chain of thought is easy to explain with an analogy. When a person solves a problem mentally, they don’t narrate every sub-step out loud: they think in fuzzy intuitions and associations, and only put them into words when they need to explain them to someone else. Text-based reasoning forces the model to narrate every sub-step, even when nobody needs it yet.

Vector-based thinking, on the other hand, lets the model keep those associations in their native form, high-dimensional numbers, without passing through the bottleneck of vocabulary. This isn’t exclusive to one paper: different research teams have been exploring variants of this idea for a couple of years now, under names like “continuous chain of thought.”

HybridAgents was evaluated on 11 benchmarks and 3 model scales. Foto de Numan Ali en Unsplash

Why Latent Reasoning Matters

Every model that reasons in text has to translate each intermediate thinking step into words, even when no human ever reads those words. That translation costs compute: generating a text token means passing through the model’s entire output layer, the full vocabulary, even though the actual content of the thought lives in a vector space far richer than any single word.

The Hybrid Reasoning Agents paper measures that cost directly. An agent that alternates between text and vectors achieves up to a 54.7% reduction in generated tokens compared to agents that reason purely in text, and runs 1.8x to 2.6x faster. That translates into a cost savings of 2.7x to 3.7x, depending on the size of the model evaluated.

But the savings aren’t free. An agent that thinks only in vectors, never passing through text, loses the ability to call external tools and to show its reasoning to a human. That’s why the hybrid design matters more than pure efficiency: it aims to keep the best of both worlds without fully sacrificing either one.

How Latent Mode Works Inside an Agent

To understand how latent reasoning works in practice, it helps to look at the mechanism HybridAgents uses to decide, at each generation step, whether to keep thinking in vectors or switch back to text.

The core technical difference is this: a standard language model can only think by emitting discrete tokens from a fixed vocabulary, one at a time. An agent with latent mode can instead emit the activation vector that would normally feed the next layer directly, without first forcing it to collapse into the most probable word in the vocabulary. That difference seems small, but it avoids an information loss that accumulates step by step over a long reasoning chain.

flowchart TD
    A["User input"] --> B{"Reasoning mode"}
    B -->|"Text"| C["Chain of thought in words"]
    B -->|"Latent"| D["Continuous vector via HybridLink"]
    C --> E["Working memory"]
    D --> E
    E --> F["Action: response or tool call"]

The paper describes a lightweight module called HybridLink that enables smooth transitions between text mode and latent mode within a single generation process. In practice, it’s the piece that decides, token by token, whether what comes next should be represented as a vocabulary word or as a vector that skips the output layer.

HybridLink being lightweight matters for a practical reason: there’s no need to retrain the entire model from scratch to add this capability. The backbone keeps almost all of its prior knowledge, and HybridLink handles only the transition between modes, which simplifies both training and the system’s later maintenance.

Continuous Working Memory: Not Losing the Thread

The second component is a continuous working memory that preserves the hybrid context, mixed text and vectors, without loss across multiple conversation turns or tool uses. Without this piece, every mode switch would mean rebuilding the context from scratch, losing precision along the way.

sequenceDiagram
    participant U as User
    participant A as Agent
    participant H as Tool
    U->>A: sends the question
    A->>A: thinks in vectors (latent mode)
    A->>H: calls a tool in text mode
    H-->>A: returns the result
    A->>U: responds in natural language
HybridSFT trains the coordination; HybridRL decides the thinking mode.

Case Study: How Stanford Trained an Agent to Choose Its Own Thinking Mode

Teaching a model to use HybridLink isn’t automatic. The paper splits training into two named stages.

  • HybridSFT: stabilizes hybrid generation with integrated tools, teaching the backbone to coordinate with HybridLink before the model has to decide anything on its own.
  • HybridRL: a second reinforcement learning stage that teaches the model when it’s worth thinking in latent space and when it’s worth acting through text, instead of following a fixed rule.

With that training complete, the authors evaluated HybridAgents across 3 different model scales, on 11 benchmarks covering math, science, medicine, search, and agentic reasoning. Compared against frontier agents and agentic frameworks spanning both text-based and vector-based methods, they report a consistent 10.4% improvement in performance.

The comparison wasn’t limited to other hybrid agents. The paper includes frontier agentic frameworks that reason purely in text and models that reason purely in latent space, which makes it possible to isolate how much of the gain comes from combining both modes and how much would show up anyway with a larger model.

stateDiagram
    [*] --> TextMode
    TextMode --> LatentMode: HybridLink triggers the switch
    LatentMode --> TextMode: needs to use a tool
    TextMode --> [*]: delivers the final answer

Practical Examples: What It Means to Think in Vectors

There isn’t yet an installable library that lets you experiment with HybridAgents’ exact architecture outside the paper, so the best practical example is a conceptual one: showing why two similar thoughts end up close together in a vector space, which is the property that latent mode exploits.

import numpy as np

pensamiento_a = np.array([0.12, 0.98, -0.05])  # "I want to solve this equation"
pensamiento_b = np.array([0.15, 0.95, -0.02])  # "I need to isolate x"

similitud = np.dot(pensamiento_a, pensamiento_b) / (
    np.linalg.norm(pensamiento_a) * np.linalg.norm(pensamiento_b)
)
print(f"Cosine similarity: {similitud:.4f}")

This script’s output is Cosine similarity: 0.9987. Those two vectors represent different ideas in words (solving an equation and isolating x), but they’re nearly identical in vector space. An agent reasoning in latent mode can move between ideas this close without having to materialize either one as text, converting the final result into words only when it’s time to respond.

Real-World Use Cases

The paper doesn’t stop at toy math problems. It evaluates agents’ vector-based cognition across five different domains:

  • Math: problem-solving where each intermediate step is a symbolic operation (isolating, factoring, substituting) that doesn’t need to pass through a complete sentence in Spanish or English.
  • Science: questions that require chaining several verifiable facts before reaching a conclusion, a scenario where one badly reasoned step drags error into every step that follows.
  • Medicine: clinical reasoning tasks, where the number of intermediate steps tends to be high and the cost of each additional token multiplies quickly.
  • Search: tasks where the agent needs to decide what to search for, evaluate partial results, and only then build the full answer.
  • Agentic reasoning: tasks that combine thinking with using external tools, the scenario where hybrid mode becomes essential because purely latent mode can’t execute a tool call.

Common Mistakes and Best Practices

  • Assuming any model already reasons in latent space: it doesn’t. Treating latent reasoning as a feature that comes free with any backbone is the most common mistake; it requires the HybridLink module and the two post-training stages, HybridSFT and HybridRL, for the model to learn to coordinate.
  • Treating latent mode as a total black box: part of the paper’s value is precisely that hybrid reasoning remains partially inspectable in its text segments, unlike a purely latent agent without HybridLink.
  • Ignoring the training cost: moving from a text-only model to a hybrid one isn’t free, it requires the two additional training stages before seeing the efficiency gains.
⚠️ Heads up: if you can’t read your agent’s step-by-step reasoning, you also can’t audit it as easily as a text-based chain of thought. That matters in regulated domains like medicine or finance.

Comparison with Alternatives

ApproachHow It Represents ThinkingAdvantageLimitation
Text-based chain of thoughtWords generated token by tokenFully readable and inspectableEvery intermediate step costs tokens and compute
Purely latent reasoningOnly continuous vectors, no textMore efficient in tokens and computeLoses native tool access and transparency
Hybrid reasoning (HybridAgents)Alternates between vectors and text depending on the taskReduces tokens by up to 54.7% without losing tool useRequires additional training (HybridSFT and HybridRL)

Going Deeper: What’s at Stake for an Agent That Thinks in Vectors

Text is, at bottom, a lossy compression of a model’s real thinking. When a model generates a chain of reasoning in words, it’s forcing a high-dimensional representation through a finite vocabulary, losing nuance along the way. Reasoning in latent space avoids that compression.

That gain comes at a cost that still worries much of the AI safety community: text-based chain of thought, despite all its flaws, became a supervision tool. If an agent reasons in vectors that nobody can read directly, that inspection window narrows, even though the agent remains technically more efficient.

That tension isn’t new in AI safety research: even before this paper, several labs were debating whether optimizing a text-based chain of thought too aggressively for efficiency ended up pushing models to compress their reasoning into forms that are less and less readable for a human. Reasoning in latent space takes that discussion a step further, because it’s no longer about compressed text but about a representation that never passed through language at all.

That’s why HybridAgents’ design doesn’t bet everything on latent mode. It keeps text available for moments where transparency or tool use matter more than token savings, and uses HybridRL precisely to learn that criterion instead of hardcoding it.

💭 Key takeaway: text is a lossy compression of the model’s real thinking. Reasoning in latent space avoids that compression, but in exchange loses the property that made chain of thought useful as a supervision tool: that a human can read it.

Your next step: take two sentences with similar meaning, generate their embeddings with any sentence-transformers model, and calculate the cosine similarity as in this article’s example, to see with your own data how close they end up in vector space.

📬 Get new articles by email

We only email about big articles (1-2 a month).

Frequently Asked Questions

Does HybridAgents replace models that reason only in text?

No. HybridAgents is a way to combine both modes within the same model, not to eliminate text mode. Text is still necessary for calling tools and communicating the final answer.

Does vector-based thinking work with any language model?

Not automatically. It requires adding the HybridLink module and going through the two post-training stages the paper describes, HybridSFT and then HybridRL. Without that process, the model doesn’t know when it’s worth switching modes or how to interpret a vector coming from the opposite mode.

Why is reasoning in latent space harder to audit?

Because a continuous vector doesn’t have a direct, unique translation into words. A text-based chain of thought can be read line by line; a vector can only be analyzed with indirect techniques, like comparing its similarity to other known vectors.

Can HybridAgents use external tools while thinking in vectors?

Yes, and that’s exactly the point of the design. When the agent needs to call a tool, HybridLink switches it back to text mode for that call, and returns to latent mode afterward if it makes sense.

Where was agents’ vector-based cognition tested?

The paper evaluated HybridAgents across 3 different model scales on 11 benchmarks covering math, science, medicine, search, and agentic reasoning, always comparing against frontier agents that reason only in text or only in vectors.

Is HybridAgents’ code public?

The paper states that the code and data are available, although the public abstract doesn’t yet specify the exact repository URL.

References

📱 Enjoy this content? Follow @programacion on Telegram for daily tech content in Spanish: quick summaries, fresh content every day.

Featured image: Foto de Julia Taubitz en Unsplash

Did it work for you? Got a different error? Say so below: questions get answered and help the next reader.

Leave a comment

Andrés Morales

Developer and AI researcher. Writes about language models, frameworks, developer tooling, and open source releases. Covers ML papers, the tech startup ecosystem, and programming trends.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

You can include code inside <code>…</code> or, for several lines, <pre><code>…</code></pre>.

This site uses Akismet to reduce spam. Learn how your comment data is processed.