Kun: Answer Polishment Saves Your Time for Using Intruction Backtranslation on Self-Alignment
30
24 commits
2 linked in READMEs
updated Apr 8, 2024
The COIG-Kun dataset, part of the COIG-Kun GitHub project, consists of instructional data used for training language models. This dataset was developed following the methodology inspired by Meta's "Self-Alignment with Instruction Backtranslation" and adapted for optimal performance in training label, point, and answer models.
instruction and output.
{"instruction": "如何评价祁又一自编自导的电影《鸽子小姐》?", "output": "《鸽子小姐》是一部由祁又一自编自导的电影。..."}wudao.jsonl: 139,852 instanceswanjuan.jsonl: 328,294 instancesskypile.jsonl: 71,560 instancesOur approach closely follows the self-alignment method ådescribed by Meta, with adaptations to optimize the process:
Seed Data Selection and Model Training: Initially, appropriate seed data are selected and inverted to train a Label Model on a base model(Yi Base). Concurrently, using the same seed data, a Primary Chat model is trained following the Supervised Fine-Tuning (SFT) method typical of chat models.
Labeling Unlabeled Data: The Label Model is then used to annotate preliminarily cleansed Primary data. Cleansing involves filtering based on perplexity (ppl) and length, discarding data exceeding 512 tokens.
Instruction Data Generation: Post-annotation, we obtain our first version of Labeled data. Unlike the original project where both instruction and output data pairs are fed into Primary Chat Model for scoring, our replication revealed limitations in Primary Chat's ability to discern high-quality instructions. We innovated by scoring only the instruction component, effectively filtering out noise and selecting high-quality instructions.
Output Data Refinement: Upon manual inspection, we identified a mismatch between the Primary Data (used as output) and the standard requirements for output in instruction data. To address this, we introduced an additional step: refining the output data. Using Primary Chat's capabilities, the output (originally unlabeled data) is adjusted according to the instructions, making it more suitable as output for the instruction data.
Framework Completion: Our methodology concludes with the acquisition of a substantial volume of instructional data, achieved with minimal resource expenditure.

If you use this dataset in your research, please cite it as follows:
@misc{COIG-Kun,
title={Kun: Answer Polishment Saves Your Time for Using Intruction Backtranslation on Self-Alignment},
author={Tianyu, Zheng* and Shuyue, Guo* and Xingwei, Qu and Xinrun, Du and Wenhu, Chen and Jie, Fu and Wenhao, Huang and Ge, Zhang},
year={2023},
publisher={GitHub},
journal={GitHub repository},
howpublished={https://github.com/Zheng0428/COIG-Kun}
}
This dataset was created by a dedicated team at [M-A-P]. We acknowledge the contributions of all individuals and organizations that made this project possible.
Kun: Answer Polishment Saves Your Time for Using Intruction Backtranslation on Self-Alignment
30
24 commits
2 linked in READMEs
updated Apr 8, 2024
The COIG-Kun dataset, part of the COIG-Kun GitHub project, consists of instructional data used for training language models. This dataset was developed following the methodology inspired by Meta's "Self-Alignment with Instruction Backtranslation" and adapted for optimal performance in training label, point, and answer models.
instruction and output.
{"instruction": "如何评价祁又一自编自导的电影《鸽子小姐》?", "output": "《鸽子小姐》是一部由祁又一自编自导的电影。..."}wudao.jsonl: 139,852 instanceswanjuan.jsonl: 328,294 instancesskypile.jsonl: 71,560 instancesOur approach closely follows the self-alignment method ådescribed by Meta, with adaptations to optimize the process:
Seed Data Selection and Model Training: Initially, appropriate seed data are selected and inverted to train a Label Model on a base model(Yi Base). Concurrently, using the same seed data, a Primary Chat model is trained following the Supervised Fine-Tuning (SFT) method typical of chat models.
Labeling Unlabeled Data: The Label Model is then used to annotate preliminarily cleansed Primary data. Cleansing involves filtering based on perplexity (ppl) and length, discarding data exceeding 512 tokens.
Instruction Data Generation: Post-annotation, we obtain our first version of Labeled data. Unlike the original project where both instruction and output data pairs are fed into Primary Chat Model for scoring, our replication revealed limitations in Primary Chat's ability to discern high-quality instructions. We innovated by scoring only the instruction component, effectively filtering out noise and selecting high-quality instructions.
Output Data Refinement: Upon manual inspection, we identified a mismatch between the Primary Data (used as output) and the standard requirements for output in instruction data. To address this, we introduced an additional step: refining the output data. Using Primary Chat's capabilities, the output (originally unlabeled data) is adjusted according to the instructions, making it more suitable as output for the instruction data.
Framework Completion: Our methodology concludes with the acquisition of a substantial volume of instructional data, achieved with minimal resource expenditure.

If you use this dataset in your research, please cite it as follows:
@misc{COIG-Kun,
title={Kun: Answer Polishment Saves Your Time for Using Intruction Backtranslation on Self-Alignment},
author={Tianyu, Zheng* and Shuyue, Guo* and Xingwei, Qu and Xinrun, Du and Wenhu, Chen and Jie, Fu and Wenhao, Huang and Ge, Zhang},
year={2023},
publisher={GitHub},
journal={GitHub repository},
howpublished={https://github.com/Zheng0428/COIG-Kun}
}
This dataset was created by a dedicated team at [M-A-P]. We acknowledge the contributions of all individuals and organizations that made this project possible.