Fine-Tuning DeepSeek-OCR‑2 for Molecular Structure Recognition.
Haocheng Tang, Xingyu Dang, Junmei Wang
School of Pharmacy, University of Pittsburgh, Pittsburgh, Pennsylvania 15261, United States. · Department of Computer Science, Princeton University, Princeton, New Jersey 08540, United States.
Key points
From the paper's conclusion- DeepSeek-OCR-2 was adapted for molecular optical recognition by formulating the task as an image-conditioned SMILES generation, with a two-stage progressive supervised fine-tuning strategy starting with parameter-efficient LoRA and transitioning to selective full-parameter fine-tuning with split learning rates.
- The fine-tuned model, MolSeek-OCR, demonstrates competitive capabilities, achieving exact-match accuracies comparable to those of the best-performing image-to-sequence model, but remains inferior to state-of-the-art image-to-graph models.
- Exploratory post-training shows mixed results: ReFT provides small benchmark-dependent gains, whereas GSPO does not yield stable improvement and can collapse under extended optimization.
Abstract
Optical chemical structure recognition (OCSR) is critical for converting 2D molecular diagrams from printed literature into machine-readable formats. While vision-language models have shown promise in end-to-end OCR tasks, their direct application to OCSR remains challenging, and direct full-parameter supervised fine-tuning often fails. In this work, we adapt DeepSeek-OCR-2 for molecular optical recognition by formulating the task as an image-conditioned SMILES generation. To overcome training instabilities, we propose a two-stage progressive supervised fine-tuning strategy: starting with parameter-efficient LoRA and transitioning to selective full-parameter fine-tuning with split learning rates. We train our model on a large-scale corpus combining synthetic renderings from PubChem and realistic patent images from USPTO-MOL to improve the coverage and robustness. Our fine-tuned model, MolSeek-OCR, demonstrates competitive capabilities, achieving exact-match accuracies comparable to those of the best-performing image-to-sequence model. However, it remains inferior to state-of-the-art image-to-graph models. Exploratory post-training shows mixed results: ReFT provides small benchmark-dependent gains, whereas GSPO does not yield stable improvement and can collapse under extended optimization.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- DeepSeek-OCR-2 was adapted for molecular optical recognition by formulating the task as an image-conditioned SMILES generation, with a two-stage progressive supervised fine-tuning strategy starting with parameter-efficient LoRA and transitioning to selective full-parameter fine-tuning with split learning rates.
- The fine-tuned model, MolSeek-OCR, demonstrates competitive capabilities, achieving exact-match accuracies comparable to those of the best-performing image-to-sequence model, but remains inferior to state-of-the-art image-to-graph models.
- Exploratory post-training shows mixed results: ReFT provides small benchmark-dependent gains, whereas GSPO does not yield stable improvement and can collapse under extended optimization.
Readers' thoughts
No reader thoughts yet.
Related papers
- Bridging the Markush Gap in Optical Chemical Structure Recognition via a CLIP-Derived Visual Backbone and Synthetic Data Generation.Journal of chemical information and modeling · 2026
- VERDICT: Agreement Beats Pixel-Space Verification in Real-Document OCSRarXiv · 2026
- MolReps: Taking SELFIES, Making SMILES, Teaching LLMsarXiv · 2026
- LVRE: A Local Visual Reasoning and Editing Agent for Optical Chemical Structure RecognitionarXiv · 2026
- Can Language Models Build Molecules in Three Dimensions?arXiv · 2026
- Debate, Not Voting: Agentic Arbitration over Weak Optical Chemical Structure Recognition ModelsarXiv · 2026