Tango*: Constrained synthesis planning using chemically informed value functions

Daniel Armstrong, Zlatko Joncev, Jeff Guo, Philippe Schwaller

TL;DR

Tango introduces a remarkably simple yet highly effective approach to starting-material-constrained synthesis planning by replacing complex neural network cost estimators with a classic, non-neural cheminformatics similarity function. By pairing the standard Retro search algorithm with this deterministic cost function, the method achieves state-of-the-art solve rates, faster wall-clock times, and shorter synthetic routes without requiring any model retraining.

What Problem Does This Paper Address?

In Computer-Assisted Synthesis Planning (CASP), the traditional goal is unconstrained: find any viable pathway from a target molecule back to commercially available building blocks. However, real-world chemists often face strict constraints. For instance, in "semi-synthesis" or "waste valorization," engineers want to synthesize a complex molecule starting from a specific precursor, such as a cheap renewable feedstock or an industrial waste product.

Existing approaches to this starting-material-constrained problem rely on complex, specialized architectures—like bidirectional search algorithms that expand both forward from the starting material and backward from the target, or heavy reinforcement learning frameworks. This paper tackles the question: Can we solve constrained synthesis planning using simpler, uni-directional search algorithms just by changing how we evaluate the "cost" of intermediate molecules?

Figure 1: Comparison of existing constrained synthesis planning methods with Tango*

Methods

The authors introduce Tango, which builds directly on top of Retro**, a well-established, uni-directional, best-first search algorithm.

Instead of training a new neural network to estimate the "synthetic distance" between an intermediate molecule and the desired starting material, Tango uses a computed cheminformatics metric called TANGO (TANimoto Group O*verlap). TANGO measures molecular similarity using a weighted combination of:

  1. Tanimoto Similarity: A standard fingerprint-based metric for overall molecular similarity.
  2. Fuzzy Matching Substructure (FMS): A metric evaluating structural overlap.

This similarity score is converted into a node cost and additively combined with the original Retro* cost function using a single hyperparameter ($k$) to balance the two objectives:

$$\text{Total Cost} = k \cdot (1 - \text{reward}_{\text{node}}) + \text{RetroCost}$$

Because TANGO is a drop-in cost function, the authors also test it as a replacement for the neural distance networks used in state-of-the-art bidirectional search frameworks like Double-Ended Synthesis Planning (DESP).

Datasets

The authors evaluated their approach across three primary benchmark datasets containing target/starting-material pairs:

  • USPTO-190: A set of 190 challenging target molecules derived from the US patent literature.
  • Pistachio Reachable: 150 routes used for hyperparameter tuning and baseline testing.
  • Pistachio Hard: 100 highly challenging synthetic routes.
  • WHO Essential Medicines Case Study: A curated set of 110 small-molecule drugs evaluated against a library of 146 renewable building blocks to demonstrate real-world utility in green chemistry.

Key Insights and Ideas

  • The Failure of Neural Distance Networks: The most surprising finding is why Tango* works so well compared to deep learning alternatives. Neural networks trained to estimate synthetic distance ($D$) suffer from an unexpected bimodal distribution at test time (see Figure 3). They consistently over- or underestimate costs and fail to provide a smooth, monotonic gradient to guide the search.
  • The Power of Deterministic Rules: Because the training data for these neural networks relies on artificial "negative samples" (assuming disconnected molecules in a sparse dataset are completely unsynthesizable), they introduce massive noise. A simple, deterministic Tanimoto similarity calculation provides a much cleaner, granular, and strictly monotonic gradient toward the target starting material.
  • Versatile Synergy: TANGO isn't just for uni-directional search. When dropped into bidirectional frameworks (DESP) to replace their internal neural distance estimators, it acts as a catalyst, dramatically boosting their performance as well.
Comparison of node cost estimates showing the clear monotonic decrease of Tango (a, d) versus the noisy, bimodal distribution of neural network estimations (b, e).

Key Results

  • Higher Solve Rates: On the challenging USPTO-190 dataset (with an expansion budget of 500), Tango achieved a 42.6% solve rate, outperforming the neural-network-guided Retro+D (37.4%) and matching or beating complex bidirectional DESP methods.
  • State-of-the-Art Bidirectional Performance: When TANGO was integrated into the bidirectional DESP-F2F framework (Tango-F2F), it achieved a staggering 99.3% solve rate on Pistachio Reachable and boosted the solve rate on USPTO-190 to 53.7%—a ~25% relative improvement over the previous best method.
  • Computational Efficiency: Tango achieved the lowest wall-clock times across the board (e.g., 55.8 seconds on USPTO-190 compared to 64.1s for Retro+D and 109.4s for DESP-F2F) because it bypasses expensive neural network evaluations during graph exploration.

Limitations and Future Work

While pure Tanimoto similarity performed exceptionally well on complex datasets, the authors noted that incorporating Fuzzy Matching Substructure (FMS) actually degraded performance on harder benchmarks. They hypothesize that Tanimoto similarity simply offers finer granularity for complex molecular architectures.

Additionally, the current formulation of Tango is strictly limited to steering a synthesis toward a specific starting material*. The authors note that future work should expand this framework to accommodate more diverse constraints, such as forcing the pathway through specific intermediate steps or protecting certain molecular substructures throughout the reaction sequence.

Summary updated

Abstract

Computer-aided synthesis planning (CASP) has made significant strides in generating retrosynthetic pathways for simple molecules in a non-constrained fashion. Recent work introduces a specialised bidirectional search algorithm with forward and retro expansion to address the starting material-constrained synthesis problem, allowing CASP systems to provide synthesis pathways from specified starting materials, such as waste products or renewable feed-stocks. In this work, we introduce a simple guided search which allows solving the starting material-constrained synthesis planning problem using an existing, uni-directional search algorithm, Retro*. We show that by optimising a single hyperparameter, Tango* outperforms existing methods in terms of efficiency and solve rate. We find the Tango* cost function catalyses strong improvements for the bidirectional DESP methods. Our method also achieves lower wall clock times while proposing synthetic routes of similar length, a common metric for route quality. Finally, we highlight potential reasons for the strong performance of Tango over neural guided search methods
BibTeX
@inproceedings{armstrong2025tango,
  author = {Daniel Armstrong and Zlatko Joncev 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