--- annotations_creators: - machine-generated language: - en license: - other multilinguality: - monolingual size_categories: - 100K\n...", "role": "user"}, {"content": ".........", "role": "assistant"} ], "images": ["path/to/image.png"] } ``` Annotations use special tokens: - ``: Start of a reaction - ``: Reactants section - ``: Conditions section - ``: Products section - ``: Molecule entity - ``: Text entity ### DPO Each entry contains chosen/rejected pairs: ```json { "messages": [{"from": "user", "value": "\n..."}], "chosen": {"from": "assistant", "value": "..."}, "rejected": {"from": "assistant", "value": "..."}, "images": ["path/to/image.png"], "overall": {"precision": 0.8, "recall": 0.8, "f1": 0.8}, "mol_only": {"precision": 0.9, "recall": 0.9, "f1": 0.9} } ``` ## Data Generation - **Pretrain**: Synthetic data generated by [LayoutDrivenSynthesizer](https://github.com/jaydetang/RobustRDP/tree/main/pretrain_data_process) — renders molecules from PubChem SMILES onto reaction diagrams with 4 layout types. - **SFT**: Built from [RxnLabelData](https://huggingface.co/datasets/Jingcz/RxnLabelData) with data augmentation (rotation, distortion, composite) and two auxiliary tasks (RGRP, PPRP). See [SFT data process](https://github.com/jaydetang/RobustRDP/tree/main/sft_data_process). - **DPO**: Generated by running the SFT model on training data and filtering cases where model predictions (F1 < 0.8) differ from ground truth. See [DPO data process](https://github.com/jaydetang/RobustRDP/tree/main/dpo_data_process). ## Related Resources - **Model**: [RobustRDP](https://huggingface.co/Jingcz/RobustRDP) - **Raw Data**: [RobustRDP-RawTrainData](https://huggingface.co/datasets/Jingcz/RobustRDP-RawTrainData) - **Code**: [RobustRDP GitHub](https://github.com/jaydetang/RobustRDP) - **Annotation Platform**: [RxnLabel](https://github.com/jaydetang/RxnLabel)