Self-Instruct: Aligning Language Models with Self-Generated Instructions
Wang et al., 2023, Self-Instruct (Proceedings of the 61st Annual Meeting of ACL (Volume 1: Long Papers))
Subscriber deck — free during early access
4 cards in “2.2 Automatic Instruction Data Generation” · whole deck
2.2 Automatic Instruction Data Generation
- List the four steps of Self-Instruct’s generation pipeline.(1) Generate new task instructions; (2) decide whether each instruction is a classification task; (3) generate instances, input-first or output-first; (4) filter low-quality or near-duplicate tasks and add the rest to the task pool.
Self-Instruct bootstraps a large instruction dataset from 175 seed tasks; filtered tasks go back into the pool - Wang et al., 2023, Self-Instruct (Proceedings of the 61st Annual Meeting of ACL (Volume 1: Long Papers)), §2.2, p. 13486
- How does Self-Instruct prompt for new instructions?Starting from a pool of 175 hand-written seed tasks, each step samples 8 instructions as in-context examples, 6 human-written and 2 model-generated, to promote diversity, and lets the model continue the list with new instructions.
- Wang et al., 2023, Self-Instruct (Proceedings of the 61st Annual Meeting of ACL (Volume 1: Long Papers)), §2.2, p. 13486
- Why does Self-Instruct generate classification instances output-first?Input-first generation (invent an input, then answer it) tends to produce inputs biased toward one label, e.g. mostly grammatical sentences for grammar error detection. Generating the class label first and then an input for each label gives balanced data.
- Wang et al., 2023, Self-Instruct (Proceedings of the 61st Annual Meeting of ACL (Volume 1: Long Papers)), §2.2, p. 13486
- How does Self-Instruct filter generated tasks?A new instruction enters the pool only if its ROUGE-L similarity to every existing instruction is below 0.7; instructions with words like “image” or “graph” that a text model can’t handle are dropped; duplicate instances, same-input-different-output instances, and heuristically invalid generations (too long, too short, repeating the input) are removed.
- Wang et al., 2023, Self-Instruct (Proceedings of the 61st Annual Meeting of ACL (Volume 1: Long Papers)), §2.2, p. 13487
Source
- Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi and Hannaneh Hajishirzi. 2023. Self-Instruct: Aligning Language Models with Self-Generated Instructions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 13484–13508. License: CC BY 4.0. Flashcards adapted from this work. doi:10.18653/v1/2023.acl-long.754 https://aclanthology.org/2023.acl-long.754/