Datasets:
Dataset Viewer
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code: StreamingRowsError
Exception: ValueError
Message: Invalid string class label sft_data
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 478, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2368, in __iter__
example = _apply_feature_types_on_example(
example, self.features, token_per_repo_id=self.token_per_repo_id
)
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2285, in _apply_feature_types_on_example
encoded_example = features.encode_example(example)
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2162, in encode_example
return encode_nested_example(self, example)
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1446, in encode_nested_example
{k: encode_nested_example(schema[k], obj.get(k), level=level + 1) for k in schema}
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1469, in encode_nested_example
return schema.encode_example(obj) if obj is not None else None
~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1144, in encode_example
example_data = self.str2int(example_data)
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1081, in str2int
output = [self._strval2int(value) for value in values]
~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1102, in _strval2int
raise ValueError(f"Invalid string class label {value}")
ValueError: Invalid string class label sft_dataNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
RobustRDP-ProcessedTrainData
Processed training data for the paper: RobustRDP: Advancing Reaction Diagram Parsing via Synthetic-to-Real Data Scaling and Robustness-Oriented Training.
Dataset Structure
pretrain_data/
├── pretrain_downsampled_llm_6w.json # 60,000 synthetic reaction diagrams
└── images_pretrain_resized/
├── single_line_resized/ # Single-line chain-style reactions
├── multi_line_resized/ # Multi-line chain-style reactions
├── branch_resized/ # Branching reactions
└── cycle_resized/ # Cyclic reactions
sft_data/
├── multi_task_sft_downsampled_llm.json # 190,800 multi-task SFT entries
├── images_train_aug_resized/ # Augmented training images
└── images_train_resized/ # Original resized training images
dpo_data/
└── train_downsampled_llm_dpo.json # 14,169 DPO triplets (chosen/rejected pairs)
Data Splits
| Split | Entries | Description |
|---|---|---|
| Pretrain | 60,000 | Synthetic reaction diagrams generated by LayoutDrivenSynthesizer (4 layout types: single-line, multi-line, branch, cycle) |
| SFT | 190,800 | Multi-task supervised fine-tuning data with 3 task variants: Vanilla Reaction Parsing (VRP), Region-Guided Reaction Parsing (RGRP), Prefix-Perturbed Reaction Parsing (PPRP) |
| DPO | 14,169 | Direct Preference Optimization triplets with chosen (ground-truth) and rejected (model prediction) annotations |
Data Format
Pretrain & SFT
Each entry follows the conversational format:
{
"messages": [
{"content": "<image>\n...", "role": "user"},
{"content": "<rxn><rct>...<mol><cnd>...<txt><prd>...<mol>", "role": "assistant"}
],
"images": ["path/to/image.png"]
}
Annotations use special tokens:
<rxn>: Start of a reaction<rct>: Reactants section<cnd>: Conditions section<prd>: Products section<mol>: Molecule entity<txt>: Text entity
DPO
Each entry contains chosen/rejected pairs:
{
"messages": [{"from": "user", "value": "<image>\n..."}],
"chosen": {"from": "assistant", "value": "<rxn>..."},
"rejected": {"from": "assistant", "value": "<rxn>..."},
"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 — renders molecules from PubChem SMILES onto reaction diagrams with 4 layout types.
- SFT: Built from RxnLabelData with data augmentation (rotation, distortion, composite) and two auxiliary tasks (RGRP, PPRP). See 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.
Related Resources
- Model: RobustRDP
- Raw Data: RobustRDP-RawTrainData
- Code: RobustRDP GitHub
- Annotation Platform: RxnLabel
- Downloads last month
- 46