CS-Bench: A Comprehensive Benchmark for Large Language Models Towards Computer Science Mastery

Abstract

Large language models (LLMs) have demonstrated significant potential in advancing various fields of research and society. However, the current community of LLMs overly focuses on benchmarks for analyzing specific foundational skills (e.g. mathematics and code generation), neglecting an all-round evaluation of the computer science field. To bridge this gap, we introduce CS-Bench, the first multilingual (English, Chinese, French, German) benchmark dedicated to evaluating the performance of LLMs in computer science. CS-Bench comprises approximately 10K meticulously curated test samples, covering 26 subfields across 4 key areas of computer science, encompassing various task forms and divisions of knowledge and reasoning. Utilizing CS-Bench, we conduct a comprehensive evaluation of over 30 mainstream LLMs, revealing the relationship between CS performance and model scales. We also quantitatively analyze the reasons for failures in existing LLMs and highlight directions for improvements, including knowledge supplementation and CS-specific reasoning. Further cross-capability experiments show a high correlation between LLMs' capabilities in computer science and their abilities in mathematics and coding. Moreover, expert LLMs specialized in mathematics and coding also demonstrate strong performances in several CS subfields. Looking ahead, we envision CS-Bench serving as a cornerstone for LLM applications in the CS field and paving new avenues in assessing LLMs' diverse reasoning capabilities. Our project homepage is available at https://csbench.github.io/.

Cite

Text

Song et al. "CS-Bench: A Comprehensive Benchmark for Large Language Models Towards Computer Science Mastery." International Conference on Learning Representations, 2025.

Markdown

[Song et al. "CS-Bench: A Comprehensive Benchmark for Large Language Models Towards Computer Science Mastery." International Conference on Learning Representations, 2025.](https://mlanthology.org/iclr/2025/song2025iclr-csbench/)

BibTeX

@inproceedings{song2025iclr-csbench,
  title     = {{CS-Bench: A Comprehensive Benchmark for Large Language Models Towards Computer Science Mastery}},
  author    = {Song, Xiaoshuai and Diao, Muxi and Dong, Guanting and Wang, Zhengyang and Fu, Yujia and Qiao, Runqi and Wang, Zhexu and Fu, Dayuan and Wu, Huangxuan and Liang, Bin and Zeng, Weihao and Wang, Yejie and GongQue, Zhuoma and Yu, Jianing and Tan, Qiuna and Xu, Weiran},
  booktitle = {International Conference on Learning Representations},
  year      = {2025},
  url       = {https://mlanthology.org/iclr/2025/song2025iclr-csbench/}
}