Skip to content

About

Official repository for “Masked Diffusion Language Agents for Tool-Integrated Chemical Reasoning,” accepted to NeurIPS 2026.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[NeurIPS 2026] Masked Diffusion Language Agents for Tool-Integrated Chemical Reasoning

This is the official repository for:

[NeurIPS 2026] Masked Diffusion Language Agents for Tool-Integrated Chemical Reasoning

Accepted to NeurIPS 2026.

1. Repository Structure

The repository contains the training and inference code used by ChemDiffAgent.

ChemDiffAgent/
├── inference/          # ChemDiffAgent inference
├── scripts/            # Training and inference launchers
└── training/
    ├── sft/            # Agentic SFT
    └── vrpo/           # Agentic VRPO

2. Environment Setup

Create a Python environment and install the dependencies required for training and inference.

git clone https://github.com/bilemond/ChemDiffAgent.git
cd ChemDiffAgent

conda create -n chemdiffagent python=3.10 -y
conda activate chemdiffagent

pip install -r inference/requirements.txt
pip install -r training/sft/requirements.txt
pip install -r training/vrpo/requirements.txt

Optional chemistry backends can be installed with:

bash scripts/setup_tools.sh

3. Dataset

Training data and inference benchmarks are available at Serendipity001/ChemDiffAgent.

pip install -U huggingface_hub
hf download Serendipity001/ChemDiffAgent \
  --repo-type dataset \
  --local-dir data/ChemDiffAgent

4. Training

Train ChemDiffAgent using Agentic SFT followed by Agentic VRPO.

Run Agentic SFT with the downloaded training/train.json. Set BASE_MODEL to the local directory or Hugging Face model ID of your starting checkpoint. The repository uses SDAR by default.

export BASE_MODEL=/path/to/your/checkpoint
export SFT_DATA=$PWD/data/ChemDiffAgent/training/train.json
export OUTPUT_DIR=$PWD/outputs/chemdiffagent-sft

bash scripts/train_sft.sh

Run Agentic VRPO with execution-verified preference data prepared from training/rl_tasks.jsonl:

export SFT_MODEL=$PWD/outputs/chemdiffagent-sft
export PREFERENCE_DATA=/path/to/preferences.jsonl
export OUTPUT_DIR=$PWD/outputs/chemdiffagent-vrpo

bash scripts/train_vrpo.sh

5. Inference

Run ChemDiffAgent on the downloaded single-turn and multi-turn benchmarks.

export MODEL_PATH=/path/to/your/checkpoint
export DATA_DIR=$PWD/data/ChemDiffAgent/benchmark
export OUTPUT_DIR=$PWD/outputs/inference

bash scripts/run_inference.sh

About

Official repository for “Masked Diffusion Language Agents for Tool-Integrated Chemical Reasoning,” accepted to NeurIPS 2026.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages