Blog / News

HybridAgent: an agent that thinks in latent space and acts through text

No. 1 on HN: Stanford and Together AI taught an agent to switch between latent reasoning and text within a single generation pass. Up to 54.7% fewer tokens, up to 2.6× faster and 3.7× cheaper — and the thoughts stay readable. We break down HybridLink, HybridSFT/HybridRL, and the working memory.

•4 min read
News Research

TL;DR: topping Hacker News right now — the fresh paper Hybrid Reasoning Agents (Stanford, Together AI, UIUC, Meta). The agent no longer has to “think out loud” in text: within a single generation pass it switches between latent mode (fast inner reasoning) and text mode (tool calls, answers). Across 11 benchmarks: +10.4 points of quality over strong text-based and latent baselines, 35.5–54.7% fewer tokens, 1.8–2.6× faster inference, and 2.7–3.7× lower cost. Code, models (8B and 14B), and data are open.

Why an agent needs two modes

Text-based reasoning (chain-of-thought) is expensive and slow: the model prints every thought as tokens, and you pay twice — with time and money. Latent reasoning (thinking directly in the model’s hidden states) is compact and fast, but it has two fatal flaws: it can’t call tools (tools speak text), and it’s opaque — you can’t see what the model “thought about”.

HybridAgent bridges both worlds: the agent itself decides when to think in latent space and when to switch to text — to run a search, execute Python, or deliver the answer.

HybridAgent’s two modes: latent reasoning and text actions in a single pass

How it works

Three key elements:

  1. HybridLink — a lightweight adapter that maps last-layer hidden states back into the input embedding space. It’s what lets text and latent segments stitch into one continuous generation pass.
  2. The agent’s working memory — a continuous context that carries text, latent thoughts, and tool observations across turns without loss.
  3. Inspectability — every latent span can be unfolded into readable pseudo-text. The model not only answers but also shows what it “thought”.

Training is two-stage. HybridSFT teaches the backbone to coordinate with HybridLink on curated hybrid trajectories. HybridRL is reinforcement learning on top: the model learns on its own when latent thinking pays off and when it’s time to act in text.

Thoughts you can actually read

The main fear about latent reasoning is the “black box”. The authors answer with the Interpretable Latent Mode tool: latent spans are rendered as pseudo-text with a readability score.

An example from the repo (a question about the speed of sound): the agent latently “hesitates” — “I think it’s ~343 m/s, but I should verify” — switches to text, calls search, gets confirmation, goes latent again for arithmetic, runs Python, and answers. Span readability is 0.84–0.96. The pseudo-text is occasionally clumsy (“I me the the speed”), but the meaning comes through — which is exactly what you need for agent debugging and auditing.

HybridAgent’s latent thoughts as pseudo-text with readability scores

The numbers

  • 3 model scales, 11 benchmarks: math, science, medicine, search, agentic reasoning.
  • +10.4 points of quality on average versus frontier text-based agents and latent methods.
  • 35.5–54.7% fewer tokens per task.
  • 1.8–2.6× faster inference.
  • 2.7–3.7× cheaper.

Released checkpoints: HybridAgent-8B-Agentic and HybridAgent-14B-Agentic (built on Qwen3-Base), plus the HybridSFT v1/v2 and HybridRL training sets. Training your own is possible but not a weekend project: the authors recommend 8–16 GPUs for SFT and 32 GPUs for RL.

HybridAgent results: better quality, fewer tokens, faster and cheaper

Honest caveats

  • Pseudo-text is an approximation of latent thoughts, not an exact decryption. A “0.9 readability” score doesn’t guarantee the model actually reasoned that way.
  • The numbers come from the authors’ paper; independent reproductions don’t exist yet.
  • This is a research prototype: you’ll have to integrate your own tools and hosts, and there’s still distance to production agents.

Why this resonates with us

What caught our eye is HybridAgent’s “working memory” — the continuous context the agent carries within a task. But it has a hard boundary: it dies with the session. A model can save up to 55% of tokens on reasoning — and still wake up every morning with an empty head. MaxGraph covers exactly that layer: decisions, their rationale, and context persist between sessions on your machine. Latent thoughts are getting cheaper — but the memory of why we decided what we decided remains priceless.

Working memory within a task belongs to HybridAgent; memory between sessions belongs to MaxGraph

FAQ

Does this replace chain-of-thought? No, it’s a hybrid: text stays for tools, answers, and monitoring. Latent mode takes over the bulky internal reasoning.

Can I run it myself? Code and models are open (GitHub + Hugging Face); inference is realistic on one or two GPUs for the 8B. Your own post-training starts at 8 GPUs.

Where do the token savings come from? Latent “thoughts” don’t produce text tokens — hence the 35.5–54.7% reduction in generation volume and the proportional savings.

What’s next


MaxGraph — memory for AI agents: local, private, with a living knowledge graph. 7 days free.

MaxGraph

Give your agent memory

7-day trial, no card. Installation is one prompt — your agent does the rest.

Pricing ✓ Copied