Related Experiment Video
Updated: Jun 11, 2025

A Swin Transformer-Based Model for Thyroid Nodule Detection in Ultrasound Images
Published on: April 21, 2023
RetroCaptioner: beyond attention in end-to-end retrosynthesis transformer via contrastively captioned learnable graph
Xiaoyi Liu1,2, Chengwei Ai3, Hongpeng Yang4
1School of Chinese Materia Medica, Beijing University of Chinese Medicine, Beijing, 102488, China.
Motivation:
Retrosynthesis identifies available precursor molecules for various and novel compounds. With the advancements and practicality of language models, Transformer-based models have increasingly been used to automate this process. However, many existing methods struggle to efficiently capture reaction transformation information, limiting the accuracy and applicability of their predictions.
Results:
We introduce RetroCaptioner, an advanced end-to-end, Transformer-based framework featuring a Contrastive Reaction Center Captioner. This captioner guides the training of dual-view attention models using a contrastive learning approach. It leverages learned molecular graph representations to capture chemically plausible constraints within a single-step learning process. We integrate the single-encoder, dual-encoder, and encoder-decoder paradigms to effectively fuse information from the sequence and graph representations of molecules. This involves modifying the Transformer encoder into a uni-view sequence encoder and a dual-view module. Furthermore, we enhance the captioning of atomic correspondence between SMILES and graphs. Our proposed method, RetroCaptioner, achieved outstanding performance with 67.2% in top-1 and 93.4% in top-10 exact matched accuracy on the USPTO-50k dataset, alongside an exceptional SMILES validity score of 99.4%. In addition, RetroCaptioner has demonstrated its reliability in generating synthetic routes for the drug protokylol.
Availability And Implementation:
The code and data are available at https://github.com/guofei-tju/RetroCaptioner.
Related Concept Videos
Transformers
The iron core has a substantial relative permeability. Therefore, the magnetic field lines generated due to the current in one winding are almost entirely confined within the core, such that the same magnetic flux permeates each turn of both...
[3,3] Sigmatropic Rearrangement of 1,5-Dienes: Cope Rearrangement
Conjugate Addition (1,4-Addition) vs Direct Addition (1,2-Addition)
Conjugate addition results in a thermodynamically stable product. The reaction retains the stronger C=O bond at the expense of the weaker C=C π bond. The process is slow as the β carbon is less electrophilic than the carbonyl carbon.
Direct addition products are...
RL Circuit without Source
Applying Kirchhoff's voltage law around the loop of the circuit and substituting the voltages across the inductor and resistor yields a first-order differential equation. A logarithmic equation is obtained by rearranging the terms in this equation,...
Synthesis and Decomposition Reactions
Source Transformation for AC Circuits

