MACReD: A Multi-Agent Collaborative Reasoning Framework for Reaction Diagram Parsing

Chuang Tang, Chenhao Lin, Yin Xu, Hao Wang, Jinrui Zhou, Xin Li, Mingjun Xiao, Enhong ChenarXiv 2026

TL;DR

MACReD is a hierarchical multi-agent framework designed to accurately parse complex chemical reaction diagrams from scientific literature. By coordinating specialized perception agents with a VLM-guided planning layer and a chemistry-aware multigraph fusion mechanism, it achieves state-of-the-art performance, significantly outperforming monolithic vision-language models and existing baselines.

What Problem Does This Paper Address?

Scientific literature contains a vast repository of chemical knowledge, but much of it remains locked inside complex, multi-step reaction diagrams. Automatically extracting this data is incredibly challenging because a diagram's visual layout does not directly map to its underlying chemical logic. For instance, spatial proximity does not guarantee a chemical relationship, arrows carry highly diverse semantic meanings, and intermediate states are often implied rather than explicitly drawn.

Figure 1: Examples of reaction diagrams in chemistry litera- ture, from simple single-step to complex pathways.

Existing Vision-Language Models (VLMs) struggle to maintain spatial coherence and fail to integrate domain-specific constraints when processing these graphics. Meanwhile, traditional rule-based pipelines suffer from unidirectional error propagation: a single mistake in early visual recognition completely ruins the downstream chemical reconstruction.

Methods

MACReD (Multi-Agent Collaborative Reasoning for Reaction Diagram Parsing) abandons the monolithic end-to-end approach in favor of a three-layered hierarchical architecture:

  1. Planning Layer: Driven by a VLM acting as a top-level controller, this layer uses a multimodal routing function to dynamically select and sequence specialized agents based on the input query and diagram complexity.
  2. Perception Layer: Contains specialized agents that split the visual workload. A Molecule Agent localizes structures and uses tools like MolScribe and RDKit to translate them into SMILES strings; an Arrow Agent uses Oriented Bounding Boxes (OBB) to detect and classify arrow geometries (e.g., forward, reversible); and a Text Agent extracts and normalizes reaction conditions using PaddleOCR.
  3. Reasoning Layer: Rather than relying on raw predictions, this layer builds three distinct intermediate graphs: a Spatial-Semantic Graph (via a lightweight GCN), a Chemistry-Prior Graph (evaluating molecular fingerprint similarity and charge consistency), and a VLM-Induced Graph. A Multigraph Fusion mechanism merges these signals, pruning weak connections to solve global reaction reconstruction as a unified graph inference problem.

Datasets

The framework was evaluated on the RxnScribe benchmark dataset, which consists of reaction diagrams extracted from 662 peer-reviewed chemistry articles across four prominent journals (JACS, JOC, OL, and OPRD). To ensure robust evaluation of complex arrow geometries, the authors re-annotated this dataset with fine-grained, oriented bounding box annotations for all reaction arrows.

Key Insights and Ideas

  • Scale Alone Isn't Enough: Out-of-the-box open-source and closed-source VLMs (including GPT-4o and Gemini) score near zero under strict structural matching criteria. The bottleneck in scientific diagram parsing is not model size, but the lack of explicit structural grounding and domain constraints.
  • Decoupling Perception from Interpretation: By separating spatial localization from structural graph interpretation, MACReD prevents local OCR or molecular drawing errors from catastrophically breaking the global reaction topology.
  • Chemistry as a Soft Bias: Instead of treating chemical laws (like the conservation of mass and charge) as rigid, hard constraints—which easily break due to noisy literature scans—MACReD applies them as soft inductive biases during graph fusion to filter out physically implausible pathways.

Key Results

The authors evaluated MACReD using two metrics: Hard Match (requiring exact matches for reactants, products, and text conditions) and Soft Match (focusing purely on molecular relationships).

  • State-of-the-Art Performance: MACReD (built on Gemini-2.5-Pro) achieved a Hard Match F1 score of 75.2% and a Soft Match F1 score of 84.6%, outperforming the previous state-of-the-art baseline, RxnScribe (69.1% / 80.0%).
  • Layout Robustness: While performance naturally dips on dense, non-linear layouts, MACReD demonstrated remarkably stable degradation trends when moving from simple single-line diagrams to highly complex tree- and graph-structured pathways.

Limitations and Future Work

The authors note that imperfect agent coordination can still occasionally impact performance when dealing with exceptionally dense or highly unconventional multi-step layouts. Moving forward, the research team plans to focus on improving the coordination efficiency among the specialized agents and extending this multi-agent graph-fusion architecture to broader scientific domains, such as materials science and physics diagram parsing.

Summary updated

BibTeX
@misc{tang2026macred,
  author = {Chuang Tang and Chenhao Lin and Yin Xu and Hao Wang and Jinrui Zhou and Xin Li and Mingjun Xiao and Enhong Chen},
  title = {{MACReD: A Multi-Agent Collaborative Reasoning Framework for Reaction Diagram Parsing}},
  year = {2026},
  eprint = {2605.28077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.28077},
}
Figure