[ICLR 2025] 论文"通过 LLM 驱动的评分系统提高数据效率"的正式实现
Jinlong Pang, Jiaheng Wei, Ankit Parag Shah, Zhaowei Zhu, Yaxuan Wang, Chen Qian, Yang Liu, Yujia Bao and Wei Wei.
REAL Lab, University of California, Santa Cruz
This project is motivated by the frequent and widespread errors in LLM-generated raw rating scores, which can vary significantly across different models. The score errors can be visualized by a score transition matrix (A larger value on the matrix’s diagonal indicates that the score error is smaller)
In response, we introduce DS2, a diversity-aware score curation approach to enhance data selection.
One can download the evaluation/training data by
# eval data
bash model_finetune/prepare_eval_data.sh
# train data
bash model_finetune/prepare_train_data.shIn this project, we use three labeling models to generate rating scores, including GPT-4o-mini, Mistral-7B-Instruct-v0.3, LLaMA-3.1-8B-Instruct. One can obtain the LLM-generated rating scores by:
#Open-source LLMs
cd LLM_scoring && bash scoring.sh
# Api call
cd LLM_scoring && bash scoring_api.shBy default, we compress rating scores into six categories [0,1,2,3,4,5], although adjustments can be made to suit specific requirements if necessary. Please ensure to update the corresponding value in score_curation/tulu_template.py and subset_generation.py if any changes are made.
One can execute the score curation by running
cd score_curation && bash diagnose.shThe corresponding curation report files can be found in the path score_curation_results/.
Given the generated score curation reports, one can directly generate the high-quality subset by
python subset_generation.pyThe generated subsets can be further used for the following LLM instruction tuning.
The generated subsets in the selected_data path can be used for LLM instruction tuning. Here, for easily reproduction, one can directly finetune the models by (Codebase: TULU)
cd model_finetune && bash run_pipeline.shIf you used this repository, please cite our work:
@article{pang2024improving,
title={Improving Data Efficiency via Curating LLM-Driven Rating Systems},
author={Pang, Jinlong and Wei, Jiaheng and Shah, Ankit Parag and Zhu, Zhaowei and Wang, Yaxuan and Qian, Chen and Liu, Yang and Bao, Yujia and Wei, Wei},
journal={International Conference on Learning Representations},
year={2025}
}暂无开放 Issues,或尚未同步最近议题。