The source code for DiffER: Diffusion Entity-Relation Modeling for Reversal Curse in Diffusion Large Language Models.
🎉🎉🎉 [April. 2026] We are delighted to announce that our paper, "DiffER: Diffusion Entity-Relation Modeling for Reversal Curse in Diffusion Large Language Models", has been accepted by Findings of ACL 2026!
Please download PORE datasets https://github.com/lzc-nazarite/PORE or unzip data.zip
For pre-training, the first step is to extract the origin_prompt from the PORE dataset ar_train_dataset run then bash pretrain.sh
For pre-training, the first step is to extract the whole entity from origin_prompt then bash pretrainwem.sh
For fine-tuning, the first step is to construct the SFT data paradigm (run .data/sft_data.py), then bash sft.sh
For inference, run inference.py
For comparing answer, run data/ground_truth_data.py to get the correct answer and run compare_answer.py to compare the inference answer and correct answer
For case study and answer analysis, run analysis_error_answer.py
