TL;DR
MolSight is a novel vision-language model (VLM) framework that explicitly injects molecular graph topology and image-derived SVG annotations into visual tokens. By bridging the gap between raw pixels and chemical connectivity, it significantly outperforms generalist VLMs, molecular LLMs, and even specialized chemical structure recognition tools across a wide range of molecular understanding tasks.
What Problem Does This Paper Address?
In computer-aided drug discovery and molecular design, large language models (LLMs) typically process molecules using linear text strings like SMILES. However, converting a multi-dimensional molecular graph into a linear sequence often results in structural information loss.
While human chemists naturally communicate using 2D molecular images, standard Vision-Language Models (VLMs) struggle to interpret them accurately. This is because standard vision encoders (like Vision Transformers) are pretrained on natural images; they excel at recognizing colors, textures, and spatial layouts, but lack the explicit graph-structural constraints needed to capture sparse, fine-grained chemical bonds and atom adjacencies. This creates a severe structural misalignment between visual representations and actual chemical semantics.
Methods
To solve this structural blindness, the authors introduce MolSight, which inserts a graph-aware topology adaptation layer between a frozen vision encoder (Qwen3-VL) and an LLM decoder. This layer consists of two core components:
- Molecular Topology Module (MTM): This module explicitly forces the model to learn chemical connectivity. It uses a learnable edge predictor to calculate a soft adjacency matrix directly from the vision tokens. This matrix is then used as a topological mask within a graph-attention network, guiding message passing so that visual tokens aggregate information based on actual chemical bonds rather than just spatial pixel proximity.
- Molecular Grounding Module (MGM): To align these topology-aware visual features with chemical symbols, MolSight extracts the SVG (Scalable Vector Graphics) text directly from the molecular image. The MGM uses vision-to-SVG cross-attention, allowing the updated vision tokens to map pixel regions to explicit atom labels, bond primitives, and 2D coordinates.
The model is trained using a two-stage strategy. Stage 1 progressively pretrains the adaptation layer (first optimizing the MTM with direct edge supervision, then jointly training the MGM). Stage 2 keeps the adaptation layer frozen and uses LoRA to fine-tune the LLM decoder for specific downstream tasks.
Datasets
- Stage 1 Pretraining: The authors utilized PubChemSTM to construct a dataset of 249K molecular image-task label pairs. Pretraining tasks included cross-modal text completion, SMILES reconstruction, and structural feature prediction.
- Downstream Evaluation:
- SMILES Translation & Descriptor Estimation: 100K samples from PubChem (95K for training, 5K for testing).
- Molecular Captioning: Evaluated on the MoleculeQA benchmark (5,786 test samples) as well as traditional CHEBI-20 and Mol-Instructions datasets.
- Bioactivity Prediction: Tested on the MolVision benchmark, which aggregates MoleculeNet tasks (including BACE, BBBP, HIV, ClinTox, Tox21, and ESOL).
Key Insights and Ideas
- Graphs Over Grids: Standard vision tokens preserve spatial grids, which are fundamentally ill-suited for molecular graphs. Forcing the network to predict an internal adjacency matrix directly from visual tokens fixes this blind spot.
- SVGs as Image-Side Anchors: Instead of relying on external molecular databases or independent text strings, MolSight uses the image's own vectorized SVG code. This ensures that the structural annotations remain perfectly grounded to the exact visual layout of the input image.
- The Power of Progressive Training: Ablation studies revealed that training the topology module (MTM) before introducing the grounding module (MGM) yields much higher stability. A model must understand structural topology before it can effectively map visual features to symbolic text.
Key Results
- SMILES Translation: MolSight-32B achieved an exact match accuracy (ACC) of 0.83 and a Tanimoto similarity of 0.999, outperforming specialized Optical Chemical Structure Recognition (OCSR) tools like Decimer (0.78 ACC) and MolScribe (0.66 ACC).
- Molecular Captioning: On the MoleculeQA multiple-choice benchmark, MolSight-32B achieved a total accuracy of 73.49%, substantially outperforming molecular specialist LLMs like MolCA-1.3B (64.79%) and generalist models like GPT-4 (53.47%).
- Property & Bioactivity Prediction: MolSight achieved a Pearson correlation of nearly 1.0 for deterministic physical properties like Molecular Weight (MW) and Topological Polar Surface Area (TPSA). It also led performance across 5 out of 6 bioactivity tasks on the MolVision benchmark, outperforming established image-based VLMs like BLIP-2 and LLaVA.
Limitations and Future Work
- Suboptimal SVG Tokenization: MolSight currently relies on standard text tokenizers to process SVG strings. The authors note that developing a dedicated structural tokenizer designed specifically for SVGs could more efficiently encode atom labels, bond connectivity, and spatial layouts.
- Backbone Architecture Ties: While designed as a modular framework, the current implementation is closely coupled with the Qwen3-VL architecture. Adapting MolSight to other VLM backbones may require custom adjustments due to variations in how different models organize visual tokens and handle multimodal fusion.
Summary updated