RFL: Simplifying Chemical Structure Recognition with Ring-Free Language

Qikai Chang, Mingjun Chen, Changpeng Pi, Pengfei Hu, Zhenrong Zhang +4 more
12/10/2024
cs.CV

Official code: JingMog/RFL-MSD (20 stars, MIT, last commit 2025-06-14).

Abstract

The primary objective of Optical Chemical Structure Recognition is to identify chemical structure images into corresponding markup sequences. However, the complex two-dimensional structures of molecules, particularly those with rings and multiple branches, present significant challenges for current end-to-end methods to learn one-dimensional markup directly. To overcome this limitation, we propose a novel Ring-Free Language (RFL), which utilizes a divide-and-conquer strategy to describe chemical structures in a hierarchical form. RFL allows complex molecular structures to be decomposed into multiple parts, ensuring both uniqueness and conciseness while enhancing readability. This approach significantly reduces the learning difficulty for recognition models. Leveraging RFL, we propose a universal Molecular Skeleton Decoder (MSD), which comprises a skeleton generation module that progressively predicts the molecular skeleton and individual rings, along with a branch classification module for predicting branch information. Experimental results demonstrate that the proposed RFL and MSD can be applied to various mainstream methods, achieving superior performance compared to state-of-the-art approaches in both printed and handwritten scenarios. The code is available at https://github.com/JingMog/RFL-MSD.

View on arXivView PDF

Code Implementations(1)

JingMog/RFL-MSDOfficial100%
MIT

[AAAI'25 Oral] "RFL: Simplifying Chemical Structure Recognition with Ring-Free Language".

203Shell, PythonDec 10, 20241 years agoMIT

Similar Papers

Cite this paper

@article{chang2024rfl,
  title  = {RFL: Simplifying Chemical Structure Recognition with Ring-Free Language},
  author = {Qikai Chang and Mingjun Chen and Changpeng Pi and Pengfei Hu and Zhenrong Zhang and Jiefeng Ma and Jun Du and Baocai Yin and Jinshui Hu},
  year   = {2024},
  eprint = {2412.07594},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.07594v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.07594.svg)](https://codeofpaper.com/paper/2412.07594)

Discussion