[ICLR 2026] Official PyTorch implementation for "ReFusion: A Diffusion Large Language Model with Parallel Autoregressive Decoding"
Python
64
9 commits
updated Dec 26, 2025
We introduce ReFusion, a novel masked diffusion model featuring two core innovations:
Empirically, ReFusion not only outperforms prior MDMs with a 34% performance gain and an over 18× speedup on average, but also bridges the performance gap to strong ARMs while maintaining a 2.33× average speedup.
Figure: ReFusion achieves the best balance of speed and accuracy on MBPP. Metrics are calculated relative to the Qwen3-8B baseline.
git clone https://github.com/ML-GSAI/ReFusion.git
cd ReFusion
conda env create -f refusion_full_env.yml
conda activate refusion_py10
We provide a sample dataset in data/train_data.json to illustrate the required format. The full training dataset is available on Hugging Face at GSAI-ML/ReFusion.
Please ensure your training data is organized as a JSON list of objects, where each object contains a query and a response.
Data Format Example:
[
{
"query": "...",
"response": "..."
},
{
"query": "...",
"response": "..."
}
]
Single-Node Training:
To train on a single machine, simply run:
bash train.sh
Multi-Node Training:
For distributed training across multiple nodes (e.g., 2 nodes), specify the node count (-n), current rank (-r), and the master node IP address (-m):
# Example: Running on the master node (Rank 0)
bash train.sh -n 2 -r 0 -m 192.168.1.1
# Example: Running on the worker node (Rank 1)
bash train.sh -n 2 -r 1 -m 192.168.1.1
python generate.py
bash eval.sh
Key Results:
If you find our work helpful, please consider citing our paper.
@misc{li2025refusiondiffusionlargelanguage,
title={ReFusion: A Diffusion Large Language Model with Parallel Autoregressive Decoding},
author={Jia-Nan Li and Jian Guan and Wei Wu and Chongxuan Li},
year={2025},
eprint={2512.13586},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2512.13586},
}
9 commits
Python
99.3%
[ICLR 2026] Official PyTorch implementation for "ReFusion: A Diffusion Large Language Model with Parallel Autoregressive Decoding"
Python
64
9 commits
updated Dec 26, 2025
We introduce ReFusion, a novel masked diffusion model featuring two core innovations:
Empirically, ReFusion not only outperforms prior MDMs with a 34% performance gain and an over 18× speedup on average, but also bridges the performance gap to strong ARMs while maintaining a 2.33× average speedup.
Figure: ReFusion achieves the best balance of speed and accuracy on MBPP. Metrics are calculated relative to the Qwen3-8B baseline.
git clone https://github.com/ML-GSAI/ReFusion.git
cd ReFusion
conda env create -f refusion_full_env.yml
conda activate refusion_py10
We provide a sample dataset in data/train_data.json to illustrate the required format. The full training dataset is available on Hugging Face at GSAI-ML/ReFusion.
Please ensure your training data is organized as a JSON list of objects, where each object contains a query and a response.
Data Format Example:
[
{
"query": "...",
"response": "..."
},
{
"query": "...",
"response": "..."
}
]
Single-Node Training:
To train on a single machine, simply run:
bash train.sh
Multi-Node Training:
For distributed training across multiple nodes (e.g., 2 nodes), specify the node count (-n), current rank (-r), and the master node IP address (-m):
# Example: Running on the master node (Rank 0)
bash train.sh -n 2 -r 0 -m 192.168.1.1
# Example: Running on the worker node (Rank 1)
bash train.sh -n 2 -r 1 -m 192.168.1.1
python generate.py
bash eval.sh
Key Results:
If you find our work helpful, please consider citing our paper.
@misc{li2025refusiondiffusionlargelanguage,
title={ReFusion: A Diffusion Large Language Model with Parallel Autoregressive Decoding},
author={Jia-Nan Li and Jian Guan and Wei Wu and Chongxuan Li},
year={2025},
eprint={2512.13586},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2512.13586},
}
9 commits
Python
99.3%