Tango*: Constrained synthesis planning using chemically informed value functions

Daniel P Armstrong, Zlatko Jončev, Jeff Guo, Philippe Schwaller

TL;DR

Tango introduces a novel approach to "starting material-constrained" retrosynthesis. By swapping complex neural networks for a simple, chemically informed cost function based on molecular similarity, Tango guides standard search algorithms to achieve higher success rates and better efficiency than state-of-the-art specialized models.

The Challenge of Constrained Synthesis

In Computer-Aided Synthesis Planning (CASP), the standard objective is to find any viable path from a target molecule back to any purchasable building blocks. However, real-world chemistry is rarely so unconstrained. Chemists frequently need to utilize specific starting materials, such as a particular waste product for waste valorization or a complex natural precursor for semi-synthesis.

This "starting material-constrained" problem is significantly harder. The search algorithm must be actively "steered" toward a specific molecular goal while strictly adhering to valid chemical rules. Previous solutions have relied on complex bidirectional search algorithms or neural networks trained to estimate "synthetic distance." Unfortunately, these models often struggle with consistency and granularity, rendering the search process inefficient or prone to failure.

Comparison of search strategies in retrosynthesis

Introducing Tango*

To address these inefficiencies, the authors introduce Tango. This method adapts the well-known Retro (a best-first unidirectional search algorithm) by integrating a novel node cost function called TANGO** (TANimoto Group Overlap).

Instead of relying on a deep learning model to guess the remaining steps to a specific starting material, TANGO employs a computed approach rooted in classic cheminformatics:

  1. Tanimoto Similarity: A standard metric measuring how many structural fragments two molecules share.
  2. Fuzzy Matching Substructure (FMS): A metric that identifies the maximum common substructure between the current intermediate molecule and the target starting material.

By combining these metrics into a weighted sum, the algorithm receives a continuous "reward" for moving toward molecules that structurally resemble the required starting material. TANGO acts as a highly effective, drop-in replacement for the value functions used in existing search frameworks.

Experimental Setup

The researchers evaluated Tango* across several established benchmarks:

  • USPTO-190: A challenging set of 190 target molecules extracted from US patent data.
  • Pistachio Reachable & Hard: Datasets designed to test the recovery of known synthetic connections.
  • eMolecules: A comprehensive database of 23 million commercial building blocks.
  • WHO Essential Medicines: Utilized for a practical case study demonstrating the synthesis of drugs (like Chlorambucil) from renewable feedstocks.

Key Insights

  • Simplicity Outperforms Complexity: The most striking finding is that a straightforward similarity calculation (TANGO) provides superior guidance compared to a neural network explicitly trained for the task.
  • Bridging the "Neural Gap": The authors discovered that neural networks trained to estimate synthetic distance often yield bimodal results—predicting a molecule is either very close or very far, lacking nuance. This poor granularity makes it difficult for the search algorithm to differentiate between intermediate steps.
  • Consistency is Key: TANGO provides a more "monotonic" cost decrease. As the retrosynthetic search approaches the target starting material, the TANGO score improves steadily, offering a clear and reliable gradient for the algorithm to follow.
  • Generalizability: Because TANGO relies on fundamental molecular structure rather than a specific, potentially biased training set, it generalizes seamlessly from simple to complex molecules without requiring retraining.

Key Results

  • Higher Solve Rates: On the USPTO-190 benchmark, Tango achieved a 36.3% solve rate at a low expansion budget (100 calls). This significantly outperforms the previous state-of-the-art neural-guided method (Retro + D), which achieved only 27.4%.
  • Greater Efficiency: Tango required fewer node expansions and demonstrated a lower wall-clock time than competing methods. For instance, on the Pistachio Reachable set, Tango was nearly twice as fast as the baseline Retro* search.
  • Shorter Routes: In numerous cases, Tango* identified more direct synthetic pathways (shorter route lengths) than specialized bidirectional algorithms.
  • Successful Case Study: Tango* successfully mapped a 10-step synthesis for the chemotherapy drug Chlorambucil using exclusively renewable or industrial waste feedstocks—a constrained pathway that standard unconstrained algorithms failed to uncover.

Limitations and Future Directions

  • The "Known Path" Bias: The current experimental setup guides the search toward a building block already known to be part of a successful route, proving the algorithm can "recover" a path. Future work should explore its performance with arbitrary or "expert-suggested" starting materials that lack pre-validation.
  • Expanding Constraints: The TANGO framework could theoretically extend beyond starting materials. Future iterations might steer synthesis toward specific key intermediates or enforce the inclusion of certain molecular substructures throughout the synthetic route.
  • Bidirectional Integration: While Tango* excels as a unidirectional search, the authors note that integrating the TANGO cost function into bidirectional frameworks (like DESP) yielded the absolute best overall results, pointing toward hybrid approaches as the optimal path forward.

Summary updated

BibTeX
@inproceedings{armstrong2025tango,
  author = {Daniel P Armstrong and Zlatko Jončev and Jeff Guo and Philippe Schwaller},
  title = {{Tango*: Constrained synthesis planning using chemically informed value functions}},
  booktitle = {AI4MAT @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=nBcM5ZbAS9},
}
Figure