paper-with-me

홈 › Papers

Semi-Instruct: Bridging Natural-Instruct and Self-Instruct for Code Large Language Models

2024-03-01 · Xianzhen Luo, Qingfu Zhu, Zhiming Zhang, Xu Wang, Qing Yang, Dongliang Xu, Wanxiang Che

Instruction tuning plays a pivotal role in Code Large Language Models (Code LLMs) for the task of program synthesis. Presently, two dominant paradigms for collecting tuning data are natural-instruct (human-written) and self-instruct (automatically generated). Natural-instruct includes diverse and correct codes but lacks instruction-code pairs, and exists improper code formats like nested single-line codes. In contrast, self-instruct automatically generates proper paired data. However, it suffers from low diversity due to generating duplicates and cannot ensure the correctness of codes. To bridge the both paradigms, we propose \textbf{Semi-Instruct}. It first converts diverse but improper codes from natural-instruct into proper instruction-code pairs through a method similar to self-instruct. To verify the correctness of generated codes, we design a novel way to construct test cases by generating cases' inputs and executing correct codes from natural-instruct to get outputs. Finally, diverse and correct instruction-code pairs are retained for instruction tuning. Experiments show that semi-instruct is significantly better than natural-instruct and self-instruct. Furthermore, the performance steadily improves as data scale increases.

📄 PDF Abstract BibTeX arXiv:2403.00338

Code (0)

등록된 구현이 없습니다.

Tasks

DiversityProgram Synthesis

Similar Papers 제목 키워드 기반

REFINE-AF: A Task-Agnostic Framework to Align Language Models via Self-Generated Instructions using Reinforcement Learning from Automated Feedback

2025-05-10 · Aniruddha Roy, Pretam Ray, Abhilash Nandy, Somak Aditya 외

Instruction-based Large Language Models (LLMs) have proven effective in numerous few-shot or zero-shot Natural Language Processing (NLP) tasks. However, creating human-annotated instruction data is time-consuming, expens…

Reinforcement Learning (RL)

InstructProtein: Aligning Human and Protein Language via Knowledge Instruction

2023-10-05 · Zeyuan Wang, Qiang Zhang, Keyan Ding, Ming Qin 외

Large Language Models (LLMs) have revolutionized the field of natural language processing, but they fall short in comprehending biological sequences such as proteins. To address this challenge, we propose InstructProtein…

Knowledge GraphsProtein Function PredictionText Generation

A Persistent Spatial Semantic Representation for High-level Natural Language Instruction Execution

2021-07-12 · Valts Blukis, Chris Paxton, Dieter Fox, Animesh Garg 외

Natural language provides an accessible and expressive interface to specify long-term tasks for robotic agents. However, non-experts are likely to specify such tasks with high-level instructions, which abstract over spec…

Self-Instruct: Aligning Language Models with Self-Generated Instructions

2022-12-20 · Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu 외

Large "instruction-tuned" language models (i.e., finetuned to respond to instructions) have demonstrated a remarkable ability to generalize zero-shot to new tasks. Nevertheless, they depend heavily on human-written instr…

Instruction FollowingLanguage Modelling

SQ-LLaVA: Self-Questioning for Large Vision-Language Assistant

2024-03-17 · Guohao Sun, Can Qin, Jiamian Wang, Zeyuan Chen 외

Recent advances in vision-language models have shown notable generalization in broad tasks through visual instruction tuning. However, bridging the gap between the pre-trained vision encoder and the large language models…

Language ModellingQuestion AnsweringSelf-Supervised LearningVisual Question Answering