Skip to content

About

Benchmark Dataset for Code LLMs, Consisting of Academic Coding Prompts

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSEPrompts: A Benchmark of Introductory Computer Science Prompts

CSEPrompts is a framework with hundreds of programming exercise prompts and multiple-choice questions from introductory CS and programming courses. It evaluates the performance of LLMs in generating Python code and answering basic CS questions.


Publication: International Symposium on Methodologies for Intelligent Systems

Read in arXiv


📝 Citation

If you use this dataset, please cite our paper.

@inproceedings{raihan2024cseprompts,
  title={CSEPrompts: A Benchmark of Introductory Computer Science Prompts},
  author={Raihan, Nishat and Goswami, Dhiman and Puspo, Sadiya Sayara Chowdhury and Newman, Christian and Ranasinghe, Tharindu and Zampieri, Marcos},
  booktitle={International Symposium on Methodologies for Intelligent Systems},
  pages={45--54},
  year={2024},
  organization={Springer}
}

CSEPrompts Benchmark

  • Sources: Coding websites (e.g., CodingBat, LearnPython) and MOOCs (e.g., Harvard's CS50, UMich's PforE).
  • Statistics: 118 coding prompts from websites, 101 from MOOCs, and 100 MCQs.
  • Collection: Manual collection ensuring no duplication.

Research Questions

  1. RQ1: LLM performance on introductory CS assignments compared to existing benchmarks.
  2. RQ2: Performance difference on assignments from coding websites vs. academic MOOCs.
  3. RQ3: LLMs' performance in generating code vs. answering MCQs.
  4. RQ4: Performance of Code LLMs vs. raw LLMs.

Statistics for Prompts

Metric CodingSites Academic MCQ
Total Prompts 118 101 100
Max. No. of Tokens 101 372 221
Min. No. of Tokens 5 17 15
Mean No. of Tokens 28 158 106
Standard Deviation 16 72 51

LLMs Used on CSEPrompts

LLM Parameter Model Type Reference
GPT3.5 175B Base OpenAI2023GPT4TR
Llama2 7B Base touvron2023llama
Falcon 7B Base penedo2023refinedweb
MPT 7B Base mosaicml_mpt30b
Code-Llama 7B Fine-tuned roziere2023code
StarCoder 7B Fine-tuned li2023starcoder
WizardCoder 7B Fine-tuned luo2023wizardcoder
Mistral 7B Base jiang2023mistral

Pass@1 Comparison

Pass@1 Comparison


MCQ Performance Comparison

MCQ Performance Comparison


References

About

Benchmark Dataset for Code LLMs, Consisting of Academic Coding Prompts

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors