Skip to main content
QUICK REVIEW

[Paper Review] WizardCoder: Empowering Code Large Language Models with Evol-Instruct

Ziyang Luo, Can Xu|arXiv (Cornell University)|Jun 14, 2023
Topic ModelingComputer Science82 citations
TL;DR

WizardCoder fine-tunes a Code LLM (StarCoder) with code-focused Evol-Instruct, achieving state-of-the-art results among open-source Code LLMs and surpassing some closed models on HumanEval, HumanEval+, and MBPP.

ABSTRACT

Code Large Language Models (Code LLMs), such as StarCoder, have demonstrated exceptional performance in code-related tasks. However, most existing models are solely pre-trained on extensive raw code data without instruction fine-tuning. In this paper, we introduce WizardCoder, which empowers Code LLMs with complex instruction fine-tuning, by adapting the Evol-Instruct method to the domain of code. Through comprehensive experiments on four prominent code generation benchmarks, namely HumanEval, HumanEval+, MBPP, and DS-1000, we unveil the exceptional capabilities of our model. It surpasses all other open-source Code LLMs by a substantial margin. Moreover, our model even outperforms the largest closed LLMs, Anthropic's Claude and Google's Bard, on HumanEval and HumanEval+. Our code, model weights, and data are public at https://github.com/nlpxucan/WizardLM

Motivation & Objective

  • Motivate enhancement of Code LLMs with fine-grained instruction tuning tailored to code tasks.
  • Leverage Evol-Instruct to generate more complex, diverse, code-focused instruction data.
  • Show that enhanced instruction fine-tuning improves code generation benchmarks over baselines.

Proposed method

  • Adapt Evol-Instruct to code by refining prompts, adding code-specific constraints (debugging, time/space complexity).
  • Start from StarCoder 15B and evolve Code Alpaca data to ~78k samples.
  • Fine-tune StarCoder on evolved data with 200 steps, batch size 512, sequence length 2048, learning rate 2e-5, fp16.
  • Evaluate using HumanEval, HumanEval+, MBPP, and DS-1000 with greedy decoding and standard prompts.
  • Compare against open-source and closed-source baselines to assess pass@1 and DS-1000 scores.

Experimental results

Research questions

  • RQ1How does code-focused Evol-Instruct affect Code LLM performance on standard benchmarks?
  • RQ2Does WizardCoder close the gap to closed-source models in code generation tasks?
  • RQ3What is the impact of the number of data evolution rounds on pass@1 performance?

Key findings

  • WizardCoder achieves SOTA among open-source Code LLMs on four benchmarks (HumanEval, HumanEval+, MBPP, DS-1000).
  • On HumanEval, pass@1 improves by +22.3 points (57.3 vs 35.0) over the baseline open-source model.
  • On MBPP, pass@1 improves by +8.2 points (51.8 vs 43.6) over the baseline.
  • WizardCoder outperforms Claude and Bard on HumanEval and HumanEval+ despite smaller size.
  • A three-round Evol-Instruct data evolution yielded the highest pass@1 on HumanEval, guiding data selection.
  • WizardCoder shows strong DS-1000 performance across most libraries.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.