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

Current large language models (LLMs) predominantly rely on explicit Chain-of-Thought (CoT) to solve complex reasoning problems. By writing out their logic step-by-step in natural language, these models can tackle intricate tasks. However, when applied to the domain of chemistry, this text-heavy approach introduces a fundamental "modality mismatch."

Chemistry is inherently continuous and high-dimensional—characterized by phenomena like electron delocalization, 3D steric hindrance, and complex property manifolds. Natural language, conversely, relies on a sequence of discrete, low-bandwidth tokens. Forcing an LLM to "verbalize" complex molecular manipulations creates an artificial bottleneck. This leads to inefficient, "jagged" reasoning trajectories and frequent hallucinations where the model's final answer contradicts its written plan.

To address this, researchers have introduced LatentChem, a novel reasoning interface that decouples chemical logic from linguistic generation, allowing the model to process information via continuous thought vectors.

The LatentChem Architecture

LatentChem replaces discrete textual reasoning steps with continuous latent computation. Built on a Qwen-3-8B backbone, its architecture consists of three specialized modules:

  1. Chemical Adapter: Utilizes a Perceiver Resampler to compress variable-length molecular features (extracted from a SMI-TED encoder) into a fixed set of "ChemTokens."
  2. ChemUpdater: A dynamic perception mechanism that allows the model to "re-query" the molecule at every reasoning step. Unlike static encoders, this enables the model to shift its focus to different substructures as its internal "thoughts" evolve.
  3. Latent Projector: A lightweight network that maps the LLM's hidden states back into the input embedding space. This creates a recurrent "thinking" loop, allowing the model to reason without generating a single word of text.

The model was trained using a rigorous four-stage protocol, culminating in Group Relative Policy Optimization (GRPO). In this final reinforcement learning stage, the model is rewarded exclusively for the correctness and validity of its final answer, rather than the specific reasoning path it takes.

Key Insights: The Shift to Implicit Logic

The investigation into LatentChem revealed several fascinating emergent behaviors regarding how LLMs process domain-specific logic:

  • Spontaneous Internalization: When optimized purely for task success via GRPO, the model voluntarily abandons verbose textual derivations. It "chooses" to think in latent vectors, suggesting that the continuous manifold is a more native and efficient substrate for chemical logic.
  • The "Hydraulic" Trade-off: Through budget stress testing, researchers discovered that restricting the number of allowed latent thought steps forces the model to automatically start generating text CoT again to compensate. This indicates that the model treats implicit latent reasoning and explicit textual reasoning as communicating vessels.
  • Manifold Rectification: In latent space, the model can "glide" smoothly across a property landscape. Text-based CoT, by contrast, acts like a "jagged staircase" requiring the navigation of dozens of discrete tokens to execute the same chemical manipulation.
  • Causal Necessity: By injecting Gaussian noise into the latent steps, the authors proved these "silent" vectors are not merely computational delays. They actively encode critical structural precursors necessary for arriving at the correct final solution.

Performance and Efficiency Gains

LatentChem was evaluated across a robust suite of datasets, including ChemCoTBench, Mol-Instructions, ChEBI-20, and ChemLLMBench. The shift to latent reasoning proved to be a vastly superior computational strategy:

  • State-of-the-Art Accuracy: LatentChem achieved a 59.88% non-tie win rate against a strong explicit CoT baseline on the rigorous ChemCoTBench. It even outperformed leading proprietary models like Claude 3.7 Sonnet on challenging open-ended tasks, such as GSK3-β optimization (82% success rate vs. 67%).
  • Massive Speedups: By bypassing the token-generation bottleneck, the model delivered a broad 10.84× average reduction in reasoning step overhead. In practice, this translated to a 5.96× wall-clock speedup across all evaluated benchmarks.
  • Generative Creativity: The model's advantages were most pronounced in "open-ended" tasks (e.g., molecule optimization) requiring the exploration of vast chemical manifolds, rather than "closed-ended" tasks like simple fragment counting.

Limitations and Future Directions

The primary trade-off of LatentChem is interpretability. Because reasoning occurs within a "black box" of continuous vectors, human researchers cannot audit the intermediate logical steps as easily as they can with readable text CoT. Furthermore, maintaining training stability during GRPO remains an ongoing optimization challenge.

To bridge this gap, the authors propose exploring hybrid cognitive architectures inspired by Kahneman's System 1 and System 2 thinking. In future iterations, a model could utilize highly efficient latent thinking for heavy structural computation (System 1), while retaining the ability to "translate" those continuous thoughts into explicit natural language (System 2) when a human user requires a transparent justification.

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