Manuscript Offprint

arXiv:2609.35336

TMCS: Tool-Grounded Multi-Agent Reasoning for Compositional Chemical Problem Solving

Shengqin Wang, Jie Jin, Yu Cheng, Yihang Chen, Weilin Luo, Yuan Xie, Zhizhong Zhang

Abstract

Despite the promise of Large Language Models (LLMs) in computational chemistry, rigorous combinatorial chemistry problems remain difficult because they require quantitatively constrained molecular modification, candidate validation, and systematic revision after failed attempts. Existing tool-augmented chemical agents demonstrate useful planning and tool use, but they rarely provide a unified loop for property-driven molecular optimization and workflow-level composition. To bridge this gap, we propose Tool-Grounded Multi-Agent Reasoning for Compositional Chemical Problem Solving (TMCS), a step-by-step multi-agent framework that formalizes chemical problem solving as an interpretable, tool-augmented workflow. At the task level, specialized agents leverage external tools, few-shot trajectory memory, and structured reflection to iteratively refine solutions. At the workflow level, TMCS chains generation, understanding, editing, description, and optimization into a closed-loop pipeline. Evaluations across multiple chemical tasks demonstrate that TMCS consistently enhances chemical reasoning across both open-and closed-source base models, achieving state-of-the-art performance.

Introduction

Large Language Models (LLMs) and specialized Chemical Language Models (CLMs) have recently emerged as a transformative force in accelerating drug discovery and materials science (Bai et al. 2025; Ma et al. 2024; Shojaee et al. 2025; Hatakeyama-Sato et al. 2023; Xia et al. 2025; Han et al. 2025; Zhang et al. 2025; Xia et al. 2022; Lv et al. 2024; Zhang et al. 2024; Tan et al. 2025; Zhao et al. 2024; Jiang et al. 2025; Ross et al. 2022; Chithrananda, Grand, and Ramsundar 2020; Ahmad et al. 2022). However, rigorous chemical problem-solving—such as drug design—is inherently procedural rather than instantaneous. Such tasks are rarely resolved through a one-shot prediction; instead, they necessitate a logical sequence of operations, including structural understanding, targeted modification, and iterative refinement (Ock et al. 2026). This stepwise complexity underscores a critical yet overlooked requirement: true chemical intelligence must be assessed not solely by the final output, but by the system's capacity for transparent, intermediate logical reasoning (Hao et al. 2026). Existing paradigms face bottlenecks that hinder this procedural reasoning (Wang et al. 2025; Bai et al. 2025; Li et al. 2026; Solovev et al. 2025; Lee

Figure

Figure 1: Mean property improvement ( Δ\Delta) across six molecular optimization objectives. The grouped bar charts compare the proposed TMCS framework against its corresponding generative baselines: Llama-3.3-70B-Instruct (left) and GPT-5.4 (right). TMCS consistently achieves superior Δ\Delta values across both physicochemical constraints and bioactivity targets. Higher positive values indicate successful property enhancements, whereas values near or below zero signify property degradations.

et al. 2026; Liu et al. 2024). First, at the individual task level, most methods treat chemical problems as direct, end-to-end predictions. Large language models (LLMs) and diffusion-based approaches map an input directly to an output relying on parameterized, black-box knowledge. This lacks reasoning transparency: structural changes are not visible step-by-step, making it difficult to interpret why a candidate succeeds or fails under fine-grained chemical constraints. Second, at the execution level, standard models exhibit what we term execution rigidity. Even when basic external tools are introduced, they rarely revise their strategy after a failed attempt, lack explicit reflection, and cannot reuse prior successful trajectories. Finally, at the workflow level, existing models often operate in knowledge isolation, executing tasks like generation, understanding, and optimization as disjointed processes rather than a continuous, cohesive pipeline.

The core difficulty is particularly acute for molecular optimization. A useful drug-design assistant must not only generate a syntactically valid molecule, but also determine whether a local edit actually improves logP, QED, solubility, or target-specific bioactivity while preserving a meaningful scaffold. Pure LLM prompting can express chemical intuition, yet it cannot reliably observe the quantitative consequence of each edit. Conversely, standalone tools can score or validate candidates but do not decide how to revise a failed design.

∗^{*}These authors contributed equally.

This gap motivates a framework in which the LLM proposes chemically plausible actions, external tools provide objective feedback, and a bounded reflection loop revises the strategy only when the current trajectory is invalid or insufficiently improved.

To address these limitations, we propose TMCS, an interpretable, stepwise multi-agent framework for chemical problem solving. Built on the principle that chemical reasoning requires structured execution rather than simple black-box scaling, TMCS shifts the paradigm from one-shot generation to a closed-loop, tool-grounded refinement process. To achieve this, we introduce a dual-level optimization strategy. First, we introduce the Task-Level Iterative Refinement: rather than stopping after a single prediction, TMCS decomposes individual tasks into executable stages. Specialized agents handle understanding, editing, and description, while external tools provide deterministic property validation. A reflection module monitors intermediate outputs and triggers strategy revision upon failure, guided by a few-shot trajectory memory that preserves reusable patterns from successful cases. As shown in Figure 1, our framework achieves significant improvements in property optimization for both open-source and closed-source models.

Second, we introduce the Workflow-Level Composition: moving beyond isolated execution, TMCS chains these diverse, optimized tasks into a unified pipeline. By passing context sequentially—from molecular generation, to structural understanding, and finally to targeted optimization—the framework ensures that insights gained in early stages directly inform downstream reasoning. This dual-level design improves interpretability, as every edit is linked to a specific structural rationale and validation result.

Extensive evaluations show that TMCS substantially improves both open-source and closed-source base models, achieving state-of-the-art performance. Component, initialization, robustness, and cost analyses further indicate that the gains arise from verifiable tool-grounded feedback and bounded reflection rather than from unconstrained extra computation alone.

Our main contributions are summarized as follows:

• We propose TMCS, a stepwise multi-agent reasoning framework that transitions chemical problem solving from opaque, one-shot predictions to a transparent, closed-loop refinement process.

• We design a dual-level execution architecture: at the task level, it enhances structural understanding and optimization through tool-use, few-shot reasoning trajectories, and reflection; at the workflow level, it composes these tasks into a unified, sequential pipeline.

• We conduct extensive experiments showing that TMCS broadly enhances both open and closed-source LLMs. The framework yields substantial performance enhancements, achieving state-of-the-art results in chemical reasoning tasks and highlighting the superiority of structured execution.

References (53)