MarkushGrapher: Joint Visual and Textual Recognition of Markush Structures

Lucas Morin, Valéry Weber, Ahmed S. Nassar, Gerhard Ingmar Meijer, L. V. Gool +2 more
2/10/2026

No official code found. Best implementation: DS4SD/MarkushGrapher (82 stars, MIT, last commit 2026-04-24). 1 more below.

Abstract

The automated analysis of chemical literature holds promise to accelerate discovery in fields such as material science and drug development. In particular, search capabilities for chemical structures and Markush structures (chemical structure templates) within patent documents are valuable, e.g., for prior-art search. Advancements have been made in the automatic extraction of chemical structures from text and images, yet the Markush structures remain largely unexplored due to their complex multi-modal nature. In this work, we present MarkushGrapher, a multimodal approach for recognizing Markush structures in documents. Our method jointly encodes text, image, and layout information through a Vision-Text-Layout encoder and an Optical Chemical Structure Recognition vision encoder. These representations are merged and used to autoregressively generate a sequential graph representation of the Markush structure along with a table defining its variable groups. To overcome the lack of real-world training data, we propose a synthetic data generation pipeline that produces a wide range of realistic Markush structures. Additionally, we present M2S, the first annotated benchmark of real-world Markush structures, to advance research on this challenging task. Extensive experiments demonstrate that our approach outperforms state-of-the-art chemistry-specific and general-purpose vision-language models in most evaluation settings. Code, models, and datasets are available1.

View on arXivView PDF

Code Implementations(2)

MIT

[CVPR 26] MarkushGrapher-2: End-to-end Multimodal Recognition of Chemical Structures

8210Shell, PythonMar 17, 20256 months agoMIT
MIT

[CVPR 25] MarkushGrapher: Joint Visual and Textual Recognition of Markush Structures

162Java, PythonJun 4, 20257 months agoMIT

Cite this paper

@article{morin2026markushgrapher,
  title  = {MarkushGrapher: Joint Visual and Textual Recognition of Markush Structures},
  author = {Lucas Morin and Valéry Weber and Ahmed S. Nassar and Gerhard Ingmar Meijer and L. V. Gool and Yawei Li and P. Staar},
  year   = {2026},
  eprint = {2503.16096},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.16096},
  journal = {CVPR 2025 2025}
}

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/2503.16096.svg)](https://codeofpaper.com/paper/2503.16096)

Discussion