Round-trip Reinforcement Learning: Self-Consistent Training for Better Chemical LLMs

Lecheng Kong, Xiyuan Wang, Yixin Chen, Muhan Zhang · Submission to ICLR 2026 · Rejected

TL;DR

Current chemical Large Language Models (LLMs) often lack bidirectional coherence—they can describe a molecule in text but fail to recreate the molecule when handed their own description. Round-Trip Reinforcement Learning (RTRL) solves this by turning round-trip consistency into a self-supervised reinforcement learning reward, enabling LLMs to dramatically boost their accuracy and chemical understanding using unlabelled or unpaired data.

What Problem Does This Paper Address?

In computational chemistry, many core tasks are inherently bidirectional:

  • Molecule captioning $\leftrightarrow$ Text-to-molecule generation
  • Forward reaction prediction (reactants $\to$ products) $\leftrightarrow$ Retrosynthesis (products $\to$ reactants)

While modern chemical LLMs are trained on both directions, they exhibit a glaring lack of Round-Trip Consistency (RTC). For example, testing the state-of-the-art ChemDFM model revealed an exact-match consistency of only 3.2% when chaining retrosynthesis into reaction prediction. This suggests models rely on shallow, unidirectional memorization rather than unified conceptual understanding.

Although high RTC correlates strongly with downstream task accuracy, past research has treated consistency purely as a post-hoc evaluation metric or an offline filtering heuristic. This paper investigates how to algorithmically optimize and iteratively reinforce round-trip consistency directly within the training loop.

Methods

The authors introduce Round-Trip Reinforcement Learning (RTRL), framing consistency as an RL objective using Group Relative Policy Optimization (GRPO):

       Forward Pass               Backward Likelihood Evaluation
x ──────────────────────► y ─────────────────────────────────────────► Reward = log p(x | y)
  Prompt: "Molecule         Prompt: "Caption to Molecule: [y]"
           to Caption: [x]"
  1. Self-Supervised Likelihood Reward: Generating a candidate $y$ and then autoregressively decoding a backward reconstruction $x'$ is computationally slow and requires fragile string-similarity metrics. Instead, RTRL uses the conditional log-likelihood of generating the original input $x$ given the generated output $y$: $$\text{Reward}(y) = \frac{1}{L} \sum_{i=1}^{L} \log p_\phi(x_i \mid x_{<i}, y, t_g) + \alpha F(y)$$ Here, $\text{LLM}_\phi$ is a frozen copy of the model acting as an internal judge, $L$ normalizes length, and $F(y)$ is a format reward (e.g., checking via RDKit that the output is a valid chemical entity) to prevent reward hacking like repeating the prompt.

  2. Iterative Mutual Improvement (Self-Play): Once the forward direction ($x \to y$) improves, it becomes a more accurate judge for the reverse direction ($y \to x$). Roles are swapped alternately across iterations, bootstrapping both capabilities without requiring paired labels.

Datasets

The authors evaluated RTRL across several established chemical and text benchmarks:

  • ChEBI-20: ~33,000 molecule–text description pairs for cross-modal translation and captioning.
  • Language-Plus-Molecule-24 (L+M-24): A large-scale, patent-mined dataset with complex, technical chemical descriptions.
  • USPTO-50K: Benchmark for single-step retrosynthetic disconnection planning.
  • USPTO-Mixed: Reaction prediction dataset featuring mixed reactants and reagents.
  • MoleculeNet Benchmarks (BBBP, SIDER, ESOL, ClinTox, HIV, etc.): Property prediction datasets used to test out-of-domain knowledge transfer.

(No new benchmarks were created; datasets were repurposed under supervised, self-supervised, and unpaired/synthetic regimes).

Key Insights and Ideas

  • Consistency as an explicit training objective: Instead of relying on expensive human-annotated pairs, the model’s internal reversibility acts as an autonomous supervisory signal.
  • Surrogate likelihood over text generation: Evaluating the exact log-likelihood of the source input is a single forward pass, sidestepping the computational bottleneck of double-generation and eliminating the need for ill-suited similarity metrics (like BLEU on SMILES strings).
  • Asymmetric datasets can train each other: Because backward evaluation only checks whether the source input is recoverable, the forward dataset $\mathcal{X}$ and reverse dataset $\mathcal{Y}$ do not need to be paired. Models can co-evolve using completely disjoint datasets (e.g., combining USPTO-50K and USPTO-Mixed).
  • Latent knowledge extraction: Enforcing bidirectional logic activates latent chemical rules, enabling improvements on non-generative downstream classification and regression tasks without task-specific tuning.

Key Results

  • Substantial RTC Gains: RTRL improved round-trip exact match by 52% relative (from 0.547 to 0.821) on USPTO-50 Reaction Prediction $\to$ Retrosynthesis, and by 41% relative (0.170 to 0.239) on ChEBI-20 captioning-to-generation (Table 2).
  • Self-Supervised Primary Task Jumps: In unlabelled regimes, RTRL boosted USPTO-Mixed reaction prediction exact match from 0.559 to 0.601 and raised ChEBI-20 captioning BLEU-4 from 0.244 to 0.380 (Table 3 & 4).
  • Outperforming Baselines & Supervised Fine-Tuning: Supervised RTRL outperformed standard GRPO metric rewards on both ChEBI-20 and USPTO tasks (Table 5). It also beat alternative self-supervised baselines, such as synthetic pseudo-labelling and entropy minimization (EM).
  • Transferability: A Llasmol model trained via RTRL on reaction/retrosynthesis improved on 4 out of 6 MolecularNet property prediction benchmarks (Table 12), confirming deeper foundational chemical comprehension.

Limitations and Future Work

  • Overfitting across iterations: In iterative RTRL, performance eventually degrades after multiple rounds as the model exhausts the extractable knowledge from the training set and begins to overfit.
  • Vulnerability to reward hacking: Without format penalties ($\alpha F(y)$), models occasionally exploit the reward by repeating the input back into the generation.
  • Reliance on a seed dataset: While RTRL works with unlabelled or synthetic targets, it still requires real seed inputs from domain $\mathcal{X}$. The authors leave fully synthetic self-generation pipelines for future research.
  • Scope expansion: Future directions include expanding beyond chemistry to other inherently bidirectional domains, such as program translation/code migration and formal mathematical reasoning.

Summary updated

BibTeX
@inproceedings{kong2026round,
  author = {Lecheng Kong and Xiyuan Wang and Yixin Chen and Muhan Zhang},
  title = {{Round-trip Reinforcement Learning: Self-Consistent Training for Better Chemical LLMs}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=sh9vZr0NaP},
}
Figure