NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LatentChem: From Textual CoT to Latent Thinking in Chemical Reasoning

Xinwu Ye, Yicheng Mao, Yuxuan Liao, Jia Zhang, Yimeng Liu, Li Hao, Fang Wu, Zhiwei Li, Zehong Wang, Zhiyuan Liu, Zhenfei Yin, Li Yuan, Philip Torr, Huan Sun, xiangxiang Zeng, Mengdi Wang, Le Cong, Shenghua Gao, Xiangru Tang · DOI

Abstract

Chemical large language models (LLMs) predominantly rely on explicit Chain-of-Thought (CoT) in natural language to perform complex reasoning. However, chemical reasoning is inherently continuous and structural, and forcing it into discrete linguistic tokens introduces a fundamental representation mismatch that constrains both efficiency and performance. We introduce LatentChem, a latent reasoning interface that decouples chemical computation from textual generation, enabling models to perform multi-step reasoning directly in continuous latent space while emitting language only for final outputs. Remarkably, we observe a consistent emergent behavior: when optimized solely for task success, models spontaneously internalize reasoning, progressively abandoning verbose textual derivations in favor of implicit latent computation. This shift is not merely stylistic but computationally advantageous. Across diverse chemical reasoning benchmarks, LatentChem achieves a 59.88% non-tie win rate over strong CoT-based baselines on ChemCoTBench, while delivering a 10.84× average reduction in reasoning overhead. Our results provide empirical evidence that chemical reasoning is more naturally and effectively realized as continuous latent dynamics rather than discretized linguistic trajectories.

The Continuity-Discretization Gap

Most scientific LLMs utilize Chain-of-Thought (CoT) prompting, where the model generates a sequence of text tokens to "think out loud" before arriving at a conclusion. While effective for general logic, this approach faces a fundamental "continuity-discretization gap" in chemistry. Chemical phenomena—such as electron delocalization, 3D steric hindrance, and molecular property landscapes—are inherently continuous and high-dimensional.

Figure 3: Comparison of reasoning trajectories in latent vs. language space.

Forcing these physicochemical intuitions into the narrow bottleneck of discrete linguistic tokens (words or SMILES strings) often leads to "jagged" and inefficient reasoning paths. Much like a human chemist might mentally visualize a 3D structure before articulating a property, LatentChem proposes that LLMs should reason in a continuous space that better matches the smooth nature of chemical manifolds.

The LatentChem Architecture

LatentChem is designed to decouple internal computation from external text generation. The architecture consists of several specialized components that allow the model to "think" without speaking:

  • ChemAdapter: This module utilizes a Perceiver Resampler to align high-dimensional molecular features (extracted from a pre-trained SMI-TED encoder) with the LLM’s embedding space.
  • ChemUpdater: A dynamic mechanism that allows the model to recursively "re-query" molecular features during the reasoning process, refining its structural understanding at each step.
  • Latent Thinking Loop: Instead of generating a text token, the model produces a "thought vector." This vector is processed by a Latent Projector and fed back into the model as input for the next reasoning step, creating a continuous internal dialogue.
Figure 6: The LatentChem architecture featuring the Latent Thinking loop and ChemAdapter.

The model is trained through a progressive four-stage pipeline, culminating in Group Relative Policy Optimization (GRPO). In this final reinforcement learning stage, the model is rewarded solely for the correctness and validity of the final answer, rather than for adhering to a specific human-written reasoning chain.

Key Insights: Spontaneous Internalization

The most striking finding of this research is the emergence of "spontaneous internalization." When optimized via RL for task success alone, LatentChem voluntarily stopped writing out its reasoning. It internalized the logic, collapsing verbose text chains into a few "silent" latent thought vectors. This shift was not forced by a length penalty; the model chose it because continuous latent dynamics are a more native and computationally efficient substrate for chemical logic.

To test the limits of this behavior, the researchers performed "budget stress testing." When the number of latent steps was restricted (e.g., to fewer than 5), the model would spontaneously start writing text again to compensate for the lack of internal "thinking" space. This suggests a "Hydraulic" trade-off, where latent and linguistic reasoning act as communicating vessels.

Empirical Results and Efficiency

LatentChem was evaluated against a comprehensive suite of benchmarks, including ChemCoTBench, Mol-Instructions, and ChEBI-20. The results demonstrate that latent reasoning is both more accurate and significantly faster than traditional CoT:

  • Massive Speedup: LatentChem achieved a 10.84× average reduction in reasoning overhead. In complex tasks like molecule optimization and reaction prediction, the reduction exceeded 28×.
  • Superior Accuracy: On the reasoning-intensive ChemCoTBench, LatentChem achieved a 59.88% non-tie win rate against strong explicit CoT baselines.
  • Competitive Performance: In specific molecule optimization challenges, such as the GSK3-β task, LatentChem achieved an 82% success rate, outperforming state-of-the-art models like Claude 3.7 Sonnet and DeepSeek-R1.

Conclusion and Future Work

LatentChem demonstrates that chemical reasoning is more naturally realized as continuous latent dynamics than as discretized linguistic trajectories. While this "latent thinking" provides massive efficiency gains, it introduces a "black box" problem, as the reasoning is no longer human-readable. Future work will focus on developing "System 2" mechanisms that can externalize these latent thoughts into symbolic text when human-interpretable justifications are required, as well as exploring how these emergent behaviors scale with larger model backbones.

Summary updated

BibTeX
@inproceedings{ye2026latentchem,
  author = {Xinwu Ye and Yicheng Mao and Yuxuan Liao and Jia Zhang and Yimeng Liu and Li Hao and Fang Wu and Zhiwei Li and Zehong Wang and Zhiyuan Liu and Zhenfei Yin and Li Yuan and Philip Torr and Huan Sun and xiangxiang Zeng and Mengdi Wang and Le Cong and Shenghua Gao and Xiangru Tang},
  title = {{LatentChem: From Textual CoT to Latent Thinking in Chemical Reasoning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Ul6hU6WkDL},
}
Figure